/* ═══════════════════════════════════════════════════════════════
   LIQUID GLASS LANDING PAGE - STYLES
   Apple visionOS / Glassmorphism Aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* CSS Variables */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.18);
    --accent-primary: #0071e3;
    --accent-secondary: #5e5ce6;
    --accent-tertiary: #bf5af2;
    --glow-color: rgba(0, 113, 227, 0.4);
    --orb-1: rgba(0, 113, 227, 0.3);
    --orb-2: rgba(94, 92, 230, 0.3);
    --orb-3: rgba(191, 90, 242, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-tertiary: rgba(0, 0, 0, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.9);
    --accent-primary: #0071e3;
    --accent-secondary: #5e5ce6;
    --accent-tertiary: #bf5af2;
    --glow-color: rgba(0, 113, 227, 0.2);
    --orb-1: rgba(0, 113, 227, 0.15);
    --orb-2: rgba(94, 92, 230, 0.15);
    --orb-3: rgba(191, 90, 242, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.7);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.5s ease;
    display: flex;
    flex-direction: column;
}

/* Mouse Follow Glow */
.mouse-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mouse-glow.active {
    opacity: 1;
}

/* Animated Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--orb-1);
    top: -200px;
    right: -150px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--orb-2);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--orb-3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }
    75% {
        transform: translate(40px, 40px) scale(1.05);
    }
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Glass Navigation */
.glass-nav {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 500px;
    z-index: 1000;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 10px 20px;
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 5px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

.lang-code {
    font-weight: 600;
    font-size: 0.75rem;
    opacity: 0.8;
}

.lang-btn:hover {
    color: var(--text-primary);
    background: var(--glass-highlight);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.3);
}

.lang-btn.active .lang-flag {
    transform: scale(1.1);
}

.lang-btn.active .lang-code {
    opacity: 1;
}

/* Theme Toggle */
.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--glass-highlight);
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
    position: absolute;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 24px 20px;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 1;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
}

.badge-dot {
    width: 10px;
    height: 10px;
    background: #30d158;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px rgba(48, 209, 88, 0.5);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(2.8rem, 10vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 50%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Hero Visual - Floating Cards */
/* Removed floating cards - cleaner design */

/* Contact Section */
.contact {
    padding: 20px 24px 10px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    letter-spacing: 0.01em;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.contact-btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--glass-highlight) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-btn:hover .contact-btn-glow {
    opacity: 1;
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.contact-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

#telegramBtn:hover {
    border-color: #0088cc;
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.2);
}

#whatsappBtn:hover {
    border-color: #25d366;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
}

#emailBtn:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.2);
}

/* Footer */
.footer {
    padding: 16px 24px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.footer-text a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: var(--accent-primary);
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .glass-nav {
        top: 12px;
        max-width: calc(100% - 24px);
        padding: 8px 14px;
        border-radius: 14px;
    }

    .nav-container {
        gap: 12px;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .lang-switcher {
        padding: 4px;
        gap: 4px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .lang-code {
        display: none;
    }

    .theme-toggle {
        width: 34px;
        height: 34px;
    }

    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }

    .main-content {
        padding: 70px 16px 16px;
    }

    .hero-visual {
        display: none;
    }

    .contact {
        padding: 16px 16px 8px;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .contact-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 20px;
    }

    .footer {
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

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