/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */

:root {
    --bg-dark: #05070a;
    --cyan: #00f2ff;
    --purple: #bc13fe;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: 16px;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --font-inter: 'Inter', sans-serif;
    --font-unbounded: 'Unbounded', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-inter);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.section {
    padding: 100px 0;
}

/* ==========================================================================
   2. ANIMATED BACKGROUND
   ========================================================================== */

.bg-glow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, #0a0d14 0%, #05070a 100%);
}

.glow-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: moveSphere 20s infinite alternate ease-in-out;
}

.sphere-cyan { width: 500px; height: 500px; background: var(--cyan); top: -100px; right: -100px; }
.sphere-purple { width: 600px; height: 600px; background: var(--purple); bottom: -150px; left: -100px; animation-duration: 25s; }
.sphere-cyan-small { width: 300px; height: 300px; background: var(--cyan); top: 40%; left: 20%; opacity: 0.15; }

@keyframes moveSphere {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 40px) scale(1.1); }
}

.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 10, 0.3);
    backdrop-filter: blur(2px);
    z-index: -1;
}

/* ==========================================================================
   3. GLASSMORPHISM CARDS
   ========================================================================== */

.card {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.card-glare {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .card-glare { opacity: 1; }

/* ==========================================================================
   4. HEADER & NAVIGATION
   ========================================================================== */

.header {
    position: fixed;
    top: 0; width: 100%; z-index: 100;
    padding: 24px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    padding: 10px 24px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
}

.logo { display: flex; flex-direction: column; }

.logo-text {
    font-family: var(--font-unbounded);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #fff, var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vibe-tag {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--cyan);
    font-weight: 600;
    margin-top: -2px;
}

.nav { display: flex; gap: 32px; align-items: center; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-dim); }
.nav-link:hover { color: #fff; }

.btn-contact-nav {
    background: #fff;
    color: #000;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none; border: none; cursor: pointer;
}
.mobile-menu-btn .bar { width: 22px; height: 2px; background: #fff; }

/* ==========================================================================
   5. HERO SECTION
   ========================================================================== */

.hero-section { padding-top: 140px; padding-bottom: 60px; }

.hero-content {
    padding: 80px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background: rgba(0, 242, 255, 0.08);
    color: var(--cyan);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 24px;
    border: 1px solid rgba(0, 242, 255, 0.15);
}

.hero-title {
    font-family: var(--font-unbounded);
    font-size: clamp(2.2rem, 7vw, 4rem);
    line-height: 1.15;
    margin-bottom: 28px;
    font-weight: 700;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 900px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-dim);
    max-width: 680px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-cta-group { display: flex; gap: 16px; }

.btn {
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--purple));
    color: #fff;
    border: none;
    box-shadow: 0 10px 20px rgba(188, 19, 254, 0.15);
}

.btn-primary:hover { transform: scale(1.03); box-shadow: 0 15px 30px rgba(0, 242, 255, 0.3); }

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    border: 1px solid var(--glass-border);
}

/* ==========================================================================
   6. SKILLS SECTION
   ========================================================================== */

.section-title {
    font-family: var(--font-unbounded);
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.skill-card { padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.skill-icon-box {
    width: 56px; height: 56px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--cyan);
}
.skill-title { font-family: var(--font-unbounded); font-size: 1.4rem; }
.skill-desc { color: var(--text-dim); font-size: 0.95rem; }
.skill-tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.skill-tech-tags span { font-size: 11px; background: rgba(255, 255, 255, 0.05); padding: 4px 10px; border-radius: 6px; border: 1px solid var(--glass-border); }

/* ==========================================================================
   7. CASES SECTION
   ========================================================================== */

.case-content { display: grid; grid-template-columns: 1fr 1fr; }
.case-info { padding: 60px; }
.case-badge { position: absolute; top: 24px; left: 24px; background: var(--purple); font-size: 10px; font-weight: 800; padding: 4px 12px; border-radius: 4px; }
.case-title { font-family: var(--font-unbounded); font-size: 1.8rem; margin-bottom: 16px; }
.case-desc { color: var(--cyan); font-weight: 600; margin-bottom: 12px; }
.case-details { color: var(--text-dim); margin-bottom: 24px; font-size: 0.95rem; }
.case-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; font-size: 0.9rem; }
.case-tech { display: flex; gap: 10px; color: var(--purple); font-weight: 700; font-size: 12px; }

.case-visual {
    background: rgba(255, 255, 255, 0.015);
    display: flex; align-items: center; justify-content: center;
    padding: 40px; border-left: 1px solid var(--glass-border);
}

.phone-mockup {
    width: 260px; height: 520px;
    background: #111; border: 8px solid #222; border-radius: 36px;
    overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}
.phone-screen { height: 100%; display: flex; flex-direction: column; background: #0f111a; }
.phone-header { background: #1a1d29; padding: 12px; }
.phone-status-bar { display: flex; justify-content: space-between; font-size: 9px; color: #555; margin-bottom: 8px; }
.telegram-chat-header { display: flex; align-items: center; gap: 8px; }
.tg-avatar { width: 30px; height: 30px; background: linear-gradient(var(--cyan), var(--purple)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 12px; }
.tg-title { font-size: 12px; font-weight: 600; display: block; }
.tg-status { font-size: 10px; color: var(--cyan); }
.phone-body-content { flex: 1; padding: 15px; display: flex; flex-direction: column; gap: 10px; }
.chat-bubble { padding: 8px 12px; border-radius: 12px; font-size: 11px; max-width: 85%; }
.bot-msg { background: #242a38; align-self: flex-start; }
.user-msg { background: var(--purple); align-self: flex-end; }
.webapp-mock-button { margin-top: auto; background: var(--cyan); color: #000; text-align: center; padding: 10px; border-radius: 10px; font-weight: bold; font-size: 11px; }

/* ==========================================================================
   8. FOOTER
   ========================================================================== */

.footer { padding-bottom: 80px; }
.footer-card { padding: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.footer-pretitle { color: var(--cyan); font-weight: 700; text-transform: uppercase; font-size: 11px; display: block; margin-bottom: 12px; }
.footer-title { font-family: var(--font-unbounded); font-size: 2.2rem; margin-bottom: 16px; }
.footer-text { color: var(--text-dim); margin-bottom: 30px; }
.dev-meta { font-size: 12px; color: #555; display: flex; flex-direction: column; }
.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-btn { padding: 16px; border-radius: 16px; text-align: center; font-weight: 700; }
.tg-primary { background: #0088cc; color: #fff; }
.tg-secondary { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); }

/* ==========================================================================
   9. MOBILE DRAWER & RESPONSIVE
   ========================================================================== */

.mobile-drawer {
    position: fixed; top: 0; right: -100%; width: 100%; height: 100%;
    background: var(--bg-dark); z-index: 1000; padding: 40px;
    transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex; flex-direction: column;
}
.mobile-drawer.active { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px; }
.close-drawer-btn { background: none; border: none; color: #fff; font-size: 40px; }
.drawer-nav { display: flex; flex-direction: column; gap: 24px; }
.drawer-link { font-family: var(--font-unbounded); font-size: 1.4rem; }
.no-scroll { overflow: hidden; }

@media (max-width: 992px) {
    .case-content { grid-template-columns: 1fr; }
    .case-visual { border-left: none; border-top: 1px solid var(--glass-border); }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero-content { padding: 60px 20px; }
    .hero-title { font-size: 2.2rem; }
    .hero-title br { display: none; }
    .hero-cta-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
    .case-info { padding: 40px 20px; }
    .footer-card { padding: 40px 20px; }
}