:root {
    --bg-color: #030303;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a1;
    --accent-color: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Starry Background */
#stars, #stars2, #stars3 {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1; background: transparent;
}
#stars { box-shadow: 10px 10px #fff, 200px 300px #fff, 400px 100px #fff, 800px 500px #fff, 1200px 400px #fff, 1500px 800px #fff; width: 1px; height: 1px; animation: animStar 50s linear infinite; }
#stars2 { box-shadow: 50px 500px #fff, 250px 100px #fff, 600px 800px #fff, 900px 200px #fff, 1100px 600px #fff, 1400px 100px #fff; width: 2px; height: 2px; animation: animStar 100s linear infinite; }
#stars3 { box-shadow: 80px 20px #fff, 300px 700px #fff, 500px 400px #fff, 1000px 900px #fff, 1300px 300px #fff, 1800px 700px #fff; width: 3px; height: 3px; animation: animStar 150s linear infinite; }

@keyframes animStar {
    from { transform: translateY(0px); }
    to { transform: translateY(-2000px); }
}

/* Typography */
h1, h2, h3, .logo { font-family: var(--font-heading); font-weight: 400; }

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    display: inline-block;
    padding-right: 4rem;
}

.centered { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}
.btn-primary { background-color: var(--accent-color); color: var(--bg-color); }
.btn-primary:hover { background-color: #e0e0e0; transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--text-primary); }
.btn-secondary:hover { color: var(--text-secondary); }
.btn-outline { background-color: transparent; color: var(--text-primary); border: 1px solid var(--glass-border); }
.btn-outline:hover { background-color: var(--glass-bg); }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: absolute;
    top: 0; width: 100%;
    z-index: 100;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo { font-size: 1.8rem; font-style: italic; }

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.lang-toggle:hover {
    border-color: rgba(255,255,255,0.3);
    color: var(--text-primary);
    background: rgba(255,255,255,0.08);
}
.lang-flag { font-size: 1rem; line-height: 1; }

.menu-icon { cursor: pointer; }
.menu-icon .bar {
    width: 30px; height: 1px;
    background-color: var(--text-primary);
    margin: 8px 0;
    transition: transform 0.3s ease;
}
.menu-icon.active .bar:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-icon.active .bar:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}
.hero-content { max-width: 800px; z-index: 10; }
.photo-wrapper {
    width: 200px; height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.8);
}
.profile-photo { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8) contrast(1.1); }
.hero-title { font-size: 4rem; margin-bottom: 0.5rem; }
.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Marquee Section */
.marquee-section { padding: 4rem 0; overflow: hidden; }
.section-heading { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 2rem; }
.marquee-container { width: 100%; overflow: hidden; white-space: nowrap; position: relative; }
.marquee-container::before, .marquee-container::after {
    content: ''; position: absolute; top: 0; width: 150px; height: 100%; z-index: 2;
}
.marquee-container::before { left: 0; background: linear-gradient(to right, var(--bg-color), transparent); }
.marquee-container::after { right: 0; background: linear-gradient(to left, var(--bg-color), transparent); }
.marquee-content { display: inline-block; animation: marquee 20s linear infinite; }
.flag { display: inline-block; font-size: 2rem; margin: 0 2rem; color: var(--text-secondary); font-family: var(--font-body); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Mission & Partnership */
.mission-section { padding: 8rem 5%; max-width: 1200px; margin: 0 auto; }
.split-layout { display: flex; gap: 4rem; }
.left-col, .right-col { flex: 1; }
.mission-text { font-size: 1.5rem; line-height: 1.8; }
.about-text { color: var(--text-secondary); margin-bottom: 3rem; font-size: 1.05rem; }
.platforms-intro { margin-bottom: 1.5rem; font-size: 0.95rem; color: var(--text-secondary); }
.platform-list { list-style: none; }
.platform-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    margin-bottom: 1rem;
    transition: background 0.3s ease;
}
.platform-list li:hover { background: rgba(255, 255, 255, 0.08); }
.platform-name { font-weight: 500; }
.tag {
    font-size: 0.75rem; padding: 4px 12px; border-radius: 20px;
    display: flex; align-items: center; gap: 6px;
    letter-spacing: 1px; font-weight: 500;
}
.tag i { font-size: 0.5rem; }
.tag-green i { color: #4ade80; }
.tag-gray i { color: var(--text-secondary); }

/* Services */
.services-section { padding: 8rem 5%; max-width: 1200px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 1.5rem; }
.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}
.service-card:hover { transform: translateY(-5px); }
.icon-circle {
    width: 50px; height: 50px; border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 2rem; font-size: 1.2rem;
}
.service-card h3 { font-size: 1.5rem; margin-bottom: 1rem; font-family: var(--font-heading); }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* Network List */
.network-list-section { padding: 8rem 5%; max-width: 1000px; margin: 0 auto; }
.network-list { display: flex; flex-direction: column; }
.network-item {
    font-size: 1.2rem;
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.network-item.visible { opacity: 1; transform: translateY(0); }
.network-item .methods { font-size: 0.95rem; color: var(--text-secondary); font-family: var(--font-body); }

/* Reviews */
.reviews-section { padding: 8rem 0; overflow: hidden; }
.reviews-section .section-title { margin-left: 5%; }
.reviews-marquee-container { width: 100%; overflow: hidden; white-space: nowrap; position: relative; padding: 2rem 0; }
.reviews-marquee-content { display: inline-flex; gap: 2rem; animation: marquee-reviews 50s linear infinite; }
.reviews-marquee-container:hover .reviews-marquee-content { animation-play-state: paused; }
@keyframes marquee-reviews { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.review-card {
    width: 450px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem; border-radius: 16px;
    white-space: normal;
    display: flex; flex-direction: column; gap: 1.5rem;
}
.review-stars { color: #facc15; font-size: 0.9rem; letter-spacing: 2px; }
.review-text { font-size: 1rem; color: var(--text-secondary); flex-grow: 1; line-height: 1.6; }
.review-author { font-weight: 500; font-size: 1rem; }

/* FAQ */
.faq-section { padding: 8rem 5%; max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--glass-border); padding: 1.5rem 0; }
.faq-question {
    font-size: 1.2rem; font-weight: 400; cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    transition: color 0.3s ease; font-family: var(--font-heading);
    gap: 1rem;
}
.faq-question:hover { color: var(--text-secondary); }
.faq-question i { font-size: 0.8rem; transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.4s ease, margin-top 0.4s ease;
    color: var(--text-secondary); font-size: 1rem; line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 300px; margin-top: 1.5rem; }

/* Footer */
.footer { padding: 6rem 5% 4rem; border-top: 1px solid var(--glass-border); background-color: var(--bg-color); }
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 4rem; }
.footer-left { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.footer-vision { font-size: 1.1rem; color: var(--text-secondary); max-width: 450px; margin-bottom: 4rem; }
.privacy-policy a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.3s ease; }
.privacy-policy a:hover { color: var(--text-primary); }
.footer-right { flex: 1; display: flex; flex-direction: column; align-items: flex-end; }
.footer-cta-text { font-size: 3.5rem; margin-bottom: 2rem; text-align: right; font-family: var(--font-heading); }
.footer-buttons { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }

/* ===== Nav Overlay ===== */
.nav-overlay {
    position: fixed; top: 0; right: -100%;
    width: 100%; max-width: 480px; height: 100vh;
    background: rgba(3, 3, 3, 0.97);
    backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
    z-index: 1000;
    display: flex; flex-direction: column;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    border-left: 1px solid var(--glass-border);
}
.nav-overlay.open { right: 0; }
.nav-overlay-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid var(--glass-border);
}
.nav-close {
    cursor: pointer; font-size: 1.5rem; color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; border: 1px solid var(--glass-border);
}
.nav-close:hover { color: var(--text-primary); transform: rotate(90deg); border-color: rgba(255,255,255,0.3); }
.nav-links {
    list-style: none; padding: 2rem 2.5rem;
    flex: 1; display: flex; flex-direction: column; gap: 0;
    overflow-y: auto;
}
.nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    opacity: 0; transform: translateX(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.nav-overlay.open .nav-links li { opacity: 1; transform: translateX(0); }
.nav-overlay.open .nav-links li:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.open .nav-links li:nth-child(2) { transition-delay: 0.15s; }
.nav-overlay.open .nav-links li:nth-child(3) { transition-delay: 0.2s; }
.nav-overlay.open .nav-links li:nth-child(4) { transition-delay: 0.25s; }
.nav-overlay.open .nav-links li:nth-child(5) { transition-delay: 0.3s; }
.nav-overlay.open .nav-links li:nth-child(6) { transition-delay: 0.35s; }
.nav-overlay.open .nav-links li:nth-child(7) { transition-delay: 0.4s; }
.nav-link {
    display: block; padding: 1.2rem 0;
    color: var(--text-secondary); text-decoration: none;
    font-size: 1.8rem; font-family: var(--font-heading);
    transition: color 0.3s ease, padding-left 0.3s ease;
    letter-spacing: 0.5px;
}
.nav-link:hover { color: var(--text-primary); padding-left: 0.5rem; }
.nav-footer {
    padding: 2rem 2.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex; flex-direction: column; gap: 0.8rem;
}
.nav-tg-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 12px;
    background: rgba(0,136,204,0.1);
    border: 1px solid rgba(0,136,204,0.25);
    color: #29b6f6; text-decoration: none;
    font-size: 0.95rem; font-family: var(--font-body);
    font-weight: 500; transition: all 0.3s ease;
}
.nav-tg-btn:hover { background: rgba(0,136,204,0.2); border-color: rgba(0,136,204,0.5); transform: translateY(-1px); }
.nav-tg-btn i { font-size: 1.1rem; }

