/* =========================================
   CSS Variables & Reset
   ========================================= */
/* =========================================
   CSS VARIABLES & ROOT SETTINGS
   - Color palette, fonts, shadows, spacing
   ========================================= */
:root {
    --primary: #0d2240; /* Navy Blue */
    --primary-light: #1a365d;
    --accent: #d0021b;  /* Red */
    --accent-hover: #a30115;
    --bg-main: #ffffff;
    --bg-light: #f5f5f5;
    --text-main: #333333;
    --text-muted: #666666;
    --whatsapp: #25D366;
    --whatsapp-hover: #128C7E;
    
    --font-main: 'Inter', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.15);
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.3s ease;
}

/* =========================================
   GLOBAL RESET & BASE STYLES
   - Box model, smooth scrolling, defaults
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
}

body {
    background-color: var(--bg-main);
    overflow-x: hidden;
}

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

img, svg {
    max-width: 100%;
    display: block;
}

/* =========================================
   LAYOUT UTILITIES
   - Container, section padding, bg helpers
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section { padding: 60px 0; }
@media (min-width: 768px) { .section { padding: 100px 0; } }

.bg-light { background-color: var(--bg-light); }
.text-accent { color: var(--accent); }

/* =========================================
   Typography & Headers
   ========================================= */
/* =========================================
   TYPOGRAPHY - SECTION HEADINGS
   - Section tags, titles, descriptions
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-info .section-header::after {
    left: 0;
    transform: none;
}

.section-desc {
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
}

@media (min-width: 768px) {
    .section-title { font-size: 2.5rem; }
}

/* =========================================
   Scroll Reveal Animation (Pure JS driven)
   ========================================= */
/* =========================================
   SCROLL REVEAL ANIMATIONS
   - Fade-up effect on scroll using JS observer
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   Buttons
   ========================================= */
/* =========================================
   BUTTONS
   - Primary, outline, WhatsApp, ghost variants
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }

.btn-primary { background-color: var(--accent); color: white; }
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-primary-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-whatsapp { background-color: var(--whatsapp); color: white; }
.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* =========================================
   Global Elements (Nav, Dropdown)
   ========================================= */
/* =========================================
   NAVBAR / HEADER
   - Sticky glass navbar, logo, nav links
   ========================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.logo {
    display: flex; align-items: center; gap: 10px;
}
.logo-text-wrapper {
    display: flex; flex-direction: column; justify-content: center;
}
.logo-text {
    font-weight: 800; font-size: 1.5rem; color: var(--primary); line-height: 1;
}
.logo-subtitle {
    font-size: 10px; color: rgba(13, 34, 64, 0.7); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-top: 3px; line-height: 1;
}
.logo-icon { color: var(--accent); display: flex; }

.nav-links { display: none; } /* Mobile first */
.mobile-menu-btn { display: flex; align-items: center; justify-content: center; background: none; border: none; color: var(--primary); cursor: pointer; padding: 10px; margin: -10px; }

/* Dropdown Styles */
.nav-item-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
}

