/* Variables */
:root {
    --bg-color: #0a0a0a;
    --card-bg: #161616;
    --text-main: #ffffff;
    --text-secondary: #888888;
    --accent-color: #8A2BE2;
    --accent-gradient: linear-gradient(135deg, #8A2BE2 0%, #C71585 100%);
    --shadow: 0 0 15px rgba(138, 43, 226, 0.5);
    --back-to-top-hover: #9d42f5;
    --back-to-top-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
    --transition: all 0.3s ease;
}


/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@300;400;600&display=swap');


/* Base & Global */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

.container {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
    margin-top: 150px;
}

.divider {
    border: 0;
    border-top: 1px solid #252525;
    margin: 100px 0;
}


/* Typography & Buttons */
h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.accent-text {
    color: var(--accent-color);
    text-shadow: var(--shadow);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
}

.btn-primary, .btn-secondary {
    padding: 15px 35px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-secondary {
    border: 1px solid white;
    color: white;
    background: transparent;
}

.btn-secondary:hover {
    background: white;
    color: black;
}


/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    background: rgba(40, 40, 40, 0.4);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-sizing: border-box;
    transition: all 0.4s ease;
}

header .logo {
    position: absolute;
    left: 5%;
}

header.scrolled {
    height: 70px;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    width: 45px;
    height: 45px;
    background: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.3px;
    color: white;
    flex-shrink: 0;
}

.logo, .header-actions {
    flex: 1;
    display: flex;
    align-items: center;
}

header nav {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 30px;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 500;
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-color);
}

.nav_main {
    color: var(--accent-color);
}

.header-actions {
    position: absolute;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-icon-btn {
    width: 40px;
    height: 40px;
    background: var(--accent-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.auth-icon-btn svg {
    width: 20px;
    height: 20px;
}

.auth-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent-color);
}

.lang-select {
    background-color: #1a1a1a;
    color: #f0f0f0;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23f0f0f0" height="10" viewBox="0 0 24 24" width="10" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 30px;
}

.lang-select option {
    background-color: #1a1a1a;
    color: #f0f0f0;
}


/* Hero Section (Video Background) */
.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(18,18,18,0.7), rgba(18,18,18,0.9));
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-down {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    z-index: 1;
}

.scroll-down::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 2px;
    transform: translateX(-50%);
    box-shadow: 0 0 8px var(--accent-color);
    animation: scrollDot 1.8s ease infinite;
}

@keyframes scrollDot {
    0% { top: 8px; opacity: 1; }
    70% { top: 22px; opacity: 0; }
    100% { top: 22px; opacity: 0; }
}


/* Common Sections */
.section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 120px;
    gap: 50px;
}

.section.reverse {
    flex-direction: row-reverse;
}

.content-block {
    flex: 1;
}

.image-placeholder {
    flex: 1;
    height: 350px;
    background: #252525;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    border: 2px dashed #333;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}


/* Titles used by Roadmap / FAQ / Socials */
.projects-title {
    text-align: center;
}


/* Stats Section */
.stats-section {
    padding: 60px 0;
    margin-bottom: 100px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 20px;
    border: 1px solid #252525;
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-5px);
    background: rgba(138, 43, 226, 0.05);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 0;
    margin-bottom: 5px;
    text-shadow: 0 0 20px var(--shadow);
}

.stat-text {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* Download Section */
.download-section {
    text-align: center;
    padding: 20px 0 60px;
}

.downlaod-title {
    text-align: center;
}

.download-section button {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 16px 46px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.download-section button:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.7);
}

.download-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 18px;
}


/* FAQ Styles */
.faq-container {
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid #252525;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--accent-color);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    user-select: none;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.2);
}

.faq-answer p {
    padding: 0 25px 20px 25px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 260px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #ff0000;
}


/* Roadmap Section */
.roadmap-container {
    position: relative;
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px 0;
}

.roadmap-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    top: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    z-index: 1;
}

.roadmap-item {
    position: relative;
    width: 50%;
    margin-bottom: 40px;
    z-index: 2;
}

.roadmap-item.left {
    left: 0;
    padding-right: 50px;
    text-align: right;
    box-sizing: border-box;
}

.roadmap-item.right {
    left: 50%;
    padding-left: 50px;
    text-align: left;
    box-sizing: border-box;
}

.roadmap-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--bg-color);
    border: 3px solid var(--accent-color);
    border-radius: 50%;
    top: 30px;
    z-index: 10;
    box-shadow: 0 0 15px var(--accent-color);
}

.left .roadmap-dot { right: -8px; }
.right .roadmap-dot { left: -8px; }

