/* ===================================
   Aurora v2 - Immersive Portfolio
   Single-Screen Interactive Experience
   =================================== */

/* CSS Variables */
:root {
    --bg-dark: #0F0F23;
    --bg-darker: #070714;
    --aurora-blue: #0080FF;
    --aurora-pink: #FF1493;
    --aurora-cyan: #00FFFF;
    --aurora-purple: #9945FF;
    --aurora-green: #00FF88;
    --card-bg: rgba(15, 15, 35, 0.7);
    --card-border: rgba(255, 255, 255, 0.08);
    --text: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.5);

    /* Glows */
    --glow-blue: 0 0 30px rgba(0, 128, 255, 0.3);
    --glow-pink: 0 0 30px rgba(255, 20, 147, 0.3);
    --glow-cyan: 0 0 30px rgba(0, 255, 255, 0.3);

    /* Transitions */
    --section-duration: 400ms;
    --section-easing: cubic-bezier(0.4, 0, 0.2, 1);
    --micro-fast: 150ms ease-out;
    --micro-medium: 250ms ease-out;
    --micro-slow: 400ms ease-out;

    /* Layout */
    --nav-dot-size: 10px;
    --nav-dot-active-size: 14px;
}

/* ===================================
   Base
   =================================== */

html {
    overflow: hidden;
}

body {
    background: var(--bg-dark);
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
}

html, body {
    max-width: 100vw;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===================================
   Aurora Background
   =================================== */

.aurora-bg {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    z-index: -3;
}

.aurora-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 128, 255, 0.3), transparent),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255, 20, 147, 0.2), transparent),
        radial-gradient(ellipse 70% 50% at 20% 80%, rgba(0, 255, 255, 0.15), transparent),
        radial-gradient(ellipse 50% 30% at 70% 90%, rgba(153, 69, 255, 0.2), transparent);
    z-index: -2;
    animation: auroraShift 15s ease-in-out infinite;
}

.aurora-mesh {
    position: fixed;
    inset: 0;
    background-size: 100px 100px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    z-index: -1;
    pointer-events: none;
}

@keyframes auroraShift {
    0%, 100% { opacity: 1; filter: hue-rotate(0deg); }
    33% { opacity: 0.9; filter: hue-rotate(15deg); }
    66% { opacity: 1; filter: hue-rotate(-10deg); }
}

/* Aurora Orbs */
.aurora-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    animation: floatOrb 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
    transition: transform 800ms ease-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 128, 255, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 20, 147, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.25) 0%, transparent 70%);
    top: 50%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 30px) scale(0.95); }
    75% { transform: translate(15px, -15px) scale(1.02); }
}

/* ===================================
   Section System
   =================================== */

.av2-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px);
    transition:
        opacity var(--section-duration) var(--section-easing),
        transform var(--section-duration) var(--section-easing),
        visibility 0s var(--section-duration);
    z-index: 1;
}

.av2-section--active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
        opacity var(--section-duration) var(--section-easing),
        transform var(--section-duration) var(--section-easing),
        visibility 0s 0s;
    z-index: 2;
}

.av2-section--exit-up {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-40px);
    transition:
        opacity 300ms ease-in,
        transform 300ms ease-in,
        visibility 0s 300ms;
    z-index: 1;
}

.av2-section--exit-down {
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px);
    transition:
        opacity 300ms ease-in,
        transform 300ms ease-in,
        visibility 0s 300ms;
    z-index: 1;
}

.av2-section-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem 1.5rem;
    padding-right: 4rem; /* space for dot nav */
}

.av2-section-scrollable {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: flex-start;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Scroll fade hint for scrollable sections */
.av2-section-scrollable::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, rgba(15, 15, 35, 0.8));
    pointer-events: none;
    flex-shrink: 0;
}

/* ===================================
   Section Reveal Animations
   =================================== */

.av2-reveal {
    opacity: 0;
    transform: translateY(20px);
}

.av2-section--active .av2-reveal {
    animation: av2FadeInUp 500ms ease-out forwards;
}

.av2-section--active .av2-reveal:nth-child(1) { animation-delay: 50ms; }
.av2-section--active .av2-reveal:nth-child(2) { animation-delay: 100ms; }
.av2-section--active .av2-reveal:nth-child(3) { animation-delay: 150ms; }
.av2-section--active .av2-reveal:nth-child(4) { animation-delay: 200ms; }
.av2-section--active .av2-reveal:nth-child(5) { animation-delay: 250ms; }
.av2-section--active .av2-reveal:nth-child(6) { animation-delay: 300ms; }
.av2-section--active .av2-reveal:nth-child(7) { animation-delay: 350ms; }
.av2-section--active .av2-reveal:nth-child(8) { animation-delay: 400ms; }

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

