/* --- RESET & BASE --- */
:root {
    --text-main: #333;
    --text-light: #fff;
    --bg-body: #fff;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Global fix for sticky header */
}

section[id] {
    scroll-margin-top: 100px;
    /* Ensure individual sections respect it */
}

body {
    font-family: 'Inter', sans-serif;
    /* Default, overridden by themes */
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* --- LAYOUT UTILS --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Shared Header Structure */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 2.5rem;
    /* Increased gap */
    align-items: center;
}

/* Hide mobile toggle by default (Desktop first) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Shared Grid Structures */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    padding-bottom: 3rem;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* JS will toggle this */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: block;
        /* Show only on mobile */
    }

    /* Mobile menu toggle logic handles this */
    .grid-layout,
    .services-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- THEME SWITCHER --- */
.theme-switcher {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    /* Moved to left to make room for WhatsApp */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align to left */
}

.theme-toggle-btn {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: #007bc7;
    /* Generic Blue */
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
}

.theme-options {
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.theme-switcher.open .theme-options {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.theme-options button {
    border: 1px solid #ddd;
    background: #f9f9f9;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    color: #333;
}

.theme-options button:hover,
.theme-options button.active {
    background: #007bc7;
    color: white;
    border-color: #007bc7;
}

/* --- CONTACT SECTION --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-col h3,
.contact-form-col h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.contact-intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #555;
}

.map-container {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 169, 224, 0.1);
}

.btn-block {
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

/* Footer Simplified */
.main-footer {
    background: #0b111a;
    color: #8b9bb4;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    filter: brightness(0) invert(1);
    width: 120px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 1rem;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* --- BRANDS CAROUSEL (Shared Logic) --- */
.brands-section {
    padding: 4rem 0;
    /* Increased padding */
    overflow: hidden;
    background: #f5f5f5;
}

.brands-section h3 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.brands-carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    /* Space for hover growth */
}

.brands-track {
    display: flex;
    align-items: center;
    /* Vertically center items */
    gap: 5rem;
    /* Increased gap */
    width: max-content;
    animation: scroll 40s linear infinite;
    /* Slower for better visibility */
}

.brands-track img {
    height: 120px;
    /* Increased from 60px to 120px as per instruction */
    width: auto;
    object-fit: contain;
    /* filter: grayscale(100%); REMOVED: Always color */
    /* opacity: 0.6; REMOVED: Always visible */
    transition: all 0.4s ease;
    cursor: pointer;
}

.brands-track img:hover {
    /* filter: grayscale(0%); REMOVED */
    /* opacity: 1; REMOVED */
    transform: scale(1.1);
    /* Grow effect */
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- RESPONSIVE HELPERS --- */
@media (max-width: 768px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .brands-track img {
        height: 40px;
    }
}

/* --- SCROLL REVEAL ANIMATION --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- FLOATING WHATSAPP --- */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    /* Moved to right as requested */
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}