/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #007bff;
    /* Blue */
    --secondary-color: #28a745;
    /* Green */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #e9ecef;
    --white: #ffffff;
    --font-stack: 'Roboto', sans-serif;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

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

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

h1,
h2,
h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    margin-right: 10px;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #218838;
}

/* 1) HERO SECTION */
/* 1) HERO SECTION */
.hero {
    position: relative;
    background-image: url('hero_image.png');
    /* Placeholder background */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    /* Ensure text is visible on dark overlay */
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* Black overlay with 0.3 opacity (high transparency to see image) */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    /* Bring content above overlay */
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 10px;
}

.hero h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.3rem;
    color: #f1f1f1;
    margin-bottom: 30px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
}

/* Remove old hero-image and hero-text styles if they conflict, or override them */
.hero-text {
    width: 100%;
    padding: 0;
    margin: 0;
}


/* 2) SERVICES SECTION */
.services {
    background-color: var(--dark-bg);
}

.services h2 {
    color: var(--primary-color);
    margin-bottom: 40px;
}

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

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card img {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
}

/* 3) ABOUT US SECTION */
.about {
    position: relative;
    background-image: url('about_team.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    /* Make text white for better contrast on dark overlay */
    padding: 160px 0;
}

.about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Dark overlay (slightly lighter) */
    backdrop-filter: blur(2px);
    /* Reduced blur */
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
    /* Bring text above overlay */
    display: flex;
    justify-content: center;
    text-align: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.about-text h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #f1f1f1;
}

/* Removed .about-image styles as it's no longer used */

/* 3) MISSION & WHY CHOOSE US SECTION (Redesigned) */
.mission {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-title {
    margin-bottom: 60px;
    font-size: 2.5rem;
    color: var(--text-color);
}

/* Mission Card */
.mission-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
    border-left: 5px solid var(--primary-color);
}

.mission-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

.mission-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mission-content-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.mission-statement-text {
    font-size: 1.2rem;
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

/* Why Choose Us Grid */
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.choose-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.choose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.choose-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    margin: 0;
    /* Removed auto margin */
    color: var(--secondary-color);
    background: #e9f7ef;
    border-radius: 50%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.choose-card h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color);
    font-weight: 700;
}

.choose-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Mobile Only Utility */
.mobile-only {
    display: none;
}

/* Responsive adjustments for mission card */
@media (max-width: 768px) {
    .mobile-only {
        display: flex;
    }

    .hide-on-mobile {
        display: none !important;
    }

    .mission-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }

    .mission-card {
        border-left: none;
        border-top: 5px solid var(--primary-color);
    }
}

/* 5) NEW FOOTER SECTION */
.footer-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    /* Grey to Sky Blue Gradient */
    padding: 60px 0 30px;
    color: #333;
    position: relative;
    border-top: 1px solid #e0e0e0;
}

.footer-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: #2c3e50;
    text-align: center;
    /* Centered title */
}

.contact-stack {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-split-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

/* Map Default (Mobile) */
.contact-map-side {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    background: #e0e0e0;
    /* Placeholder */
}

.contact-map-side iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* DESKTOP LAYOUT (Split View) */
@media (min-width: 992px) {
    .contact-split-container {
        flex-direction: column;
        /* Stack Info and Map vertically */
        align-items: stretch;
        gap: 40px;
    }

    .contact-info-side {
        width: 100%;
    }

    /* Keep vertical stack as 2x2 Grid on Desktop */
    .contact-stack {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns */
        gap: 25px;
    }

    /* Map side full width underneath */
    .contact-map-side {
        width: 100%;
        height: 400px;
        /* Fixed height for map */
        border-radius: 12px;
    }
}


.contact-block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.6);
    /* Slight transparency */
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    transition: transform 0.2s ease;
}

.contact-block:hover {
    transform: translateY(-2px);
    background-color: rgba(255, 255, 255, 0.9);
}

.contact-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 2px;
}

.contact-icon img {
    width: 100%;
    height: 100%;
    /* No filter needed if icons are black/dark grey by default. Or use CSS filter for specific color */
    opacity: 0.7;
}

.contact-details h4 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #7f8c8d;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.contact-details p,
.contact-link {
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.5;
    font-weight: 500;
}

.contact-link {
    text-decoration: none;
    transition: color 0.2s;
    border-bottom: 1px dashed #bdc3c7;
    /* Subtle visual cue for links */
}

.contact-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Floating Action Buttons (FAB) */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.fab-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    /* Default bg */
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.fab-btn img {
    width: 32px;
    height: 32px;
}

.fab-call {
    background-color: #007bff;
    /* Blue */
}

.fab-call img {
    filter: brightness(0) invert(1);
    /* White icon */
}

