
/* ==============================================
   VORGAR: Fields of War — One-Pager Styles
   ============================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold:        #c8a84e;
    --gold-light:  #e8d48b;
    --gold-dark:   #8b6914;
    --stone:       #2a2520;
    --stone-light: #3d3630;
    --stone-dark:  #1a1510;
    --parchment:   #f5e6c8;
    --text-light:  #e8e0d4;
    --text-dim:    #a89880;
    --bg-dark:     #0f0d0a;
    --bg-section:  #1a1714;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cinzel', Georgia, 'Times New Roman', serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    background: rgba(15, 13, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200, 168, 78, 0.15);
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: rgba(15, 13, 10, 0.97);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.nav-brand {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.15em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-cta {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--bg-dark) !important;
    padding: 0.45rem 1.2rem;
    border-radius: 4px;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.3s !important;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(200, 168, 78, 0.3);
    color: var(--bg-dark) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('/img/background_game_v2.png') center center / cover no-repeat fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            180deg,
            rgba(15, 13, 10, 0.55) 0%,
            rgba(15, 13, 10, 0.3) 40%,
            rgba(15, 13, 10, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.15;
    color: transparent;
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 40px rgba(200, 168, 78, 0.15);
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: clamp(1rem, 2.2vw, 1.35rem);
    color: var(--text-dim);
    font-weight: 400;
    letter-spacing: 0.08em;
    margin-bottom: 2.5rem;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.6;
    animation: bounce 2s infinite;
    z-index: 2;
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.3s;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(200, 168, 78, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(200, 168, 78, 0.4);
    color: var(--bg-dark);
}

.btn-large {
    font-size: 1.15rem;
    padding: 1.1rem 2.5rem;
}

.btn-icon {
    font-size: 0.85em;
}

/* ---------- Sections ---------- */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--bg-section);
}

.section-stone {
    background: linear-gradient(180deg, var(--stone-dark) 0%, var(--stone) 50%, var(--stone-dark) 100%);
}

.section-cta {
    position: relative;
    background: url('/img/background_game_v2.png') center center / cover no-repeat fixed;
    text-align: center;
}

.section-cta .hero-overlay {
    background: linear-gradient(
            180deg,
            rgba(15, 13, 10, 0.8) 0%,
            rgba(15, 13, 10, 0.6) 50%,
            rgba(15, 13, 10, 0.85) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    color: var(--gold);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.section-text {
    max-width: 750px;
    margin: 0 auto 3rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ---------- Features Grid ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(200, 168, 78, 0.04);
    border: 1px solid rgba(200, 168, 78, 0.1);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(200, 168, 78, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.feature-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---------- Phases Timeline ---------- */
.phases-timeline {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.phase-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.phase-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.phase-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--bg-dark);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(200, 168, 78, 0.2);
}

.phase-content h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.phase-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- Screenshots ---------- */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.screenshot-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(200, 168, 78, 0.12);
    transition: transform 0.3s, box-shadow 0.3s;
}

.screenshot-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(200, 168, 78, 0.1);
    padding: 3rem 0 2rem;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-logo {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.15em;
}

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-dim);
    transition: color 0.3s, transform 0.2s;
}

.footer-social a:hover {
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-copy p {
    color: var(--text-dim);
    font-size: 0.78rem;
    opacity: 0.6;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(15, 13, 10, 0.97);
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(200, 168, 78, 0.15);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        background-attachment: scroll;
    }

    .section-cta {
        background-attachment: scroll;
    }

    .section {
        padding: 4rem 0;
    }

    .phases-timeline {
        gap: 2rem;
    }

    .phase-item {
        gap: 1rem;
    }

    .phase-number {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}