* {
    box-sizing: border-box;
}

:root {
    /* Soft Warm & Rich Gold System */
    --gold: #C8A600;
    --gold-dark: #A68A00;
    --bg-primary: #F5F1E8;
    --white: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #333333;

    /* Glows - Reduced for performance */
    --gold-glow: rgba(200, 166, 0, 0.15);
    --gold-glow-strong: rgba(200, 166, 0, 0.3);
    --hero-glow: rgba(200, 166, 0, 0.05);

    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 10px;
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Prevent mobile auto-zoom on form focus */
input,
textarea,
select,
button {
    font-size: 16px !important;
}

body {
    background-color: var(--bg-primary);
    color: #1A1A1A;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h4,
h5,
h6 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 700;
}

h2,
h3,
.subtitle {
    color: #C8A600;
    font-family: var(--font-heading);
    font-weight: 700;
}

p {
    color: #333333;
    font-size: 18px;
    font-weight: 400;
}

.accent-text {
    color: var(--gold-dark);
}

.large-text {
    color: var(--text-primary);
    font-weight: 600;
}

/* Static Technical Grid for Performance */
.blueprint-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(200, 166, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(200, 166, 0, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.blueprint-bg::after {
    display: none;
}

/* Localized Hero Mechanical Background */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-mech-elt {
    position: absolute;
    color: rgba(200, 166, 0, 0.08);
    /* Gold low opacity */
    opacity: 0.1;
    pointer-events: none;
    animation: heroFloat 20s infinite ease-in-out;
}

.hero-mech-elt.marker {
    color: rgba(31, 42, 68, 0.1);
    /* Steel blue low opacity */
}

/* Individual Element Positioning & Timings */
.hero-gear-1 {
    top: 15%;
    left: 10%;
    animation-duration: 18s;
}

.hero-gear-2 {
    bottom: 20%;
    right: 15%;
    animation-duration: 25s;
    animation-delay: -5s;
}

.hero-cog {
    top: 40%;
    right: 10%;
    animation-duration: 30s;
}

.hero-gear-3 {
    top: 10%;
    right: 25%;
    animation-duration: 22s;
    opacity: 0.06;
}

.hero-gear-4 {
    bottom: 15%;
    left: 20%;
    animation-duration: 28s;
}

.hero-bolt-1 {
    top: 25%;
    left: 30%;
    animation-duration: 15s;
}

.hero-bolt-2 {
    bottom: 40%;
    left: 15%;
    animation-duration: 20s;
}

.hero-circle-1 {
    top: -50px;
    left: -50px;
    animation-duration: 35s;
    opacity: 0.05;
}

.hero-circle-2 {
    bottom: -30px;
    right: -30px;
    animation-duration: 40s;
    opacity: 0.05;
}

.hero-line-1 {
    top: 20%;
    left: 0;
    animation-duration: 25s;
}

.hero-line-2 {
    top: 0;
    right: 20%;
    animation-duration: 30s;
}

.hero-line-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
}

@keyframes heroFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(6deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes rotate-cw {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotate-cw {
    animation: rotate-cw 40s linear infinite;
}

/* Floating Animations */
@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-40px) rotate(5deg);
    }
}

@keyframes floatMedium {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }

    50% {
        transform: translateY(-25px) rotate(-8deg) scale(1.05);
    }
}

