:root {
    --primary-color: #08090b;
    --secondary-color: #c62828;
    --accent-color: #7a0f12;
    --text-color: #ffffff;

    --gradient: linear-gradient(45deg, #c62828, #4a0b0d);

    --card-bg: rgba(15, 15, 15, 0.7);
    --card-border: rgba(198, 40, 40, 0.2);
    --card-hover: rgba(198, 40, 40, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

.navbar {
    background: rgba(0, 0, 0, 0.95);
    padding: 1.2rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(198, 40, 40, 0.3);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar.scrolled {
    padding: 0.8rem 2rem;
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 10px 30px rgba(198, 40, 40, 0.25);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-brand:hover {
    background: rgba(198, 40, 40, 0.15);
    transform: translateY(-2px);
}

.nav-brand i {
    color: #c62828;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(198, 40, 40, 0.7);
    transition: all 0.3s ease;
}

.nav-brand:hover i {
    transform: rotate(15deg);
}

.nav-links {
    display: flex;
    gap: clamp(0.8rem, 2vw, 1.5rem);
    align-items: center;

    background: rgba(198, 40, 40, 0.08);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(198, 40, 40, 0.2);
}

.nav-links a {
    color: #888;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #c62828, #7a0f12);
    border-radius: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(198, 40, 40, 0.5);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    opacity: 0.2;
}

.nav-links a.active {
    color: #c62828;
    background: rgba(198, 40, 40, 0.15);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        height: calc(100vh - 70px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        padding: 2rem 0;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .burger {
        display: block;
    }

    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active .line2 {
        opacity: 0;
    }

    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

.hero {
    height: 100vh;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #888;
}

.cta-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: var(--gradient);
    border: none;
    border-radius: 5px;
    color: var(--text-color);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.4);
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

.features {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.features-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--card-hover);
    border-color: var(--secondary-color);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--text-color);
}

.feature-content {
    text-align: center;
}

.feature-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-content p {
    color: #888;
    line-height: 1.6;
}

.server-stats {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: 1;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stats-container h2 {
    color: var(--secondary-color);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--card-hover);
    border-color: var(--secondary-color);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon i {
    font-size: 2.5rem;
    color: var(--text-color);
}

.stat-content {
    text-align: center;
}

.stat-content h3 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-content p {
    color: #888;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer {
    background: rgba(0, 0, 0, 0.95);
    padding: 3rem 2rem;
    margin-top: 4rem;
    border-top: 2px solid rgba(198, 40, 40, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(198, 40, 40, 0.3),
        transparent
    );
}

.footer-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
}

.footer-content::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(198, 40, 40, 0.3),
        transparent
    );
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    background: rgba(198, 40, 40, 0.08);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(198, 40, 40, 0.2);
}

.footer-links a {
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 1.1rem;
    border-radius: 20px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #c62828, #7a0f12);
    border-radius: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.footer-links a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(198, 40, 40, 0.3);
    transform: translateY(-2px);
}

.footer-links a:hover::before {
    opacity: 0.2;
}

.footer-copyright {
    color: #888;
    font-size: 1rem;
    text-align: right;
    padding: 1rem 2rem;
    background: rgba(198, 40, 40, 0.08);
    border-radius: 50px;
    border: 1px solid rgba(198, 40, 40, 0.2);
    margin-left: auto;
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav-brand {
        font-size: 1.5rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-copyright {
        width: 100%;
        text-align: center;
    }
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border: none;
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--card-hover);
} 

.bg-effects {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 60%),
        linear-gradient(180deg, #020304 0%, #050607 50%, #020304 100%);
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(90, 90, 90, 0.08), transparent 42%);
    filter: blur(18px);
}

/* ========================= */
/* REALISTIC ASH FLAKES */
/* ========================= */

.ash {
    position: absolute;
    display: block;
    pointer-events: none;

    width: 3px;
    height: 11px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.02) 0%,
            rgba(210,210,210,0.55) 18%,
            rgba(160,160,160,0.9) 50%,
            rgba(220,220,220,0.45) 78%,
            rgba(255,255,255,0.02) 100%
        );

    clip-path: polygon(
        42% 0%,
        78% 8%,
        100% 28%,
        82% 55%,
        92% 100%,
        48% 88%,
        18% 100%,
        8% 62%,
        0% 30%,
        20% 10%
    );

    border-radius: 1px;
    filter: blur(0.25px);
    box-shadow:
        0 0 4px rgba(255,255,255,0.08),
        0 0 1px rgba(255,255,255,0.18);

    animation:
        var(--move) var(--speed) linear infinite,
        spin var(--spin) linear infinite;
}

