/*─────────────────────────────────────────────────────────────*/
/* Root variables                                          */
:root {
    --nav-height: 60px;
}

/*──────────────── Reset & Base ──────────────────────────────*/
* {
    margin: 0;
    box-sizing: border-box;
}
html {
    scroll-padding-top: var(--nav-height);
}
html,
body {
    height: 100%;
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

/*────────────────── NAVBAR ────────────────────────────────*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    background: #0d0d0d;
    z-index: 1000;
}
.nav-logo img {
    width: clamp(40px, 5vw, 50px);
    margin-left: 1rem;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin-right: 1rem;
}
.nav-links a {
    color: #eee;
    text-decoration: none;
    font-weight: 500;
    transition: opacity .2s;
}
.nav-links a:hover {
    opacity: 0.7;
}

/*─────────────── Snap Scrolling & Sections ─────────────────*/
body {
    scroll-snap-type: y mandatory;
}
.section {
    /* keep your preferred full-height */
    min-height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #eee;
    position: relative;
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
}

/*───────────────── Fade-in Helper ─────────────────────────*/
.fade {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s ease-out, transform .8s ease-out;
}
.fade.visible {
    opacity: 1;
    transform: none;
}

/*────────────────── HERO Specific ─────────────────────────*/
.hero-inner {
    text-align: center;
}
#logo {
    width: 30vw; /* as you prefer */
    opacity: 0;
    animation: logoIn 1.4s ease-out .3s forwards;
}
.hero-text {
    opacity: 0;
    margin-top: 1rem;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 600;
    animation: textIn 1s ease-out 1.8s forwards;
}
.hero-subtext {
    opacity: 0;
    margin-top: 0.5rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 400;
    animation: textIn 1s ease-out 2.2s forwards;
}
@keyframes logoIn {
    from { opacity: 0; transform: translateY(10vh); }
    to   { opacity: 1; transform: none; }
}
@keyframes textIn {
    from { opacity: 0; transform: translateY(5vh); }
    to   { opacity: 1; transform: none; }
}

/*──────────── TEMPLATE / INFO & CREDITS ───────────────────*/
.template .content {
    max-width: 800px;
    color: #f0f0f0;
    line-height: 1.5;
}
.template h2,
.template h3 {
    margin-bottom: 0.75rem;
}
.template p {
    margin-bottom: 1rem;
}
.credits {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
}
.credits li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/*──────────────── DISCORD SECTION ─────────────────────────*/
.discord .content {
    text-align: center;
}
.discord h2 {
    margin-bottom: 1rem;
}

/*────────────────── FOOTER ───────────────────────────────*/
.footer {
    background: #0a0a0a;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.footer-content p {
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    color: #ccc;
    opacity: 0.5;
}

/*─────────────── Responsive Phone Styles ──────────────────*/
@media (max-width: 600px) {
    :root { --nav-height: 50px; }
    .navbar {
        height: var(--nav-height);
        padding: 0 1rem;
    }
    .nav-logo img {
        width: clamp(30px, 8vw, 40px);
        margin-left: 0.5rem;
    }
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.9rem;
    }
    .section {
        padding: 1.5rem;
    }
    .template .content,
    .discord .content,
    .hero-inner {
        padding: 0 1rem;
    }
    #logo {
        width: 40vw;
    }
    .hero-text {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }
    .hero-subtext {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }
}
