@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Racing+Sans+One&display=swap');

body {
font-family: Arial, sans-serif;
background: #111;
color: #fff;
margin: 0;
padding: 0;
}

header {
background: #222;
padding: 25px;
text-align: center;
border-bottom: 2px solid #e3000f;
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px; /* Default row gap and column gap */
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    padding: 6px 10px;
    transition: color 0.2s ease;
}

nav a:hover {
color: #e3000f;
}

main {
padding: 40px 20px;
max-width: 1000px;
margin: 0 auto;
}

h1 {
    font-family: 'Racing Sans One', sans-serif;
    color: #e60000; /* Matches the striking red in your current design */
    font-size: 4rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    /* Adds a sleek drop shadow to pop against the dark background */
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.8);
    margin-bottom: 20px;
    margin-top: 20px;
} 

/* =========================================
   HEADER & NAVIGATION
   ========================================= */

header {
    background: #222;
    padding: 20px 15px;
    border-bottom: 2px solid #e3000f;
    position: relative;
    z-index: 100;
}

.nav-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hide mobile bar elements on desktop */
.mobile-header-bar {
    display: none;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    padding: 6px 10px;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: #e3000f;
}

/* =========================================
   MOBILE COLLAPSIBLE NAVIGATION (<= 768px)
   ========================================= */

@media (max-width: 768px) {
    header {
        padding: 12px 20px;
    }

    .nav-wrapper {
        flex-direction: column;
        width: 100%;
    }

    /* Mobile bar spanning full width with ISP on left, menu on right */
    .mobile-header-bar {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    /* ISP Logo on Mobile */
    .mobile-brand {
        font-family: 'Racing Sans One', sans-serif;
        font-size: 1.8rem;
        color: #e3000f;
        text-decoration: none;
        letter-spacing: 1px;
        font-weight: bold;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    /* Hamburger Toggle Button */
    .nav-toggle {
        display: block;
        background: transparent;
        border: none;
        width: auto;
        padding: 6px 0;
        cursor: pointer;
    }

    .nav-toggle .bar {
        display: block;
        width: 28px;
        height: 3px;
        margin: 5px 0;
        background: #fff;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
    }

    /* Hamburger to 'X' animation */
    .nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background: #e3000f;
    }

    .nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background: #e3000f;
    }

    /* Collapsed Menu Dropdown */
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 0;
        margin-top: 12px;
        padding-top: 10px;
        border-top: 1px solid #333;
    }

    /* Expanded Menu */
    .nav-menu.open {
        display: flex;
    }

    .nav-menu a {
        width: 100%;
        box-sizing: border-box;
        padding: 14px 0;
        border-bottom: 1px solid #2a2a2a;
        font-size: 1.05rem;
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }
}


/* =========================================
HOMEPAGE & HERO BANNER STYLES
========================================= */

.hero-banner {
position: relative;
width: 100%;
height: 20vh; 
min-height: 150px;
background-color: #000;
border-bottom: 4px solid #e3000f;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden; /* Fixed comment formatting here */
}

.hero-video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover; 
z-index: 1;
}

.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6); 
z-index: 2;
}

#isp-logo {
position: relative;
z-index: 3; 
width: 90%;
max-width: 450px; 
height: auto;
object-fit: contain; 
display: block;
}

.professional-home {
text-align: center;
padding-top: 60px;
}

.tagline {
font-size: 1.2rem;
color: #aaa;
margin-bottom: 5px;
}

/* =========================================
CALL TO ACTION BUTTONS
========================================= */

.cta-container {
display: flex;
justify-content: center;
gap: 20px;
flex-wrap: wrap;
}

.btn {
display: inline-block;
padding: 15px 30px;
font-size: 1.1rem;
font-weight: bold;
text-decoration: none;
text-transform: uppercase;
border-radius: 5px;
transition: all 0.3s ease;
}

.primary-btn {
background-color: #e3000f;
color: #fff;
border: 2px solid #e3000f;
}

.primary-btn:hover {
background-color: transparent;
color: #e3000f;
}

.secondary-btn {
background-color: transparent;
color: #fff;
border: 2px solid #fff;
}

