/* --- VARIABLES --- */
:root {
    --bg-dark: #050505;
    --bg-card: #0b0b0f;
    --neon: #00f0ff;
    --neon-glow: rgba(0, 240, 255, 0.4);
    --neon-dim: rgba(0, 240, 255, 0.1);
    --purple: #7000ff;
    --text-main: #ffffff;
    --text-muted: #949494;

    --font-tech: 'Rajdhani', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --border-glass: rgba(255, 255, 255, 0.08);
    --smooth-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s var(--smooth-ease);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
.nav-btn,
.btn {
    font-family: var(--font-tech);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- PRO LOADER --- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ring-container {
    width: 120px;
    height: 120px;
    position: relative;
    margin-bottom: 20px;
}

.ring-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--neon);
    border-left-color: var(--neon);
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px var(--neon-dim);
}

.ring-inner {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-bottom-color: var(--purple);
    border-right-color: var(--purple);
    animation: spinReverse 1.5s linear infinite;
}

.loader-text {
    text-align: center;
    margin-bottom: 10px;
}

.loader-text .brand {
    display: block;
    font-family: var(--font-tech);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

.loader-text .status {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 5px;
}

.loader-percent {
    font-family: var(--font-tech);
    color: var(--neon);
    font-size: 1.2rem;
    font-weight: 700;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s var(--smooth-ease);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
    transition: transform 0.3s;
}

.logo-group:hover {
    transform: scale(1.02);
}

.logo-main {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo-sub {
    font-family: var(--font-tech);
    font-size: 0.65rem;
    color: var(--neon);
    letter-spacing: 1px;
    margin-top: 2px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    font-family: var(--font-tech);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--neon);
    transition: width 0.3s var(--smooth-ease);
}

.nav-link:hover {
    color: #fff;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-btn-action {
    border: 1px solid var(--neon);
    padding: 8px 25px;
    color: var(--neon) !important;
    border-radius: 4px;
    transition: all 0.3s var(--smooth-ease);
}

.nav-btn-action:hover {
    background: var(--neon);
    color: #000 !important;
    box-shadow: 0 0 20px var(--neon-glow);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 60px;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.2;
    mask-image: radial-gradient(circle, black 40%, transparent 80%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
    margin: 0 auto;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 25px;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(90deg, var(--neon), #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 auto 40px;
    max-width: 650px;
}

.hero-stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 70px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.hero-stat:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-family: var(--font-tech);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-label i {
    color: var(--neon);
    margin-right: 5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* --- BUTTONS --- */
.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s var(--smooth-ease);
    position: relative;
    overflow: hidden;
}

.btn-discord-hero {
    background: #5865F2;
    color: white;
    border: 1px solid #5865F2;
}

.btn-discord-hero:hover {
    background: #4752c4;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(88, 101, 242, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--neon);
    color: var(--neon);
    background: rgba(0, 240, 255, 0.05);
}

/* --- FEATURES GRID --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.highlight {
    color: var(--neon);
    text-shadow: 0 0 15px var(--neon-dim);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    padding: 35px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--smooth-ease);
}

.card-bg-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.5s var(--smooth-ease);
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.feature-card:hover .card-bg-hover {
    opacity: 1;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: var(--neon);
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: 0.3s;
}

.feature-card:hover .icon-box {
    background: var(--neon);
    color: #000;
    box-shadow: 0 0 15px var(--neon-glow);
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* --- SHOWCASE --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-glass);
    height: 260px;
    background: #0e0e15;
    transition: all 0.5s var(--smooth-ease);
}

.gallery-item:hover {
    border-color: var(--neon);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    transition: 0.5s;
}

.gallery-item:hover .showcase-img {
    opacity: 1;
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay i {
    color: var(--neon);
    font-size: 2rem;
}

/* --- CLEAN & SHARP DOWNLOAD SECTION --- */
.download-wrapper {
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 60px 40px;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
    transition: transform 0.3s ease;
}

.download-wrapper:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.15);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 240, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 255, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(circle at center, black 50%, transparent 90%);
}

.download-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.os-icon {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--neon-glow);
}

.download-wrapper h2 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-family: var(--font-tech);
    letter-spacing: 2px;
}

.meta-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.meta-badge {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 4px;
    font-family: var(--font-tech);
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-badge i {
    color: var(--neon);
}

.changelog-panel {
    background: rgba(0, 0, 0, 0.5);
    border-left: 2px solid var(--neon);
    text-align: left;
    padding: 20px 30px;
    margin-bottom: 40px;
    border-radius: 0 4px 4px 0;
}

.panel-header {
    font-family: var(--font-tech);
    color: #fff;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.changelog-panel ul li {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
    list-style: none;
}

.bullet {
    color: var(--neon);
    font-weight: bold;
    margin-right: 8px;
}

/* THE CLEAN MEGA BUTTON */
.mega-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: var(--neon);
    color: #000;
    padding: 18px 50px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
    border: 1px solid #fff;
    max-width: 400px;
    margin: 0 auto;
    text-decoration: none;
}

.mega-download-btn:hover {
    transform: scale(1.02);
    background: #fff;
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.8);
    border-color: var(--neon);
}

.icon-layer {
    font-size: 1.8rem;
    color: #000;
    z-index: 2;
}

.main-text {
    font-family: var(--font-tech);
    font-weight: 800;
    font-size: 1.3rem;
    color: #000;
    letter-spacing: 1px;
    z-index: 2;
}

.btn-shine-anim {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9), transparent);
    transform: skewX(-20deg);
    animation: shiny 3s infinite;
    z-index: 1;
}

@keyframes shiny {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.req-text {
    margin-top: 20px;
    font-size: 0.8rem;
    color: #666;
    font-family: var(--font-body);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border-glass);
    padding: 50px 0;
    margin-top: 80px;
    background: #020202;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.credits {
    font-size: 0.8rem;
    opacity: 0.7;
    font-family: var(--font-tech);
    letter-spacing: 1px;
}

.footer-links a {
    color: var(--text-muted);
    margin-left: 25px;
    font-size: 0.9rem;
    position: relative;
}

.footer-links a:hover {
    color: var(--neon);
}

/* --- MODALS (Shared) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2500;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
}

.modal-box {
    background: #0f0f13;
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s var(--smooth-ease);
}

.modal-overlay.open .modal-box {
    transform: scale(1);
    border-color: var(--neon-dim);
}

.close-info {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #666;
    font-size: 24px;
    cursor: pointer;
}

.close-info:hover {
    color: #fff;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--neon);
    font-size: 1.5rem;
}

.modal-body {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: left;
}

.modal-footer {
    margin-top: 20px;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.modal-content-box {
    margin: 5% auto;
    width: 80%;
    max-width: 900px;
    border: 1px solid var(--neon);
    box-shadow: 0 0 50px var(--neon-dim);
    background: #000;
}

.modal-content-box img {
    width: 100%;
    display: block;
}

#caption {
    text-align: center;
    color: #ccc;
    padding: 15px;
    font-size: 1.1rem;
    font-family: var(--font-tech);
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

/* --- ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--smooth-ease) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s var(--smooth-ease);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
        font-size: 1.5rem;
        color: #fff;
        cursor: pointer;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero-stats-row {
        flex-direction: column;
        gap: 30px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }
}