/* ============================================
   CSS Variables - Reusable colors and values
   ============================================ */
:root {
    /* Primary colors */
    --color-primary-blue: rgba(100, 150, 255, 0.9);
    --color-primary-blue-light: rgba(120, 170, 255, 1);
    --color-primary-blue-dark: rgba(80, 120, 200, 0.4);
    
    /* Overlay colors */
    --overlay-dark-start: rgba(10, 20, 40, 0.85);
    --overlay-dark-middle: rgba(15, 30, 55, 0.9);
    --overlay-dark-end: rgba(10, 20, 40, 0.85);
    
    /* Text colors */
    --text-color: #e0e0e0;
    --text-shadow-color: rgba(80, 120, 200, 0.4);
    --text-gradient-start: #64B5F6;
    --text-gradient-middle: #4FC3F7;
    --text-gradient-end: #29B6F6;
    
    /* Transitions */
    --transition-fast: 0.3s ease-in-out;
    --transition-medium: 1.5s ease-in-out;
    --transition-slow: 3s ease-in-out;
    
    /* Z-indexes */
    --z-background: 1;
    --z-overlay: 2;
    --z-effects: 3;
    --z-content: 10;
    --z-telegram: 100;
}

/* ============================================
   Peyda Font Definitions
   ============================================ */
@font-face {
    font-family: 'Peyda';
    src: url('../fonts/Peyda-Thin[@mimvid].ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/Peyda-ExtraLight[@mimvid].ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/Peyda-Light[@mimvid].ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/Peyda-Regular[@mimvid].ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/Peyda-Medium[@mimvid].ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/Peyda-SemiBold[@mimvid].ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/Peyda-Bold[@mimvid].ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/Peyda-ExtraBold[@mimvid].ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Peyda';
    src: url('../fonts/Peyda-Black[@mimvid].ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   Reset و Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Peyda', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Background Container
   ============================================ */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background_2k.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: subtle-zoom 20s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes subtle-zoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.05);
    }
}

/* ============================================
   Overlay Dark
   ============================================ */
.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--overlay-dark-start) 0%,
        var(--overlay-dark-middle) 50%,
        var(--overlay-dark-end) 100%
    );
    z-index: var(--z-overlay);
    animation: overlay-pulse 8s ease-in-out infinite;
    transition: opacity var(--transition-medium), background var(--transition-medium);
}

@keyframes overlay-pulse {
    0%, 100% {
        opacity: 0.9;
    }
    50% {
        opacity: 0.8;
    }
}

/* ============================================
   Dynamic Light Rays
   ============================================ */
.light-ray {
    position: absolute;
    width: 300px;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        rgba(100, 150, 255, 0.3) 0%,
        rgba(50, 100, 200, 0.2) 30%,
        transparent 70%
    );
    z-index: var(--z-effects);
    animation: light-move 15s ease-in-out infinite;
    pointer-events: none;
    transition: opacity var(--transition-medium), transform var(--transition-medium);
    will-change: transform, opacity;
}

.light-ray-1 {
    top: -10%;
    left: 20%;
    transform: rotate(25deg);
    animation: light-move 12s ease-in-out infinite;
    animation-delay: 0s;
}

.light-ray-2 {
    top: -10%;
    right: 30%;
    transform: rotate(-20deg);
    animation: light-move 18s ease-in-out infinite;
    animation-delay: 4s;
}

.light-ray-3 {
    bottom: -10%;
    left: 50%;
    transform: rotate(15deg);
    animation: light-move 14s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes light-move {
    0% {
        transform: translateX(-100px) translateY(-50px) rotate(25deg);
        opacity: 0.3;
    }
    25% {
        opacity: 0.6;
    }
    50% {
        transform: translateX(100px) translateY(50px) rotate(25deg);
        opacity: 0.4;
    }
    75% {
        opacity: 0.7;
    }
    100% {
        transform: translateX(-100px) translateY(-50px) rotate(25deg);
        opacity: 0.3;
    }
}

/* ============================================
   Central Glow Effect
   ============================================ */
.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle,
        rgba(100, 150, 255, 0.25) 0%,
        rgba(50, 100, 200, 0.15) 40%,
        transparent 70%
    );
    border-radius: 50%;
    z-index: var(--z-effects);
    animation: glow-pulse 6s ease-in-out infinite;
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes glow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.5;
    }
}