@media (min-width: 992px) {
    .mobile-menu-btn { display: none; }
    .nav-links {
        display: flex; align-items: center; gap: 30px;
    }
    .nav-link, .dropdown-toggle {
        font-weight: 500; color: var(--text-main);
    }
    .nav-link:hover, .dropdown-toggle:hover, .nav-link.active, .dropdown-toggle.active {
        color: var(--accent);
    }
    
    /* Desktop Dropdown */
    .dropdown-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        min-width: 280px;
        box-shadow: var(--shadow-lg);
        border-radius: var(--radius-sm);
        padding: 10px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: var(--transition);
        border: 1px solid #eee;
    }

    .nav-item-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-link {
    padding: 12px 20px;
    color: var(--text-main);
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.dropdown-link:hover, .dropdown-link.active {
    background-color: var(--bg-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

/* Mobile Dropdown Active */
.nav-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 70px; left: 0; width: 100%;
    background: white; padding: 20px;
    box-shadow: var(--shadow-md); gap: 15px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}

.nav-links.active .dropdown-menu {
    position: relative;
    box-shadow: none; border: none;
    padding-left: 15px; padding-top: 10px; padding-bottom: 10px;
    background: transparent;
    border-left: 2px solid #eee;
    margin-left: 10px;
    margin-top: 10px;
}

.nav-links.active .nav-item-dropdown.open .dropdown-menu {
    display: flex; flex-direction: column;
}

/* =========================================
   WhatsApp Sticky
   ========================================= */
/* =========================================
   WHATSAPP STICKY BUTTON
   - Fixed bottom-right floating CTA button
   ========================================= */
.whatsapp-sticky-wrapper {
    position: fixed; bottom: 20px; right: 20px; z-index: 999;
    display: flex; align-items: center;
}
.whatsapp-tooltip {
    background: white; color: var(--primary); padding: 6px 12px;
    border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600;
    box-shadow: var(--shadow-md); margin-right: 15px;
    opacity: 0; transform: translateX(10px); transition: var(--transition);
    pointer-events: none; position: relative;
}
.whatsapp-tooltip::after {
    content: ''; position: absolute; top: 50%; right: -5px;
    transform: translateY(-50%); border-width: 6px 0 6px 6px;
    border-style: solid; border-color: transparent transparent transparent white;
}
.whatsapp-sticky-wrapper:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }
.whatsapp-sticky {
    background-color: var(--whatsapp); color: white;
    width: 60px; height: 60px; border-radius: 50%; display: flex;
    justify-content: center; align-items: center; box-shadow: var(--shadow-lg); transition: var(--transition);
}
.whatsapp-sticky i { width: 32px; height: 32px; }
.whatsapp-sticky:hover { transform: scale(1.1); background-color: var(--whatsapp-hover); }
@media (max-width: 767px) {
    .whatsapp-sticky { width: 50px; height: 50px; }
    .whatsapp-sticky i { width: 24px; height: 24px; }
    .whatsapp-sticky-wrapper { bottom: 15px; right: 15px; }
}

/* =========================================
   Hero Section
   ========================================= */
/* =========================================
   HERO SECTION
   - Full-height landing section with image
   ========================================= */
.hero {
    position: relative; padding-top: 100px; padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white; overflow: hidden; min-height: auto; display: flex; align-items: center;
}
.hero-content { position: relative; z-index: 2; text-align: center; }
.hero-title { font-size: 2rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 30px; }
.hero-cta { display: flex; flex-direction: column; gap: 15px; justify-content: center; }
.hero-image-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.6;
}
.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary) 30%, transparent 100%);
}
@media (min-width: 768px) {
    .hero { min-height: 80vh; padding-top: 120px; padding-bottom: 80px; text-align: left; }
    .hero-title { font-size: 4rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .hero-cta { flex-direction: row; gap: 20px; }
    .hero-content { text-align: left; margin: 0; max-width: 60%; }
    
    .hero-image-wrapper {
        width: 60%;
        opacity: 0.8;
    }
    .hero-image-wrapper img {
        object-position: left center;
    }
    .hero-image-wrapper::after {
        background: linear-gradient(to right, var(--primary) 0%, transparent 40%);
    }
}

/* =========================================
   Stats Bar
   ========================================= */
/* =========================================
   STATS BAR
   - Animated counter numbers below hero
   ========================================= */
.stats-bar {
    background: white; padding: 40px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative; z-index: 10; margin-top: -30px;
}
.stats-container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; text-align: center; }
.stat-item { padding: 10px; }
.stat-number, .stat-text { font-size: 2.5rem; font-weight: 800; color: var(--accent); margin-bottom: 5px; line-height: 1; }
.stat-label { color: var(--primary); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; }
@media (min-width: 768px) {
    .stats-container { grid-template-columns: repeat(4, 1fr); }
    .stat-number, .stat-text { font-size: 3rem; }
}

/* =========================================
   About Section
   ========================================= */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.about-card {
    background: white; padding: 30px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    text-align: center; border-top: 4px solid var(--primary); transition: var(--transition);
}
.about-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-top-color: var(--accent); }
.about-icon {
    width: 60px; height: 60px; background: var(--bg-light); color: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 20px;
}
.about-icon i { width: 30px; height: 30px; }
.about-card h3 { margin-bottom: 10px; color: var(--primary); }
@media (min-width: 768px) { .about-grid { grid-template-columns: repeat(3, 1fr); } }

/* =========================================
   Trusted By (Marquee) Section
   ========================================= */
