:root {
    --bg-main: #F5F5F5;
    --bg-alt: #FFFFFF;
    --text-primary: #111111;
    --text-secondary: #666666;
    --border-color: #E8E8E8;
    
    /* Transitions */
    --transition-fast: 0.15s ease-out;
    --transition-smooth: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================================
   SCROLL PROGRESS & FLOATING NAV
========================================= */
#scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    background-color: #111111;
    width: 0%;
    z-index: 1000;
}

.floating-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    align-items: center;
}

.nav-dot {
    width: 6px;
    height: 6px;
    background-color: #CCCCCC;
    border-radius: 50%;
    display: block;
    transition: background-color var(--transition-fast);
}

.nav-dot:hover {
    background-color: #888888;
}

.nav-indicator {
    position: absolute;
    top: 0;
    width: 6px;
    height: 16px;
    background-color: #111111;
    border-radius: 3px;
    transform: translateY(-5px); /* Adjusted by JS */
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

/* =========================================
   HERO SECTION
========================================= */
.hero-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #111111;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: visible;
}

#hero-canvas {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 24px;
}

.hero-content, .scroll-indicator {
    transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.hero-content.fade-out, .scroll-indicator.fade-out {
    opacity: 0;
    transform: translateY(-30px);
}

.cloud-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 280px;
    z-index: 10;
    pointer-events: none;
    transition: none;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.cloud-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-title {
    font-size: 88px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 12px;
    line-height: 1.1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    text-align: center;
}

.blinking-cursor {
    font-weight: 300;
    color: #FFFFFF;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

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

.hero-subtitle {
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    color: #FFFFFF;
    opacity: 0.85;
    margin-bottom: 24px;
    min-height: 36px;
    text-align: center;
}

.hero-quote {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #FFFFFF;
    opacity: 0.4;
    margin-top: 12px;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: #FFFFFF;
    animation: bounce 2s infinite ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-12px) translateX(-50%); }
    60% { transform: translateY(-6px) translateX(-50%); }
}

/* =========================================
   SCROLL REVEAL ANIMATION CLASSES
========================================= */
.reveal-on-load {
    opacity: 0;
    animation: fadeSlideUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   SCROLL REVEAL ANIMATION CLASSES
========================================= */
.reveal-element {
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 700ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.reveal-element.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================================
   LAYOUT & SECTIONS
========================================= */
.content-section {
    padding: 120px 24px;
    display: flex;
    justify-content: center;
    position: relative;
}

#metrics {
    margin-top: 0;
    padding-top: 0;
    border: none;
    box-shadow: none;
    background-color: #F5F5F5;
}

.bg-white {
    background-color: var(--bg-alt);
    background-image: radial-gradient(#E0E0E0 1px, transparent 1px);
    background-size: 24px 24px;
}

.section-container {
    width: 100%;
    max-width: 1000px;
}

.section-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #888888;
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.section-heading {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text-primary);
    margin-bottom: 48px;
    padding-left: 16px;
    border-left: 3px solid #111111;
    line-height: 1.0;
    
    opacity: 0;
    transform: translateY(60px) scaleY(1.08);
    transform-origin: bottom center;
    transition: opacity 900ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.section-heading.visible {
    opacity: 1;
    transform: translateY(0) scaleY(1);
}

.section-tagline {
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: -32px;
    margin-bottom: 40px;
    padding-left: 22px;
}

/* =========================================
   CARDS & COMPONENTS
========================================= */
.card {
    background-color: var(--bg-alt);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid var(--border-color);
}

/* METRICS */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.metric-card {
    background-color: var(--bg-alt);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.2s ease;
    will-change: transform, opacity;
}

.metric-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.metric-card:nth-child(1) { transition-delay: 0ms; }
.metric-card:nth-child(2) { transition-delay: 100ms; }
.metric-card:nth-child(3) { transition-delay: 200ms; }
.metric-card:nth-child(4) { transition-delay: 300ms; }

.metric-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #111111;
    width: 0;
    transition: width 250ms ease;
}

.metric-card:hover::after {
    width: 100%;
}

.metric-card.visible:hover {
    transition: transform 200ms ease, box-shadow 200ms ease;
    transform: translateY(-4px) scale(1) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.metric-header {
    margin-bottom: 12px;
}

.metric-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.metric-value {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1;
    display: inline-block;
    transition: transform 200ms ease;
    transform-origin: left bottom;
}

.metric-card:hover .metric-value {
    transform: scale(1.04);
}

.unit {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-secondary);
}

.metric-subvalue {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    font-weight: 500;
}

.metric-subvalue strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-left: 4px;
}

.metric-indicator {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
    font-weight: 700;
    margin-left: 6px;
}

.metric-indicator i {
    width: 14px;
    height: 14px;
    margin-right: 2px;
}

.metric-desc {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* =========================================
   COMPARISON SLIDER
========================================= */
.comparison-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 32px;
    align-items: start;
}

