:root {
    --primary-orange: #ff6200;
    --dark-orange: #d97706;
    --bg-black: #0a0a0a;
    --card-bg: #151515;
    --font-display: 'Anton', sans-serif;
    --font-primary: 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-black);
    color: #fff;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
}

p {
    font-family: var(--font-primary);
}

.title {
    color: white;
    font-family: 'Mona Sans', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

/*Content*/

.content {
    color: white;
    text-align: center;
    margin-top: 10px;
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

/* SAE Description Section - reduced gaps */
.sae-description {
    background: #0a0a0a;
    padding: 40px 5%;
}

.sae-description .section-header {
    margin-bottom: 15px;
}

.sae-description .specs-section {
    padding: 20px 5%;
}

.sae-description .description-divider {
    width: 80px;
    height: 3px;
    background: var(--primary-orange);
    margin: 10px auto 20px;
}

/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--bg-black);
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-orange);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.7;
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(100, 100, 100, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(80, 80, 80, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Hero Image Styling */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* .hero-section:hover .hero-image {
    opacity: 0.8;
} */

/* Hero Video Background */
/* .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
    background: transparent;
} */

/* Hide video controls and fallback icons */
.hero-video::-webkit-media-controls {
    display: none !important;
}

.hero-video::-webkit-media-controls-panel {
    display: none !important;
}

.hero-video::-webkit-media-controls-play-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

.hero-overlay {
    position: relative;
    min-height: 100vh;
    width: 100%;
    z-index: 1;
    display: flex;
    justify-content: right;
    align-items: right;
    color: white;
    text-align: right;
}

.hero-text {
    text-align: center;
    z-index: 10;
    margin-left: 5%;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 400;
    font-style: italic;
    color: var(--primary-orange);
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 98, 0, 0.4);
    letter-spacing: -2px;
    line-height: 1;
}

.hero-title span {
    display: block;
    font-size: 4rem;
    color: #fff;
    font-style: normal;
    letter-spacing: 15px;
    margin: 10px 0;
    text-shadow: none;
    opacity: 0.8;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(136, 136, 136, 0.3));
    }

    to {
        filter: drop-shadow(0 0 40px rgba(136, 136, 136, 0.6));
    }
}

.hero-text p {
    font-size: 1.5rem;
    color: #aaa;
    margin-top: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
}


/* ===== About Section ===== */
.about-section {
    padding: 100px 5%;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-size: 3rem;
    color: #888;
    letter-spacing: 6px;
    margin-bottom: 20px;
}

.about-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #888, transparent);
    margin: 0 auto 40px;
}

.about-description {
    font-size: 1.2rem;
    color: #bbb;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 60px;
}

.competition-classes {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.class-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(136, 136, 136, 0.2);
    border-radius: 15px;
    padding: 40px 30px;
    width: 300px;
    transition: all 0.4s ease;
}

.class-card:hover {
    transform: translateY(-10px);
    border-color: #888;
    box-shadow: 0 20px 40px rgba(136, 136, 136, 0.2);
}

.class-icon {
    font-size: 3rem;
    color: #888;
    margin-bottom: 20px;
}

.class-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 15px;
}

