/* Master Stylesheet - Gabriel the Brave v3.0 */

:root {
    /* Color Palette */
    --color-primary: #2b6cee;
    --color-primary-hover: #1a5bbd;
    --color-background-light: #f6f6f8;
    --color-background-dark: #101622;
    --color-text-light: #101622;
    --color-text-dark: #f6f6f8;
    --color-white: #ffffff;
    --color-slate-600: #475569;
    --color-slate-400: #94a3b8;

    /* Typography */
    --font-display: 'Noto Serif', serif;
    --font-body: system-ui, -apple-system, sans-serif;

    /* Spacing */
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 4rem;

    /* Border Radius */
    --radius-md: 0.375rem;
    background-color: var(--color-background-light);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Dark Mode Support (Class-based or System) */
.dark body {
    background-color: var(--color-background-dark);
    color: var(--color-text-dark);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-slate-600);
}

.dark p {
    color: var(--color-slate-400);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .hidden-mobile {
        display: none;
    }
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 6px -1px rgba(43, 108, 238, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    box-shadow: 0 10px 15px -3px rgba(43, 108, 238, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.card {
    background-color: var(--color-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.dark .card {
    background-color: #1e293b;
    border-color: #334155;
}

.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(246, 246, 248, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark header {
    background-color: rgba(16, 22, 34, 0.8);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

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

.nav-link {
    font-weight: 500;
    font-size: 0.875rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-light);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: var(--color-background-light);
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: flex;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hidden-mobile {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-background-light), transparent);
    z-index: -1;
}

.dark .hero-overlay {
    background: linear-gradient(to top, var(--color-background-dark), transparent);
}