/* Overlay backdrop */
.nav-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 999;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.nav-backdrop.visible { opacity: 1; pointer-events: all; }

/* ===== Floating Telegram Badges ===== */
.tg-floating {
    position: fixed; bottom: 28px; right: 28px; z-index: 900;
    display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.tg-badge {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 20px; border-radius: 50px;
    text-decoration: none; font-family: var(--font-body);
    font-weight: 500; font-size: 0.9rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.tg-badge i { font-size: 1.15rem; flex-shrink: 0; }
.tg-badge span { white-space: nowrap; }
.tg-channel { background: rgba(0,136,204,0.15); border: 1px solid rgba(0,136,204,0.3); color: #29b6f6; }
.tg-channel:hover { background: rgba(0,136,204,0.3); border-color: rgba(0,136,204,0.6); transform: translateY(-3px); box-shadow: 0 6px 30px rgba(0,136,204,0.25); }
.tg-contact { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: var(--text-primary); }
.tg-contact:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.25); transform: translateY(-3px); box-shadow: 0 6px 30px rgba(255,255,255,0.08); }
.tg-channel::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 100%; height: 100%; border-radius: 50px;
    transform: translate(-50%, -50%);
    background: rgba(0,136,204,0.15);
    animation: tgPulse 3s ease-in-out infinite; z-index: -1;
}
@keyframes tgPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* ===== Responsive: Tablet ===== */
@media (max-width: 1024px) {
    .split-layout { flex-direction: column; }
    .services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
    .footer-cta-text { font-size: 2.8rem; }
}