@keyframes floatFast {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes rotateCW {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateCCW {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.float-slow {
    animation: floatSlow 30s infinite ease-in-out;
}

.float-medium {
    animation: floatMedium 20s infinite ease-in-out;
}

.float-fast {
    animation: floatFast 15s infinite ease-in-out;
}

.rotate-cw {
    animation: rotateCW 40s infinite linear;
}

.rotate-ccw {
    animation: rotateCCW 35s infinite linear;
}

/* Hybrid animations for elements like the rotating cog */
.cog.rotate-cw {
    animation: rotateCW 40s infinite linear, floatSlow 30s infinite ease-in-out;
}

/* Specific Tonal Adjustments */
.bolt {
    color: #1F2A44;
    opacity: 0.08;
}

.grid-marker {
    color: rgba(200, 166, 0, 0.08);
}

.cad-circle {
    opacity: 0.06;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .mech-elt {
        opacity: 0.07;
        /* Slightly more subtle on mobile */
    }

    .float-slow {
        animation-duration: 40s;
    }

    .float-medium {
        animation-duration: 30s;
    }

    /* Reduce vertical movement on mobile */
    @keyframes floatSlow {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-15px);
        }
    }

    @keyframes floatMedium {

        0%,
        100% {
            transform: translateY(0px);
        }

        50% {
            transform: translateY(-10px);
        }
    }
}

.glass-panel {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-sm);
    position: relative;
    padding: 2.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.counter::after {
    content: " +";
}

.border-gold {
    border: 2px solid var(--gold);
    box-shadow: 0 0 15px var(--gold-glow);
    border-radius: var(--radius-md);
}

.border-gold:hover {
    border-color: var(--white);
    box-shadow: 0 0 25px var(--gold-glow-strong);
    transform: translateY(-5px);
    background: var(--white);
}

.border-gold-vertical {
    border-top: 4px solid var(--gold);
    border-radius: var(--radius-sm);
}

.border-gold-dark:hover {
    border-color: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow);
    transform: translateY(-5px);
}

.border-gold-light {
    border: 1px solid var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}

.border-cyan:hover {
    border-color: #fff;
    box-shadow: 0 0 20px var(--cyan-glow);
    transform: translateY(-5px);
}

/* Glassmorphism Panel Base */
.glass-panel {
    background: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-md);
    position: relative;
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: rgba(0, 245, 255, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Intro Popup Styles */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--midnight);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 1s cubic-bezier(0.86, 0, 0.07, 1);
}

.intro-overlay.dismissed {
    transform: translateY(-100%);
}

.system-boot-container {
    text-align: center;
    max-width: 600px;
    padding: 2rem;
    position: relative;
}

.gear-spinner {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
}

.gear {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px dashed var(--cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.gear.outer {
    width: 120px;
    height: 120px;
    border-width: 4px;
    border-style: solid;
    border-color: var(--cyan) transparent;
    animation: rotate 4s linear infinite;
}

.gear.middle {
    width: 80px;
    height: 80px;
    border-width: 3px;
    border-style: solid;
    border-color: var(--lime) transparent;
    animation: rotate-reverse 3s linear infinite;
}

.gear.inner {
    width: 40px;
    height: 40px;
    border-width: 2px;
    border-style: solid;
    border-color: var(--violet) transparent;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

.boot-logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--cyan));
}

.boot-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.5rem;
    color: var(--cyan);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.boot-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 0.2rem;
    color: var(--lime);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.boot-terminal {
    font-family: var(--font-mono);
    color: var(--cyan);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem 1rem;
    border-left: 3px solid var(--cyan);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--cyan);
    opacity: 0.3;
    animation: scan 2s linear infinite;
}

@keyframes scan {
    0% {
        top: -10%;
    }

    100% {
        top: 110%;
    }
}

/* Sections Common */
section {
    padding: 100px 20px;
    min-height: 80vh;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    display: block;
}

/* Alternating Background System - High Contrast */
section:nth-of-type(even) {
    background: var(--bg-primary);
}

section:nth-of-type(odd) {
    background: var(--white);
}


/* Hero override for foundation gradient */
section.hero-section {
    background: transparent !important;
    border: none;
}

.section-header {
    width: 100%;
    margin-bottom: 4rem;
    text-align: center;
}

.section-title,
.section-brand-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 800;
    color: #C8A600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--gold);
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    display: block;
    font-family: var(--font-body);
    font-size: clamp(18px, 2vw, 20px);
    font-weight: 700;
    color: #C8A600;
    line-height: 1.6;
    margin-top: 10px;
    margin-bottom: 40px;
}

/* Metallic Borders */
.border-metallic {
    border: 1px solid transparent;
    border-image: linear-gradient(135deg, #E2E8F0 0%, transparent 50%, #94A3B8 100%) 1;
}

/* Hero Section - Performance Optimized */
.hero-section {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 10%;
    position: relative;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible;
}

.view-brochure-btn {
    background: #FADA2E !important;
    color: #1A1A1A !important;
    font-weight: 700 !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    transition: var(--transition);
}

.view-brochure-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(250, 218, 46, 0.4);
}

.hero-rings {
    position: absolute;
    width: 600px;
    height: 600px;
    z-index: -1;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(182, 141, 0, 0.2);
    border-radius: 50%;
}

