/* --- Core Variables --- */
:root {
    --bg-dark: #0A2540;
    /* Deep trust blue */
    --bg-light: #ffffff;
    --text-light: #f5f5f7;
    --text-dark: #1d1d1f;
    --accent: #FF6600;
    /* Vibrant energetic orange */
    --accent-glow: rgba(255, 102, 0, 0.4);

    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spring Physics (High stiffness, medium damping) approximation */
    --transition-smooth: 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-snap: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Reset & Base --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Utilities --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.columns-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.gap-lg {
    gap: 4rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn-primary,
.btn-outline {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition-snap);
    cursor: pointer;
    border: 3px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(255, 102, 0, 0.2);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 102, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* --- Navigation (Glassmorphism) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* Apple Glass Style */
    background: rgba(10, 37, 64, 0.45);
    /* High transparency */
    backdrop-filter: blur(24px) saturate(180%);
    /* Heavy blur, vibrant colors underneath */
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    /* Crisper highlight line */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    /* Softer shadow */
    transition: var(--transition-snap);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-snap);
}

/* Fancy Animated Underline */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.5);
    /* Glow effect */
}

.nav-links a:hover {
    opacity: 1;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mega Menu / Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 37, 64, 0.95);
    /* Deep trust blue */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    min-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    z-index: 1001;
    display: flex;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.dropdown-section {
    flex: 1;
}

.dropdown-section h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.dropdown-section a {
    display: block;
    color: var(--text-light);
    padding: 0.5rem 0;
    font-size: 0.95rem;
    opacity: 0.8;
}

.dropdown-section a:hover {
    opacity: 1;
    color: #fff;
    transform: translateX(5px);
}

/* --- Sections --- */
.ds-section {
    position: relative;
    padding: 8rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.light-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* --- Hero --- */
.hero {
    overflow: hidden;
    padding: 0;
    justify-content: center;
    position: relative;
    /* Split layout */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: var(--bg-dark);
    /* fallback */
    display: block;
    pointer-events: auto;
}

#liquid-canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 5;
    text-align: left;
    width: 50%;
    padding-left: 5%;
}

.hero-visuals {
    position: relative;
    width: 50%;
    height: 100vh;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.composite-student {
    width: 80%;
    max-width: 600px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    z-index: 2;
    position: relative;
}

.floating-icons-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 3;
    pointer-events: none;
    /* Let mouse events pass through to canvas if needed */
}

.floating-icon {
    position: absolute;
    width: 150px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(255, 102, 0, 0.3));
    will-change: transform;
}

