/* =========================================
   CSS Reset & Variables
   ========================================= */
:root {
    --bg-dark: #0a0f1a;
    --text-light: #e2e8f0;
    --primary-accent: #00d2ff;
    --secondary-accent: #3a7bd5;
    --tertiary-accent: #219bb1;
    --card-bg: #111827;
    --border-color: #1f2937;
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Pale Panel Backgrounds */
    --panel-bg-info: #e0f2fe;    /* Pale Blue */
    --panel-bg-error: #fee2e2;   /* Pale Red */
    --panel-bg-warning: #fef3c7; /* Pale Amber */
    --panel-bg-ok: #dcfce7;      /* Pale Green */

    /* Darker Text/Border colors for contrast against pale backgrounds */
    --panel-text-info: #0369a1;
    --panel-text-error: #b91c1c;
    --panel-text-warning: #b45309;
    --panel-text-ok: #15803d;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    /* Increased base font size for mobile devices */
    font-size: 1.3rem;
}

/* =========================================
   Typography & SEO Headings
   ========================================= */
h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}

h1 { font-size: 2rem; background: linear-gradient(to right,  var(--secondary-accent), var(--primary-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 1.7rem; }
p { margin-bottom: 1.2rem; color: #9ca3af; }
a {text-decoration: none; color: #d59a3f}

/* =========================================
   Lists (Unordered & Ordered)
   ========================================= */
/* Exclude nav-links to protect the header */
ul:not(.nav-links), ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #9ca3af; /* Matches our paragraph text */
}

ul:not(.nav-links) li, ol li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    padding-left: 0.5rem; /* Space between the bullet and the text */
}

/* AI-Themed Unordered List (Techy colored bullet) */
ul:not(.nav-links) {
    list-style-type: square; /* Gives a slightly more digital/tech look than circles */
}

ul:not(.nav-links) li::marker {
    color: var(--primary-accent); /* Neon cyan bullets */
    font-size: 1.1rem;
}

ul:not(.nav-links) li > ul > li::marker {
    color: #df9426;
    font-size: 1.1rem;
}

/* AI-Themed Ordered List */
ol {
    list-style-type: decimal;
}

ol li::marker {
    color: var(--secondary-accent); /* Deep blue numbers */
    font-weight: bold;
    font-family: monospace; /* Gives the numbers a subtle coding/terminal vibe */
}

span.spk1{color: var(--primary-accent)}
span.spk2{color: #df9426}

/* =========================================
   Callout / Alert Panels
   ========================================= */
.panel {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 0.95rem;
}

/* Force elements inside the panel to inherit the dark contrast color */
.panel p,
.panel ul,
.panel ol,
.panel h2,
.panel h3,
.panel h4 {
    color: inherit;
    margin-bottom: 0.5rem;
}

.panel p:last-child,
.panel ul:last-child {
    margin-bottom: 0;
}

/* Panel Modifiers */
.panel-info {
    background-color: var(--panel-bg-info);
    color: var(--panel-text-info);
    border-left-color: var(--panel-text-info);
}

.panel-error {
    background-color: var(--panel-bg-error);
    color: var(--panel-text-error);
    border-left-color: var(--panel-text-error);
}

.panel-warning {
    background-color: var(--panel-bg-warning);
    color: var(--panel-text-warning);
    border-left-color: var(--panel-text-warning);
}

.panel-ok {
    background-color: var(--panel-bg-ok);
    color: var(--panel-text-ok);
    border-left-color: var(--panel-text-ok);
}

/* =========================================
   Layout & Containers (Mobile First)
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

/* Flexbox Navigation */
header {
    background-color: rgba(10, 15, 26, 0.95);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    flex-direction: column; /* Mobile: Stack logo and links */
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
}

.logo { font-size: 1.5rem; font-weight: bold; color: #df9426; text-decoration: none; }

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    list-style: none;
}

.nav-links a { color: var(--text-light); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-accent); }

/* Grid Layouts */
.split-section {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 2rem;
    align-items: start;
}

.grid-cards {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 column */
    gap: 1.5rem;
}

/* Image Placeholders */
.img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--card-bg);
    border: 2px solid #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    font-size: 1.2rem;
    overflow: hidden;
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================
   Web Form Controls
   ========================================= */
.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

label { margin-bottom: 0.5rem; font-weight: bold; font-size: 1.2rem; }

input[type="text"], input[type="email"], select, textarea, input[type="range"] {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-family: var(--font-main), serif;
}

input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary-accent); }

.btn {
    display: inline-block;
    padding: 0.4rem 1.5rem;
    background: linear-gradient(90deg, var(--secondary-accent), var(--primary-accent));
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.3s;
}

.btn:hover { opacity: 0.9; }

/* =========================================
   Media Queries (Tablet & Desktop)
   ========================================= */
@media (min-width: 768px) {
    /* Reset base font size to 16px for larger devices */
    body {
        font-size: 1rem;
        h1 { font-size: 2.5rem; }
        h2 { font-size: 2rem; }
        label { font-size: 0.9rem; }
    }
    .btn {
        padding: 0.1rem 1rem;
    }

    /* Switch Nav to Row */
    .nav-container { flex-direction: row; justify-content: space-between; }

    /* Text + Image Layout */
    .split-section { grid-template-columns: 1fr 1fr; }
    .split-section.reverse { direction: rtl; }
    .split-section.reverse > * { direction: ltr; }

    /* Card Grids */
    .grid-cards { grid-template-columns: repeat(3, 1fr); }

    h1 { font-size: 3.5rem; }
}