/* ===================================
   Evening Star Design — Main Stylesheet
   =================================== */

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

:root {
    --bg-deep: #0a0a1a;
    --bg-surface: #111128;
    --bg-card: #1a1a3e;
    --accent: #d4a843;
    --accent-glow: rgba(212, 168, 67, 0.3);
    --text-primary: #e8e8e8;
    --text-muted: #9898b0;
    --text-dim: #6a6a82;
    --white: #ffffff;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1100px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--white);
}

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

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* --- Layout --- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    flex: 1;
}

/* --- Header / Nav --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    max-width: var(--max-width);
    width: 90%;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.logo:hover {
    color: var(--accent);
}

.logo svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 400;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 1px;
}

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#starfield {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    padding: 2rem 1rem;
}

.hero h1 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.hero h1 .accent {
    color: var(--accent);
}

.hero-tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-star {
    display: inline-block;
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(212, 168, 67, 0.4)); }
    50% { filter: drop-shadow(0 0 20px rgba(212, 168, 67, 0.8)); }
}

.cta-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all var(--transition);
}

.cta-btn:hover {
    background: var(--accent);
    color: var(--bg-deep);
}

/* --- Page Header (non-home pages) --- */
.page-header {
    padding: 8rem 0 3rem;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-deep) 100%);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0.75rem auto 0;
}

/* --- About Content --- */
.about-content {
    max-width: 720px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

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

.value-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 168, 67, 0.08);
    border-radius: 8px;
    padding: 2rem;
    transition: border-color var(--transition);
}

.value-card:hover {
    border-color: rgba(212, 168, 67, 0.25);
}

.value-card h3 {
    color: var(--accent);
}

.value-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Games "Coming Soon" --- */
.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    opacity: 0.6;
    animation: glow-pulse 4s ease-in-out infinite;
}

.coming-soon p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.coming-soon .hint {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-style: italic;
}

/* --- Contact --- */
.contact-message {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.contact-message p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.contact-message .note {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid rgba(212, 168, 67, 0.08);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.site-footer span {
    color: var(--accent);
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        flex-direction: column;
        background: var(--bg-surface);
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transition: right var(--transition);
        border-left: 1px solid rgba(212, 168, 67, 0.1);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 98;
    }

    .nav-overlay.open {
        display: block;
    }

    .section {
        padding: 3.5rem 0;
    }

    .page-header {
        padding: 6.5rem 0 2rem;
    }
}

/* --- Fade-in animation --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
