@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --secondary: #facc15;
    --accent: #14b8a6;
    --bg-primary: #0a0e1a;
    --bg-secondary: #000000;
    --bg-tertiary: #1f2937;
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    --text-muted: #9ca3af;
    --border: #4b5563;
    --shadow: rgba(0, 0, 0, 0.4);
    --gradient-primary: linear-gradient(135deg, #3b82f6, #1e3a8a);
    --gradient-secondary: linear-gradient(135deg, #facc15, #f59e0b);
    --gradient-accent: linear-gradient(135deg, #14b8a6, #0d9488);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
    position: relative;
}

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
    background: var(--bg-secondary);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--secondary);
    text-decoration: none;
    letter-spacing: -0.025em;
    transition: transform 0.3s ease, color 0.3s ease;
}

.logo:hover {
    color: var(--text-primary);
    transform: scale(1.05);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-left: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary);
    transform: translateY(-2px);
}

/* Main container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.main-content {
    margin-top: -6.16rem;
    padding: 2rem 0 4rem 0;
}

/* Section titles */
.section-title {
    font-weight: 500;
    font-size: 2.20rem;
    text-align: center;
    margin-bottom: 1.7rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

/* Hero stories */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.hero-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    cursor: pointer;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 1rem;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
}

.hero-card-image {
    width: 100%;
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin: 0.5rem;
    border-radius: 12px;
}

.hero-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.2;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.hero-card:hover .hero-card-image::before {
    opacity: 0.4;
}

.hero-card-content {
    padding: 2rem;
}

.hero-card-title {
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.025em;
}

.hero-card-excerpt {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Mini stories */
.mini-stories-section {
    margin-bottom: 4rem;
}

.mini-stories-grid {
    display: grid;
    gap: 1.5rem;
}

.mini-story-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 25px var(--shadow);
    cursor: pointer;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 1rem;
}

.mini-story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px var(--shadow);
}

.mini-story-content {
    flex: 1;
}

.mini-story-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.mini-story-excerpt {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.mini-story-image {
    width: 120px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    flex-shrink: 0;
}

/* Story Image Container */
.story-image-container {
    width: 100%;
    max-width: 800px;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    margin: 3rem auto;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px var(--shadow);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 400;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Story View */
.story-view {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 2000;
    overflow-y: auto;
    padding-bottom: 4rem;
}

.story-header {
    padding: 2rem 1.5rem 1rem 1.5rem;
    text-align: center;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 2001;
}

.story-title {
    font-weight: 700;
    font-size: 2.5rem;
    color: #ffffffc0;
    margin-bottom: 0.75rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.story-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.story-content {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.7;
}

.story-content p {
    margin-bottom: 2rem;
}

.back-btn {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    background: none;
    color: var(--text-muted);
    border: none;
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.7;
    cursor: pointer;
    z-index: 2002;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.back-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 1.5rem;
    }

    .section-title {
        font-size: 1.875rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-card {
        margin: 0.75rem;
    }

    .hero-card-content {
        padding: 1.5rem;
    }

    .mini-story-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1.5rem;
        margin: 0.75rem;
    }

    .mini-story-image {
        width: 100%;
        height: 160px;
        border-radius: 12px;
    }

    .story-title {
        font-size: 2rem;
    }

    .story-content {
        max-width: 95%;
        padding: 0 1.5rem;
        font-size: 1rem;
    }

    .story-image-container {
        height: 200px;
        margin: 2rem auto;
    }

    .footer-links {
        gap: 1rem;
    }
}