:root {
    --bg-dark: #000000;
    --glass-bg: rgba(25, 25, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-cyan: #00f2ff;
    --accent-purple: #6d13fe;
    --text-main: #ffffff;
    --text-dim: #a1a1a6;
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    overflow-x: hidden;
    height: 100vh;
    width: 100%;
    position: relative;
}
html {
    scroll-behavior: smooth;
    /* Keeps content visible below the fixed system bar (30px) + breathing room */
    /* scroll-padding-top: 40px;  */
}

/* --- Background Aesthetic --- */
.glow-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 242, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(93, 19, 254, 0.05) 0%, transparent 40%);
    z-index: -2;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
    z-index: -1;
}

/* --- System Bar --- */
.system-bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 13px;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.menu-item { margin: 0 10px; color: var(--text-dim); }
.menu-item.bold { font-weight: 600; color: #fff; }

/* --- Hero Section --- */
.content-wrapper {
    padding-bottom: 50px;
    max-width: 1200px;
    margin: 0 auto;
}


.gradient-text {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(180deg, #fff 0%, #a1a1a1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* --- Bento Grid --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 20px;
    padding: 20px;
}

.bento-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tall { grid-row: span 2; }
.wide { grid-column: span 2; }

/* --- macOS Window Styles --- */
.window-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.3s ease;
}

.mac-window {
    width: 80%;
    height: 70%;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(30px);
    border-radius: 12px;
    border: 0.5px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.window-header {
    height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.traffic-lights {
    display: flex;
    gap: 8px;
}

.traffic-lights span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.close-btn { background: #ff5f56; }
.minimize-btn { background: #ffbd2e; }
.maximize-btn { background: #27c93f; }

.window-title {
    flex-grow: 1;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
}

/* --- Floating Dock --- */
.dock-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 10px;
}

.dock {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 8px 15px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 64px; /* Base height */
    transition: all 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    list-style: none;
}

.dock-item-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dock-item {
    --size: 48px;
    width: var(--size);
    height: var(--size);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: width 0.1s ease-out, height 0.1s ease-out;
    will-change: width, height;
}

.dock-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Fix for Dock Icon Scaling */
.dock-item svg {
    width: 55%;  /* Occupies 55% of the bubble, scaling as bubble grows */
    height: 55%;
    transition: width 0.1s ease-out, height 0.1s ease-out; /* Smooth resizing */
    stroke-width: 2px; /* crisp lines */
    pointer-events: none; /* prevents flickering on hover */
}

/* Fix for Font Awesome icons (renders as <i>, not <svg>) */
.dock-item i {
    font-size: calc(var(--size) * 0.55);
    transition: font-size 0.1s ease-out;
    pointer-events: none;
    line-height: 1;
}

/* Tooltip (macOS Style) */
.dock-tooltip {
    position: absolute;
    top: -45px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    backdrop-filter: blur(5px);
    transform: translateY(10px);
}

.dock-item-wrapper:hover .dock-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.dock-separator {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
    align-self: center;
}

/* Hide dock on mobile by default */
@media (max-width: 768px) {
    .dock-container {
        display: none;
    }
}

/* --- Typewriter & Hero Enhancements --- */
.intro-label {
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 14px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    opacity: 0.8;
    letter-spacing: 1px;
}

.typewriter-container {
    min-height: 80px; /* Prevents layout shift */
    display: flex;
    justify-content: center;
    align-items: center;
}

#typewriter-text {
    background: linear-gradient(90deg, #fff 0%, #cecece 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--accent-purple);
    margin-left: 5px;
    animation: blink 1s step-end infinite;
    vertical-align: text-bottom;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.highlight {
    color: #fff;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.cta-group {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Hello loader */
/* Full Screen Loader Container */
.apple-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    overflow: hidden;
}

/* Abstract Liquid Glass Background */


@keyframes liquidRotate {
    from { transform: rotate(0deg) scale(1); }
    to { transform: rotate(360deg) scale(1.1); }
}

/* Centering the SVG */
.hello-svg-container {
    width: 40%;
    max-width: 350px;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(255,255,255,0.3));
}

.hello-path {
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
}

.h-path.animate {
    animation: drawPath 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.ello-path.animate {
    animation: drawPath 2.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.8s;
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

.loader-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* section glow effect */
.glow-divider {
    position: relative;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.3), transparent);
    margin: 20px 0;
    z-index: 1;
}

.glow-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(0, 123, 255, 0.199) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}
.glow-divider-footer {
    position: relative;
    width: 100%;
    margin-bottom: -50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.3), transparent);
}

.glow-divider-footer::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(0, 123, 255, 0.199) 0%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

/* Hero Refinement */
.full-screen-boot {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.boot-sequence {
    width: 100%;
    max-width: 900px;
}

.boot-terminal {
    font-family: 'SF Mono', 'Menlo', monospace;
    font-size: 13px;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    opacity: 0.6;
    padding-left: 20px;
}

.terminal-line {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid transparent;
    animation: typing 2s steps(40, end), blink-caret .75s step-end infinite;
}

/* Glass Card Enhanced */
.hero-main-card {
    background: rgba(15, 15, 15, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    transform: rotateX(2deg);
}

.card-header-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 30px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; opacity: 0.5; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.info-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    color: var(--text-dim);
    font-size: 14px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Liquid Mesh Background Upgrade */
.glow-mesh {
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 242, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(188, 19, 254, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(0, 122, 255, 0.08) 0%, transparent 40%);
    filter: blur(60px);
    animation: mesh-float 20s infinite alternate ease-in-out;
}

@keyframes mesh-float {
    0% { transform: scale(1) translate(0,0); }
    100% { transform: scale(1.2) translate(5%, 5%); }
}

@keyframes typing { from { width: 0 } to { width: 100% } }

/* --- NEW HERO SECTION UPDATES --- */

/* Reset Hero Stage for Split Layout */
.hero-stage {
    position: relative;
    padding: 0;
    width: 100%;
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    padding: 100px 20px;
}

/* The Background Image */
.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://framerusercontent.com/images/JOi6jIaRqRclAqG1dO3LsWlk8.png?scale-down-to=4096&width=5760&height=3240');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    /* Optional: Darken slightly to ensure text readability */
    /* box-shadow: inset 0 0 150px rgba(0,0,0,0.5);  */
}

/* Split Layout Container */
.hero-split-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Text gets slightly more space */
    align-items: center;
    gap: 40px;
    max-width: 1300px;
    width: 90%;
    margin: 0 auto;
    z-index: 2;
}

/* Left Column: Text */
.hero-text-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* The "Hello" Badge */
.hello-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 20px;
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: #e0e0e0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Main Headline */
.hero-title-large {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #ffffff;
}

/* Typewriter Subtext Styling */
.hero-subtext-dynamic {
    font-family: 'SF Mono', monospace;
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-top: 10px;
    min-height: 1.5em; /* Prevent layout shift */
}

/* Right Column: Visual */
.hero-visual-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-memoji {
    width: 100%;
    max-width: 450px;
    height: auto;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, black 92%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 92%, transparent 100%);
    /* filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); */
    transition: transform 0.3s ease;
    
}

/* .hero-memoji:hover {
    transform: scale(1.02) rotate(2deg);
} */

/* Button overrides for left alignment */
.cta-group.left-align {
    justify-content: flex-start;
    margin-top: 20px;
}

/* --- FIXED MOBILE LAYOUT (Replace existing media query) --- */
@media (max-width: 968px) {
    /* 1. Fix the container clipping */
    .hero-stage {
        height: auto;
        min-height: 100vh;
        padding: 80px 0; /* Add vertical breathing room */
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* 2. Switch to Flex Column for safer stacking */
    .hero-split-layout {
        display: flex; 
        flex-direction: column-reverse; /* Put text ABOVE image (or remove '-reverse' if you want image on top) */
        /* Actually, standard design is Image Top -> Text Bottom or Text Top -> Image Bottom. 
           Your screenshot shows content pushed right. Let's stack Text Top. */
        flex-direction: column; 
        
        width: 100%; /* Force full width */
        padding: 0 20px; /* Add side padding so text doesn't touch edges */
        box-sizing: border-box; /* Critical for padding calculation */
        gap: 40px;
        margin: 0; /* Reset margins */
    }
    
    /* 3. Constrain Text Content */
    .hero-text-content {
        width: 100%;
        max-width: 100%;
        align-items: center; /* Center align items */
        text-align: center; /* Center align text */
    }
    
    /* 4. Fix Headline Overflow */
    .hero-title-large, 
    .typewriter-headline {
        font-size: 2.8rem; 
        /* CTO FIX: Reserve vertical space for ~3 lines of text to prevent layout jumping */
        min-height: 3.6em; 
        /* Optional: Ensure text remains centered or aligned as preferred */
        display: flex;
        align-items: flex-start; /* Keeps text anchored to top (prevents internal jitter) */
        justify-content: center;
    }
    .cta-group { justify-content: center; }

    /* 5. Fix Button Group Alignment */
    .cta-group.left-align {
        justify-content: center;
        flex-wrap: wrap; /* Allow buttons to stack if screen is very narrow */
        width: 100%;
    }

    /* 6. Constrain Carousel Width */
    .logo-carousel-container {
        width: 100%;
        max-width: 100%; /* Ensure it doesn't overflow */
    }

    /* 7. Adjust Memoji Size */
    .hero-memoji {
        max-width: 280px; /* Smaller image for mobile */
        margin: 0 auto;
        display: block;
    }
}

/* --- UPDATED HERO BUTTONS (Referencing the Image) --- */
.cta-group {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    margin-bottom: 40px; /* Space for carousel */
}

/* Button 1: White/Light (Connect With Us) */
.btn-primary-light {
    padding: 14px 28px;
    background-color: #f0f0f0;
    color: #000000;
    border: none;
    border-radius: 12px; /* Slightly rounded rect */
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-light:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

/* Button 2: Dark Glass (What is Landin?) */
.btn-glass-dark {
    padding: 14px 28px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-glass-dark:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* --- INFINITE LOGO CAROUSEL --- */
.logo-carousel-container {
    width: 100%;
    max-width: 450px; /* Constrained width like the image */
    overflow: hidden;
    position: relative;
    /* Fade mask for the edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
    display: flex;
    gap: 40px;
    width: max-content;
    animation: scroll-logos 20s linear infinite;
}

.carousel-logo {
    height: 24px;
    opacity: 0.5;
    transition: opacity 0.3s;
    filter: grayscale(100%) brightness(1.2); /* Make them look like white watermarks */
    font-family: 'SF Mono', monospace;
    font-weight: bold;
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.carousel-logo:hover {
    opacity: 1;
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves half the duplicated length */
}

/* Typography Update for Typewriter */
.typewriter-headline {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: #ffffff;
    min-height: 3.3em; /* Reserve height so layout doesn't jump */
    display: block;
}

.cursor-large {
    display: inline-block;
    width: 4px;
    height: 1em;
    background-color: var(--accent-cyan);
    margin-left: 5px;
    vertical-align: middle; /* Aligns better with text */
    animation: blink 1s step-end infinite;
}

/* subtitle */
.subtitle{
    font-size: 20px; color: rgb(199, 199, 199);
}

@media (max-width: 968px) {
    .typewriter-headline { 
        /* Reduced slightly to fit better */
        font-size: 2.8rem; 
        
        /* FIX: Reserve height for approx 4 lines of text (Prefix + Longest Phrase)
           Line-height is approx 1.2, so 1.2 * 4 = 4.8em */
        /* min-height: 5em;  */
        
        /* Ensure it remains a block to hold dimensions */
        display: block;
    }

    .logo-carousel-container { max-width: 100%; }
    .cta-group { justify-content: center; }
}


.hidden {
    opacity: 0 !important;
    pointer-events: none !important; /* Critical: allows clicks to pass through */
    visibility: hidden !important;
}

/* Ensure the window overlay transitions smoothly */
.window-overlay {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* --- ABOUT SECTION --- */
.about-badges-section {
    width: 100%;
    padding: 140px 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.badges-text-wrapper {
    max-width: 1000px;
    text-align: center;
}

.badges-text-wrapper p {
    font-size: 2.2rem; /* Large, premium size */
    font-weight: 400; /* Regular weight, not too bold */
    line-height: 1.8; /* High line-height is CRITICAL for the badges to fit */
    color: #ffffff;
    margin: 0;
}

/* Add or Replace in styles.css */

.reveal-segment {
    opacity: 0.24; 
    filter: blur(2.4px); 
    transition: opacity 0.4s ease-out, filter 0.4s ease-out;
    will-change: opacity, filter;
    display: inline; /* CTO FIX: Allows text to flow continuously on the same line */
}

.reveal-segment.active {
    opacity: 1;
    filter: blur(0);
}

/* Ensure inline pills transition smoothly with their parent */
.reveal-segment .inline-pill {
    transition: border-color 0.3s, color 0.3s, background 0.3s;
    /* Opacity is inherited from parent, so no change needed here */
}

/* The Pill/Badge Style */
.inline-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    /* The Box Look */
    border: 1px solid rgba(255, 255, 255, 0.25); /* Subtle grey border */
    border-radius: 50px; /* Full pill shape */
    padding: 2px 24px; /* Space inside the badge */
    margin: 0 6px; /* Space outside the badge */
    
    /* Text inside the badge */
    font-size: 0.85em; /* Slightly smaller than main text */
    color: #d7d7d7; /* Slightly muted text color inside badge */
    background: transparent;
    
    /* Alignment Magic */
    vertical-align: middle; 
    position: relative;
    top: -4px; /* Fine-tune visual alignment */
    transition: all 0.3s ease;
    cursor: default;
}

.inline-pill:hover {
    border-color: #fff;
    color: #ffe8a9;
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .about-badges-section {
        padding: 80px 20px;
    }

    .badges-text-wrapper p {
        font-size: 1.6rem;
        line-height: 2.2; /* Even more space needed on mobile */
    }

    .inline-pill {
        padding: 4px 16px;
        margin: 4px 2px;
        border-radius: 30px;
    }
}

/* --- SKILLS & EXPERIENCE SECTION --- */
.skills-section-container {
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Header Styling */
.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}


.section-title-large {
    font-size: 3rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: -1px;
}

/* Main Wrapper */
.skills-grid-wrapper {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}



/* --- BADGE --- */

.glass-pill-label,
.hello-badge {
    /* Layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    width: fit-content;
    border-radius: 30px;
    
    /* Typography */
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.2px;

    /* --- THE EXACT BACKGROUND STACK --- */
    background-color: rgba(0, 0, 0, 0.6); /* Base dark layer */
    
    /* 1. The "Blue Horizon" Gradient at Top Center */
    background-image: radial-gradient(
        60% 50% at 50% 0%, 
        rgba(0, 122, 255, 0.25) 0%, 
        rgba(0, 0, 0, 0) 100%
    );

    /* --- THE BORDER & GLOW EFFECTS --- */
    /* Layer 1 (Top White Edge): inset 0 1px 0 0 rgba(255,255,255,0.15)
       Layer 2 (Top Blue Tint): inset 0 0 12px 0 rgba(0,122,255,0.15)
       Layer 3 (Soft Outer Shadow): 0 4px 24px -1px rgba(0,0,0,0.8)
    */
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15),
        inset 0 0 10px 0 rgba(0, 122, 255, 0.1),
        0 10px 30px -10px rgba(0, 0, 0, 1);

    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    
    /* Smooth hover lift */
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    cursor: default;
}

/* The White Dot (Exactly as in image) */
.glass-pill-label::before,
.hello-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.5); /* Glowing effect */
}

/* Hover State - Gently brightens the top glow */
.glass-pill-label:hover,
.hello-badge:hover {
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.3), /* Brighter top edge */
        inset 0 0 15px 0 rgba(0, 122, 255, 0.2), /* Stronger blue glow */
        0 15px 40px -10px rgba(0, 0, 0, 1);
    transform: translateY(-1px);
    background-color: rgba(0, 0, 0, 0.7);
}


/* --- ACHIEVEMENTS SECTION  --- */

.achievements-split-container {
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
    padding: 100px 20px;
    align-items: center;
    gap: 60px;
    position: relative;
}

/* LEFT PANE: Content */
.ach-left-pane {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ach-heading {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    color: #fff;
}

.ach-subtext {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.6;
}

.ach-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* --- IMPACTFUL STAT BOXES --- */
.stat-box {
    /* Glass & Depth */
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    
    /* Premium Border: Brighter on top/left, darker on bottom/right */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    
    padding: 24px;
    border-radius: 24px; /* Smoother apple-like curve */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* Initial State for Animation */
    opacity: 0; 
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Glow shadow */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* The "Reveal" Class (Added by JS) */
.stat-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effect: Lift & Inner Light */
.stat-box:hover {
    transform: translateY(-8px) scale(1.02);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

/* Typography */
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #00f2ff ;
    margin-bottom: 8px;
    font-family: 'SF Pro Display', -apple-system, sans-serif;
    letter-spacing: -1px;
    
    /* Neon Cyan Glow */
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}



.stat-label {
    font-size: 0.8rem;
    /* font-weight: 500; */
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Mobile Stagger Fix */
@media (max-width: 968px) {
    .stat-number { font-size: 2.2rem; }
    .ach-heading{font-size: 3.3rem;}
    .gradient-text{font-size: 3.6rem;}
}

/* RIGHT PANE: iPad Mockup */
.ach-right-pane {
    flex: 1.2; /* Wider width */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 1000px; /* For 3D Tilt */
}

/* --- IPAD PRO ARCHITECTURE (REALISTIC) --- */

.ipad-device-wrapper {
    position: relative;
    width: 100%;
    max-width: 620px;
    aspect-ratio: 4/3; /* Standard iPad ratio */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    z-index: 10;
    /* Initial Tilt for 3D effect */
    transform: rotateY(-10deg) rotateX(5deg);
    transform-style: preserve-3d;
}

/* Hover Effect: Straighten up slightly */
.ipad-device-wrapper:hover {
    transform: rotateY(-2deg) rotateX(2deg) scale(1.02);
}

/* --- CHASSIS & BEZEL --- */
.ipad-chassis {
    width: 100%;
    height: 100%;
    /* The Bezel (Black Glass) */
    background-color: #0d0d0d;
    border-radius: 34px;
    padding: 16px; /* Bezel Thickness */
    position: relative;
    
    /* The Metal Frame (Outer Rim) */
    box-shadow: 
        /* 1. Inner Bezel Edge (Subtle separation) */
        inset 0 0 0 2px rgba(255, 255, 255, 0.05),
        /* 2. The Aluminum Frame Body */
        0 0 0 3px #3a3a3c, 
        /* 3. Outer Frame Light Reflection */
        0 0 0 4px #535355,
        /* 4. Deep Ambient Shadow */
        0 30px 70px rgba(0,0,0,0.6);
}

/* --- PHYSICAL BUTTONS --- */
.ipad-btn {
    position: absolute;
    background: linear-gradient(180deg, #4a4a4c, #2c2c2e);
    border-radius: 2px;
    box-shadow: inset 1px 0 2px rgba(255,255,255,0.2), 1px 1px 4px rgba(0,0,0,0.5);
    z-index: -1; /* Behind the chassis */
}

/* Power Button (Top Right) */
.power-btn {
    top: -4px;
    right: 50px;
    width: 50px;
    height: 4px;
}

/* Volume Buttons (Right Side) */
.vol-btn {
    right: -4px;
    width: 4px;
    height: 60px;
}

.vol-up { top: 80px; }
.vol-down { top: 150px; }

/* --- FRONT CAMERA HOUSING --- */
.ipad-camera-housing {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 16px; /* Fits inside top padding */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.camera-lens {
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    box-shadow: inset 0 0 3px rgba(25, 25, 50, 0.8), 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
}

/* Lens Reflection */
.camera-lens::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 2px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
}

/* --- SCREEN DISPLAY --- */
.ipad-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 20px; /* Screen corner radius */
    position: relative;
    overflow: hidden;
    /* Screen Glare/Reflection Container */
    box-shadow: inset 0 0 20px rgba(0,0,0,1); 
}

/* --- REALISTIC GLASS GLARE OVERLAY --- */
.ipad-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 34px;
    background: linear-gradient(
        115deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.05) 45%, 
        rgba(255, 255, 255, 0.02) 50%, 
        transparent 60%
    );
    pointer-events: none;
    z-index: 50;
    mix-blend-mode: overlay;
}

/* --- iOS PHOTOS UI (Liquid Crystal) --- */
.ios-glass-bar {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar {
    top: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 100%);
    padding-top: 20px;
}

.ios-action-group {
    display: flex;
    gap: 15px;
    background: rgba(40, 40, 40, 0.4); /* Glass Pills */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 16px;
    border-radius: 50px;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
}

.ios-action-group i {
    width: 18px;
    height: 18px;
    color: #fff;
    cursor: pointer;
    transition: color 0.2s;
}

.ios-action-group i:hover {
    color: var(--accent-cyan);
}

.ios-dynamic-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.ios-location-text {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

.ios-time-text {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.ios-home-bar {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    z-index: 20;
}

/* --- SLIDESHOW ANIMATION --- */
.ipad-slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.ipad-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 8s ease-out; /* Slow zoom effect */
    transform: scale(1.1);
}

.ipad-slide.active {
    opacity: 1;
    transform: scale(1); /* Smooth movement */
}



/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 968px) {
    .achievements-split-container {
        flex-direction: column;
        padding: 60px 20px;
        gap: 40px;
    }
    
    .ach-left-pane, .ach-right-pane {
        width: 100%;
        flex: 1;
    }
    

    /* 2. iPad Mobile Optimization */
    .ipad-device-wrapper {
        width: 570px !important; 
        min-width: 570px !important;
        transform: scale(0.65); 
        /* transform-origin: center center; */
        margin: -60px 0 -80px 0; 
    }

}

/* --- TESTIMONIALS SECTION --- */

.testimonials-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* The Fade Mask for the edges */
.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    padding: 20px 0;
}

/* The Track */
.marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    /* Infinite Scroll Animation */
    animation: marquee-scroll 40s linear infinite;
}

/* Hover to pause (optional, good for UX) */
.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Moves half distance (since we double data) */
}

