@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=IM+Fell+English:ital@0;1&display=swap');

/* ══════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg:           #06060c;
    --surface:      rgba(7, 5, 15, 0.90);
    --silver:       #a8b8cc;
    --gold:         #c4a44a;
    --gold-dim:     #7a6428;
    --purple:       #5a3880;
    --purple-dim:   #3a2458;
    --glow-purple:  rgba(90, 56, 128, 0.45);
    --glow-gold:    rgba(196, 164, 74, 0.30);
    --text:         #ccc4e0;
    --text-dim:     #706080;
    --border:       rgba(168, 184, 208, 0.10);
    --border-gold:  rgba(196, 164, 74, 0.22);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    background-image: url('void.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    color: var(--text);
    font-family: 'IM Fell English', Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.85;
    overflow-x: hidden;
}

/* ══════════════════════════════════════════
   SCROLLBAR
══════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--purple-dim);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--purple);
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.3rem 3rem;
    background: linear-gradient(
        to bottom,
        rgba(4, 3, 10, 0.97) 0%,
        rgba(4, 3, 10, 0.60) 70%,
        transparent 100%
    );
}

.nav-inner {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.12em;
    text-shadow: 0 0 18px var(--glow-gold);
    user-select: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.8rem;
}

.nav-links a {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--silver);
    text-decoration: none;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.8;
    transition: color 0.3s ease, opacity 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold);
    opacity: 1;
    text-shadow: 0 0 14px var(--glow-gold);
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    background-image: url('fight.jpg');
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(4, 3, 10, 0.65)  0%,
        rgba(4, 3, 10, 0.25)  35%,
        rgba(4, 3, 10, 0.55)  65%,
        rgba(4, 3, 10, 0.95)  88%,
        rgba(4, 3, 10, 1.00) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: fadeUp 1.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-eyebrow {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 0.88rem;
    color: var(--text-dim);
    letter-spacing: 0.25em;
    margin-bottom: 1.2rem;
    opacity: 0.7;
}

.hero-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(4.5rem, 13vw, 10rem);
    font-weight: 900;
    line-height: 0.88;
    color: #f0eeff;
    letter-spacing: 0.04em;
    margin-bottom: 1.8rem;
    text-shadow:
        0 0  40px rgba(90, 56, 128, 0.90),
        0 0  80px rgba(90, 56, 128, 0.45),
        0 0 160px rgba(90, 56, 128, 0.20),
        0  3px 0   rgba(0, 0, 0, 0.95);
    animation: titleBreath 7s ease-in-out infinite;
}

.hero-sub {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--silver);
    line-height: 1.7;
    margin-bottom: 3rem;
    opacity: 0.80;
}

.btn-enter {
    display: inline-block;
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    border: 1px solid var(--border-gold);
    padding: 1rem 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow:
        0 0 20px var(--glow-gold),
        inset 0 0 20px rgba(196, 164, 74, 0.04);
}

.btn-enter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(196, 164, 74, 0.06);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.btn-enter:hover::before {
    transform: scaleX(1);
}

.btn-enter:hover {
    color: #e8cc80;
    border-color: rgba(196, 164, 74, 0.45);
    box-shadow:
        0 0 45px var(--glow-gold),
        inset 0 0 30px rgba(196, 164, 74, 0.08);
    letter-spacing: 0.3em;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 1.4rem;
    color: var(--text-dim);
    opacity: 0.4;
    animation: scrollBob 2.5s ease-in-out infinite;
}

/* ══════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════ */
.divider-wrap {
    text-align: center;
    padding: 0.8rem 0;
    line-height: 0;
}

.divider-img {
    max-width: 580px;
    width: 75%;
    opacity: 0.48;
    filter: brightness(1.3) sepia(0.15);
}

/* ══════════════════════════════════════════
   SHARED SECTION STYLES
══════════════════════════════════════════ */
section {
    padding: 5.5rem 2rem;
}

