/* ============================================
   Eternal Me - Premium Design System
   Version: 2.0
   ============================================ */

/* ============================================
   1. CSS VARIABLES & THEME
   ============================================ */
:root {
    /* Elegant Color Palette */
    --primary: #64B5F6;
    /* Refined Sky Blue */
    --primary-light: #90CAF9;
    /* Light Sky Blue */
    --primary-dark: #42A5F5;
    /* Deep Sky Blue */

    --accent: #B794F4;
    /* Soft Lavender */
    --accent-light: #D6BCFA;
    /* Light Lavender */
    --accent-dark: #9F7AEA;
    /* Deep Lavender */

    --gold: #F6E05E;
    /* Elegant Gold */
    --gold-light: #FAF089;
    /* Champagne */
    --gold-dark: #ECC94B;
    /* Deep Gold */

    /* Background Colors */
    --bg-main: #0F0F14;
    /* Deep Space Black */
    --bg-secondary: #1A1A23;
    /* Midnight Blue */
    --bg-tertiary: #252531;
    /* Dark Charcoal */
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-hover: rgba(255, 255, 255, 0.05);

    /* Gradient Backgrounds */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-elegant: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --gradient-premium: linear-gradient(135deg, #0F0F14 0%, #1a1f3a 100%);
    --gradient-gold: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);

    /* Text Colors */
    --text: #FFFFFF;
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.4);

    /* UI Elements */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-focus: rgba(100, 181, 246, 0.5);

    /* Shadows & Glows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(100, 181, 246, 0.3);
    --shadow-glow-accent: 0 0 40px rgba(183, 148, 244, 0.3);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-cubic: cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 100px;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-main);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   3. ANIMATED BACKGROUND
   ============================================ */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-tertiary) 100%);
    overflow: hidden;
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background:
        radial-gradient(circle at 20% 50%, rgba(100, 181, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(183, 148, 244, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(246, 224, 94, 0.05) 0%, transparent 50%);
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   4. FLOATING PARTICLES
   ============================================ */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: drift 30s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(100, 181, 246, 0.6);
}

.particle:nth-child(odd) {
    background: var(--accent);
    box-shadow: 0 0 10px rgba(183, 148, 244, 0.6);
    animation: drift-reverse 32s infinite ease-in-out;
}

.particle:nth-child(3n) {
    width: 2px;
    height: 2px;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(246, 224, 94, 0.6);
    animation: drift-horizontal 35s infinite ease-in-out;
}

.particle:nth-child(5n) {
    animation: drift-diagonal 28s infinite ease-in-out;
}

.particle:nth-child(7n) {
    animation: drift-circular 33s infinite ease-in-out;
}

@keyframes drift {

    0%,
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }

    25% {
        opacity: 0.8;
        transform: translate(100px, -150px) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50px, -300px) scale(1.2);
    }

    75% {
        opacity: 0.8;
        transform: translate(150px, -100px) scale(1);
    }
}

@keyframes drift-reverse {

    0%,
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.5);
    }

    25% {
        opacity: 0.6;
        transform: translate(-120px, 100px) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(80px, 250px) scale(1.1);
    }

    75% {
        opacity: 0.6;
        transform: translate(-100px, 50px) scale(0.9);
    }
}

@keyframes drift-horizontal {

    0%,
    100% {
        opacity: 0;
        transform: translate(0, 0) scale(0.8);
    }

    25% {
        opacity: 0.7;
        transform: translate(200px, 50px) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-200px, -50px) scale(1.2);
    }

    75% {
        opacity: 0.7;
        transform: translate(150px, 30px) scale(1);
    }
}

@keyframes drift-diagonal {

    0%,
    100% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        opacity: 0.5;
        transform: translate(150px, 150px) rotate(90deg);
    }

    50% {
        opacity: 1;
        transform: translate(-100px, -100px) rotate(180deg);
    }

    75% {
        opacity: 0.5;
        transform: translate(100px, -150px) rotate(270deg);
    }
}

@keyframes drift-circular {

    0%,
    100% {
        opacity: 0;
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        opacity: 0.7;
        transform: translate(100px, 0) rotate(90deg);
    }

    50% {
        opacity: 1;
        transform: translate(100px, 100px) rotate(180deg);
    }

    75% {
        opacity: 0.7;
        transform: translate(0, 100px) rotate(270deg);
    }
}