.ring-1 {
    width: 320px;
    height: 320px;
    border-style: dashed;
    animation: rotate 20s linear infinite;
    border-color: var(--gold-dark);
    opacity: 0.2;
}

.ring-2 {
    width: 480px;
    height: 480px;
    border-style: solid;
    border-color: var(--gold);
    animation: rotate-reverse 30s linear infinite;
    opacity: 0.1;
}

.ring-3 {
    width: 650px;
    height: 650px;
    border-style: dashed;
    animation: rotate 40s linear infinite;
    border-color: var(--gold);
    opacity: 0.2;
}

.hero-logo-container {
    position: relative;
    width: auto;
    height: auto;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mechanical-frame {
    display: none;
    /* Removed visibility per user request */
}

.hero-logo {
    position: relative;
    height: 200px;
    width: auto;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.08));
}

.hero-booting-line {
    font-family: var(--font-mono);
    color: var(--lime);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(199, 240, 0, 0.4);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(72px, 10vw, 96px);
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: var(--gold-dark);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.hero-org {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.5;
    text-align: center;
}

/* Premium Buttons */
.btn {
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-sm);
    position: relative;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--gold);
    border: 2px solid var(--gold);
    color: var(--text-primary);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary.btn-brochure {
    background: transparent;
    border-color: var(--gold-dark);
    color: var(--gold-dark);
}

.btn-secondary {
    background: transparent;
    border-color: var(--gold);
    color: var(--text-primary);
}

.btn-primary:hover {
    background: var(--white);
    border-color: var(--gold);
    color: var(--text-primary);
    box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--text-primary);
    box-shadow: 0 6px 20px var(--gold-glow);
}

.hero-actions {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}


/* Footer Styling */
.premium-footer {
    background: var(--ivory-dark);
    padding: 5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--gold);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.footer-logo img {
    height: 60px;
}

.footer-logo h3 {
    color: var(--text-primary);
    letter-spacing: 4px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--gold-dark);
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-motto {
    color: var(--gold-dark);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 3px;
    margin-top: 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--gold);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.navbar.scrolled {
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.logo-badge:hover {
    transform: translateY(-2px);
}

.nav-logo img {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.nav-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    gap: 3.5rem;
    list-style: none;
    transition: var(--transition);
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 12px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px var(--gold-glow);
}

.nav-links a:hover {
    color: #C8A600;
    /* Premium Gold on hover */
    text-shadow: 0 0 8px rgba(200, 166, 0, 0.2);
}

.nav-links a.active {
    color: var(--gold);
}

.nav-links a.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--gold-glow);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--gold);
}

/* Impact Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.metric-card {
    text-align: center;
    padding: 3rem 2rem;
    background: #FFFFFF !important;
    border: 2px solid #C8A600;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.metrics-section.reveal-active .metric-card {
    opacity: 1;
    transform: translateY(0);
}

.metric-card:nth-child(1) {
    transition-delay: 0.1s;
}

.metric-card:nth-child(2) {
    transition-delay: 0.2s;
}

.metric-card:nth-child(3) {
    transition-delay: 0.3s;
}

.metric-card:nth-child(4) {
    transition-delay: 0.4s;
}

.metric-card:nth-child(5) {
    transition-delay: 0.5s;
}

.counter {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: #C8A600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.counter::after {
    content: "+";
}

@media (max-width: 768px) {
    .counter {
        font-size: 32px;
    }
}

.metric-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333333;
}

/* Engineering Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.module-card {
    position: relative;
    padding: 3rem;
    overflow: hidden;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: var(--radius-md);
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* In case card is wrapped in link */
}

.module-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.module-card:hover {
    border-color: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(200, 166, 0, 0.2);
}

.module-card:nth-child(1) {
    transition-delay: 0.1s;
}

.module-card:nth-child(2) {
    transition-delay: 0.2s;
}

.module-card:nth-child(3) {
    transition-delay: 0.3s;
}

.module-card:nth-child(4) {
    transition-delay: 0.4s;
}

.module-card:nth-child(5) {
    transition-delay: 0.5s;
}

.event-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    transition: 0.3s ease;
    color: var(--gold);
}

.module-card:hover .event-icon {
    transform: scale(1.1);
}