/* --- THE GLASS CARD --- */
.testimonial-card {
    width: 300px;
    flex-shrink: 0;
    
    /* Apple Glass Material */
    background: rgba(30, 30, 35, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(40, 40, 45, 0.6);
}

/* Quote Text */
.t-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Author Row */
.t-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.t-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.t-info {
    display: flex;
    flex-direction: column;
}

.t-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.t-role {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .testimonial-card {
        width: 250px;
        padding: 24px;
    }
    .t-text {
        font-size: 16px;
    }
}

/* --- THANK YOU BANNER (VIDEO BG VERSION) --- */
.thank-you-section {
    padding: 40px 20px 140px 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.thank-you-card {
    width: 100%;
    max-width: 850px;
    height: 300px; /* Fixed banner height */
    border-radius: 40px; /* Apple-style large radius */
    position: relative;
    overflow: hidden;
    
    /* THE DEEP BLUE GRADIENT BACKGROUND */
    background-color: #000;
    background-image: radial-gradient(
        circle at 20% 50%, 
        rgba(0, 40, 200, 0.8) 0%, 
        rgba(0, 10, 50, 1) 40%,
        rgba(0, 0, 0, 1) 100%
    );
    
    /* Glass Border & Depth */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 30px 60px rgba(0, 10, 50, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
        
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
}

.ty-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.ty-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -1px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Connect Button (Premium Pill) */
.ty-connect-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.ty-connect-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.ty-connect-btn i {
    width: 16px;
    transition: transform 0.3s;
}

.ty-connect-btn:hover i {
    transform: translate(2px, -2px);
}

/* 1. Force Video to Background Layer */
.ty-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Lowest layer (above background color) */
    opacity: 0.6; /* Lowered slightly to help text pop */
    pointer-events: none;
}

/* 2. Ensure Text Container floats above */
.ty-content {
    position: relative;
    z-index: 10; /* High priority */
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    flex: 1; /* Allow text to take available space */
}

.ty-visual {
    position: relative;
    z-index: 10; /* High priority (Same as text) */
    height: 94%;
    display: flex;
    align-items: flex-end;
    flex-shrink: 0; /* CRITICAL: Prevents flexbox from crushing width to 0 */
    min-width: 300px; /* Reserve safe space for Memoji */
}

.ty-memoji {
    width: 300px;
    height: auto;
    transform: translateY(10px); /* Reduced from 20px to prevent excessive clipping */
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); /* Stronger shadow to separate from video */
}


/* Liquid Glass Overlay (Updated) */
.ty-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle noise + dark tint to make white text pop over video */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-color: rgba(0,0,0,0.3); 
    opacity: 0.2;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 1;
}