.ash-variant-1 {
    clip-path: polygon(
        50% 0%, 82% 12%, 94% 34%, 78% 58%, 88% 100%,
        46% 90%, 12% 100%, 6% 60%, 0% 26%, 24% 8%
    );
}

.ash-variant-2 {
    clip-path: polygon(
        35% 0%, 72% 6%, 100% 24%, 76% 48%, 86% 100%,
        40% 84%, 8% 100%, 12% 54%, 0% 18%, 18% 4%
    );
}

.ash-variant-3 {
    clip-path: polygon(
        48% 0%, 68% 10%, 96% 22%, 84% 46%, 100% 100%,
        52% 86%, 20% 100%, 6% 70%, 10% 26%, 30% 6%
    );
}

/* bottom / upward drifting */
/* bottom */
.ash-1  { width:4px;height:16px;left:8%;top:92%;  --move:rise1; --speed:4s;  --spin:0.8s; }
.ash-2  { width:3px;height:12px;left:18%;top:98%; --move:rise2; --speed:3.5s;--spin:0.6s; opacity:0.5;}
.ash-3  { width:5px;height:18px;left:34%;top:94%; --move:rise3; --speed:4.5s;--spin:1.2s;}
.ash-4  { width:3px;height:11px;left:52%;top:97%; --move:rise4; --speed:3.2s;--spin:0.5s; opacity:0.45;}
.ash-5  { width:4px;height:15px;left:71%;top:95%; --move:rise5; --speed:4.2s;--spin:1.5s;}
.ash-6  { width:6px;height:22px;left:88%;top:99%; --move:rise6; --speed:3.8s;--spin:0.7s; opacity:0.65;}

/* left */
.ash-7  { width:4px;height:15px;left:-2%;top:22%; --move:sideLeft1; --speed:4s; --spin:1s;}
.ash-8  { width:3px;height:12px;left:-3%;top:46%; --move:sideLeft2; --speed:4.5s;--spin:0.7s; opacity:0.5;}
.ash-9  { width:5px;height:18px;left:-1%;top:68%; --move:sideLeft3; --speed:3.8s;--spin:1.3s;}

/* right */
.ash-10 { width:4px;height:16px;right:-2%;top:18%; --move:sideRight1; --speed:4s; --spin:0.9s;}
.ash-11 { width:3px;height:13px;right:-3%;top:42%; --move:sideRight2; --speed:4.5s;--spin:1.4s; opacity:0.45;}
.ash-12 { width:5px;height:19px;right:-1%;top:64%; --move:sideRight3; --speed:3.8s;--spin:0.6s;}

/* top left */
.ash-13 { width:4px;height:14px;left:6%;top:-4%; --move:topLeft1; --speed:4.2s;--spin:1s;}
.ash-14 { width:3px;height:11px;left:18%;top:-6%; --move:topLeft2; --speed:3.8s;--spin:0.6s; opacity:0.45;}
.ash-15 { width:5px;height:20px;left:2%;top:-3%; --move:topLeft3; --speed:4.8s;--spin:1.5s;}

/* top right */
.ash-16 { width:4px;height:15px;right:8%;top:-5%; --move:topRight1; --speed:4s; --spin:0.9s;}
.ash-17 { width:3px;height:12px;right:20%;top:-4%; --move:topRight2; --speed:3.5s;--spin:1.2s; opacity:0.4;}
.ash-18 { width:6px;height:22px;right:3%;top:-6%; --move:topRight3; --speed:4.8s;--spin:0.7s;}

/* extras */
.ash-19 { width:2px;height:9px; left:42%;top:84%; --move:rise2; --speed:3s; --spin:1.6s; opacity:0.35;}
.ash-20 { width:3px;height:10px;left:63%;top:8%; --move:topLeft2; --speed:3.8s;--spin:0.5s; opacity:0.3;}
.ash-21 { width:2px;height:8px; right:34%;top:12%; --move:topRight2; --speed:3.2s;--spin:1.3s; opacity:0.3;}
.ash-22 { width:3px;height:12px;left:24%;top:60%; --move:sideLeft1; --speed:4.2s;--spin:0.8s; opacity:0.35;}
.ash-23 { width:2px;height:9px; right:28%;top:58%; --move:sideRight2; --speed:4.5s;--spin:1.5s; opacity:0.3;}
.ash-24 { width:4px;height:14px;left:78%;top:88%; --move:rise4; --speed:3.8s;--spin:0.6s; opacity:0.45;}