/* ============================================
   Main Content
   ============================================ */
.content {
    position: relative;
    z-index: var(--z-content);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

.coming-soon {
    font-size: 6rem;
    font-weight: 850;
    color: var(--text-color);
    text-shadow: 
        0 0 10px var(--text-shadow-color),
        0 0 20px rgba(80, 120, 200, 0.3),
        0 0 30px rgba(80, 120, 200, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.1em;
    animation: text-glow var(--transition-slow) ease-in-out infinite;
    text-align: center;
    font-family: 'Peyda', 'Arial', sans-serif;
    padding: 0 20px;
    line-height: 1.2;
}

@keyframes text-glow {
    0%, 100% {
        text-shadow: 
            0 0 10px var(--text-shadow-color),
            0 0 20px rgba(80, 120, 200, 0.3),
            0 0 30px rgba(80, 120, 200, 0.2),
            0 2px 4px rgba(0, 0, 0, 0.6);
    }
    50% {
        text-shadow: 
            0 0 15px rgba(90, 130, 210, 0.5),
            0 0 25px rgba(90, 130, 210, 0.4),
            0 0 35px rgba(90, 130, 210, 0.3),
            0 2px 4px rgba(0, 0, 0, 0.6);
    }
}

/* ============================================
   Telegram Icon
   ============================================ */
.telegram-icon {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: var(--z-telegram);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 150, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-fast), 
                background var(--transition-fast), 
                box-shadow var(--transition-fast);
    box-shadow: 0 4px 15px rgba(100, 150, 255, 0.3);
    text-decoration: none;
    cursor: pointer;
}

.telegram-icon:focus {
    outline: 2px solid var(--color-primary-blue);
    outline-offset: 2px;
}

.telegram-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--color-primary-blue);
    transition: fill var(--transition-fast);
}

.telegram-icon:hover {
    transform: scale(1.15);
    background: rgba(100, 150, 255, 0.35);
    box-shadow: 0 6px 20px rgba(100, 150, 255, 0.5);
}

.telegram-icon:hover svg {
    fill: var(--color-primary-blue-light);
}

/* ============================================
   Interactive Mouse Effects
   ============================================ */
body:hover .overlay-dark {
    animation-duration: 4s;
    opacity: 0.75;
}

body:hover .light-ray {
    animation-duration: 8s;
    opacity: 0.5;
}

/* ============================================
   Media Queries - Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .coming-soon {
        font-size: 4rem;
    }
    
    .glow-effect {
        width: 600px;
        height: 600px;
    }
}

@media (max-width: 768px) {
    .coming-soon {
        font-size: 3rem;
        padding: 0 15px;
    }
    
    .glow-effect {
        width: 400px;
        height: 400px;
    }
    
    .light-ray {
        width: 200px;
    }
    
    .background-image {
        animation: subtle-zoom 15s ease-in-out infinite alternate;
    }
}

@media (max-width: 480px) {
    .coming-soon {
        font-size: 2.2rem;
        padding: 0 10px;
        letter-spacing: 0.05em;
    }
    
    .glow-effect {
        width: 300px;
        height: 300px;
    }
    
    .light-ray {
        width: 150px;
    }
    
    .overlay-dark {
        background: linear-gradient(
            135deg,
            rgba(8, 15, 30, 0.9) 0%,
            rgba(12, 25, 45, 0.95) 50%,
            rgba(8, 15, 30, 0.9) 100%
        );
    }
    
    .telegram-icon {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
    }
    
    .telegram-icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 360px) {
    .coming-soon {
        font-size: 1.8rem;
    }
    
    .glow-effect {
        width: 250px;
        height: 250px;
    }
    
    .telegram-icon {
        width: 40px;
        height: 40px;
        bottom: 15px;
        left: 15px;
    }
    
    .telegram-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* ============================================
   Reduced Motion - Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