/* Mobile Responsiveness (Updates) */

@media (max-width: 768px) {
    .ty-visual {
        min-width: auto; /* Reset for column layout */
        width: 100%;
        justify-content: center;
        margin-bottom: 0;
    }
    .thank-you-card {
        height: auto;
        flex-direction: column-reverse; /* Memoji on top or bottom */
        padding: 40px 20px;
        text-align: center;
        background-image: radial-gradient(
            circle at 50% 20%, 
            rgba(0, 40, 200, 0.8) 0%, 
            rgba(0, 0, 0, 1) 70%
        );
    }
    
    .ty-content {
        align-items: center;
        margin-top: -20px; /* Pull text up closer to image */
    }
    
    .ty-title {
        font-size: 2.5rem;
    }
    
    .ty-memoji {
        width: 200px;
        transform: translateY(0);
        margin-bottom: 30px;
    }
}

/* --- FOOTER --- */
.apple-footer {
    position: relative;
    width: 100%;
    background-color: #050507; /* Almost black */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 80px 20px 0 20px; /* Top padding, no bottom (handled by watermark) */
    overflow: hidden;
    margin-bottom: 80px; /* Space for the floating Dock */
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2; /* Sits above watermark */
}

/* Top Section: Slogan vs Links */
.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

/* Brand Column */
.footer-brand-col {
    flex: 1;
    max-width: 400px;
}