/* ===================================
   Section Title
   =================================== */

.av2-section-title {
    font-family: 'Archivo', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 0 40px rgba(0, 128, 255, 0.3);
}

.av2-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--aurora-blue), var(--aurora-pink), var(--aurora-cyan));
    border-radius: 2px;
    margin: 12px auto 0;
    box-shadow: var(--glow-blue);
}

/* ===================================
   Cards
   =================================== */

.av2-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform var(--micro-medium), box-shadow var(--micro-medium), border-color var(--micro-medium);
}

.av2-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--glow-blue);
    border-color: rgba(0, 128, 255, 0.2);
}

/* Animated gradient border */
.av2-card-glow {
    position: relative;
    overflow: hidden;
}

.av2-card-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 17px;
    padding: 1px;
    background: linear-gradient(135deg, var(--aurora-blue), var(--aurora-pink), var(--aurora-cyan), var(--aurora-purple));
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--micro-medium);
    animation: gradientBorderShift 4s linear infinite paused;
}

.av2-card-glow:hover::before {
    opacity: 0.6;
    animation-play-state: running;
}

@keyframes gradientBorderShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.av2-card-highlight {
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.2) 0%, rgba(153, 69, 255, 0.2) 100%);
    border-color: var(--aurora-blue);
}

/* ===================================
   Portrait & Avatar
   =================================== */

.av2-portrait {
    width: min(260px, 75vw);
    aspect-ratio: 3/4;
    border-radius: 20px;
    border: 2px solid rgba(0, 128, 255, 0.5);
    box-shadow: var(--glow-blue), 0 20px 60px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: av2Glow 3s ease-in-out infinite;
}

.av2-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.av2-portrait::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 128, 255, 0.15) 100%);
    pointer-events: none;
}

.av2-avatar {
    width: min(200px, 60vw);
    aspect-ratio: 1/1;
    border-radius: 50%;
    border: 2px solid rgba(255, 20, 147, 0.5);
    box-shadow: var(--glow-pink), 0 15px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: av2GlowPink 3s ease-in-out infinite;
}

@keyframes av2Glow {
    0%, 100% { box-shadow: var(--glow-blue), 0 20px 60px rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 0 40px rgba(0, 255, 255, 0.4), 0 20px 60px rgba(0, 0, 0, 0.4); }
}

@keyframes av2GlowPink {
    0%, 100% { box-shadow: var(--glow-pink), 0 15px 40px rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 0 40px rgba(255, 20, 147, 0.5), 0 15px 40px rgba(0, 0, 0, 0.4); }
}

/* ===================================
   Buttons
   =================================== */

.av2-button-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--aurora-blue) 0%, var(--aurora-purple) 100%);
    color: white;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    box-shadow: var(--glow-blue);
    cursor: pointer;
    transition: all var(--micro-fast);
    position: relative;
    overflow: hidden;
}

.av2-button-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--aurora-pink) 0%, var(--aurora-cyan) 100%);
    opacity: 0;
    transition: opacity var(--micro-fast);
}

.av2-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px rgba(0, 128, 255, 0.5);
}

.av2-button-primary:hover::before { opacity: 1; }

.av2-button-primary span,
.av2-button-primary svg {
    position: relative;
    z-index: 1;
}

.av2-button-primary:active { transform: scale(0.98); }

.av2-button-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--text);
    font-weight: 600;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--micro-fast);
}

.av2-button-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--aurora-cyan);
    box-shadow: var(--glow-cyan);
}

.av2-button-secondary:active { transform: scale(0.98); }

/* ===================================
   Persistent CTA Button
   =================================== */

.av2-persistent-cta {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--aurora-blue), var(--aurora-purple));
    color: white;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    border: none;
    box-shadow: var(--glow-blue);
    cursor: pointer;
    transition: all var(--micro-fast);
    text-decoration: none;
}

.av2-persistent-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 128, 255, 0.5);
}

.av2-persistent-cta:active {
    transform: scale(0.98);
}

/* ===================================
   Badges & Pills
   =================================== */

.av2-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 128, 255, 0.15);
    color: var(--aurora-cyan);
    font-size: 14px;
    font-weight: 500;
    border-radius: 999px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.av2-badge-sm {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    white-space: nowrap;
}