.section-inner {
    max-width: 920px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.3rem, 3.5vw, 2rem);
    font-weight: 700;
    color: var(--gold);
    text-align: center;
    letter-spacing: 0.14em;
    margin-bottom: 3.2rem;
    text-shadow: 0 0 28px var(--glow-gold);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
    margin: 1rem auto 0;
    box-shadow: 0 0 10px var(--glow-gold);
}

/* ══════════════════════════════════════════
   LORE SECTION
══════════════════════════════════════════ */
.lore {
    background: var(--surface);
    border-top:    1px solid var(--border);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(4px);
}

.lore-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: justify;
    color: var(--text);
    margin-bottom: 2.8rem;
}

.lore-body > p:first-child::first-letter {
    font-family: 'Cinzel Decorative', serif;
    font-size: 4rem;
    font-weight: 700;
    float: left;
    line-height: 0.78;
    padding-right: 0.12em;
    padding-top: 0.06em;
    color: var(--gold);
    text-shadow: 0 0 24px var(--glow-gold);
}

.lore-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    margin-top: 1rem;
}

.lore-tag {
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 0.4rem 1.1rem;
    transition: border-color 0.3s, color 0.3s;
}

.lore-tag:hover {
    color: var(--gold);
    border-color: var(--border-gold);
}

/* ══════════════════════════════════════════
   CHARACTERS SECTION
══════════════════════════════════════════ */
.char-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
    align-items: stretch;
}

.char-card {
    position: relative;
    background: rgba(7, 4, 17, 0.75);
    border: 1px solid var(--border);
    padding: 2.8rem 1.8rem 2.2rem;
    text-align: center;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.char-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--glow-purple) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.char-card:hover::after {
    opacity: 1;
}

.char-card:hover {
    transform: translateY(-6px);
    border-color: rgba(90, 56, 128, 0.40);
    box-shadow:
        0  8px 40px rgba(0, 0, 0, 0.5),
        0  0  50px var(--glow-purple);
}

/* Featured center card — Nephis */
.char-card--featured {
    border-color: var(--border-gold);
    background: rgba(14, 9, 4, 0.80);
    transform: translateY(-8px);
}

.char-card--featured::after {
    background: radial-gradient(ellipse at 50% 0%, var(--glow-gold) 0%, transparent 70%);
}

.char-card--featured:hover {
    transform: translateY(-14px);
    border-color: rgba(196, 164, 74, 0.45);
    box-shadow:
        0  8px 40px rgba(0, 0, 0, 0.5),
        0  0  55px var(--glow-gold);
}

.char-sigil {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    display: block;
    color: var(--silver);
    text-shadow: 0 0 15px rgba(168, 184, 204, 0.35);
    transition: text-shadow 0.3s;
}

.char-card--featured .char-sigil {
    color: var(--gold);
    text-shadow: 0 0 20px var(--glow-gold);
}

.char-card:hover .char-sigil {
    text-shadow: 0 0 25px rgba(168, 184, 204, 0.7);
}

.char-card--featured:hover .char-sigil {
    text-shadow: 0 0 30px var(--glow-gold), 0 0 60px rgba(196, 164, 74, 0.3);
}

.char-name {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ece8f8;
    letter-spacing: 0.07em;
    margin-bottom: 0.5rem;
}

.char-title {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.4rem;
    color: var(--text-dim);
}

.char-card--featured .char-title {
    color: var(--gold);
    opacity: 0.85;
}

.char-desc {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.75;
    margin-bottom: 1.8rem;
    opacity: 0.82;
}

.char-tag {
    display: inline-block;
    font-family: 'Cinzel Decorative', serif;
    font-size: 0.50rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid var(--border);
    padding: 0.38rem 1.1rem;
}

.char-card--featured .char-tag {
    color: var(--gold-dim);
    border-color: var(--border-gold);
}