/* UPWARD */
@keyframes rise1 {
    0% { transform: translate(0, 0) rotate(8deg); opacity: 0; }
    10% { opacity: 0.75; }
    100% { transform: translate(80px, -950px) rotate(32deg); opacity: 0; }
}
@keyframes rise2 {
    0% { transform: translate(0, 0) rotate(-12deg); opacity: 0; }
    10% { opacity: 0.5; }
    100% { transform: translate(-60px, -880px) rotate(18deg); opacity: 0; }
}
@keyframes rise3 {
    0% { transform: translate(0, 0) rotate(12deg); opacity: 0; }
    10% { opacity: 0.8; }
    100% { transform: translate(110px, -1020px) rotate(40deg); opacity: 0; }
}
@keyframes rise4 {
    0% { transform: translate(0, 0) rotate(-9deg); opacity: 0; }
    10% { opacity: 0.45; }
    100% { transform: translate(-85px, -900px) rotate(-20deg); opacity: 0; }
}
@keyframes rise5 {
    0% { transform: translate(0, 0) rotate(10deg); opacity: 0; }
    10% { opacity: 0.7; }
    100% { transform: translate(70px, -960px) rotate(25deg); opacity: 0; }
}
@keyframes rise6 {
    0% { transform: translate(0, 0) rotate(-14deg); opacity: 0; }
    10% { opacity: 0.65; }
    100% { transform: translate(-95px, -1080px) rotate(-34deg); opacity: 0; }
}

/* LEFT TO RIGHT */
@keyframes sideLeft1 {
    0% { transform: translate(0, 0) rotate(18deg); opacity: 0; }
    10% { opacity: 0.7; }
    100% { transform: translate(980px, -140px) rotate(55deg); opacity: 0; }
}
@keyframes sideLeft2 {
    0% { transform: translate(0, 0) rotate(10deg); opacity: 0; }
    10% { opacity: 0.45; }
    100% { transform: translate(1080px, 90px) rotate(34deg); opacity: 0; }
}
@keyframes sideLeft3 {
    0% { transform: translate(0, 0) rotate(22deg); opacity: 0; }
    10% { opacity: 0.75; }
    100% { transform: translate(1180px, -60px) rotate(62deg); opacity: 0; }
}

/* RIGHT TO LEFT */
@keyframes sideRight1 {
    0% { transform: translate(0, 0) rotate(-16deg); opacity: 0; }
    10% { opacity: 0.7; }
    100% { transform: translate(-980px, -120px) rotate(-48deg); opacity: 0; }
}
@keyframes sideRight2 {
    0% { transform: translate(0, 0) rotate(-10deg); opacity: 0; }
    10% { opacity: 0.45; }
    100% { transform: translate(-1080px, 80px) rotate(-32deg); opacity: 0; }
}
@keyframes sideRight3 {
    0% { transform: translate(0, 0) rotate(-22deg); opacity: 0; }
    10% { opacity: 0.75; }
    100% { transform: translate(-1180px, -50px) rotate(-58deg); opacity: 0; }
}

/* TOP LEFT DOWNWARD */
@keyframes topLeft1 {
    0% { transform: translate(0, 0) rotate(14deg); opacity: 0; }
    10% { opacity: 0.65; }
    100% { transform: translate(240px, 760px) rotate(48deg); opacity: 0; }
}
@keyframes topLeft2 {
    0% { transform: translate(0, 0) rotate(8deg); opacity: 0; }
    10% { opacity: 0.45; }
    100% { transform: translate(180px, 680px) rotate(30deg); opacity: 0; }
}
@keyframes topLeft3 {
    0% { transform: translate(0, 0) rotate(18deg); opacity: 0; }
    10% { opacity: 0.75; }
    100% { transform: translate(300px, 860px) rotate(55deg); opacity: 0; }
}

/* TOP RIGHT DOWNWARD */
@keyframes topRight1 {
    0% { transform: translate(0, 0) rotate(-14deg); opacity: 0; }
    10% { opacity: 0.65; }
    100% { transform: translate(-240px, 760px) rotate(-48deg); opacity: 0; }
}
@keyframes topRight2 {
    0% { transform: translate(0, 0) rotate(-8deg); opacity: 0; }
    10% { opacity: 0.4; }
    100% { transform: translate(-180px, 680px) rotate(-30deg); opacity: 0; }
}
@keyframes topRight3 {
    0% { transform: translate(0, 0) rotate(-18deg); opacity: 0; }
    10% { opacity: 0.75; }
    100% { transform: translate(-300px, 860px) rotate(-56deg); opacity: 0; }
}

html {
    scroll-behavior: smooth;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #c62828 #050505;
}

/* Chrome / Edge */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c62828, #7a0f12);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #e53935, #8e1216);
}