/* Styles for AETHER Scroll Landing Page */

:root {
    --bg-color: #030712;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --accent: #6366f1; /* Indigo */
    --accent-glow: rgba(99, 102, 241, 0.4);
    --accent-cyan: #06b6d4;
    --glass-bg: rgba(17, 24, 39, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

/* Loader Styling */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
}

.loader-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    width: 300px;
}

.loader-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 0.8rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite ease-in-out;
}

.loader-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-cyan) 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.loader-status {
    color: var(--text-secondary);
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

/* Ambient Background Backgrounds */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center center;
    z-index: -3;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(160px);
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
    mix-blend-mode: screen;
}

.glow-1 {
    top: -200px;
    left: -200px;
    background: var(--accent);
}

.glow-2 {
    bottom: -200px;
    right: -200px;
    background: var(--accent-cyan);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.3rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
    transition: width 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
}

.nav-item.active::after {
    width: 100%;
}

/* Video Containers */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02); /* Slight scale to prevent tiny border issues during seeking */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(3, 7, 18, 0.2) 0%, rgba(3, 7, 18, 0.8) 100%);
    z-index: 1;
}

/* Scroll Tracker (Dots) */
.scroll-tracker {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 90;
}

.tracker-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.tracker-dot.active {
    background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan);
    transform: scale(1.4);
}

/* Scroll Sections layout */
.scroll-sections {
    position: relative;
    z-index: 10;
}

.scroll-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
}

.section-content {
    max-width: 600px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Content Alignment styles */
.align-left {
    margin-right: auto;
    text-align: left;
}

.align-right {
    margin-left: auto;
    text-align: left;
}

.align-center {
    margin: 0 auto;
    text-align: center;
    max-width: 700px;
}

/* Section visibility animations triggerable via JS */
.scroll-section.active .section-content {
    opacity: 1;
    transform: translateY(0);
}

/* Typography & Elements */
.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--accent);
    padding-left: 0.75rem;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(99,102,241,0.2));
}

.lead-text {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* Scroll Hint mouse icon */
.scroll-hint {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite ease-in-out;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.card-metric {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.card-label {
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15rem;
}

/* Features checklist */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.feature-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-cyan);
    box-shadow: 0 0 8px var(--accent-cyan);
}

/* Buttons */
.btn {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #4f46e5 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-tertiary {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.btn-tertiary:hover {
    color: var(--text-primary);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Footer & Overlay details */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    font-size: 0.75rem;
    color: var(--text-secondary);
    pointer-events: none;
    letter-spacing: 0.05rem;
}

/* Keyframes animations */
@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }
    50% {
        top: 18px;
        opacity: 0;
    }
    100% {
        top: 6px;
        opacity: 1;
    }
}

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

/* Responsiveness */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .main-title {
        font-size: 2.75rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .scroll-tracker {
        right: 1.5rem;
    }
    
    .footer {
        padding: 1.5rem 2rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