.class-card p {
    color: #bbb;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== Counter Section ===== */
.background {
    background: transparent;
    padding: 40px 5%;
}

.counter-section {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 1px auto;
}

.counter-block {
    text-align: center;
    padding: 0px 40px;
    background: transparent;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.counter-block:hover {
    background: transparent;
}

.count {
    font-size: 5rem;
    font-weight: 400;
    font-family: var(--font-display);
    color: #444;
    transition: all 0.5s ease;
}

.count.finished {
    color: var(--primary-orange);
}

.count.continue {
    color: #aa702d;
}


.counter-block .label {
    font-size: 0.9rem;
    color: #aaa;
    letter-spacing: 2px;
    margin-top: 10px;
    transition: all 0.5s ease;
}

.counter-block .label.finished {
    color: #d97706;
}

/* ===== Specifications Section ===== */
.specs-section {
    padding: 2px 5% 100px 5%;
    background: #0a0a0a;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h1 {
    font-size: 2.5rem;
    color: #fff;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.section-header h1::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--primary-orange);
    margin: 15px auto 0;
}

.section-header p {
    color: #888;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.specs-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    /* Added padding to prevent clipping on hover */
}

.specs-card {
    background: linear-gradient(145deg, #151515 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    width: 380px;
    transition: all 0.4s ease;
    position: relative;
}

/* When any card is hovered, shrink siblings */
.specs-container:hover .specs-card {
    transform: scale(0.95);
    opacity: 0.7;
}

/* The hovered card grows bigger */
.specs-container:hover .specs-card:hover {
    border-color: #d97706;
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 30px 70px rgba(217, 119, 6, 0.5);
    opacity: 1;
}

.specs-icon {
    font-size: 2.5rem;
    color: #888;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.speed-gauge {
    width: 60px;
    height: 35px;
    border-radius: 60px 60px 0 0;
    background: linear-gradient(90deg, #444 0%, #666 50%, #d97706 100%);
    position: relative;
    margin: 0 auto 20px;
    overflow: hidden;
}

.speed-gauge::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 28px;
    background: #888;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-70deg);
    transition: transform 0.8s ease;
    border-radius: 2px;
}

.spec-card:hover .speed-gauge::before {
    transform: translateX(-50%) rotate(70deg);
    background: var(--primary-orange);
}

.speed-gauge::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    border: 2px solid #888;
    transition: border-color 0.3s ease;
}

.spec-card:hover .speed-gauge::after {
    border-color: #d97706;
}

/* Airplane takeoff animation */
.specs-card:hover .specs-icon .fa-plane {
    color: #d97706;
    animation: takeoff 1s ease forwards;
}

@keyframes takeoff {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    40% {
        /* Straight taxi/run phase */
        transform: translateX(20px) translateY(0) rotate(0deg);
    }

    60% {
        /* Rotation for climb */
        transform: translateX(30px) translateY(-5px) rotate(-15deg);
    }

    100% {
        /* Climb phase */
        transform: translateX(45px) translateY(-20px) rotate(-25deg);
    }
}

/* Cog wheel rotation animation */
.specs-card:hover .specs-icon .fa-cog {
    color: #d97706;
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Speed Gauge for Performance card */
.speed-gauge {
    width: 60px;
    height: 35px;
    border-radius: 60px 60px 0 0;
    background: linear-gradient(90deg, #444 0%, #666 50%, #d97706 100%);
    position: relative;
    margin: 0 auto 20px;
    overflow: visible;
}

.speed-gauge .fa-tachometer-alt {
    display: none;
}

.speed-gauge::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 4px;
    height: 28px;
    background: #888;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(-70deg);
    transition: transform 0.8s ease, background 0.3s ease;
    border-radius: 2px;
}

.specs-card:hover .speed-gauge::before {
    transform: translateX(-50%) rotate(70deg);
    background: var(--primary-orange);
}

.speed-gauge::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #333;
    border-radius: 50%;
    border: 2px solid #888;
    transition: border-color 0.3s ease;
}

.specs-card:hover .speed-gauge::after {
    border-color: #d97706;
}

.specs-card h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(136, 136, 136, 0.3);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.specs-table td {
    padding: 12px 0;
    font-size: 0.95rem;
}

.specs-table .label {
    color: #888;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.specs-table td:last-child {
    color: #fff;
    text-align: right;
    font-weight: 500;
}

/* ===== Design Highlights Section ===== */
.highlights-section {
    padding: 100px 5%;
    background: linear-gradient(180deg, #0a0a0a 0%, #111 100%);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight-card {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #888, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.highlight-card:hover {
    border-color: rgba(136, 136, 136, 0.3);
    transform: translateX(10px);
}

.highlight-card:hover::before {
    opacity: 1;
}

.highlight-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(136, 136, 136, 0.2);
    position: absolute;
    top: 20px;
    right: 20px;
}

.highlight-card h3 {
    font-size: 1.3rem;
    color: #888;
    margin-bottom: 15px;
}

.highlight-card p {
    color: #999;
    font-size: 1rem;
    line-height: 1.7;
}

/* ===== Hero Section 1 (Section Headers) ===== */
.hero-section1 {
    padding: 60px 5% 20px 5%;
    text-align: center;
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
}

.hero-text1 h1 {
    font-size: 2.5rem;
    color: #fff;
    letter-spacing: 6px;
    position: relative;
    display: inline-block;
}

.hero-text1 h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-orange);
}