.input-frame-col, .slider-col {
    display: flex;
    flex-direction: column;
}

.image-card, .slider-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--bg-alt);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: 
      linear-gradient(var(--border-color) 1px, transparent 1px),
      linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 20px 20px;
    margin-bottom: 12px;
}

.image-card img, .slider-image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.image-fallback {
    font-size: 32px;
    font-weight: 700;
    color: #CCCCCC;
    z-index: 1;
}

.image-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}

.slider-container {
    user-select: none;
}

.slider-image-layer {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
}

.slider-image-layer.foreground {
    z-index: 3;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--text-primary);
    z-index: 5;
    pointer-events: none;
    transform: translateX(-50%);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--bg-alt);
    border: 2px solid var(--text-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.slider-button i {
    width: 16px;
    height: 16px;
    color: var(--text-primary);
}

.pulse-hint .slider-button {
    animation: pulse-hint-anim 1.5s 2;
}

@keyframes pulse-hint-anim {
    0% { box-shadow: 0 0 0 0 rgba(17,17,17,0.3); }
    100% { box-shadow: 0 0 0 12px rgba(17,17,17,0); }
}

.slider-input {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: ew-resize;
    margin: 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    padding: 0 4px;
}

/* =========================================
   CHART
========================================= */
.chart-panel {
    display: flex;
    flex-direction: column;
}

.chart-container {
    position: relative;
    width: 100%;
    flex-grow: 1;
    min-height: 400px;
}

.chart-container canvas {
    cursor: crosshair;
}

/* =========================================
   ARCHITECTURE
========================================= */
.architecture-node {
  opacity: 0;
  transform: translateX(-30px) scale(0.93);
  transition: opacity 500ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 500ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.architecture-node.visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.architecture-node:nth-child(1) { transition-delay: 0ms; }
.architecture-node:nth-child(2) { transition-delay: 120ms; }
.architecture-node:nth-child(3) { transition-delay: 240ms; }
.architecture-node:nth-child(4) { transition-delay: 360ms; }
.architecture-node:nth-child(5) { transition-delay: 480ms; }

.architecture-diagram {
    margin-bottom: 40px;
    padding: 80px 40px 60px;
    display: flex;
    justify-content: center;
    background-color: var(--bg-main); 
}

.pipeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 800px;
}

.node {
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    border: 1px solid var(--border-color);
    background-color: var(--bg-alt);
    min-width: 120px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.node.model {
    background-color: var(--text-primary);
    color: var(--bg-alt);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.node.model-1 {
    /* Kept scale logically but handled by hover/animation now */
}

.node.model-2.glow {
    box-shadow: 0 0 0 2px var(--bg-alt), 0 0 0 4px rgba(17,17,17,0.25);
}

.node.intermediate {
    border-style: dashed;
    background-color: transparent;
    box-shadow: none;
}

.arrow {
    color: var(--text-primary);
}

/* TOOLTIPS */
.node-wrapper {
    position: relative;
    cursor: pointer;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--text-primary);
    color: var(--bg-alt);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 150ms ease-out;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--text-primary) transparent transparent transparent;
}

.node-wrapper:hover .tooltip,
.node-wrapper.active .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-15px);
}

/* TRAINING STAGES */
.training-stages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.stage-card {
    border-radius: 16px;
    padding: 32px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-alt);
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.progress-bar-container {
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
}

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
    width: 100%;
}

.stage-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.stage-details {
    list-style: none;
    width: 100%;
}

.stage-details li {
    margin-bottom: 12px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
}

.stage-details li strong {
    color: var(--text-primary);
    font-weight: 500;
}

.stage-details li:last-child {
    margin-bottom: 0;
}

/* =========================================
   TEAM SECTION
========================================= */
.footer-section {
    padding-bottom: 80px;
}

.about-container {
    max-width: 700px;
}

.about-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.team-list {
    list-style-type: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 60px;
}

.team-list li {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    text-align: left;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    transition: all 200ms ease;
}

.team-list li:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.member-name {
    font-weight: 700;
    font-size: 16px;
    color: #111111;
    margin-bottom: 4px;
}

.member-role {
    font-size: 12px;
    font-weight: 400;
    color: #888888;
    margin-top: 4px;
    margin-bottom: 16px;
    flex-grow: 1;
}

.member-links {
    display: flex;
    gap: 12px;
}

.member-links a {
    color: #111111;
    display: flex;
    align-items: center;
    opacity: 0.5;
    transition: opacity 200ms ease;
    cursor: pointer;
}

.member-links a:hover {
    opacity: 1;
}

.member-links svg {
    width: 16px;
    height: 16px;
}

.footer-links {
    display: flex;
    justify-content: flex-start;
}

.github-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 8px;
    background-color: var(--bg-alt);
    border: 1px solid var(--text-primary);
    transition: all var(--transition-fast);
}

