/* --- Global Styles & Variables --- */
:root {
    /* Default: Dark Mode Colors */
    --bg-color: #0B0B0F;
    --bg-color-rgb: 11, 11, 15; /* For semi-transparent header */
    --secondary-color: #1a1a20;
    --text-color: #EAEAEF;
    --text-muted-color: #a0a0b0;
    --primary-color: #ee7867;
    --border-color: #2a2a32;
    --gradient: rgb(94, 52, 43);
    --hover-color: #2f2f39;
    --font-family: -apple-system,BlinkMacSystemFont,segoe ui,Roboto,Oxygen,Ubuntu,Cantarell,open sans,helvetica neue,sans-serif;
}

@media (prefers-color-scheme: light) {
    :root {
        /* Light Mode Overrides */
        --bg-color: #F9F9F9;
        --bg-color-rgb: 249, 249, 249;
        --secondary-color: #FFFFFF;
        --text-color: #111827;
        --text-muted-color: #6B7280;
        --primary-color: #ee7867;
        --border-color: #E5E7EB;
        --gradient: rgb(255, 228, 225);
        --hover-color: #c1c1c1;
        --font-family: -apple-system,BlinkMacSystemFont,segoe ui,Roboto,Oxygen,Ubuntu,Cantarell,open sans,helvetica neue,sans-serif;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.container.narrow {
    max-width: 800px;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted-color);
}

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

a:hover {
    filter: brightness(1.2);
}

/* --- Header --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(var(--bg-color-rgb), 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

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

.main-nav a {
    color: var(--text-muted-color);
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--text-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

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

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.cta-button {
    display: inline-block;
    padding: 12px 28px;
    margin-top: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    background-color: var(--primary-color);
    color: #fff;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #cf705f;
    color: #fff;
}

.cta-button.secondary {
    background: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.cta-button.secondary:hover {
    background: var(--hover-color);
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(var(--bg-color-rgb), 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: radial-gradient(circle at 50% 50%, var(--gradient) 0%, rgba(11, 11, 15, 0) 60%);
    animation: pulse 10s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

/* --- Content Sections --- */
.content-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.content-section p {
    text-align: center;
    font-size: 1.2rem;
}

/* --- Card Section --- */
.card-section h2 {
    margin-bottom: 4rem;
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card h3 {
    color: var(--text-color);
    font-size: 1.3rem;
}

/* --- Highlighted Section --- */
.highlighted-section {
    background-color: var(--secondary-color);
    text-align: center;
}

/* --- Footer --- */
.main-footer {
    padding: 40px 0;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    margin: 0;
    color: var(--text-muted-color);
}

.social-links a {
    margin-left: 1.5rem;
    color: var(--text-muted-color);
    font-weight: 500;
}
.social-links a:hover {
    color: var(--text-color);
}

/* --- Animations on Scroll --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }

    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-color);
        border-bottom: 1px solid var(--border-color);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    .main-nav li {
        text-align: center;
        margin: 1rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
    }
}