/* ============================================
   SKINOZ Landing Page - Custom Styles
   ============================================ */

/* CSS Variables - Design System */
:root {
    /* Цвета */
    --bg-primary: #0A0A0F;
    --bg-secondary: #14141A;
    --text-primary: #EAEAEA;
    --text-secondary: #A0A0A0;
    --accent-primary: #00FF7F;
    --accent-secondary: #4EFFC6;
    --error: #FF4B4B;
    --info: #4DDCFF;
    
    /* Типографика */
    --font-orbitron: 'Orbitron', 'Poppins', 'Segoe UI', Roboto, sans-serif;
    --font-poppins: 'Poppins', 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 48px;
    --spacing-4xl: 64px;
    
    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 16px rgba(0, 255, 127, 0.5);
    --shadow-glow-hover: 0 0 24px rgba(0, 255, 127, 0.3);
}

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-poppins);
    background: linear-gradient(-45deg, #000000, #1a0a3e, #0a1f2e, #1e2a4a, #000000);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    overflow: hidden;
}

/* Декоративные ножи CS2 */
.knife-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.knife {
    position: absolute;
    width: 130px;
    height: 130px;
    opacity: 0.15;
    filter: drop-shadow(0 0 20px rgba(0, 255, 127, 0.3));
}

.knife-1 {
    top: 8%;
    left: 5%;
    animation: floatKnife1 15s ease-in-out infinite;
}

.knife-2 {
    top: 15%;
    right: 10%;
    animation: floatKnife2 18s ease-in-out infinite;
}

.knife-3 {
    bottom: 20%;
    left: 8%;
    animation: floatKnife3 20s ease-in-out infinite;
}

.knife-4 {
    top: 50%;
    right: 5%;
    animation: floatKnife1 17s ease-in-out infinite;
}

.knife-5 {
    bottom: 10%;
    right: 12%;
    animation: floatKnife2 16s ease-in-out infinite;
}

.knife-6 {
    top: 35%;
    left: 3%;
    animation: floatKnife3 19s ease-in-out infinite;
}

.knife-7 {
    bottom: 45%;
    right: 15%;
    animation: floatKnife1 21s ease-in-out infinite;
}

.knife-8 {
    top: 70%;
    left: 15%;
    animation: floatKnife2 14s ease-in-out infinite;
}

/* Анимации плавания ножей */
@keyframes floatKnife1 {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

@keyframes floatKnife2 {
    0%, 100% {
        transform: translateY(0) rotate(-5deg);
    }
    50% {
        transform: translateY(40px) rotate(5deg);
    }
}

@keyframes floatKnife3 {
    0%, 100% {
        transform: translateY(0) rotate(5deg);
    }
    50% {
        transform: translateY(-25px) rotate(-10deg);
    }
}

/* Типографика */
h1 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

@media (min-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
}

/* Glitch эффект для лого */
.glitch {
    position: relative;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    overflow: hidden;
    background: none;
    -webkit-text-fill-color: initial;
}

.glitch::before {
    left: 4px;
    text-shadow: -3px 0 var(--accent-primary);
    color: var(--accent-primary);
    animation: glitch-1 2s infinite linear alternate-reverse;
    z-index: -1;
}

.glitch::after {
    left: -4px;
    text-shadow: 3px 0 rgba(0, 0, 255, 0.8);
    color: rgba(0, 0, 255, 0.8);
    animation: glitch-2 3s infinite linear alternate-reverse;
    z-index: -1;
}

/* Keyframes для glitch эффекта */
@keyframes glitch-1 {
    0%   { clip: rect(10px, 9999px, 80px, 0); }
    20%  { clip: rect(50px, 9999px, 120px, 0); }
    40%  { clip: rect(20px, 9999px, 60px, 0); }
    60%  { clip: rect(70px, 9999px, 100px, 0); }
    80%  { clip: rect(30px, 9999px, 90px, 0); }
    100% { clip: rect(10px, 9999px, 80px, 0); }
}

@keyframes glitch-2 {
    0%   { clip: rect(30px, 9999px, 100px, 0); }
    20%  { clip: rect(10px, 9999px, 60px, 0); }
    40%  { clip: rect(50px, 9999px, 90px, 0); }
    60%  { clip: rect(20px, 9999px, 70px, 0); }
    80%  { clip: rect(60px, 9999px, 120px, 0); }
    100% { clip: rect(30px, 9999px, 100px, 0); }
}

/* Анимация градиентного фона */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Анимация пульсации для кнопки */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 16px rgba(0, 255, 127, 0.5);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 24px rgba(0, 255, 127, 0.7);
    }
}

/* Анимация пульсации при hover */
@keyframes pulseHover {
    0%, 100% {
        transform: translateY(-2px) scale(1);
        box-shadow: 0 0 28px rgba(0, 255, 127, 0.8);
    }
    50% {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 0 32px rgba(0, 255, 127, 0.9);
    }
}

/* CTA Button стили */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: var(--bg-primary);
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    animation: pulse 2s ease-in-out infinite;
}

.cta-button:hover {
    box-shadow: 0 0 32px rgba(0, 255, 127, 0.9);
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
}

.cta-button:active {
    transform: scale(0.98);
}

/* Иконка Telegram в кнопке */
.telegram-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Модальные окна */
.modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 50;
    padding: 16px;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    max-width: 42rem;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
    position: relative;
    box-shadow: var(--shadow-card);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--text-secondary);
    font-size: 2rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover {
    color: var(--accent-primary);
}

.modal h2 {
    font-family: var(--font-orbitron);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.modal p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.modal p:last-child {
    margin-bottom: 0;
}