.roadmap-content {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #252525;
    display: inline-block;
    transition: var(--transition);
    max-width: 450px;
}

.roadmap-date {
    color: var(--accent-color);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.roadmap-item:hover .roadmap-content {
    border-color: var(--accent-color);
    transform: translateY(-5px);
}


/* Community & Socials */
.socials-section {
    padding: 60px 0;
    text-align: center;
}

.socials-subtitle {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.socials-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: var(--card-bg);
    border-radius: 12px;
    text-decoration: none;
    color: white;
    border: 1px solid #252525;
    transition: var(--transition);
    min-width: 180px;
}

.social-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    background: rgba(138, 43, 226, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.social-icon { font-size: 1.5rem; }
.social-item span { font-weight: 600; font-size: 1rem; }


/* Footer */
.footer {
    background: linear-gradient(to top, #0a0a0a, var(--bg-color));
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-brand .logo { margin-bottom: 20px; }
.footer-desc { color: var(--text-secondary); max-width: 300px; }

.footer h4 {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 12px; }

.footer ul a,
.footer-links > a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer ul a:hover,
.footer-links > a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}


.footer-contact p { color: var(--text-secondary); margin-bottom: 10px; }
.footer-contact a { color: var(--text-main); text-decoration: none; }
.footer-bottom { text-align: center; margin-top: 50px; }
.footer-bottom .divider { margin: 30px 0; opacity: 0.3; }
.footer-bottom p { color: #444; font-size: 0.85rem; }

.privacy-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.privacy-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}


/* PRIVACY PAGE (used by privacy.html) */
.privacy-container {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 0 20px;
}

.privacy-container h1 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.privacy-container .last-updated {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.privacy-container h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.privacy-container p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
}

.privacy-container a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

.privacy-container a:hover {
    text-decoration: underline;
}


/* Utilities & Animations */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    box-shadow: var(--back-to-top-shadow);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--back-to-top-hover);
    transform: scale(1.1);
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Interactive ambient cursor glow */
#ambient-glow {
    position: fixed;
    top: 0; left: 0;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.12) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: screen;
}

/* Toast notifications */
.toast-notification {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--card-bg);
    border: 1px solid var(--accent-color);
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(138, 43, 226, 0.3);
    z-index: 9998;
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(10px); }
}

/* Easter egg: Konami code */
body.horror-mode {
    --accent-color: #ff0000;
    --accent-gradient: linear-gradient(135deg, #8b0000 0%, #ff0000 100%);
    --back-to-top-hover: #ff3333;
    --shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

body.horror-mode::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    box-shadow: inset 0 0 200px rgba(255, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10000;
    animation: pulseRed 2s infinite;
}

.horror-text {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #ff0000;
    font-family: 'Orbitron', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    text-shadow: 0 0 30px #ff0000, 0 0 10px #8b0000;
    z-index: 10001;
    pointer-events: none;
    animation: fadeInOut 4s forwards;
    letter-spacing: 10px;
    text-align: center;
    padding: 0 20px;
}

@keyframes pulseRed {
    0% { box-shadow: inset 0 0 150px rgba(255, 0, 0, 0.4); }
    50% { box-shadow: inset 0 0 250px rgba(255, 0, 0, 0.7); }
    100% { box-shadow: inset 0 0 150px rgba(255, 0, 0, 0.4); }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translate(-50%, -40%); }
    20% { opacity: 1; transform: translate(-50%, -50%); }
    80% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -60%); }
}


/* Responsive */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .section,
    .section.reverse {
        flex-direction: column;
    }

    .image-placeholder {
        width: 100%;
    }

    .roadmap-item,
    .roadmap-item.left,
    .roadmap-item.right {
        width: 100%;
        left: 0;
        padding-left: 50px;
        padding-right: 0;
        text-align: left;
    }

    .roadmap-line { left: 16px; }
    .left .roadmap-dot,
    .right .roadmap-dot { left: 8px; right: auto; }
}

@media (max-width: 640px) {
    header { padding: 0 4%; }
    header nav { gap: 10px; }
    nav a { margin: 0 6px; font-size: 0.85rem; }

    .hero-title { font-size: 2.6rem; letter-spacing: 2px; }
    .hero-subtitle { font-size: 1.1rem; }

    h2 { font-size: 1.9rem; }

    .container { margin-top: 110px; }

    .footer-container { grid-template-columns: 1fr; }

    #ambient-glow { display: none; }
}

@media (max-width: 480px) {
    .hero-btns { flex-direction: column; align-items: center; width: 100%; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 280px; text-align: center; }

    .toast-notification { left: 20px; right: 20px; bottom: 90px; }
}