/* Updated View Button Style */
.view-btn {
    margin-top: auto;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 1.5rem;
}

.view-btn:hover {
    gap: 12px;
    color: var(--gold-dark);
}

.module-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #C8A600;
}

.module-card p {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* Event Detail Page Styles */
.event-detail-section {
    padding: 140px 20px 100px;
    max-width: 1000px;
    margin: 0 auto;
}

.event-detail-container {
    padding: 4rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: 0.3s ease;
    opacity: 0.7;
}

.back-btn:hover {
    opacity: 1;
    transform: translateX(-5px);
    color: var(--gold);
}

.event-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 3rem;
}

.event-header .event-icon {
    width: 60px;
    height: 60px;
    margin: 0;
}

.event-summary {
    font-size: 1.4rem !important;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2.5rem !important;
}

.detail-block {
    margin-bottom: 3rem;
}

.detail-block h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--gold);
    padding-left: 15px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.detail-label {
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.detail-item p {
    font-size: 1.1rem;
    margin: 0;
    font-weight: 600;
}

.main-register-btn {
    display: inline-block;
    background: var(--gold);
    color: #111;
    padding: 18px 40px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    text-align: center;
}

.main-register-btn:hover {
    background: var(--gold-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(200, 166, 0, 0.4);
}

.main-register-btn:active {
    transform: scale(0.97);
}

.global-register-redirect {
    margin-top: 5rem;
    padding: 4rem;
    background: rgba(200, 166, 0, 0.05);
    border: 2px dashed var(--gold);
    border-radius: var(--radius-md);
    text-align: center;
}

.global-register-redirect p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .event-detail-container {
        padding: 2.5rem 1.5rem;
    }

    .event-summary {
        font-size: 1.2rem !important;
    }
}

.module-number {
    font-family: var(--font-heading);
    color: var(--gold);
    font-size: 5rem;
    position: absolute;
    top: -10px;
    right: -10px;
    opacity: 0.1;
    font-weight: 900;
    pointer-events: none;
}

/* Partnership Form */
.enquiry-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}


.contact-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-top: 2.5rem;
}

@media (max-width: 992px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
}

.social-card {
    background: #FFFFFF;
    border: 2px solid #C8A600;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.social-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(200, 166, 0, 0.3);
}

.social-card-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.social-card-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.social-card-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.btn-card {
    background: #C8A600;
    color: #1A1A1A;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    display: inline-block;
    align-self: flex-start;
    border: none;
    cursor: pointer;
}

.btn-card:hover {
    transform: translateY(-2px);
    background: #A68A00;
    box-shadow: 0 5px 15px rgba(200, 166, 0, 0.3);
    color: #1A1A1A;
}

.instagram-preview-container {
    max-width: 100%;
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    background: var(--glass);
    padding: 2rem;
    border-radius: 15px;
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: none;
}

.reveal-active {
    opacity: 1;
    transform: none;
}

.center {
    text-align: center;
}

.mt-large {
    margin-top: 4rem;
}

.w-full {
    width: 100%;
}

/* Countdown High Contrast */
.countdown-container {
    margin-bottom: 4rem;
    text-align: center;
}

.countdown-label {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.timer-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--gold);
    min-width: 100px;
}

.timer-unit span:first-child {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 5px;
}

.timer-unit .unit-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 2px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--lime);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.event-card {
    transition: var(--transition);
}

.event-card:hover {
    border-color: var(--cyan);
    transform: translateY(-5px);
    background: rgba(0, 245, 255, 0.05);
}

.event-card h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--cyan);
}

.mt-large {
    margin-top: 4rem;
}

.mt-medium {
    margin-top: 2rem;
}



/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.contact-card h4 {
    font-family: var(--font-heading);
    color: var(--cyan);
    margin-bottom: 0.5rem;
}

.social-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--cyan);
    background: transparent;
    color: var(--cyan);
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--cyan);
    color: var(--midnight);
}

/* Footer */
.premium-footer {
    padding: 6rem 2rem;
    background: var(--navy);
    text-align: center;
    border-top: 2px solid var(--gold);
    position: relative;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
}

.premium-footer::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 20px var(--gold-glow-strong);
}

.footer-logo {
    margin-bottom: 3rem;
}