.footer-slogan {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.serif-italic {
    font-family: "Times New Roman", serif;
    font-style: italic;
    font-weight: 400;
    color: var(--text-dim);
}

.footer-sub {
    color: #888;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 15px;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 60px; 
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    text-decoration: none;   /* 👈 keeps it gone on hover too */
}

.social-icon i {
    font-size: 20px;         /* 👈 correct way to size FA icons */
    line-height: 1;
    pointer-events: none;
}

.footer-nav-grid {
    display: flex;
    gap: 100px; /* Increased gap to push Sitemap to the right and fill space */
}

.nav-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
    display: flex; align-items: center; gap: 8px;
}

.nav-link:hover {
    color: #fff;
}

/* Divider & Copyright */
.footer-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 30px;
}

.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    color: #555;
    font-size: 12px;
    margin-bottom: 120px; /* Push up to make room for watermark */
}

/* --- THE SIGNATURE WATERMARK --- */
.footer-watermark {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    margin-top: -80px; /* Pull it up into the footer area */
}

.wm-desktop, .wm-mobile {
    font-size: 15vw; /* Massive responsive font */
    font-weight: 800;
    padding-bottom: 10px;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.164); /* Very subtle fade */
    white-space: nowrap;
    letter-spacing: -5px;
    display: block;
    /* Gradient Fade Mask at bottom */
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
}