/* ===== Team Section ===== */
.team-section-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 30px 5% 60px 5%;
    background: #0a0a0a;
    align-items: center;
}

.team-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.row1-photo1 {
    text-align: center;
    width: 200px;
    margin-bottom: 20px;
}


/* Flip Card Container */
.team-card {
    width: 180px;
    height: 180px;
    perspective: 1000px;
    margin: 0 auto 20px;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.team-card:hover .team-card-inner {
    transform: rotateY(180deg);
}

/* Front of card (user icon) */
.team-card-front,
.team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.team-card-front {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 3px solid rgba(136, 136, 136, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.team-card:hover .team-card-front {
    border-color: #888;
    box-shadow: 0 10px 30px rgba(136, 136, 136, 0.3);
}

.team-card-front i {
    font-size: 4rem;
    color: rgba(136, 136, 136, 0.5);
}

/* Team member photo */
.team-card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Back of card (LinkedIn icon) */
.team-card-back {
    background: linear-gradient(145deg, #0077b5, #005582);
    border: 3px solid #0077b5;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 119, 181, 0.4);
}

.team-card-back a {
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.team-card-back i {
    font-size: 3.5rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.team-card-back a:hover i {
    transform: scale(1.15);
}

.team-card-back span {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.row1-data1 {
    text-align: center;
}

.separator1 {
    width: 50px;
    height: 2px;
    background: #888;
    margin: 0 auto 15px;
}

.name {
    font-family: "Alegreya Sans SC", sans-serif;
    display: block;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 1px;
}

.role {
    font-family: "Alegreya Sans SC", sans-serif;
    display: block;
    font-size: 0.95rem;
    color: #aaa;
    letter-spacing: 1px;
    margin-top: .5px;
}

/* ===== SUAS-style Team Photo Layout Fixed ===== */
.team-photo {
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
}

.team-photo .row1-photo1 {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: Slideup 0.5s ease-out;
}

.team-photo .member-photo {
    height: 200px;
    width: 200px;
    border-radius: 15px;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.team-photo .member-photo:hover {
    transform: translateY(-5px);
}

.team-photo .row1-data1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.team-photo .separator1 {
    width: 40px;
    height: 3px;
    background: var(--primary-orange);
    margin: 0 auto 15px;
    border-radius: 2px;
}

.team-photo .row1-data1>span:first-of-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 5px;
}

/* Gallery Grid Styles */
.gallery-grid-section {
    padding: 0 5% 80px 5%;
    background: #0a0a0a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid img.wide {
    grid-column: span 2;
}

.gallery-grid img.tall {
    grid-row: span 2;
    height: 100%;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.4s ease;
    filter: grayscale(20%) brightness(0.8);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-grid img:hover {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
    border-color: var(--primary-orange);
    z-index: 2;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

/* Removed orphan segment */

.team-photo .member-role {
    padding-bottom: 0.2vw;
    font-size: small;
    font-family: var(--font-primary);
    color: #ffffff9a;
    margin: 0;
}

.team-photo .member-name {
    color: var(--primary-orange);
    font-size: large;
    font-family: var(--font-display);
}

.team-photo .footer-social {
    font-size: 18px;
    color: white;
    padding: 5px;
    border-radius: 50%;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 35px;
    height: 35px;
}

.team-photo .footer-social::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #1c1c1c;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.team-photo .footer-social:hover::before {
    transform: translateY(0);
}

.team-photo .footer-social i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease-in-out, color 0.4s ease-in-out;
}

.team-photo .footer-social:hover i {
    color: white !important;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .team-photo {
        justify-content: center;
    }

    .team-photo .row1-photo1 {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: auto;
    }

    .team-photo .row1-data1 {
        text-align: center;
        width: auto;
    }

    .team-photo .separator1 {
        width: 160px;
        margin: 10px auto;
    }
}

/* ===== Design Process Timeline ===== */
.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 5%;
    background: #0a0a0a;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(145deg, #151515, #0d0d0d);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.4s ease;
}

.process-step:hover {
    border-color: #888;
    transform: translateX(10px);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #888;
    min-width: 80px;
    text-align: center;
    opacity: 0.8;
}

.step-content h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
}

.step-content p {
    color: #888;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== Design Process Stacked Layout ===== */
.design-section-stacked {
    padding: 20px 0 100px 0;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.stacked-section {
    width: 100%;
}

.stacked-header {
    padding-left: 5%;
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-orange);
}

.stacked-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--primary-orange);
    opacity: 0.9;
    font-family: var(--font-display);
}

.stacked-header h2 {
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: var(--font-display);
}

.stacked-section iframe {
    width: 100%;
    border: none;
    background: #0f0f0f;
    overflow: hidden;
}

@media (max-width: 768px) {
    .stacked-number {
        font-size: 2rem;
    }

    .stacked-header h2 {
        font-size: 1.5rem;
    }
}

/* Responsive adjustments */


/* ===== Video Section ===== */
.video-section {
    width: 100%;
    height: 85vh;
    background: #0a0a0a;
    padding: 20px 0;
}

.video-text {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 55px;
    position: absolute;
    top: 25%;
    right: 3%;
    transform: translateY(-50%);
    text-align: right;
    color: #ffffff;
    z-index: 2;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
}

.showcase-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(10, 10, 10, 0.3) 0%,
            transparent 20%,
            transparent 80%,
            rgba(10, 10, 10, 0.3) 100%);
    pointer-events: none;
}



/* ===== Back to Top Button ===== */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #666, #888);
    color: #0a0a0a;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(136, 136, 136, 0.4);
}

#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(136, 136, 136, 0.5);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }

    .specs-card {
        width: 100%;
        max-width: 400px;
    }

    .counter-section {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(3rem, 15vw, 5rem) !important;
        letter-spacing: -1px !important;
        text-align: center;
    }

    .hero-section {
        height: 60vh !important;
    }

    .hero-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        height: 100% !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        background: rgba(0, 0, 0, 0.4) !important;
    }

    .hero-text {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 0 20px !important;
    }

    .hero-title span {
        font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
        letter-spacing: 5px !important;
    }

    .highlights-grid,
    .team-row {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .competition-classes,
    .specs-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        width: 100% !important;
    }

    .class-card,
    .highlight-card {
        width: 100% !important;
        padding: 20px 15px !important;
        min-height: auto !important;
    }

    .specs-card {
        width: 100% !important;
        padding: 40px 20px !important;
        min-height: auto !important;
        max-width: none !important;
    }

    .class-card h3,
    .specs-card h3,
    .highlight-card h3 {
        font-size: 1rem !important;
    }

    .class-card p,
    .specs-table td,
    .highlight-card p {
        font-size: 0.8rem !important;
    }

    .specs-icon {
        font-size: 1.5rem !important;
    }

    /* Keep featured cards full width if they have a lot of content, 
       otherwise match the 2-column flow. */
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem !important;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.specs-card,
.class-card,
.highlight-card,
.process-step {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #666, #888);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Uniform Team Social Icons */
.team-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    text-decoration: none;
    vertical-align: middle;
}

.team-social-icon i {
    color: #0077b5;
    /* LinkedIn Blue */
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.team-social-icon:hover i {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(0, 119, 181, 0.8);
    transform: scale(1.1);
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--primary-orange);
}