/* ============================================
   CUSTOM FONTS
   ============================================ */
@font-face {
    font-family: 'DrukTextWideCyr';
    src: url("/static/fonts/druktextwidecyr-bold.69e019ec88b0.otf") format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Affect';
    src: url("/static/fonts/affect_bold.0425ff2e8f40.otf") format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   VIDEO BACKGROUND
   ============================================ */
.video-background {
    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: translateX(-50%) translateY(-50%) translateZ(0);
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.bg-video.active {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Even darker overlay */
    backdrop-filter: blur(3px); /* Slight blur */
    z-index: 1;
    filter: brightness(1);
    transition: all 0.8s ease-in-out;
}

/* ============================================
   RESET & VARIABLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Grey/Black Theme */
    --primary-bg: #0a0a0a;
    --secondary-bg: #1a1a1a;
    --accent-color: #666666;
    --accent-secondary: #888888;
    --accent-tertiary: #555555;
    --text-primary: #e0e0e0;
    --text-secondary: #999999;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.06);
    
    /* Fonts */
    --font-primary: 'Affect', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'DrukTextWideCyr', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

html {
    scroll-behavior: auto; /* Disable native smooth scroll, Lenis will handle it */
    scroll-padding-top: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
}


body {
    font-family: var(--font-primary);
    background: transparent;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    overflow: hidden; /* Disable scroll initially for loader */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Disable image dragging */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* ============================================
   CUSTOM SCROLLBAR - HIDDEN FOR LENIS
   ============================================ */
/* Hide scrollbar completely for smooth virtual scroll */
::-webkit-scrollbar {
    display: none;
}

/* Firefox */
html {
    scrollbar-width: none;
}

/* IE and Edge */
body {
    -ms-overflow-style: none;
}

/* ============================================
   DOT NAVIGATION
   ============================================ */
.navigation-dots {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2s;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.nav-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.nav-dot.active::before {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.5);
}

/* Tooltip */
.nav-dot::after {
    content: attr(data-label);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: rgba(0, 0, 0, 0.8);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-dot:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
    .navigation-dots {
        display: none;
    }
}


/* ============================================
   GLASSMORPHISM UTILITIES
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: var(--spacing-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Safari-specific fix for glass effect */
@supports (-webkit-backdrop-filter: blur(20px)) {
    .glass-card {
        background: rgba(10, 10, 10, 0.6);
        border-color: rgba(255, 255, 255, 0.05);
    }
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(100, 100, 100, 0.3);
}

@supports (-webkit-backdrop-filter: blur(20px)) {
    .glass-card:hover {
        background: rgba(20, 20, 20, 0.7);
        border-color: rgba(255, 255, 255, 0.1);
    }
}


/* ============================================
   SCROLL REVEAL ANIMATION
   ============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