.footer-logo img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--gold-glow);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: var(--transition);
    opacity: 0.7;
}

.footer-nav a:hover {
    color: var(--gold);
    opacity: 1;
    text-shadow: 0 0 10px var(--gold-glow);
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.footer-motto {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Animations */
@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes rotate-reverse {
    from {
        transform: translate(-50%, -50%) rotate(360deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(0deg);
    }
}

/* Utils */
.mb-small {
    margin-bottom: 1rem;
}

.mb-medium {
    margin-bottom: 2.5rem;
}

.text-lime {
    color: var(--lime);
}

@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }

    .nav-links {
        gap: 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .enquiry-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* Animations & Utility */
.hidden {
    display: none;
}

.hidden-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s, transform 1s;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .timer-unit span:first-child {
        font-size: 2rem;
    }
}

.enter-btn {
    margin-top: 2rem;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 10px var(--gold-glow);
    }

    50% {
        box-shadow: 0 0 30px var(--gold-glow);
    }

    100% {
        box-shadow: 0 0 10px var(--gold-glow);
    }
}

/* Reveal Animations */
.reveal {
    opacity: 1;
    transform: none;
}

.reveal-active {
    opacity: 1 !important;
    transform: none !important;
}

.mt-large {
    margin-top: 5rem;
}

.mt-medium {
    margin-top: 2.5rem;
}

.mt-small {
    margin-top: 1rem;
}

.w-full {
    width: 100%;
}

.large-text {
    font-size: 22px;
    font-weight: 600;
}

/* --- Responsive Typography Rules --- */

/* Tablet: ~15% reduction */
@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(60px, 8vw, 82px);
    }

    .section-title {
        font-size: clamp(30px, 5vw, 40px);
    }

    .metric-value {
        font-size: clamp(34px, 7vw, 48px);
    }

    body,
    p {
        font-size: 17px;
    }

    .btn {
        font-size: 16px;
        padding: 12px 24px;
    }
}

/* Mobile: ~25% reduction, maintain bold weights */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(54px, 12vw, 72px);
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 20px;
    }

    .metric-value {
        font-size: clamp(30px, 10vw, 42px);
    }

    body,
    p {
        font-size: 16px;
    }

    .btn {
        font-size: 15px;
        padding: 12px 20px;
    }
}

/* Brochure Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    background: var(--white);
    width: 75%;
    /* Desktop width 70-80% */
    max-width: 100%;
    height: 90vh;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    color: var(--text-primary);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--gold-dark);
    transform: rotate(90deg);
}

#brochure-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Mobile Optimization Final */
@media (max-width: 768px) {
    section {
        padding: 60px 20px !important;
    }

    .nav-container {
        padding: 0 20px;
    }

    .navbar {
        padding: 1rem 0;
    }

    .hamburger {
        display: flex;
        margin-right: 20px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #FFFFFF;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        transition: var(--transition);
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links a {
        color: #1A1A1A !important;
        font-size: 1.2rem;
    }

    .nav-links a.active {
        color: var(--gold) !important;
    }

    .hero-title {
        font-size: clamp(36px, 12vw, 42px) !important;
        letter-spacing: 2px !important;
        margin-bottom: 15px;
    }

    .section-title,
    .section-brand-title {
        font-size: clamp(28px, 8vw, 32px) !important;
    }

    .hero-org {
        font-size: 0.85rem !important;
        padding: 0 10px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 20px;
        font-size: 16px !important;
    }

    body,
    p {
        font-size: 16px !important;
    }

    /* Stack All Grids */
    .metrics-grid,
    .modules-grid,
    .benefit-grid,
    .tier-grid,
    .about-grid,
    .stats-grid,
    .events-grid,
    .gallery-masonry,
    .gallery-container,
    .enquiry-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .gallery-masonry {
        columns: 1 !important;
    }

    .timer-display {
        gap: 1rem;
    }

    .timer-unit {
        padding: 1rem;
        min-width: 70px;
    }

    .timer-unit span:first-child {
        font-size: 28px;
    }

    .modal-content {
        width: 95%;
        height: 85vh;
    }

    /* Performance optimization: disable blurs */
    .glass-panel,
    .module-card,
    .tier-card {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    }

    .hero-rings {
        display: none;
        /* Reduce complexity on mobile */
    }
}