/* ============================================
   5. ENHANCED NAVIGATION
   ============================================ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: linear-gradient(180deg, rgba(15, 15, 20, 0.95) 0%, rgba(15, 15, 20, 0) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all var(--transition-base);
}

nav.scrolled {
    background: rgba(15, 15, 20, 0.98);
    backdrop-filter: blur(30px);
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1px;
    position: relative;
    transition: all var(--transition-base);
}

.logo:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

.logo::after {
    content: '™';
    font-size: 0.5em;
    position: absolute;
    top: 0;
    right: -1em;
    opacity: 0.5;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-base);
    cursor: pointer;
    padding: var(--space-xs) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary);
}

/* Enhanced Begin Journey Button */
.nav-cta-enhanced {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
    transition: all 0.4s var(--transition-cubic);
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Button Glow Effect */
.button-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.nav-cta-enhanced:hover .button-glow {
    opacity: 1;
    animation: pulse-glow 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Button Text */
.button-text {
    position: relative;
    z-index: 2;
}

/* Animated Stars */
.button-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.button-stars i {
    position: absolute;
    display: block;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    opacity: 0;
}

.button-stars i:nth-child(1) {
    top: 20%;
    left: 10%;
    animation: star-float 3s linear infinite;
}

.button-stars i:nth-child(2) {
    top: 80%;
    left: 30%;
    animation: star-float 3s linear infinite 0.5s;
}

.button-stars i:nth-child(3) {
    top: 40%;
    left: 70%;
    animation: star-float 3s linear infinite 1s;
}

.button-stars i:nth-child(4) {
    top: 60%;
    left: 90%;
    animation: star-float 3s linear infinite 1.5s;
}

@keyframes star-float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

.nav-cta-enhanced:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 10px 30px rgba(102, 126, 234, 0.6),
        0 20px 60px rgba(118, 75, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.nav-cta-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.7s ease;
}

.nav-cta-enhanced:hover::before {
    left: 100%;
}

/* Nav login item separator */
.nav-login-item {
    margin-left: 3rem !important;
    padding-left: 1rem;
    position: relative;
}

.nav-login-item::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   6. MOBILE MENU
   ============================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: 1001;
    padding: var(--space-xs);
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-base);
    border-radius: var(--radius-full);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   7. HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
    position: relative;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(246, 224, 94, 0.1);
    border: 1px solid rgba(246, 224, 94, 0.3);
    padding: 0.6rem 1.8rem;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
    animation: pulse-badge 2s ease-in-out infinite;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    margin-right: var(--space-xs);
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(246, 224, 94, 0.2);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(246, 224, 94, 0.3);
    }
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-lg);
    letter-spacing: -2px;
    background: linear-gradient(135deg,
            var(--text) 0%,
            var(--primary) 35%,
            var(--accent) 70%,
            var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    letter-spacing: 0.5px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--gradient-primary);
    color: var(--text);
    padding: 1.2rem 3rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s var(--transition-cubic);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
}

.hero-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-glow-accent), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-cta:hover::before {
    width: 300px;
    height: 300px;
}

.hero-cta i {
    transition: transform var(--transition-base);
}

.hero-cta:hover i {
    transform: translateX(5px);
}

/* ============================================
   8. SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.6;
}

@keyframes bounce {

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

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   9. SECTIONS
   ============================================ */
.section {
    padding: var(--space-3xl) var(--space-lg);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   10. FEATURES SECTION
   ============================================ */
.features {
    background: linear-gradient(180deg, transparent 0%, rgba(100, 181, 246, 0.02) 50%, transparent 100%);
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--transition-cubic);
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(100, 181, 246, 0.05) 50%,
            rgba(183, 148, 244, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-light);
    box-shadow: 0 20px 60px rgba(100, 181, 246, 0.15);
    background: var(--bg-hover);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    font-size: 1.5rem;
    color: var(--text);
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-glow-accent);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   11. SHOWCASE SECTION
   ============================================ */
.showcase {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, transparent 0%, rgba(183, 148, 244, 0.02) 100%);
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.showcase-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-lg);
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.showcase-features {
    display: grid;
    gap: var(--space-sm);
}

