/* ---------------------------------------------------------
   FONTS & GLOBAL BASE
--------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #06070d;
    color: #e9e9e9;
    overflow-x: hidden;
}

/* ---------------------------------------------------------
   ANIMATIONS
--------------------------------------------------------- */

/* Fade upward */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Fade */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Glowing pulse for logo */
@keyframes pulseGlow {
    0%   { box-shadow: 0 0 12px rgba(255,190,115,0.3); }
    50%  { box-shadow: 0 0 22px rgba(255,190,115,0.6); }
    100% { box-shadow: 0 0 12px rgba(255,190,115,0.3); }
}

/* Animation delays */
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* Utility fade-in class */
.fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* Parallax background helper (optional) */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* ---------------------------------------------------------
   HEADER + NAVIGATION
--------------------------------------------------------- */

.main-header {
    width: 100%;
    height: 72px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;

    backdrop-filter: blur(12px);
    background: rgba(10,10,18,0.8);
    border-bottom: 1px solid rgba(255,220,150,0.15);

    animation: fadeIn 0.8s ease-out forwards;
}

.main-nav {
    max-width: 1400px;
    margin: auto;
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: "Cinzel", serif;
    font-size: 1.25rem;
    text-decoration: none;
    color: #fbe3b1;
    font-weight: 700;

    animation: fadeInUp 1.2s ease-out both;
}

.nav-logo-img {
    height: 40px;
    width: 40px;
    border-radius: 6px;
    animation: pulseGlow 5s ease-in-out infinite;
}

/* Nav links */
.nav-links {
    display: flex;
    gap: 18px;
}

.nav-links a {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 1rem;
    letter-spacing: 0.4px;
    color: #eeeeee;
    transition: 0.25s;
}

.nav-links a:hover {
    background: rgba(255,210,140,0.12);
    color: #ffdca3;
    transform: translateY(-2px);
}

/* Active nav */
.nav-links .active {
    background: rgba(255,190,120,0.18);
    color: #ffd39a;
    border: 1px solid rgba(255,200,120,0.3);
    box-shadow: 0 0 12px rgba(255,200,120,0.4);
}

/* ---------------------------------------------------------
   HERO SECTION (Centered)
--------------------------------------------------------- */

.hero {
    min-height: 80vh;
    padding: 110px 28px 80px;
    color: white;
    background-size: cover;
    background-position: center;
    position: relative;

    display: flex;
    flex-direction: column;
    justify-content: center;        /* CENTER VERTICALLY */
    align-items: center;            /* CENTER HORIZONTALLY */

    animation: fadeIn 0.8s ease-out forwards;
    text-align: center;             /* CENTER TEXT */
}

/* Dark overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.75));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;               /* a bit wider for centered layout */
    width: 100%;
    padding: 0 20px;

    display: flex;
    flex-direction: column;
    align-items: center;            /* CENTER CONTENT ELEMENTS */
    justify-content: center;
    text-align: center;

    animation: fadeInUp 1.1s ease-out both;
}

.hero-title {
    font-family: "Cinzel", serif;
    font-size: 3.1rem;
    font-weight: 600;
    color: #ffe7c2;
    margin-bottom: 20px;

    text-shadow: 0 4px 14px rgba(0,0,0,0.6);
}

.hero-sub {
    margin-top: 10px;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #eaeaea;
    opacity: 0.92;
    max-width: 700px;
}

/* Pills centered */
.pill-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.pill {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 160, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fbe3b1;
    background: rgba(20, 18, 12, 0.8);
}

/* Primary CTA button */
.btn-primary {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #d69a3b, #f4c77b);
    color: #1b1308;
    font-family: "Cinzel", serif;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(250,210,140,0.9);
    box-shadow: 0 0 16px rgba(245,200,120,0.5);
    transition: 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(245,215,140,0.8);
}

/* Small hero note under button */
.hero-note {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ---------------------------------------------------------
   MAIN LAYOUT
--------------------------------------------------------- */

.layout-main {
    max-width: 1200px;
    margin: auto;
    padding: 40px 28px;
}

/* ---------------------------------------------------------
   SECTION + HEADINGS
--------------------------------------------------------- */

.section {
    margin: 60px 0;
    animation: fadeInUp 1s ease-out both;
}

.section h2 {
    font-family: "Cinzel", serif;
    font-size: 2rem;
    color: #ffd8a3;
    margin-bottom: 8px;
}

.subtext {
    opacity: 0.75;
    margin-bottom: 18px;
}

/* ---------------------------------------------------------
   CARDS
--------------------------------------------------------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
    gap: 22px;
}

.card {
    background: rgba(20,20,32,0.7);
    border: 1px solid rgba(255,210,150,0.15);
    padding: 22px;
    border-radius: 12px;
    transition: 0.25s;
}

.card h3 {
    font-family: "Cinzel", serif;
    margin-bottom: 6px;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,210,150,0.4);
    box-shadow: 0 0 20px rgba(255,210,150,0.3);
}

/* ---------------------------------------------------------
   JOIN PAGE COMPONENTS
--------------------------------------------------------- */

.join-step {
    background: rgba(18,18,28,0.7);
    border: 1px solid rgba(255,210,150,0.20);
    padding: 20px 26px;
    border-radius: 12px;
    margin-bottom: 26px;
    box-shadow: 0 0 18px rgba(0,0,0,0.5);
}

.join-step h3 {
    font-family: "Cinzel", serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.join-step p {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Direct connect box */
.direct-box {
    margin-top: 20px;
    margin-bottom: 14px;
    padding: 18px;
    background: #15151f;
    border-radius: 10px;
    border: 1px solid #353545;
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.6px;
}

/* Discord button */
.discord-btn {
    margin-top: 14px;
    display: inline-block;
    padding: 12px 22px;
    background: #5865F2;
    color: white;
    font-family: "Inter", sans-serif;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: 0.2s;
}

.discord-btn:hover {
    background: #4753c7;
    box-shadow: 0 0 14px rgba(90,100,255,0.6);
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.footer {
    text-align: center;
    padding: 40px;
    margin-top: 60px;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------
   RESPONSIVE DESIGN
--------------------------------------------------------- */

@media (max-width: 900px) {
    .hero-title { font-size: 2.4rem; }
    .hero { padding-top: 120px; }
    .main-nav { padding: 0 16px; }
}

@media (max-width: 600px) {
    .nav-links { gap: 10px; }
    .nav-links a { padding: 6px 10px; }
    .hero { padding: 120px 18px 60px; }
}
/* ===========================
   RESPONSIVE NAVBAR
   =========================== */

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 64px;
    background: #0c0f14;
    border-bottom: 1px solid #20232b;
    z-index: 999;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1600px;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #f5f5f5;
    font-weight: 600;
    text-decoration: none;
}
.nav-logo img {
    height: 32px;
}

/* LINKS DESKTOP */
.nav-links {
    display: flex;
    list-style: none;
    gap: 26px;
    align-items: center;
}

.nav-links li a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 15px;
    transition: 0.2s;
}
.nav-links li a:hover {
    color: #f6a623;
}

/* HAMBURGER (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 4px;
}

.nav-toggle .bar {
    width: 26px;
    height: 3px;
    background: #ffffff;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hamburger animation */
.nav-toggle.open .bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* MOBILE MENU CLOSED */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 64px;
        right: -100%;
        width: 240px;
        height: calc(100vh - 64px);
        background: #0c0f14;
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        border-left: 1px solid #20232b;
        transition: 0.35s ease;
    }

    .nav-links.open {
        right: 0;
    }

    /* show hamburger */
    .nav-toggle {
        display: flex;
    }
}