.marquee-wrapper { overflow: hidden; position: relative; width: 100%; padding: 20px 0; background: white; }
.marquee-content { display: flex; width: max-content; animation: scroll 30s linear infinite; }
.client-logo {
    width: 200px; height: 80px; background: #e9ecef; color: var(--text-muted); font-weight: 600;
    font-size: 1.1rem; display: flex; align-items: center; justify-content: center; margin: 0 15px;
    border-radius: var(--radius-sm); border: 1px solid #dee2e6; transition: var(--transition);
}
.client-logo:hover { background: white; border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow-sm); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =========================================
   Products Section
   ========================================= */
/* =========================================
   PRODUCTS GRID (HOMEPAGE)
   - 7 product cards with images & specs
   ========================================= */
.products-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.product-card {
    background: white; border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-img {
    height: 240px;
    background: #f8f9fa;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.product-img-overlay { position: absolute; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.product-img-overlay span {
    font-size: 3rem; font-weight: 800; color: rgba(255,255,255,0.05); white-space: nowrap;
    position: absolute; transform: rotate(-10deg);
}
.product-img svg { width: 80px; height: 80px; color: rgba(255,255,255,0.8); position: relative; z-index: 1; }
.product-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.product-title { font-size: 1.25rem; color: var(--primary); margin-bottom: 10px; font-weight: 700; }
.product-specs {
    list-style: none; margin-bottom: 20px; font-size: 0.9rem; color: var(--text-muted);
    background: var(--bg-light); padding: 15px; border-radius: var(--radius-sm);
}
.product-specs li { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.product-specs li:last-child { margin-bottom: 0; }
.product-specs i { width: 16px; height: 16px; color: var(--accent); }
.product-action { margin-top: auto; }
.product-action .btn { width: 100%; justify-content: center; }
@media (min-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }


/* =========================================
   INDIVIDUAL PRODUCT PAGE TEMPLATES
   ========================================= */

/* Banner */
/* =========================================
   PRODUCT/PROJECT DETAIL PAGES
   - Banner, overview, specs, steps, benefits
   ========================================= */
.page-banner {
    background: var(--primary);
    padding: 100px 0 40px;
    color: white;
    text-align: center;
}
@media (min-width: 768px) {
    .page-banner { padding: 140px 0 60px; }
}
.breadcrumbs {
    font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 20px;
}
.breadcrumbs a { color: white; margin: 0 5px; }
.breadcrumbs a:hover { color: var(--accent); }

/* Overview */
.product-overview {
    display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
}
.product-placeholder-lg {
    background: var(--bg-light); height: 400px; border-radius: var(--radius-md);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border: 2px dashed #ccc; color: var(--text-muted); text-align: center; padding: 20px;
}
.product-placeholder-lg i { width: 48px; height: 48px; margin-bottom: 10px; color: var(--primary); }
.product-info-content h2 { color: var(--primary); margin-bottom: 20px; font-size: 2rem; }
.product-info-content p { margin-bottom: 15px; color: var(--text-muted); font-size: 1.1rem; }
.specs-table {
    width: 100%; border-collapse: collapse; margin-top: 30px;
}
.specs-table th, .specs-table td {
    padding: 15px; text-align: left; border-bottom: 1px solid #eee;
}
.specs-table th { background: var(--bg-light); color: var(--primary); width: 40%; }
.specs-table td { font-weight: 500; }

@media (min-width: 992px) {
    .product-overview { grid-template-columns: 1fr 1fr; }
}

/* How It Works */
.steps-container {
    display: grid; grid-template-columns: 1fr; gap: 30px; margin-top: 40px;
}
.step-card {
    text-align: center; padding: 30px; background: white; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); position: relative;
}
.step-number {
    position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 40px; background: var(--accent); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem; border: 4px solid white;
}
.step-icon {
    width: 60px; height: 60px; margin: 20px auto; color: var(--primary);
}
@media (min-width: 768px) {
    .steps-container { grid-template-columns: repeat(3, 1fr); }
}

/* Benefit Cards (Reusing existing feature-item or similar) */
.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }

/* Chips */
.chips-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 30px; }
.chip {
    background: var(--bg-light); color: var(--primary); padding: 10px 20px;
    border-radius: 50px; font-weight: 600; font-size: 0.95rem;
    border: 1px solid #ddd;
}