.giant-text {
    font-size: clamp(3rem, 6vw, 8rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
    margin: 0;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.giant-text .line {
    overflow: hidden;
    padding-bottom: 0.5rem;
}

/* --- Hologram System (Hero Right Section) --- */
.hologram-system {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    z-index: 4;
    pointer-events: auto;
    transition: all 400ms ease-in-out;
}

/* Base Glassmorphism for Modules/Panels */
.glass-module,
.glass-panel {
    position: absolute;
    background: rgba(10, 30, 50, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    opacity: 0.7;
    transition: all 400ms ease-in-out;
    display: flex;
    align-items: center;
    color: #fff;
    z-index: 3;
}

/* System Hover State */
.hologram-system:hover .glass-module,
.hologram-system:hover .glass-panel {
    opacity: 1;
    background: rgba(15, 45, 75, 0.75);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 25px rgba(255, 102, 0, 0.15);
}

/* Module Shared Styles */
.glass-module {
    padding: 0.7rem 1.1rem;
    gap: 0.7rem;
}

.glass-module .module-icon {
    font-size: 1.2rem;
}

.glass-module .module-text {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
}

/* Panel Shared Styles */
.glass-panel {
    width: 200px;
    padding: 0.9rem 1.1rem;
    gap: 1rem;
}

.glass-panel .panel-icon {
    font-size: 1.4rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.6rem;
    border-radius: 10px;
    flex-shrink: 0;
}

.glass-panel .panel-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    font-weight: 600;
}

.glass-panel .panel-info p {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

/* === PERFECT CIRCULAR LAYOUT === */
/* Center: (300, 300) | Radius: 240px | 7 items at 51.4° intervals */

/* 1. Top (12 o'clock) — Mentor Network */
.mod-mentor {
    left: 230px;
    top: 30px;
}

/* 2. Upper-Right (1:40) — Innovation Index */
.mod-innovation {
    left: 430px;
    top: 105px;
}

/* 3. Right (3:20) — School of Arts */
.panel-arts {
    left: 410px;
    top: 290px;
}

/* 4. Lower-Right (5:00) — Institute of Science */
.panel-science {
    left: 300px;
    top: 460px;
}

/* 5. Lower-Left (7:00) — Academy of Math */
.panel-math {
    left: 80px;
    top: 460px;
}

/* 6. Left (8:40) — Tech College */
.panel-tech {
    left: -10px;
    top: 290px;
}

/* 7. Upper-Left (10:20) — Growth Analytics */
.mod-growth {
    left: 25px;
    top: 105px;
}

/* Central Orb — dead center */
.central-orb {
    position: absolute;
    top: 300px;
    left: 300px;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 400ms ease-in-out;
    z-index: 2;
}

.orb-core {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, #fff 0%, var(--accent) 50%, transparent 80%);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--accent);
    animation: pulseOrb 4s infinite alternate;
    transition: all 400ms ease-in-out;
}

.orb-ring {
    position: absolute;
    border: 1px solid rgba(255, 102, 0, 0.3);
    border-radius: 50%;
    transition: all 400ms ease-in-out;
}

.ring-1 {
    width: 100px;
    height: 100px;
    animation: spinOrb 10s linear infinite;
    border-top-color: var(--accent);
}

.ring-2 {
    width: 140px;
    height: 140px;
    animation: spinOrb 15s linear infinite reverse;
    border-bottom-color: var(--accent);
}

.ring-3 {
    width: 190px;
    height: 190px;
    animation: spinOrb 20s linear infinite;
    border-left-color: rgba(255, 255, 255, 0.5);
}

.hologram-system:hover .central-orb {
    transform: translate(-50%, -50%) scale(1.1);
}

.hologram-system:hover .orb-core {
    box-shadow: 0 0 80px var(--accent);
    width: 70px;
    height: 70px;
}

.hologram-system:hover .orb-ring {
    border-color: rgba(255, 102, 0, 0.6);
}

.hologram-system:hover .ring-1 {
    border-top-color: #fff;
    animation-duration: 5s;
}

.hologram-system:hover .ring-2 {
    border-bottom-color: #fff;
    animation-duration: 7s;
}

@keyframes pulseOrb {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes spinOrb {
    100% {
        transform: rotate(360deg);
    }
}

/* Particle Trails SVG */
.particle-trails {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle-trails .trail {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 1.5;
    stroke-dasharray: 10 10;
    animation: dashTrails 30s linear infinite;
    transition: all 400ms ease-in-out;
}

.hologram-system:hover .particle-trails .trail {
    stroke: var(--accent);
    stroke-width: 2;
    animation-duration: 10s;
    filter: drop-shadow(0 0 5px var(--accent));
}

@keyframes dashTrails {
    to {
        stroke-dashoffset: -1000;
    }
}

.giant-text .word {
    display: block;
    transform: translateY(120%);
    opacity: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-indicator p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid #fff;
    border-radius: 12px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* Reverse Parallax Helper Class */
.parallax-element {
    transition: transform 0.1s ease-out;
}

/* --- Heritage --- */
.heritage {
    overflow: hidden;
}

.heritage h2 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
}

.heritage p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #555;
    font-weight: 300;
}

.img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-smooth);
}

.img-wrapper:hover .img-placeholder {
    transform: scale(1.05);
}

/* --- Animations (Scroll Reveal) --- */
.reveal {
    opacity: 0;
    transition: all var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.slide-up {
    transform: translateY(50px);
}

.scale-in {
    transform: scale(0.95);
}

/* --- Institutes Showcase (Bento Box Grid) --- */
.institutes {
    background-color: var(--bg-dark);
    padding: 8rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 400px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    /* Glassmorphism base */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    /* For magnetic/3D effect to work */
    transform-style: preserve-3d;
    will-change: transform;
}

/* Dynamic Radial Highlight added via JS CSS Variable */
.bento-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(255, 102, 0, 0.15),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 1;
    pointer-events: none;
}

.bento-card:hover {
    border-color: rgba(255, 102, 0, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.bento-card:hover::before {
    opacity: 1;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.2) grayscale(80%);
    transition: var(--transition-smooth);
    z-index: 0;
}

.bento-card:hover .card-bg {
    filter: brightness(0.7) grayscale(0%);
    transform: scale(1.05);
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.card-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.bento-card:hover .card-content p {
    opacity: 1;
    transform: translateY(0);
}

/* Grid Spans */
.span-8 {
    grid-column: span 8;
}

.span-4 {
    grid-column: span 4;
}

.span-6 {
    grid-column: span 6;
}

.span-12 {
    grid-column: span 12;
}

.center-grid {
    grid-column: 4 / 10;
    /* To center a span-6 inside a 12 col grid */
}

/* --- Academics Section --- */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.course-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 102, 0, 0.2);
}

.course-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--bg-dark);
    color: #fff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.course-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.course-card p {
    color: #555;
    line-height: 1.6;
}

/* --- Testimonials Marquee --- */
.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    animation: scroll-left 30s linear infinite;
    gap: 2rem;
    padding: 0 1rem;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 1rem));
    }
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    width: 400px;
    flex-shrink: 0;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.testimonial-card span {
    font-weight: 700;
    color: var(--accent);
}

/* --- Faculty Spotlight --- */
.faculty-text p {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2rem;
}

/* --- Legacy Section --- */
.legacy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.legacy-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.legacy-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.legacy-card .legacy-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 1.5rem auto;
    border: 3px solid #eee;
}

.legacy-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.legacy-card p {
    font-size: 0.95rem;
    color: #666;
}

/* --- Footer --- */
.footer {
    background-color: #000;
    padding: 4rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    text-align: right;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.socials {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.socials a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.6;
    transition: var(--transition-snap);
}

.socials a:hover {
    opacity: 1;
    color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    body {
        /* Prevent horizontal overflow on mobile devices completely */
        overflow-x: hidden;
        width: 100vw;
    }

    .container {
        padding: 0 5%;
        overflow-x: hidden;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* Force all 2-column or multi-column grids to stack linearly on mobile */
    .columns-2,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .heritage-image {
        order: -1;
    }

    .bento-grid {
        display: flex;
        flex-direction: column;
    }

    .bento-card {
        min-height: 400px;
    }

    .footer .columns-2 {
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        text-align: center;
    }

    .socials {
        justify-content: center;
    }

    /* Hide the hologram system on mobile — it's too complex for small screens */
    .hologram-system {
        display: none !important;
    }

    /* Scale down hero text on mobile */
    .hero-content {
        padding: 0 5% !important;
        text-align: center;
    }

    .hero-eyebrow {
        font-size: 1.2rem !important;
    }

    .giant-text {
        font-size: clamp(2.5rem, 10vw, 4rem) !important;
    }

    .hero-subtext {
        font-size: 1rem !important;
        max-width: 100% !important;
    }

    .bento-card {
        min-height: 300px;
    }
}