/* ===== Responsive: Mobile ===== */
@media (max-width: 768px) {
    .navbar { padding: 1rem 4%; }
    .logo { font-size: 1.4rem; }

    .hero { min-height: 100svh; padding: 80px 5% 40px; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.3rem; margin-bottom: 2rem; letter-spacing: 1px; }
    .photo-wrapper { width: 150px; height: 150px; margin-bottom: 1.5rem; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 0.8rem; }
    .hero-buttons .btn { width: 100%; max-width: 260px; text-align: center; }

    .section-title { font-size: 2rem; padding-right: 2rem; margin-bottom: 2rem; }
    .section-heading { font-size: 1.1rem; padding: 0 5%; }

    .marquee-section { padding: 2rem 0; }
    .marquee-container::before, .marquee-container::after { width: 60px; }
    .flag { font-size: 1.4rem; margin: 0 1rem; }

    .mission-section { padding: 4rem 5%; }
    .split-layout { gap: 2rem; }
    .mission-text { font-size: 1.2rem; }
    .about-text { font-size: 0.95rem; margin-bottom: 2rem; }
    .platform-list li { padding: 1rem; border-radius: 16px; }
    .platform-name { font-size: 0.9rem; }
    .tag { font-size: 0.65rem; padding: 3px 8px; }

    .services-section { padding: 4rem 5%; }
    .services-grid { grid-template-columns: 1fr; gap: 1rem; }
    .service-card { padding: 2rem 1.5rem; }
    .service-card h3 { font-size: 1.2rem; }
    .service-card p { font-size: 0.9rem; }
    .icon-circle { width: 40px; height: 40px; margin-bottom: 1.5rem; font-size: 1rem; }

    .network-list-section { padding: 4rem 5%; }
    .network-item {
        flex-direction: column; align-items: flex-start;
        gap: 0.3rem; padding: 1.2rem 0; font-size: 1rem;
    }
    .network-item .methods { font-size: 0.85rem; }

    .reviews-section { padding: 4rem 0; }
    .reviews-section .section-title { margin-left: 5%; }
    .review-card { width: 300px; padding: 1.8rem; gap: 1rem; }
    .review-text { font-size: 0.9rem; }
    .review-author { font-size: 0.9rem; }

    .faq-section { padding: 4rem 5%; }
    .faq-question { font-size: 1rem; }
    .faq-answer { font-size: 0.9rem; }

    .footer { padding: 3rem 5% 2rem; }
    .footer-content { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .footer-right { align-items: flex-start; }
    .footer-cta-text { text-align: left; font-size: 2rem; margin-bottom: 1.5rem; }
    .footer-buttons { justify-content: flex-start; flex-wrap: wrap; }
    .footer-buttons .btn { font-size: 0.85rem; padding: 10px 20px; }
    .footer-vision { font-size: 0.95rem; margin-bottom: 2rem; }

    .nav-overlay { max-width: 100%; }
    .nav-overlay-header { padding: 1rem 1.5rem; }
    .nav-links { padding: 1.5rem; }
    .nav-link { font-size: 1.4rem; padding: 1rem 0; }
    .nav-footer { padding: 1.5rem; }
    .nav-tg-btn { font-size: 0.85rem; padding: 10px 16px; }

    .tg-floating { bottom: 16px; right: 16px; gap: 8px; }
    .tg-badge { padding: 10px 14px; font-size: 0.8rem; gap: 8px; }
    .tg-badge i { font-size: 1rem; }

    .lang-toggle { padding: 5px 10px; font-size: 0.75rem; }
    .lang-flag { font-size: 0.9rem; }
}

/* ===== Responsive: Small phones ===== */
@media (max-width: 400px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-title { font-size: 1.7rem; padding-right: 1rem; }
    .mission-text { font-size: 1.05rem; }
    .footer-cta-text { font-size: 1.6rem; }
    .review-card { width: 260px; padding: 1.4rem; }
    .nav-link { font-size: 1.2rem; }
    .tg-badge span { display: none; }
    .tg-badge { padding: 12px; border-radius: 50%; }
}