/* CTA Strip */
.cta-strip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 60px 0; color: white; text-align: center;
}
.cta-strip h2 { margin-bottom: 30px; font-size: 2rem; }
.cta-strip .btn-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }

/* =========================================
   Projects Section
   ========================================= */
/* =========================================
   PROJECTS / OUR WORK SECTION
   - Case study cards with location & outcomes
   ========================================= */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.project-card {
    background: white; border-radius: var(--radius-md); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: var(--transition);
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.project-img {
    height: 200px; background: var(--primary); position: relative;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.project-img::before {
    content: ''; position: absolute; width: 200%; height: 200%;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}
.project-overlay-text { position: absolute; font-size: 4rem; font-weight: 800; color: rgba(255,255,255,0.05); }
.project-img svg { width: 60px; height: 60px; color: rgba(255,255,255,0.5); z-index: 1; }
.project-content { padding: 25px; }
.project-location {
    font-size: 0.85rem; color: var(--accent); font-weight: 600;
    display: flex; align-items: center; gap: 5px; margin-bottom: 10px;
}
.project-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 15px; line-height: 1.4; }
.project-outcome { font-size: 0.95rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: 8px; margin-bottom: 20px; }
.project-outcome i { width: 18px; height: 18px; color: #25D366; flex-shrink: 0; margin-top: 2px; }
@media (min-width: 768px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

/* =========================================
   Features & Services
   ========================================= */
/* =========================================
   FEATURES SECTION
   - Icon-based technology feature cards
   ========================================= */
.features-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.feature-item { display: flex; align-items: flex-start; gap: 15px; padding: 20px; background: white; border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.feature-icon { color: var(--accent); background: rgba(208, 2, 27, 0.1); padding: 12px; border-radius: var(--radius-sm); display: flex; }
.feature-item h4 { color: var(--primary); margin-bottom: 5px; }
.feature-item p { font-size: 0.9rem; color: var(--text-muted); }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

/* =========================================
   SERVICES SECTION
   - 4 service cards (consult/design/install/AMC)
   ========================================= */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.service-card { background: white; padding: 30px; border-radius: var(--radius-md); text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); }
.service-card:hover { box-shadow: var(--shadow-md); }
.service-icon { width: 50px; height: 50px; margin: 0 auto 20px; color: var(--primary); }
.service-icon i { width: 100%; height: 100%; }
.service-card h3 { margin-bottom: 10px; color: var(--primary); }
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

/* =========================================
   Testimonials Section
   ========================================= */
/* =========================================
   TESTIMONIALS SECTION
   - Client review cards with ratings
   ========================================= */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.testimonial-card {
    background: white; padding: 30px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); border: 1px solid #eee; position: relative;
}
.testimonial-card::before { content: '"'; position: absolute; top: 10px; right: 20px; font-size: 5rem; color: rgba(0,0,0,0.05); font-family: serif; line-height: 1; }
.rating { display: flex; gap: 5px; margin-bottom: 15px; }
.star-filled { width: 16px; height: 16px; color: #FFB800; fill: #FFB800; }
.quote { font-style: italic; color: var(--text-main); margin-bottom: 20px; line-height: 1.7; position: relative; z-index: 1; }
.client-meta h4 { color: var(--primary); font-size: 1rem; }
.client-meta span { font-size: 0.85rem; color: var(--text-muted); }
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); } }

/* =========================================
   Contact Section
   ========================================= */
/* =========================================
   CONTACT SECTION
   - Contact info panel + enquiry form
   ========================================= */