.secondary-btn:hover {
background-color: #fff;
color: #111;
}

.third-btn {
background-color: #088F8F;
color: #fff;
border: 2px solid #088F8F;
}

.third-btn:hover {
background-color: transparent;
color: #088F8F;
}

/* =========================================
   CONTACT FORM STYLES
   ========================================= */

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #222;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #333;
    text-align: left;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #ccc;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #e3000f;
    box-shadow: 0 0 5px rgba(227, 0, 15, 0.5);
}

.contact-form textarea {
    resize: vertical;
}

.submit-btn {
    width: 100%;
    cursor: pointer;
    margin-top: 10px;
}

.success-msg {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.error-msg {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid #f44336;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

/* =========================================
GALLERY STYLES
========================================= */
.media-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 15px;
}

.grid-item {
width: 100%;
height: 250px;
object-fit: cover;
cursor: pointer;
border-radius: 8px;
transition: transform 0.2s;
}

.grid-item:hover {
transform: scale(1.02);
}

/* =========================================
SHOP STYLES
========================================= */
.shop-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}

.merch-card {
background: #222;
padding: 20px;
border-radius: 8px;
text-align: center;
border: 1px solid #333;
}

.merch-card img {
width: 100%;
height: 200px;
object-fit: contain;
border-radius: 4px;
margin-bottom: 15px;
}

.price {
font-size: 1.4em;
font-weight: bold;
color: #4CAF50;
margin: 10px 0;
}

.status {
color: #aaa;
font-size: 0.9em;
margin-bottom: 15px;
}

button {
background: #e3000f;
color: white;
border: none;
padding: 12px 20px;
cursor: pointer;
border-radius: 4px;
font-weight: bold;
width: 100%;
text-transform: uppercase;
}

button:hover {
background: #c2000d;
}

/* =========================================
LIGHTBOX STYLES
========================================= */
#lightbox {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.9);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}

#lightbox.hidden {
display: none;
}

#lightbox-img {
max-width: 90%;
max-height: 90%;
border-radius: 8px;
box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* =========================================
TEAM BIOS STYLES
========================================= */

.page-header {
text-align: center;
padding: 40px 20px;
background-color: #0d0d0d;
border-bottom: 1px solid #333;
}

.page-header h1 {
margin-bottom: 10px;
}

.page-header p {
color: #aaa;
font-size: 1.1rem;
margin: 0;
}

.team-section {
margin-bottom: 60px;
}

.section-title {
text-align: left;
color: #fff;
border-bottom: 2px solid #e3000f;
padding-bottom: 10px;
margin-bottom: 30px;
font-size: 1.8rem;
}

.bios-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
gap: 30px;
}

.media-section .media-grid {
display: flex;
justify-content: center;
}

.media-section .bio-card {
max-width: 500px;
width: 100%;
}

.bio-card {
background: #1a1a1a;
border-radius: 10px;
overflow: hidden;
border: 1px solid #333;
display: flex;
flex-direction: column;
}

.bio-card img {
width: 100%;
height: 300px;
object-fit: contain;
border-bottom: 2px solid #e3000f;
}

.bio-content {
padding: 25px;
}

.bio-content h3 {
margin: 0 0 5px 0;
font-size: 1.5rem;
color: #fff;
}

/* INSTAGRAM LINK STYLES */
.ig-link {
color: #4da6ff; /* Lighter, brighter blue */
text-decoration: none;
transition: color 0.3s ease;
}

.ig-link:hover {
color: #e3000f;
}

.bio-content .role {
color: #e3000f;
font-weight: bold;
margin: 0 0 15px 0;
font-size: 0.9rem;
text-transform: uppercase;
}

.bio-content .bio-text {
color: #ccc;
line-height: 1.5;
margin: 0;
}

/* Mobile responsive tweak for the bios grid */
@media (max-width: 500px) {
.bios-grid {
grid-template-columns: 1fr;
}
}

footer {
text-align: center;
padding: 20px;
background: #222;
color: #777;
font-size: 0.9em;
}

/* =========================================
   SCHEDULE STYLES
   ========================================= */