/* ══════════════════════════════════════════
   QUOTES SECTION
══════════════════════════════════════════ */
.quotes {
    background: var(--surface);
    border-top:    1px solid var(--border);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(4px);
}

.quote-list {
    display: flex;
    flex-direction: column;
    gap: 2.8rem;
}

.quote-block {
    position: relative;
    padding: 1.8rem 2.5rem 1.8rem 3.2rem;
    border-left: 1px solid var(--border-gold);
    background: rgba(196, 164, 74, 0.025);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.quote-block:hover {
    background: rgba(196, 164, 74, 0.05);
    border-color: rgba(196, 164, 74, 0.40);
}

.quote-mark {
    font-family: 'Cinzel Decorative', serif;
    font-size: 5.5rem;
    line-height: 1;
    color: var(--gold-dim);
    position: absolute;
    top: -0.6rem;
    left: 0.6rem;
    opacity: 0.30;
    user-select: none;
    pointer-events: none;
}

.quote-block p {
    font-style: italic;
    font-size: 1.05rem;
    color: var(--silver);
    line-height: 1.85;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer {
    text-align: center;
    padding: 3rem 2rem 2.8rem;
    background: rgba(3, 2, 8, 0.97);
    border-top: 1px solid var(--border);
}

.footer-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px var(--glow-gold);
}

.footer-sub {
    font-family: 'IM Fell English', serif;
    font-style: italic;
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.75;
    margin-bottom: 1.2rem;
    opacity: 0.75;
}

.footer-copy {
    font-size: 0.70rem;
    color: rgba(112, 96, 128, 0.45);
    letter-spacing: 0.12em;
}

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleBreath {
    0%, 100% {
        text-shadow:
            0 0  40px rgba(90, 56, 128, 0.90),
            0 0  80px rgba(90, 56, 128, 0.40),
            0 0 160px rgba(90, 56, 128, 0.18),
            0  3px 0   rgba(0, 0, 0, 0.95);
    }
    40% {
        text-shadow:
            0 0  60px rgba(90, 56, 128, 1.00),
            0 0 110px rgba(90, 56, 128, 0.60),
            0 0 200px rgba(90, 56, 128, 0.28),
            0  3px 0   rgba(0, 0, 0, 0.95);
    }
    50% {
        text-shadow:
            0 0  28px rgba(90, 56, 128, 0.70),
            0 0  60px rgba(90, 56, 128, 0.30),
            0 0 120px rgba(90, 56, 128, 0.12),
            0  3px 0   rgba(0, 0, 0, 0.95);
    }
    60% {
        text-shadow:
            0 0  65px rgba(90, 56, 128, 1.00),
            0 0 115px rgba(90, 56, 128, 0.62),
            0 0 210px rgba(90, 56, 128, 0.30),
            0  3px 0   rgba(0, 0, 0, 0.95);
    }
}

@keyframes scrollBob {
    0%, 100% { transform: translateX(-50%) translateY(0);   opacity: 0.4; }
    50%       { transform: translateX(-50%) translateY(7px); opacity: 0.7; }
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 780px) {
    .navbar {
        padding: 1rem 1.5rem;
    }
    .nav-links {
        gap: 1.5rem;
    }
    .nav-links a {
        font-size: 0.58rem;
    }
    section {
        padding: 3.8rem 1.3rem;
    }
    .char-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }
    .char-card--featured {
        transform: translateY(0);
        border-color: var(--border-gold);
    }
    .char-card--featured:hover {
        transform: translateY(-6px);
    }
    .lore-body > p:first-child::first-letter {
        font-size: 2.8rem;
    }
    .quote-block {
        padding: 1.5rem 1.5rem 1.5rem 2.5rem;
    }
    .divider-img {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        font-size: 0.75rem;
    }
    .hero-eyebrow {
        display: none;
    }
    .hero-sub {
        font-size: 0.95rem;
    }
    .btn-enter {
        padding: 0.9rem 2rem;
    }
}