.av2-badge-accent {
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--aurora-blue) 0%, var(--aurora-purple) 100%);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
}

.av2-badge-pink { background: linear-gradient(135deg, var(--aurora-pink) 0%, var(--aurora-purple) 100%); }
.av2-badge-cyan { background: linear-gradient(135deg, var(--aurora-cyan) 0%, var(--aurora-blue) 100%); }
.av2-badge-green { background: linear-gradient(135deg, var(--aurora-green) 0%, #00CC99 100%); }

.av2-pill {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 14px;
    border-radius: 14px;
    border: 1px solid var(--card-border);
    transition: all var(--micro-fast);
}

.av2-pill:hover {
    background: rgba(0, 128, 255, 0.1);
    border-color: var(--aurora-blue);
    color: var(--aurora-cyan);
    transform: translateY(-2px);
}

/* ===================================
   Skill Tags
   =================================== */

.av2-skill-tag {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    transition: all var(--micro-fast);
    cursor: default;
}

.av2-skill-tag:hover {
    background: rgba(0, 128, 255, 0.15);
    border-color: var(--aurora-blue);
    color: var(--aurora-cyan);
    transform: translateY(-2px);
    box-shadow: var(--glow-blue);
}

.av2-skill-tag-ai {
    display: inline-block;
    padding: 5px 10px;
    background: linear-gradient(135deg, rgba(0, 128, 255, 0.2) 0%, rgba(255, 20, 147, 0.2) 100%);
    color: var(--aurora-cyan);
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid var(--aurora-blue);
    transition: all var(--micro-fast);
    cursor: default;
}

.av2-skill-tag-ai:hover {
    background: linear-gradient(135deg, var(--aurora-blue) 0%, var(--aurora-pink) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--glow-blue);
}

.av2-tech-tag {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(0, 128, 255, 0.15);
    color: var(--aurora-cyan);
    font-size: 11px;
    font-weight: 500;
    border-radius: 6px;
    transition: all var(--micro-fast);
}

.av2-tech-tag:hover {
    background: var(--aurora-blue);
    color: white;
    box-shadow: var(--glow-blue);
}

/* ===================================
   Experience Section
   =================================== */

.av2-exp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: all var(--micro-medium);
    text-align: left;
}

.av2-exp-header:hover {
    background: rgba(0, 128, 255, 0.08);
    border-color: rgba(0, 128, 255, 0.2);
}

.av2-exp-header--active {
    background: rgba(0, 128, 255, 0.1);
    border-color: var(--aurora-blue);
    box-shadow: var(--glow-blue);
}

.av2-exp-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all var(--micro-medium);
    flex-shrink: 0;
}

.av2-exp-header--active .av2-exp-indicator {
    background: var(--aurora-cyan);
    border-color: var(--aurora-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.av2-exp-detail {
    display: none;
}

.av2-exp-detail--active {
    display: block;
    animation: av2FadeInUp 300ms ease-out;
}

.av2-project-card {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--card-border);
}

/* ===================================
   Bento Grid
   =================================== */

.av2-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .av2-bento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    .av2-bento-large {
        grid-column: span 2;
        grid-row: span 2;
    }
    .av2-bento-medium {
        grid-column: span 1;
        grid-row: span 2;
    }
}

