/* --- CSS Variables & Reset --- */
:root {
    /* Base colors built around the brand palette */
    --bg-color: #0f0505; /* Near-black with a faint warm/red undertone */
    --surface-color: #1a0a0a; /* Slightly lighter surface for cards */
    --text-primary: #FFFFFF; /* Accent White */
    --text-secondary: #d1c5c5; /* Muted white for readability */
    
    /* Brand Colors */
    --brand-red: #800000;
    --brand-yellow: #ffac0a;
    
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(15, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    padding: 1rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-primary);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* --- Buttons --- */
.btn-primary {
    background: var(--brand-red);
    color: var(--text-primary) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 800 !important;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: var(--brand-yellow);
    color: #000000 !important; /* Black text on yellow for high contrast */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 172, 10, 0.3);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--brand-yellow);
    padding: 0.8rem 2rem;
    border: 2px solid var(--brand-yellow);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 2rem;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--brand-yellow);
    color: #000000;
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    background: radial-gradient(circle at center, #240b0b 0%, var(--bg-color) 100%);
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--text-primary), var(--brand-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Sections & Grid --- */
.section-padding {
    padding: 8rem 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Cards --- */
.card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(128, 0, 0, 0.3); /* Subtle red border */
    transition: var(--transition);
    border-top: 3px solid var(--brand-red); /* Solid red accent line */
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-yellow);
    box-shadow: 0 10px 30px rgba(255, 172, 10, 0.1);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--brand-yellow); /* If using text-based emojis/icons */
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
}

/* --- Mission Section --- */
.dark-bg {
    background-color: #120606;
    text-align: center;
    border-top: 1px solid rgba(128, 0, 0, 0.2);
    border-bottom: 1px solid rgba(128, 0, 0, 0.2);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper p {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 6rem 5% 2rem;
    background: var(--bg-color);
}

.footer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.footer-bottom {
    margin-top: 6rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInAnim 1s forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}