/* ==========================================================================
   1. COLOR PALETTE & VARIABLES
   ========================================================================== */
:root {
    --primary: #0d1b2a;
    --secondary: #1b263b;
    --accent: #00b4d8;
    --accent-hover: #0096c7;
    --dark-text: #1e293b;
    --light-bg: #f8fafc;
    --card-border: #e2e8f0;
    --white: #ffffff;
}

/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
header {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    border-radius: 6px;
}

.logo span span {
    color: var(--accent);
}

/* Desktop Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* Hamburger Toggle Button */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   4. MOBILE SIDEBAR DRAWER & OVERLAY
   ========================================================================== */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -280px; /* Offscreen by default */
    width: 280px;
    height: 100%;
    background-color: var(--primary);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0; /* Slide-in state */
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-weight: 700;
}

.sidebar-logo img {
    height: 30px;
    border-radius: 4px;
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.sidebar-links {
    list-style: none;
    padding: 1.5rem 0;
}

.sidebar-links li a {
    display: block;
    padding: 0.9rem 1.5rem;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-links li a:hover,
.sidebar-links li a.active {
    color: var(--accent);
    background-color: rgba(255, 255, 255, 0.05);
    border-left-color: var(--accent);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   5. HERO SECTION & BUTTONS
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 5rem 2rem 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
}

.hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 750px;
    margin: 0 auto 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--accent);
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: var(--accent);
}

/* ==========================================================================
   6. STATS & METRICS
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--accent);
}

.stat-item p {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* ==========================================================================
   7. LAYOUT GRID, CARDS & FEATURES
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title p {
    color: #64748b;
    font-size: 1.05rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--light-bg);
    padding: 2.2rem;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.card p {
    color: #475569;
    font-size: 0.98rem;
    margin-bottom: 1.2rem;
}

.card-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.badge {
    background: var(--accent);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 20px;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-box {
    background: var(--white);
    padding: 1.5rem;
    border-left: 4px solid var(--accent);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-box h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   8. FORMS & CTA BANNER
   ========================================================================== */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #cccccc;
    border-radius: 5px;
}

.cta-banner {
    background: var(--secondary);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 1140px;
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

/* ==========================================================================
   9. FOOTER & MEDIA QUERIES
   ========================================================================== */
footer {
    background: var(--primary);
    color: #94a3b8;
    text-align: center;
    padding: 2.5rem 1rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
    }
}