.showcase-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.showcase-feature:hover {
    background: rgba(183, 148, 244, 0.05);
    border-color: rgba(183, 148, 244, 0.3);
    transform: translateX(5px);
}

.showcase-feature i {
    color: var(--accent);
    font-size: 1.2rem;
}

/* ============================================
   12. DEVICE VISUALIZATION
   ============================================ */
.device-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.device-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(183, 148, 244, 0.2) 0%, transparent 70%);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.device {
    position: relative;
    width: 280px;
    height: 60px;
    background: linear-gradient(135deg, #2a2a3e 0%, #16213e 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: float-device 3s ease-in-out infinite;
}

@keyframes float-device {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.device-screen {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 45px;
    background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 15px;
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.device-logo {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    color: #333;
    letter-spacing: 1px;
}

.device-button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 3px 10px rgba(183, 148, 244, 0.3);
}

.device-button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(183, 148, 244, 0.5);
}

.device-button i {
    font-size: 12px;
    color: var(--text);
}

.device-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

/* ============================================
   13. CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--space-3xl) var(--space-lg);
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.05) 0%, rgba(183, 148, 244, 0.05) 100%);
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   14. PAGES
   ============================================ */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   15. LOGIN/SIGNUP/REQUEST PAGE FIXES
   ============================================ */
/* Fix for all auth pages to prevent header overlap */
.login-container,
.signup-container,
.request-container,
.thank-you-container {
    margin-top: 100px !important;
    /* Account for fixed navbar */
    padding: 0 2rem 40px;
}

/* About section fixes (keep existing) */
.about-section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-bottom: 6rem !important;
}

.about-section .cta-section {
    position: relative;
    z-index: 2;
    margin-top: 4rem;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    background: transparent !important;
}

.team-section {
    position: relative;
    z-index: 3;
    background: var(--bg-main);
    padding: var(--space-xl) 0;
}

/* ============================================
   16. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .showcase-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }

    .showcase-content {
        order: 2;
    }

    .device-container {
        order: 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu.active {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: rgba(15, 15, 20, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-md);
        z-index: 999;
        animation: slideIn 0.3s ease;
        padding: var(--space-lg);
    }

    /* Fix for navigation items on mobile */
    .nav-menu.active li {
        width: 100%;
        text-align: center;
    }

    .nav-menu.active .nav-link {
        display: block;
        padding: var(--space-sm);
        font-size: 1.1rem;
    }

    /* Fix for Begin Journey button on mobile */
    .nav-login-item {
        margin-left: 0 !important;
        padding-left: 0;
        margin-top: var(--space-md);
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-login-item::before {
        display: none;
    }

    .nav-cta-enhanced {
        width: auto;
        min-width: 200px;
        text-align: center;
        justify-content: center;
        padding: 0.8rem 2rem;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(100%);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        padding-bottom: 8rem !important;
    }

    .about-section .cta-section {
        margin-bottom: 6rem;
    }

    /* Fix for page content overlap on mobile - keep existing margins */
    .login-container,
    .signup-container,
    .request-container {
        margin-top: 120px !important;
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2.5rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }

    .nav-container {
        padding: 0 var(--space-md);
    }

    /* Even more top margin on very small screens */
    .login-container,
    .signup-container,
    .request-container {
        margin-top: 100px !important;
    }

    /* Ensure button is properly sized on small screens */
    .nav-cta-enhanced {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
        min-width: 180px;
    }

    .hero {
        padding: var(--space-2xl) var(--space-md);
        padding-top: 100px;
    }

    .section {
        padding: var(--space-2xl) var(--space-md);
    }

    .feature-card {
        padding: var(--space-lg);
    }
}

/* ============================================
   17. UTILITIES
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow {
    box-shadow: var(--shadow-glow);
}

.no-scroll {
    overflow: hidden;
}

/* ============================================
   18. ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {

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

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ============================================
   19. PRINT STYLES
   ============================================ */
@media print {

    .universe-container,
    .floating-orbs,
    nav,
    .scroll-indicator {
        display: none;
    }

    .page {
        display: block !important;
    }

    body {
        background: white;
        color: black;
    }
}