.schedule-container {
    max-width: 800px;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.schedule-card {
    display: flex;
    align-items: center;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s ease;
}

.schedule-card:hover {
    transform: translateX(10px);
    border-left: 4px solid #e3000f;
}

.schedule-card.completed-event {
    opacity: 0.6; /* Dims past events */
}

.schedule-card.cancelled-event {
    opacity: 0.6; /* Dims past events */
}

.event-date {
    flex: 0 0 120px;
    border-right: 2px solid #333;
    padding-right: 20px;
    text-align: center;
}

.event-date h3 {
    color: #e3000f;
    margin: 0;
    font-size: 1.2rem;
}

.event-details {
    flex: 1;
    padding: 0 20px;
}

.event-details h2 {
    margin: 0 0 5px 0;
    color: #fff;
}

.track-location {
    margin: 0;
    color: #aaa;
    font-size: 0.9rem;
}

.event-status {
    flex: 0 0 100px;
    text-align: right;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.status-badge.upcoming { background: rgba(76, 175, 80, 0.2); color: #4CAF50; }
.status-badge.completed { background: rgba(255, 255, 255, 0.1); color: #90EE90; }
.status-badge.cancelled { background: rgba(255, 255, 255, 0.1); color: #999; }
.status-badge.tba { background: rgba(227, 0, 15, 0.2); color: #e3000f; }

@media (max-width: 600px) {
    .schedule-card {
        flex-direction: column;
        text-align: center;
    }
    .event-date {
        border-right: none;
        border-bottom: 2px solid #333;
        padding: 0 0 15px 0;
        margin-bottom: 15px;
    }
    .event-status {
        margin-top: 15px;
        text-align: center;
    }
}

/* =========================================
   SPONSORS BANNER STYLES
   ========================================= */
.sponsors-wrapper {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #333;
    text-align: center;
}

.sponsors-title {
    color: #777;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.sponsors-marquee {
    width: 200px;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 10px 0;
}

.marquee-track {
    display: inline-block;
    animation: marqueeScroll 10s linear infinite;
}

/* Pause the scrolling if a user hovers their mouse over it */
.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-track img {
    height: 60px;
    margin: 0 30px;
    vertical-align: middle;
    filter: grayscale(100%) opacity(0.7); /* Makes logos grey and subtle */
    transition: filter 0.3s ease;
}

.marquee-track img:hover {
    filter: grayscale(0%) opacity(1); /* Returns to full color on hover */
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
    /* Translates -50% because we duplicated the logos to create the loop */
}

/* =========================================
   FLOATING SOCIAL MEDIA BAR
   ========================================= */
.floating-socials {
    position: fixed;
    right: 20px; /* Sticks to the right side of the screen */
    top: 50%; /* Vertically centers it */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: #222;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
    border: 2px solid #333;
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Brand Colors on Hover */
.social-icon:hover {
    transform: scale(1.15) translateX(-5px); /* Pops out slightly when hovered */
}
.social-icon.ig:hover { border-color: #E1306C; color: #E1306C; }
.social-icon.tt:hover { border-color: #00f2fe; color: #00f2fe; }
.social-icon.yt:hover { border-color: #FF0000; color: #FF0000; }


/* =========================================
   TEAM STATS STYLES
   ========================================= */
.team-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 60px;
    padding: 30px 20px;
    background: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
    border-bottom: 3px solid #e3000f;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.stat-item {
    text-align: center;
    padding: 15px;
    flex: 1;
    min-width: 200px;
}

.stat-number {
    display: block;
    font-family: 'Racing Sans One', sans-serif;
    font-size: 4rem;
    color: #e3000f;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.stat-label {
    color: #ccc;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .floating-socials {
        /* On small phones, moves the bar to the bottom instead of the side */
        right: auto;
        left: 50%;
        top: auto;
        bottom: 10px;
        transform: translateX(-50%);
        flex-direction: row;
    }
    .social-icon:hover {
        transform: scale(1.15) translateY(-5px); 
    }
	nav {
        gap: 20px 16px; /* 20px vertical height gap between wrapped rows */
    }

    nav a {
        padding: 8px 12px; /* Expands touch target for mobile devices */
    }
}