/* --- 1. THEME VARIABLES (DYNAMIC TOGGLE) --- */
:root {
    /* Light Mode Default Theme */
    --bg-dark: #0a1128;
    --bg-light: #f8f9fa;
    --bg-body: #ffffff;
    --text-main: #1c2541;
    --text-muted: #475569;
    --accent: #00b4d8;
    --accent-hover: #0077b6;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
}

[data-theme="dark"] {
    /* Dark Mode Theme Overrides */
    --bg-dark: #070b19;
    --bg-light: #0d1527;
    --bg-body: #0d1527;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #00b4d8;
    --accent-hover: #38bdf8;
    --card-bg: #111a2e;
    --border-color: #1e293b;
}

/* --- 2. GLOBAL RESET & BASE STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, .logo-bold {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 0;
}

/* --- 3. NAVIGATION BAR --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-body);
    opacity: 0.98;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.logo-bold { font-weight: 700; }
.logo-light { font-weight: 400; color: var(--accent); }
.logo-sub { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); display: block; margin-top: -4px; }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li { margin-left: 2rem; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* --- 4. THEME TOGGLE BUTTON (MINIMALIST) --- */
.theme-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.theme-btn:hover {
    background-color: var(--bg-light);
    border-color: var(--text-muted);
}

.theme-btn span {
    display: inline-block;
    line-height: 1;
}

/* --- 5. BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    cursor: pointer;
}

.btn-primary { background-color: var(--accent); color: white; border: none; }
.btn-primary:hover { background-color: var(--accent-hover); }
.btn-secondary { background-color: transparent; color: white; border: 2px solid white; margin-left: 1rem; }
.btn-secondary:hover { background-color: white; color: var(--bg-dark); }
.btn-nav { background-color: var(--text-main); color: var(--bg-body) !important; padding: 0.5rem 1.25rem; border-radius: 4px; transition: background-color 0.3s; }
.btn-nav:hover { background-color: var(--accent); color: white !important; }
.btn-lg { font-size: 1.2rem; padding: 1rem 2.5rem; box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3); }
.btn-lg:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0, 180, 216, 0.4); }

/* --- 6. HERO SECTION --- */
.hero-section {
    background: linear-gradient(135deg, #0a1128 0%, #1c2541 100%);
    color: white;
    padding-top: 140px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* Forces h1 in the hero to remain light/crisp over the dark space image gradient */
.hero-section h1 {
    color: #ffffff;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-gradient { color: var(--accent); }
.hero-container p { font-size: 1.2rem; max-width: 700px; color: #cbd5e1; margin-bottom: 2.5rem; }

/* --- 7. REUSABLE SECTION HEADERS --- */
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 0.75rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* --- 8. SERVICES PILLARS GRID --- */
.services-section { 
    background-color: var(--bg-light); 
    transition: background-color 0.3s ease;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(10, 17, 40, 0.06);
}

.service-icon { font-size: 2.25rem; margin-bottom: 1.25rem; }
.service-card h3 { margin-bottom: 0.75rem; font-size: 1.35rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* --- 9. ABOUT SECTION --- */
.about-section { 
    background: var(--bg-body); 
    text-align: center;
    transition: background-color 0.3s ease;
}
.about-container { max-width: 850px; }
.about-text h2 { margin-bottom: 1.5rem; font-size: 2.25rem; }
.about-text p { margin-bottom: 1.25rem; font-size: 1.15rem; color: var(--text-muted); }

/* --- 10. DIRECT EMAIL CTA SECTION --- */
.contact-section { 
    background-color: var(--bg-light); 
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.contact-cta-container { 
    text-align: center; 
    max-width: 700px; 
    padding: 3rem 0;
}
.contact-cta-container h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.contact-cta-container p { color: var(--text-muted); font-size: 1.2rem; margin-bottom: 2rem; }

/* --- 11. FOOTER --- */
.footer { 
    background: var(--bg-dark); 
    color: #94a3b8; 
    text-align: center; 
    padding: 2.5rem 0; 
    font-size: 0.9rem; 
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

/* --- 12. RESPONSIVE BREAKPOINTS --- */
@media(max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media(max-width: 768px) {
    .hero-container h1 { font-size: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    /* Keeps navigation clean on smaller viewports */
    .nav-links li:not(:last-child) { display: none; } 
}