.wm-mobile {
    display: none; /* Hidden by default */
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    @media (max-width: 968px) {
    .footer-nav-grid {
        gap: 40px;
        width: 100%;
        justify-content: space-between; /* Spreads Connect and Sitemap nicely on mobile */
    }
}
    
    .nav-col {
        min-width: 120px;
    }

    .wm-desktop { display: none; }
    .wm-mobile { display: block; font-size: 32vw; padding-bottom: 80px;margin-top: 20px;} /* Even bigger on mobile */
    
    
    .footer-bottom-row {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        margin-bottom: 80px;
    }
}




/* --- SKILLS SECTION WHY WORK WITH ME --- */

.impact-section {
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.impact-grid {
    display: grid;
    /* 3 Columns Top, Flexible Bottom */
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px; /* Taller cards for better visual space */
    gap: 24px;
    width: 100%;
    max-width: 1100px;
    margin-top: 50px;
}

/* Base Card Architecture */
.impact-card {
    background: #0d0d0f; /* Pitch dark base */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px; /* Apple Radius */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 4px 24px -1px rgba(0,0,0,0.2);
}

.impact-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.4);
}

/* Ambient Glows (The Apple Tint) */
.card-bg-gradient {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}
.blue { background: radial-gradient(circle at 50% 100%, #007aff, transparent 60%); }
.purple { background: radial-gradient(circle at 50% 100%, #af52de, transparent 60%); }
.green { background: radial-gradient(circle at 50% 100%, #34c759, transparent 60%); }
.cyan { background: radial-gradient(circle at 80% 80%, #32ade6, transparent 50%); }
.orange { background: radial-gradient(circle at 50% 100%, #ff9500, transparent 60%); }

/* Typography */
.impact-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    z-index: 2;
    margin: 0;
}

.text-highlight { color: rgba(255,255,255,0.6); }
.card-content-top { padding: 30px; z-index: 2; }
.card-content-bottom { padding: 30px; margin-top: auto; z-index: 2; }
.centered { text-align: center; }

/* --- CARD 1: EXPERIENCE --- */
.card-experience {
    align-items: center;
    text-align: center;
}
.memoji-container.bottom-center {
    margin-top: auto;
    transform: translateY(10px); /* Peek effect */
}
.memoji-lg { width: 180px; filter: drop-shadow(0 0 20px rgba(0,0,0,0.5)); }

/* --- CARD 2: TECH STACK (Floating Cloud) --- */
.card-tech {
    position: relative;
    overflow: hidden;
}

.tech-honeycomb-mask {
    position: absolute;
    top: -40%; left: 0%;
    width: 140%; height: 150%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    /* mask-image: radial-gradient(circle, black 40%, transparent 80%); */
    /* -webkit-mask-image: radial-gradient(circle, black 40%, transparent 80%); */
}

.tech-honeycomb-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Negative margin to pull rows tight (Honeycomb effect) */
    gap: 12px; 
}

.honeycomb-row {
    display: flex;
    gap: 20px; /* Horizontal spacing */
    width: max-content;
    /* Infinite Scroll Animation */
    animation: honey-scroll 25s linear infinite;
    will-change: transform;
}

/* Row 2 Offset: This creates the "Brick/Hexagon" mesh */
.honeycomb-row:nth-child(2) {
    margin-left: -40px; 
    animation-duration: 28s; /* Different speed for parallax depth */
    /* animation-direction: */
}


.honeycomb-row:nth-child(3) {
    animation-duration: 32s;
    margin-left: -10px;
}

/* --- THE ICONS (Bubbles) --- */
.hc-icon {
    width: 50px; height: 50px;
    padding: 10px;
    border-radius: 50%; /* Apple Watch Style Circles */
    background: rgba(30, 30, 35, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    /* transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); */
    
    /* The "Alive" Breathing Effect */
    animation: icon-breathe 4s ease-in-out infinite alternate;
}



/* --- RANDOMNESS (Size & Breath) --- */
.hc-icon:nth-child(2n) { width: 50px; height: 50px; animation-delay: -1s; }
.hc-icon:nth-child(3n) { width: 50px; height: 50px; animation-delay: -2s; }
.hc-icon:nth-child(5n) { animation-duration: 3s; }

/* --- ANIMATIONS --- */
@keyframes honey-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes icon-breathe {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Mobile: Tighter layout */
@media (max-width: 968px) {
    .hc-icon { width: 50px; height: 50px; }
    .hc-icon:nth-child(3n) { width:50px; height: 50px; }
    .honeycomb-row { gap: 15px; }
    .card-tech{height: 330px;}
}

/* --- CARD 3: LEADERSHIP --- */
.card-lead { overflow: hidden; }

.memoji-group {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    margin-bottom: -10px;
    z-index: 2;
}

.memoji-main { width: 140px; z-index: 3; filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); }
.avatar-sm { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #0d0d0f; z-index: 1; margin-bottom: 20px; }
.avatar-sm.left { transform: translateX(20px) rotate(-10deg); }
.avatar-sm.right { transform: translateX(-20px) rotate(10deg); }



/* --- CARD 4: OUTPUT (Span 2) --- */
.card-output.span-2 {
    grid-column: span 2;
    background: linear-gradient(120deg, #0d0d0f 0%, #1c1c1e 100%);
}

.split-layout {
    display: flex;
    height: 100%;
    align-items: center;
    padding: 0 40px;
}

.text-side { flex: 1; z-index: 2; }
.sub-text { color: #888; font-size: 0.95rem; margin-top: 10px; max-width: 90%; }

.visual-side {
    flex: 0.8;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
}

.glass-phone-mockup {
    width: 180px;
    height: 300px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px 24px 0 0;
    backdrop-filter: blur(10px);
    position: relative;
    bottom: -40px; /* Cut off at bottom */
    transform: rotate(-10deg) translateY(20px);
    box-shadow: -20px 20px 40px rgba(0,0,0,0.4);
    transition: transform 0.5s;
}

.impact-card:hover .glass-phone-mockup {
    transform: rotate(0deg) translateY(0);
}

.phone-notch {
    width: 50px; 
    height: 15px;
    background: #131313c9;
    
    /* Convert to Floating Island */
    border-radius: 20px;
    margin: 10px auto 0 auto; /* Push down from bezel */
    
    position: relative;
    z-index: 20;
    /* box-shadow: 0 1px 5px rgba(0,0,0,0.4); */
}

.phone-screen { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.ui-header { height: 10px; width: 40%; background: rgba(255,255,255,0.1); border-radius: 4px; }
.ui-card { width: 100%; background: rgba(255,255,255,0.05); border-radius: 8px; }
.c1 { height: 70px; }
.c2 { height: 50px; }
.ui-btn { width: 100%; height: 35px; background: var(--accent-cyan); border-radius: 6px; margin-top: auto; opacity: 0.8; }

/* --- CARD 5: STATS --- */
.card-stats { align-items: center; }
.memoji-med { width: 120px; margin: 10px 0; }

.stats-pills {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 30px 30px 30px;
    z-index: 2;
}

.stat-pill {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.pill-icon { width: 18px; color: #ff9500; }

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 968px) {
    .impact-grid {
        grid-template-columns: 1fr; /* Single column stack */
        grid-auto-rows: auto;
        gap: 20px;
    }
    
    .impact-card {
        min-height: 280px;
    }
    
    .card-output.span-2 { grid-column: auto; }
    
    .split-layout {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .visual-side {
        margin-top: 20px;
        height: 200px;
    }
    
    .glass-phone-mockup {
        width: 140px;
        height: 240px;
        transform: rotate(0deg);
        bottom: -32px;
    }
}

/* --- APPLE STYLE CAROUSEL (PROJECTS) --- */
.landin-section-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.landin-header {
    padding: 0 40px;
    margin-bottom: 40px;
}

.title-primary { font-size: 3rem; color: #fff; font-weight: 700; line-height: 1.1; }
.title-secondary { font-size: 3rem; color: var(--text-dim); font-weight: 700; line-height: 1.1; }

/* The Scroll Container */
.apple-carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 20px 40px 60px 40px; /* Bottom padding for hover expansion */
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    /* Hide scrollbar */
    scrollbar-width: none; 
}

.carousel-track::-webkit-scrollbar { display: none; }

/* Navigation Buttons */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(80, 80, 80, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-50%) scale(1.1); }
.nav-left { left: 20px; }
.nav-right { right: 20px; }

/* The Card Itself */
.apple-project-card {
    min-width: 320px;
    height: 460px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    scroll-snap-align: center;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.4s ease;
    cursor: pointer;
}

/* Hover Effect: Scale up */
.apple-project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Card Content */
.ap-card-header {
    z-index: 2;
    margin-bottom: 20px;
}

.ap-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.ap-subtitle {
    font-size: 14px;
    color: #a1a1a6;
    font-weight: 500;
}

/* The Image Container */
.ap-image-container {
    flex-grow: 1;
    display: flex;
    align-items: flex-end; /* Align bottom like iPhone cards */
    justify-content: center;
    z-index: 1;
    position: relative;
}

.ap-img {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
    transition: transform 0.5s ease;
}

.apple-project-card:hover .ap-img {
    transform: scale(1.08);
}

/* Click hint */
.tap-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.apple-project-card:hover .tap-indicator { opacity: 1; transform: scale(1); }


/* --- PROJECT DETAIL MODAL (NESTIFY STYLE) --- */
.project-modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* background: rgba(0, 0, 0, 0.8); */
    backdrop-filter: blur(20px);
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Sheet animation from bottom */
}

.project-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-sheet {
    width: 90%;
    max-width: 1000px;
    height: 90%;
    margin-bottom: 56px;
    background: #000; /* Deep black bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    position: relative;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -20px 60px rgba(0,0,0,0.8);
}

.project-modal-overlay.active .modal-sheet {
    transform: translateY(0);
}

/* Close Button */
.modal-close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(40, 40, 40, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.2s;
}

.modal-close-btn:hover { transform: scale(1.1); background: rgba(80,80,80,0.8); }

/* --- MODAL CONTENT GRID --- */
.pm-content-wrapper {
    padding: 60px;
    color: #fff;
}

/* 1. HERO */
.pm-hero {
    text-align: center;
    margin-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

.pm-hero-title { font-size: 3.5rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 10px; }
.pm-hero-sub { color: #888; font-size: 1.2rem; }
.pm-hero-img-box {
    margin-top: 40px;
    background: #111;
    border-radius: 24px;
    padding: 40px;
    display: flex;
    justify-content: center;
}
.pm-hero-img { max-width: 60%; border-radius: 12px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.6)); }

/* 2. SPLIT LAYOUT (STICKY LEFT) */
.pm-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 60px;
    position: relative;
}
.pm-widget {
    background-color: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.pm-gallery-grid {
    display: flex;
    gap: 20px;
    padding-bottom: 20px; /* Space for Dock */
}
.pm-gallery-img {
    width: 100%;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
}
/* Modal Background - Dark Liquid Glass */
.modal-sheet {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(50px) saturate(180%);
    -webkit-backdrop-filter: blur(50px) saturate(180%);
    box-shadow: 0 -20px 80px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Left Column (Sticky) */
.pm-left-col {
    position: sticky;
    top: 40px; /* Sticks 40px from top of container */
    height: fit-content;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 30px;
}

.pm-meta-card {
    background: #151517;
    border-radius: 30px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.05);
}

.pm-label { color: white; font-size: 20px; letter-spacing: 1px; margin-bottom: 8px; font-weight: 600; }
.pm-value { font-size: 16px; color: #d7d7d7; }

.pm-btn-primary {
    display: block;
    width: 100%;
    text-align: center;
    background: #007aff; /* Apple Blue */
    color: white;
    padding: 14px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.2s;
}
.pm-btn-primary:hover { background: #0056b3; }

.pm-tech-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.pm-tech-icon { width: 50px; height: 50px; background: rgba(255,255,255,0.05); border-radius: 10px; padding: 8px; }

/* Right Column (Scrollable Text) */
.pm-right-col {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* --- 3. GALLERY IMAGES (Bottom of Modal) --- */
.pm-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.pm-gallery-img {
    width: 100%;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
}

.pm-gallery-img:hover {
    transform: scale(1.02);
}

/* --- 4. CAROUSEL ARROWS --- */
.carousel-nav-btn {
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

/* Hidden state class */
.carousel-nav-btn.hidden-arrow {
    opacity: 0;
    pointer-events: none;
}
.pm-section h3 { font-size: 1.8rem; margin-bottom: 20px; color: #fff; }
.pm-section p { font-size: 1.1rem; line-height: 1.7; color: #b0b0b0; }

.pm-list { list-style: none; padding-left: 0; }
.pm-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: #ccc;
    font-size: 1.05rem;
}
.pm-list li::before {
    content: '•';
    color: #007aff;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .pm-grid { grid-template-columns: 1fr; }
    .pm-left-col { position: relative; top: 0; flex-wrap: wrap; }
    .pm-meta-card { flex: 1; min-width: 140px; }
    .pm-content-wrapper { padding: 30px; }
    .pm-hero-title { font-size: 2.2rem; }
    .carousel-track { padding-right: 20px; }
}

/* --- macOS System Bar Menus --- */

.left-controls {
    display: flex;
    align-items: center;
    height: 100%;
}

.macos-dropdown-container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    margin-left: 4px; /* Slight spacing between menu items */
}

/* Trigger Item styling */
.menu-item.trigger {
    padding: 4px 10px;
    margin: 0;
    height: 80%; /* Don't touch edges */
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: background 0.15s ease;
    cursor: default;
    user-select: none;
    font-weight: 500;
}

.menu-item.trigger:hover, 
.macos-dropdown-container.active .trigger {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Dropdown Menu Styles */
.macos-dropdown-menu {
    position: absolute;
    top: 28px; /* Position right below bar */
    left: 0;
    min-width: 220px; /* Wider for shortcuts */
    background: rgba(30, 30, 30, 0.94);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 5px;
    display: none;
    flex-direction: column;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    z-index: 9999;
    list-style: none;
    
}

.macos-dropdown-container.active .macos-dropdown-menu {
    display: flex;
    animation: menu-pop 0.1s cubic-bezier(0, 0, 0.2, 1);
}

/* Menu Items */
.menu-row {
    display: flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 5px;
    color: #fff;
    font-size: 13px;
    cursor: default;
    transition: background 0.1s;
    height: 28px;
    position: relative;
}

/* Active State (Blue Highlight) */
.menu-row:not(.disabled):hover {
    background: #007aff;
}

/* Disabled State */
.menu-row.disabled {
    opacity: 0.5;
    pointer-events: auto; /* Allow hover for title tooltip */
    cursor: not-allowed;
}
.menu-row.disabled:hover {
    background: transparent;
}

/* Layout for Row */
.menu-icon {
    display: flex;
    align-items: center;
    width: 20px;
    margin-right: 8px;
    opacity: 0.9;
}
.menu-icon svg { width: 14px; height: 14px; }

.menu-label {
    flex-grow: 1;
    white-space: nowrap;
}

.menu-shortcut {
    opacity: 0.6;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.5px;
    margin-left: 15px;
}

/* Separator */
.menu-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 4px 10px;
}

/* Submenu Arrow */
.menu-arrow {
    opacity: 0.6;
    display: flex;
    align-items: center;
    margin-right: -4px;
}
.menu-arrow svg { width: 12px; height: 12px; }

/* Submenu Logic */
.macos-submenu {
    display: none;
    position: absolute;
    top: -5px;
    left: 99%;
    min-width: 220px;
    background: rgba(35, 35, 35, 0.9);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    list-style: none;
}

.has-submenu:hover .macos-submenu {
    display: flex;
    flex-direction: column;
}

.macos-submenu li {
    padding: 6px 10px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #fff;
    gap: 10px;
}

.macos-submenu li:hover {
    background: #007aff;
}

@keyframes menu-pop {
    from { opacity: 0; transform: scale(0.98); }
    to { opacity: 1; transform: scale(1); }
}



/* --- MOBILE OPTIMIZATIONS (Accordion Style) --- */
@media (max-width: 768px) {
    /* 1. Fix Main Dropdown Position & Width */
    .macos-dropdown-menu {
        position: absolute;
        left: 0; 
        right: auto;
        min-width: 220px; /* Comfortable width */
        max-width: 85vw;  /* Fixes the "cut off" issue */
        width: max-content;
    }

    /* 2. Allow Menu Rows to Expand (CRITICAL FOR ACCORDION) */
    .menu-row {
        height: auto !important;
        flex-wrap: wrap;
    }

    /* 3. Force Submenu to Stack Vertically */
    .macos-submenu {
        position: static !important;
        float: none;
        width: 100%;       
        flex-basis: 100%;
        min-width: unset;  
        margin-top: 10px;
        margin-bottom: 5px;
        
        background: rgba(92, 92, 92, 0.108); 
        border: none;
        border-radius: 8px;
        box-shadow: none; 
        
        display: none; 
        flex-direction: column;
        padding: 5px 0;
    }

    /* 4. Disable Desktop Hover */
    .has-submenu:hover .macos-submenu {
        display: none; 
    }

    /* 5. Active State (Triggered by JS) */
    .has-submenu.mobile-expanded .macos-submenu {
        display: flex !important;
    }

    /* 6. Indent Sub-items */
    .macos-submenu li {
        padding-left: 15px;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.8);
    }

    /* 7. Rotate Arrow Animation */
    .has-submenu.mobile-expanded .menu-arrow svg {
        transform: rotate(90deg);
        transition: transform 0.2s ease;
    }
    /* 8. Hide shortcuts on mobile to clean up UI */
    /* .menu-shortcut {
        display: none; 
    } */
}