.contact-wrapper { display: grid; grid-template-columns: 1fr; gap: 40px; background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; word-break: break-word; }
.contact-info { background: var(--primary); color: white; padding: 40px 30px; overflow: hidden; word-break: break-word; }
.info-items { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.info-item { display: flex; gap: 15px; align-items: flex-start; }
.info-item i { color: var(--accent); margin-top: 5px; flex-shrink: 0; }
.info-item h4 { margin-bottom: 5px; font-size: 1.1rem; }
.info-item a, .info-item p { color: rgba(255,255,255,0.8); word-wrap: break-word; overflow-wrap: break-word; }
.info-item a:hover { color: white; }
.contact-form-container { padding: 40px 30px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-weight: 500; font-size: 0.9rem; color: var(--primary); }
.form-group input, .form-group select, .form-group textarea { padding: 12px; border: 1px solid #ddd; border-radius: var(--radius-sm); font-family: inherit; font-size: 1rem; transition: var(--transition); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px rgba(13, 34, 64, 0.1); }
.form-status { text-align: center; font-weight: 500; margin-top: 10px; }
.form-status.success { color: var(--whatsapp); }
.form-status.error { color: var(--accent); }
@media (min-width: 992px) { .contact-wrapper { grid-template-columns: 1fr 2fr; } .form-row { grid-template-columns: 1fr 1fr; } }

/* =========================================
   Footer
   ========================================= */
/* =========================================
   FOOTER
   - Brand, quick links, contact columns
   ========================================= */
.footer { background: var(--primary); color: white; padding: 60px 0 20px; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand p { color: rgba(255,255,255,0.7); margin-top: 5px; max-width: 350px; }
.footer-links h3, .footer-contact h3 { margin-bottom: 20px; color: white; font-size: 1.2rem; }
.footer-links ul, .footer-contact ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: rgba(255,255,255,0.7); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 5px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.7); }
.footer-contact i { color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,0.7); }
.footer-contact a:hover { color: white; }
.footer-bottom { text-align: center; color: rgba(255,255,255,0.5); font-size: 0.9rem; }
@media (min-width: 768px) { .footer-top { grid-template-columns: 2fr 1fr 1fr; gap: 30px; } }

/* =========================================
   Project Detail Pages
   ========================================= */
.project-banner {
    background: var(--primary);
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    padding: 100px 0 40px;
    color: white;
    text-align: center;
}
@media (min-width: 768px) {
    .project-banner { padding: 140px 0 60px; }
}
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.gallery-placeholder {
    background: var(--primary);
    height: 250px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 20px;
}
.gallery-placeholder i {
    width: 32px;
    height: 32px;
    margin-bottom: 10px;
}
.project-badge {
    display: inline-block;
    background: rgba(13, 34, 64, 0.1);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}
.project-meta {
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.8;
}
.project-meta strong {
    color: var(--primary);
    display: inline-block;
    width: 100px;
}

/* Product card images - full fit, no crop */
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    background: #f8f9fa;
}

/* Company logo image in navbar */
.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =========================================
   FIX 3: Project Pages - Challenge/Solution
   Mobile responsive stacking
   ========================================= */
@media (min-width: 768px) {
    .challenge-solution-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 40px !important;
    }
}

/* =========================================
   FIX 4: Contact Section - Mobile Address Fix
   Prevent text overflow and cut-off
   ========================================= */
@media (max-width: 767px) {
    /* Contact info panel */
    .contact-info {
        padding: 28px 18px !important;
        overflow: hidden;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Info items stack cleanly */
    .info-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 10px;
        word-break: break-word;
    }

    /* Address text - smaller font, full wrap */
    .info-item p,
    .info-item a {
        font-size: 0.82rem !important;
        line-height: 1.55;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    /* Icon box fixed size */
    .info-item-icon {
        flex-shrink: 0;
        width: 36px !important;
        height: 36px !important;
    }

    /* WhatsApp button full width */
    .contact-info .btn {
        width: 100%;
        justify-content: center;
        font-size: 0.9rem;
    }

    /* Contact wrapper - single column */
    .contact-wrapper {
        grid-template-columns: 1fr !important;
        border-radius: 12px;
        overflow: hidden;
    }

    /* Form container padding */
    .contact-form-container {
        padding: 24px 16px !important;
    }
}

/* =========================================
   FIX 3 (continued): Project page gallery
   3-column -> 1-column on mobile
   ========================================= */
@media (max-width: 767px) {
    /* Project gallery grid */
    .projects-grid,
    [style*="grid-template-columns:repeat(3,1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }

    /* Project outcome stats - 3 col to 1 col */
    .stats-container {
        grid-template-columns: 1fr !important;
    }
    .stat-item {
        border-right: none !important;
        border-bottom: 1px solid var(--border) !important;
    }
    .stat-item:last-child {
        border-bottom: none !important;
    }
}