.fab-whatsapp {
    background-color: #25D366;
    /* Green */
}

.fab-whatsapp img {
    filter: brightness(0) invert(1);
    /* White icon */
}


/* Hamburger Menu Default Styles */
.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--text-color);
}

/* Responsive Tweaks */
@media (max-width: 768px) {

    .fab-btn {
        width: 55px;
        height: 55px;
    }

    .fab-btn img {
        width: 28px;
        height: 28px;
    }

    .fab-container {
        bottom: 15px;
        right: 15px;
    }

    .footer-title {
        font-size: 1.8rem;
    }

    /* Existing Mobile Styles below... */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero .container,
    .about .container,
    .mission-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .about-text,
    .mission-text {
        padding-right: 0;
        width: 100%;
        /* Ensure full width */
    }

    .mission-statement {
        text-align: center;
        border-left: none;
        border-top: 4px solid var(--secondary-color);
        padding: 20px;
        border-radius: 5px;
    }

    .why-choose li {
        text-align: left;
        display: inline-block;
        /* Look better centered if they are inline-block-ish or just block? Keep left aligned but container centered usually works best for lists. */
        width: 100%;
        /* Keep it block for ticks */
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        /* Slightly smaller for small phones */
    }

    .about {
        padding: 80px 0;
        /* Reduce padding on mobile */
    }

    .about-text h2 {
        font-size: 2rem;
    }

    /* Marquee Mobile Adjustment */
    /* Marquee Mobile Adjustment */
    .marquee-content img {
        height: 250px;
        /* Increased to match desktop size for visibility */
        margin-right: 0;
        /* Use gap from parent flex container instead */
    }

    /* Mobile Menu Styles */
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        /* Below navbar */
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
    }

    .nav-links li {
        margin: 16px 0;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Fix for long email on mobile - Manual Break used instead */
    .contact-details {
        min-width: 0;
        width: 100%;
    }

    /* Restoring font size as user requested, relying on <br> tag */
    .contact-link {
        /* font-size: 0.75rem;  <-- Removed to keep same size as phone */
        word-break: normal;
        /* Back to normal */
        overflow-wrap: normal;
        display: block;
    }
}

/* 1.5) ANTI-GRAVITY INFO SECTION */
.antigravity-info {
    background-color: var(--light-bg);
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

.ag-features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.ag-feature-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
    background: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.ag-feature-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: #e9f7ef;
    /* Light green bg */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ag-feature-card h3 {
    margin-bottom: 0;
    font-size: 1.3rem;
    color: var(--text-color);
}

/* 2.5) OUR WORKS SECTION (Marquee) */
.our-works {
    background-color: var(--dark-bg);
    overflow: hidden;
    /* Hide scrollbars */
}

.our-works h2 {
    margin-bottom: 40px;
    color: var(--primary-color);
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-content {
    display: flex;
    width: max-content;
    /* Critical: Forces container to fit all images */
    gap: 10px;
    /* Tighter spacing */
    animation: marquee 15s linear infinite;
    /* Fast 15s loop */
}

.marquee-content img {
    height: 250px;
    /* Fixed height for uniformity */
    width: auto;
    flex-shrink: 0;
    /* Critical: Prevent shrinking */
    margin-right: 0;
    /* Use flex gap instead */
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.marquee-content img:hover {
    transform: scale(1.05);
}

/* Advanced Cleaning Marquee Logic */
/* Desktop: Hide duplicates (cards 4, 5, 6) */
.ag-features-grid .ag-feature-card:nth-child(n+4) {
    display: none;
}

/* Mobile Marquee Animation */
@media (max-width: 768px) {

    /* Show all cards for marquee */
    .ag-features-grid .ag-feature-card:nth-child(n+4) {
        display: block;
    }

    .antigravity-info {
        overflow: hidden;
        padding-bottom: 60px;
    }

    .ag-features-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 30px;
        width: max-content;
        animation: marquee-features 12s linear infinite;
    }

    .ag-feature-card {
        flex: 0 0 auto;
        width: 280px;
        /* Fixed width for smooth scroll */
        margin: 0;
    }

    /* Pause on hover */
    .ag-features-grid:hover {
        animation-play-state: paused;
    }
}

@keyframes marquee-features {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 15px));
        /* Move half width + half gap */
    }
}

/* Global Marquee Animation (Restored) */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.33%);
    }
}

.marquee-wrapper:hover .marquee-content {
    animation-play-state: paused;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

.floating-whatsapp img {
    width: 35px;
    height: 35px;
    filter: brightness(0) invert(1);
    /* Make icon white */
}

/* Ensure it doesn't overlap with footer too awkwardly on mobile, maybe adjust slightly */
@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }

    .floating-whatsapp img {
        width: 30px;
        height: 30px;
    }
}