:root {
    /* Color Palette - Light Theme High Contrast */
    --bg-dark: #ffffff;
    /* White background */
    --bg-card: #ffffff;
    /* Pure White for cards to pop against gray sections */
    --primary: #000000;
    /* Pure Black for Headings */
    --primary-hover: #1f2937;
    --accent: #2563eb;
    /* Electric Blue (Buttons & Highlights) */
    --accent-hover: #1d4ed8;
    --text-main: #020617;
    /* Very Dark Navy/Black */
    --text-muted: #1f2937;
    /* Dark Gray (Gray 800) - Much darker than before */
    --border-color: #cbd5e1;
    /* Slightly darker border */

    --gradient-hero: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Mobile-First Typography Defaults */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.25rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    /* Slightly smaller padding for mobile */
}

.section {
    padding: 3rem 0;
    /* Mobile default padding */
}

.bg-darker {
    background-color: #f1f5f9;
    /* Light slate for alternating sections */
}

.grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    /* Default to single column for mobile */
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: block;
    /* Full width on mobile preferred */
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.underline {
    height: 4px;
    width: 60px;
    background: var(--accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* Navbar - Mobile Default */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 35px;
    width: auto;
}

.logo span {
    color: var(--accent);
}

/* Mobile Menu - Hidden by default, toggled via JS */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    flex-direction: column;
    justify-content: center;
    transition: 0.3s ease;
    padding: 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    transform: translateX(100%);
    /* Move off-screen cleanly */
}

.nav-menu.active {
    transform: translateX(0);
    /* Slide in */
}

.nav-menu a {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 2rem;
    text-align: center;
}

.nav-menu a:not(.btn-primary):hover {
    color: var(--accent);
}

/* Hamburger - Visible on Mobile */
.nav-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    /* Slightly smaller on mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    /* Offset for fixed nav */
    overflow: hidden;
    background: var(--gradient-hero);
    /* Subtle Grid Pattern */
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-bg {
    display: none;
    /* Removed for cleaner light theme or replaced with subtle pattern */
}

.hero-content {
    padding: 0 1rem;
}

.hero-content h1 {
    margin-bottom: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 800;
}

.hero-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Services Grid */
/* Services Grid - columns handled by general .grid */

.card {
    background: var(--bg-card);
    border: 1px solid #e2e8f0;
    /* Define distinct border */
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.15);
}

.card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: #eff6ff;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

/* Products Section */
/* Products Grid - columns handled by general .grid */

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: scale(1.02);
}

.product-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.placeholder-gradient-1 {
    background: linear-gradient(45deg, #1e3a8a, #3b82f6);
}

.placeholder-gradient-2 {
    background: linear-gradient(45deg, #3730a3, #6366f1);
}

.placeholder-gradient-3 {
    background: linear-gradient(45deg, #111827, #1f2937);
}

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.product-info p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.btn-text {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Team Section */
.team-grid {
    /* grid-template-columns: 1fr; (handled by general .grid) */
    text-align: center;
}

.team-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: var(--border-color);
    /* Placeholder */
    border: 2px solid var(--primary);
}

.team-card .role {
    display: block;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.team-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.contact-info h2 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details li {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
    background-color: #f8fafc;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.visitor-count {
    font-weight: 600;
    color: var(--accent);
    background: #eff6ff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--accent);
}


/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   DESKTOP OVERRIDES (Min-Width Media Queries)
   ========================================= */

@media (min-width: 768px) {

    /* Layout Scaling */
    .container {
        padding: 0 2rem;
    }

    .section {
        padding: 5rem 0;
    }

    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    /* Navbar Desktop */
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        transform: none;
        background: transparent;
        flex-direction: row;
        padding: 0;
        box-shadow: none;
        display: flex;
        /* Ensure it's visible */
        gap: 2rem;
        /* Restore original gap */
    }

    .nav-menu a {
        font-size: 0.95rem;
        margin-bottom: 0;
        text-align: left;
        /* Restore original alignment */
    }

    /* Hero Desktop */
    .hero {
        min-height: 90vh;
    }

    .hero-content p {
        font-size: 1.25rem;
    }

    .hero-btns {
        flex-direction: row;
        justify-content: center;
    }

    .btn-primary,
    .btn-secondary {
        display: inline-block;
        width: auto;
        margin-bottom: 0;
    }

    /* Grids */
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    /* Contact Desktop */
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    /* Footer Desktop */
    footer {
        margin-top: 4rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}