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

:root {
    /* Color Palette - Premium Dark Theme */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --elegant-blue: #0052ff;
    --accent-color: #0052ff;
    --accent-secondary: #0041cc;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);

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

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Effects */
    --blur-sm: 10px;
    --blur-md: 20px;
    --blur-lg: 30px;
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
    --shadow-strong: 0 10px 40px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    overflow-x: hidden;
    background: #000;
    line-height: 1.6;
}

/* ========================================
   VIDEO BACKGROUND
   ======================================== */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 82, 255, 0.2) 0%,
            rgba(0, 65, 204, 0.3) 50%,
            rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(2px);
}

/* ========================================
   SUBPAGE BACKGROUND (BLURRED BLUE)
   ======================================== */
.subpage-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #02040a;
    overflow: hidden;
}

.subpage-bg::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 600px;
    height: 600px;
    background: rgba(0, 82, 255, 0.1);
    border-radius: 50%;
    filter: blur(120px);
    animation: pulseBg 10s infinite alternate;
}

.subpage-bg::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: rgba(0, 65, 204, 0.08);
    border-radius: 50%;
    filter: blur(100px);
    animation: pulseBg 15s infinite alternate-reverse;
}

@keyframes pulseBg {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

/* ========================================
   NAVIGATION MENU - LEFT SIDE
   ======================================== */
.main-nav {
    position: fixed;
    top: 50%;
    left: var(--spacing-xl);
    transform: translateY(-50%);
    z-index: 100;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.nav-item {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease forwards;
}

.nav-item:nth-child(1) {
    animation-delay: 0.1s;
}

.nav-item:nth-child(2) {
    animation-delay: 0.2s;
}

.nav-item:nth-child(3) {
    animation-delay: 0.3s;
}

.nav-item:nth-child(4) {
    animation-delay: 0.4s;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    position: relative;
    transition: all var(--transition-normal);
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--elegant-blue);
    transition: width var(--transition-normal);
    z-index: -1;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-primary);
    transform: translateX(10px);
    text-shadow: var(--shadow-glow);
}

.nav-link.active {
    color: var(--text-primary);
    font-weight: 700;
}

.nav-link.active::before {
    width: 100%;
}

.nav-number {
    display: none;
}

.nav-text {
    position: relative;
}

/* ========================================
   SOCIAL MEDIA ICONS - BOTTOM LEFT
   ======================================== */
.social-media {
    position: fixed;
    bottom: var(--spacing-xl);
    left: var(--spacing-xl);
    display: flex;
    gap: var(--spacing-md);
    z-index: 100;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-sm));
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s ease forwards;
}

.social-link:nth-child(1) {
    animation-delay: 0.2s;
}

.social-link:nth-child(2) {
    animation-delay: 0.3s;
}

.social-link:nth-child(3) {
    animation-delay: 0.4s;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--elegant-blue);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    color: var(--text-primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-color);
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-fast);
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* ========================================
   MAIN CONTENT & HERO
   ======================================== */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.hero-content {
    text-align: center;
    max-width: 900px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, #ffffff 0%, #0052ff 50%, #0041cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(102, 126, 234, 0.5);
}

.title-line {
    display: block;
    animation: glowPulse 3s ease-in-out infinite;
}

.title-line:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: var(--spacing-lg);
    position: relative;
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--border-glass);
    border-radius: 50px;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

@keyframes glowPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(118, 75, 162, 0.8));
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .main-nav {
        left: var(--spacing-lg);
    }

    .nav-link {
        font-size: 1rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .main-nav {
        top: auto;
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 90%;
        max-width: 450px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 25px;
        padding: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-list {
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
    }

    .nav-item {
        transform: none;
        animation: fadeInUp 0.5s ease forwards;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 10px 5px;
        flex-direction: column;
        gap: 2px;
        text-align: center;
        border-radius: 15px;
    }

    .nav-link::before {
        display: none;
        /* Hide the background slide effect on mobile */
    }

    .nav-link.active {
        background: rgba(0, 82, 255, 0.2);
        color: #fff;
    }

    .social-media {
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
        gap: var(--spacing-sm);
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .hero-content {
        padding-bottom: 180px;
        width: 100%;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 1.5rem;
        --spacing-lg: 1rem;
        --spacing-2xl: 2rem;
    }

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

    .main-content {
        padding: var(--spacing-lg);
    }

    .nav-link {
        font-size: 0.75rem;
    }
}

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

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

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 4px;
}

/* ========================================
   PREMIUM PRELOADER
   ======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-logo {
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0-15px var(--elegant-blue));
    animation: loaderPulse 2s infinite ease-in-out;
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--elegant-blue);
    animation: loadingBar 1.5s infinite ease-in-out;
}

@keyframes loaderPulse {

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

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

@keyframes loadingBar {
    0% {
        left: -100%;
    }

    50% {
        left: 0;
    }

    100% {
        left: 100%;
    }
}

/* ========================================
   PAGE TRANSITIONS
   ======================================== */
.fade-in-page {
    animation: pageFadeIn 0.8s ease forwards;
}

.fade-out-page {
    animation: pageFadeOut 0.5s ease forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* ========================================
   404 PAGE STYLES
   ======================================== */
.error-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-lg);
}

.error-content {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--blur-md));
    border: 1px solid var(--border-glass);
    padding: var(--spacing-2xl);
    border-radius: 30px;
    max-width: 600px;
    width: 100%;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    font-family: var(--font-primary);
    background: linear-gradient(to bottom, #fff, var(--elegant-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: var(--spacing-sm);
}

.error-title {
    font-size: 2rem;
    font-family: var(--font-primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: 2px;
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
}