.github-link i {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.github-link:hover {
    background-color: var(--text-primary);
    color: var(--bg-alt);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .training-stages {
        grid-template-columns: 1fr;
    }
    .team-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    .floating-nav {
        display: none;
    }
    .comparison-layout {
        grid-template-columns: 1fr;
    }
    .input-frame-col {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
    .pipeline {
        flex-direction: column;
        gap: 24px;
    }
    .arrow {
        transform: rotate(90deg);
    }
    .hero-title {
        font-size: 48px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
}

/* =========================================
   GSAP STAGGERED MENU (GLOBAL)
========================================= */
/* Hide floating dot nav globally since we use full menu */
.floating-nav {
    display: none !important;
}

/* Trigger Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111111;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.menu-btn-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-btn-icon svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu-btn-text {
    height: 1.2rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.menu-text-inner {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.m-text {
    height: 1.2rem;
    line-height: 1.2rem;
}

/* Full Screen Container */
.mobile-menu {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9990;
    pointer-events: none;
}

.menu-underlay, .menu-panel {
    position: absolute;
    top: 0; right: 0;
    width: 100vw;
    max-width: 450px;
    height: 100vh;
    border-radius: 24px 0 0 24px;
    transform: translateX(100%);
    will-change: transform;
}

.menu-underlay.layer-1 {
    background-color: #333333;
    z-index: 1;
}

.menu-underlay.layer-2 {
    background-color: #111111;
    z-index: 2;
}

.menu-panel {
    background-color: #FFFFFF;
    z-index: 3;
    padding: 6em 3em 3em 3em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.menu-item {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: #111111;
    gap: 1rem;
}

.menu-num {
    font-size: 1.25rem;
    font-weight: 500;
    color: #5A45FF;
    vertical-align: super;
    margin-left: 0.25rem;
    line-height: 0;
}

.menu-text-wrap {
    overflow: hidden;
}

.menu-text {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
    transition: color 0.2s ease;
}

.menu-item:hover .menu-text {
    color: #5A45FF;
    text-decoration: none;
}

.menu-footer {
    margin-top: 4rem;
}

.footer-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #5A45FF;
    margin-bottom: 1.2rem;
}

        grid-template-columns: repeat(2, 1fr);
    }
    .training-stages {
        grid-template-columns: 1fr;
    }
    .team-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 900px) {
    .floating-nav {
        display: none;
    }
    .comparison-layout {
        grid-template-columns: 1fr;
    }
    .input-frame-col {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
    .pipeline {
        flex-direction: column;
        gap: 24px;
    }
    .arrow {
        transform: rotate(90deg);
    }
    .hero-title {
        font-size: 48px;
    }
    .hero-subtitle {
        font-size: 18px;
    }
}

/* =========================================
   GSAP STAGGERED MENU (GLOBAL)
========================================= */
/* Hide floating dot nav globally since we use full menu */
.floating-nav {
    display: none !important;
}

/* Trigger Button */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111111;
    padding: 8px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.menu-btn-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-btn-icon svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.menu-btn-text {
    height: 1.2rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.menu-text-inner {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.m-text {
    height: 1.2rem;
    line-height: 1.2rem;
}

/* Full Screen Container */
.mobile-menu {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9990;
    pointer-events: none;
}

.menu-underlay, .menu-panel {
    position: absolute;
    top: 0; right: 0;
    width: 100vw;
    max-width: 450px;
    height: 100vh;
    border-radius: 24px 0 0 24px;
    transform: translateX(100%);
    will-change: transform;
}

.menu-underlay.layer-1 {
    background-color: #333333;
    z-index: 1;
}

.menu-underlay.layer-2 {
    background-color: #111111;
    z-index: 2;
}

.menu-panel {
    background-color: #FFFFFF;
    z-index: 3;
    padding: 6em 3em 3em 3em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.menu-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.menu-item {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: #111111;
    gap: 1rem;
}

.menu-num {
    font-size: 1.25rem;
    font-weight: 500;
    color: #5A45FF;
    vertical-align: super;
    margin-left: 0.25rem;
    line-height: 0;
}

.menu-text-wrap {
    overflow: hidden;
}

.menu-text {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
    transition: color 0.2s ease;
}

.menu-item:hover .menu-text {
    color: #5A45FF;
    text-decoration: none;
}

.menu-footer {
    margin-top: 4rem;
}

.footer-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #5A45FF;
    margin-bottom: 1.2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 1.1rem;
    font-weight: 500;
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #5A45FF;
}

/* =========================================
   SOCIAL DROPDOWNS
========================================= */
.social-dropdown-container {
    position: relative;
    display: inline-block;
}

.social-dropdown {
    position: absolute;
    top: 100%;
    bottom: auto;
    left: 0;
    margin-top: 8px;
    background-color: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 150ms ease, transform 150ms ease;
    z-index: 1000;
}

.social-dropdown.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.social-dropdown .dropdown-item {
    display: block;
    font-size: 14px;
    padding: 10px 20px;
    color: #111111;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.social-dropdown .dropdown-item:hover {
    background-color: #f5f5f5;
    color: #111111;
}
