/* =========================================
   1. Variables & Theme
   ========================================= */
:root {
    /* Core Palette */
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;

    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-900: #064e3b;

    --cyan-400: #22d3ee;
    --red-500: #ef4444;
    --red-900: #7f1d1d;
    --blue-500: #3b82f6;
    --white: #ffffff;

    /* Typography */
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* =========================================
   2. Reset & Base Typography
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--slate-950);
    color: var(--slate-200);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
button { font-family: inherit; cursor: pointer; border: none; }
ul { list-style: none; }
img, svg { display: block; }

strong { color: var(--white); font-weight: 700; }
em { color: var(--emerald-400); font-style: normal; }

h1, h2, h3, h4, h5, h6 {
    color: var(--white);
    font-weight: 700;
    line-height: 1.2;
}

/* =========================================
   3. Layout Utilities
   ========================================= */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-py {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.bg-slate-900 { background-color: var(--slate-900); }

/* Flex & Grid Helpers */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Spacing & Text Helpers */
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-emerald { color: var(--emerald-400); }
.text-slate-400 { color: var(--slate-400); }
.font-bold { font-weight: 700; }
.font-mono { font-family: var(--font-mono); }

/* Gradient Text Utility */
.gradient-text {
    background: linear-gradient(to right, var(--emerald-400), var(--cyan-400));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
    /* Defined locally where needed usually, but put global helper here if you have one */
}

@media (min-width: 768px) {
    .md-grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md-flex-row { flex-direction: row; }
    .md-block { display: block; }
    .md-hidden { display: none; }
    .md-text-right { text-align: right; }
    .order-1 { order: 1; }
    .order-2 { order: 2; }
}

@media (min-width: 1024px) {
    .lg-grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg-col-span-6 { grid-column: span 6 / span 6; }
}

/* =========================================
   4. Global Components (Buttons, Nav, Footer)
   ========================================= */

/* Buttons */
.btn-primary {
    background-color: var(--emerald-500);
    color: var(--slate-950);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}
.btn-primary:hover { background-color: var(--emerald-600); }

/* Navbar */
.navbar {
    top: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-800);
}
.nav-content {
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
}
.logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--emerald-500);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-950);
}

/* --- ADDED: Hide desktop links by default on mobile --- */
.nav-links {
    display: none;
}

.nav-links a {
    color: var(--slate-300);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}
.nav-links a:hover {
    color: var(--emerald-400);
}

/* Mobile Menu */
.mobile-menu-btn {
    padding: 0.5rem;
    color: var(--slate-400);
    background: transparent;
}
.mobile-menu {
    background-color: var(--slate-900);
    border-bottom: 1px solid var(--slate-800);
    padding: 0.5rem;
    display: none;
}
.mobile-menu.open { display: block; }

/* --- FIX: Force hide mobile menu on desktop even if .open class is active --- */
@media (min-width: 768px) {
    .mobile-menu, .mobile-menu.open {
        display: none !important;
    }

    /* --- ADDED: Hide the mobile button on desktop --- */
    .mobile-menu-btn {
        display: none;
    }

    /* --- ADDED: Show the desktop links on desktop --- */
    .nav-links {
        display: flex;
        gap: 1rem; /* Optional spacing */
    }
}

/* =========================================
   5. Hero Buttons (Moved from Index.cshtml.css)
   ========================================= */
.btn-hero-primary {
    display: inline-flex; /* Added based on your inline style */
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: var(--emerald-500);
    color: var(--slate-950);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.375rem;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s;
    text-decoration: none; /* Ensure no underline */
    cursor: pointer;
}
.btn-hero-primary:hover {
    background-color: var(--emerald-600);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    color: var(--slate-950); /* Maintain text color */
}

.btn-hero-secondary {
    display: inline-flex; /* Added based on usage pattern */
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: var(--slate-900);
    border: 1px solid var(--slate-700);
    color: var(--slate-300);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.375rem;
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
}
.btn-hero-secondary:hover {
    background-color: var(--slate-800);
    color: var(--slate-200);
}

/* Footer */
footer {
    background-color: var(--slate-950);
    border-top: 1px solid var(--slate-800);
    padding: 3rem 0;
    margin-top: auto;
}