@media (max-width: 767px) {
    .av2-bento-grid {
        grid-template-columns: 1fr;
    }
    .av2-bento-large,
    .av2-bento-medium {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ===================================
   Stat Numbers
   =================================== */

.av2-stat-number {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ===================================
   Gradient Text
   =================================== */

.text-gradient {
    background: linear-gradient(135deg, var(--aurora-blue) 0%, var(--aurora-pink) 50%, var(--aurora-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Dot Navigation
   =================================== */

#dot-nav {
    gap: 4px;
}

.av2-dot-nav__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
}

.av2-dot-nav__dot {
    width: var(--nav-dot-size);
    height: var(--nav-dot-size);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 300ms ease-out;
    flex-shrink: 0;
}

.av2-dot-nav__item:hover .av2-dot-nav__dot {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.av2-dot-nav__item--active .av2-dot-nav__dot {
    width: var(--nav-dot-active-size);
    height: var(--nav-dot-active-size);
    background: var(--aurora-cyan);
    border-color: var(--aurora-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

.av2-dot-nav__tooltip {
    position: static;
    margin-left: 10px;
    white-space: nowrap;
    padding: 0;
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transform: none;
    transition: color 200ms;
    pointer-events: none;
}

.av2-dot-nav__item--active .av2-dot-nav__tooltip {
    color: var(--aurora-cyan);
}

.av2-dot-nav__progress {
    width: 2px;
    height: 16px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1px;
    position: relative;
    overflow: hidden;
}

.av2-dot-nav__progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--aurora-cyan), var(--aurora-blue));
    transition: height 400ms ease-out;
}

/* ===================================
   Section Label (bottom-left)
   =================================== */

.av2-section-counter {
    transition: opacity 200ms;
}

.av2-section-name {
    transition: opacity 200ms;
}

/* ===================================
   Focus States
   =================================== */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--aurora-cyan);
    outline-offset: 2px;
}

/* ===================================
   Responsive: Mobile (<768px)
   =================================== */

@media (max-width: 767px) {
    .av2-section-inner {
        padding: 1.5rem 1rem;
        padding-right: 1rem;
    }

    .av2-section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .av2-stat-number {
        font-size: 1.5rem;
    }

    .av2-portrait {
        width: min(200px, 60vw);
    }

    .av2-avatar {
        width: min(160px, 50vw);
    }

    .av2-button-primary,
    .av2-button-secondary {
        padding: 10px 18px;
        font-size: 14px;
    }

    /* Move dot nav to bottom horizontal bar */
    #dot-nav {
        position: fixed;
        right: auto;
        top: auto;
        bottom: 12px;
        left: 50%;
        transform: translateX(-50%) !important;
        flex-direction: row;
        background: rgba(15, 15, 35, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 999px;
        padding: 6px 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        gap: 2px;
    }

    .av2-dot-nav__tooltip { display: none; }
    .av2-dot-nav__progress { display: none; }

    .av2-dot-nav__item {
        width: 32px;
        height: 32px;
        padding: 4px;
    }

    /* Hide section label on mobile */
    #section-label { display: none; }

    /* Hide persistent CTA on mobile */
    .av2-persistent-cta { display: none; }

    /* Center social buttons in Contact section on mobile */
    #contact .flex.gap-4.mt-6,
    #contact .flex.gap-4.mt-8 {
        justify-content: center;
    }

    /* Simplify orbs */
    .orb-1 {
        width: 200px;
        height: 200px;
        top: -50px;
        right: -50px;
    }
    .orb-2 {
        width: 180px;
        height: 180px;
        bottom: -50px;
        left: -50px;
    }
    .orb-3 { display: none; }

    /* Disable gradient border animation on mobile */
    .av2-card-glow::before { animation: none; }

    /* Make scrollable sections have bottom padding for bottom nav */
    .av2-section-scrollable {
        padding-bottom: 4.5rem;
    }
}

/* Very small screens */
@media (max-width: 374px) {
    .av2-section-title { font-size: 1.25rem; }
    .av2-button-primary,
    .av2-button-secondary {
        padding: 10px 14px;
        font-size: 13px;
        gap: 6px;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .av2-portrait {
        width: 280px;
        height: 370px;
        aspect-ratio: auto;
    }
    .av2-avatar {
        width: 240px;
        height: 240px;
        aspect-ratio: auto;
    }
    .av2-section-title {
        font-size: 2.25rem;
        margin-bottom: 2rem;
    }
}

/* Large desktop */
@media (min-width: 1440px) {
    .av2-section-inner {
        padding: 3rem 2rem;
        padding-right: 5rem;
    }
    .av2-portrait {
        width: 320px;
        height: 430px;
    }
    .av2-avatar {
        width: 280px;
        height: 280px;
    }
    .av2-section-title {
        font-size: 2.5rem;
    }
    .av2-stat-number {
        font-size: 2.5rem;
    }
}

/* ===================================
   Reduced Motion
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .av2-section {
        transition: opacity 100ms, visibility 0s !important;
        transform: none !important;
    }
    .av2-section--active { transform: none !important; }
    .av2-section--exit-up,
    .av2-section--exit-down { transform: none !important; }

    .av2-reveal {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .aurora-orb,
    .aurora-gradient {
        animation: none;
    }

    .av2-card-glow::before { animation: none; }
    .av2-portrait,
    .av2-avatar { animation: none; }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ===================================
   Print
   =================================== */

@media print {
    .aurora-orb, .aurora-gradient, .aurora-mesh,
    #dot-nav, #section-label, #nav-hint { display: none; }
    body { background: white; overflow: visible; }
    .av2-section { position: relative; opacity: 1; visibility: visible; transform: none; height: auto; }
    .av2-card { background: #f5f5f5; border: 1px solid #ddd; backdrop-filter: none; }
}
