/* ==========================================
   1. TOP PART: Root Variables & Reset
   ========================================== */
:root {
    --primary: #0b771a       /* Vibrant Royal Blue */
    --accent: hsl(43, 24%, 89%);        /* Rotex Gold */
    --dark: #58b47b;          /* Deep Industrial Gray */
    --light-bg: #f9fbfd;      /* Light background for Services */
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

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

body { 
    font-family: 'Poppins', 'Inter', Arial, sans-serif; 
    line-height: 1.6; 
    color: #1a1a1a; 
    overflow-x: hidden; 
}

.container { width: 90%; max-width: 1200px; margin: auto; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* --- Header & Navigation --- */
.top-bar {
    background: #58b47b;;
    color: #faf5f5;
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-certs { color: var(--accent); font-weight: 700; text-transform: uppercase; }

header { 
    background: var(--white); 
    padding: 20px 0; 
    box-shadow: var(--shadow); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.logo { 
    font-size: 1.8rem; 
    font-weight: 800; 
    color: var(--dark); 
    text-decoration: none; 
    text-transform: uppercase;
}

.logo span { color: var(--primary); font-weight: 400; }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }

.nav-links a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: 600; 
    transition: 0.3s; 
}

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

/* Dropdown parent */
.nav-links li {
    position: relative;
}

/* Hide dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 240px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 8px;
    display: none;
    z-index: 999;
}

/* Dropdown item */
.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s ease;
}

/* Hover effect */
.dropdown-menu li a:hover {
    background: #f4f7f5;
    color: #2f6f4e;  /* your theme green */
}

/* Show dropdown */
.dropdown:hover .dropdown-menu {
    display: block;
}

.btn-nav { 
    background: va0b771; 
    color: #0b771a !important; 
    padding: 10px 22px; 
    border-radius: 4px; 
}

/* ==========================================
   2. MIDDLE PART: Content Sections
   ========================================== */

/* --- New Improved Slider CSS --- */
/* --- Professional Slider Layout --- */
.hero-slider {
    position: relative;
    height: 650px; /* Increased height for better proportions */
    background: linear-gradient(135deg, #58b47b 0%, #1a202c 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px; /* Space between text and image */
}

/* Text Section Styling */
.hero-text {
    flex: 1; /* Takes 50% of the width */
    color: #ffffff;
}

.hero-text .subtitle {
    color: #ffb400; /* Suprimo Gold */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.hero-text h1 {
    font-size: 3.5rem; /* Larger, bold headers */
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text h1 span { color: #ffb400; }

.hero-text p {
    font-size: 1.1rem;
    color: #cbd5e0;
    max-width: 500px;
    margin-bottom: 35px;
}

/* Image Section Styling - Solving the "Small Image" look */
.hero-image {
    flex: 1; /* Takes 50% of the width */
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-height: 550px; /* Limits height to fit the banner */
    width: auto;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Subtle entrance animation for the image */
    transform: translateY(20px);
    transition: transform 1.5s ease-out;
}

.slide.active .hero-image img {
    transform: translateY(0);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .hero-slider { height: auto; padding: 100px 0; }
    .hero-flex { flex-direction: column; text-align: center; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-image img { max-height: 350px; margin-top: 40px; }
}

/* --- New About Zone --- */
.about-zone {
    padding: 100px 0;
    background: var(--white);
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-content { flex: 1; min-width: 300px; }

.subtitle { 
    color: var(--accent); 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    display: block;
    margin-bottom: 10px;
}

.btn-outline { 
    display: inline-block; 
    margin-top: 20px; 
    color: var(--primary); 
    text-decoration: none; 
    font-weight: bold; 
    border-bottom: 2px solid var(--primary); 
}

.about-image-box { flex: 1; min-width: 300px; }
.about-image-box img { width: 100%; border-radius: 12px; box-shadow: var(--shadow); }

/* --- Product Page Grid --- */
.product-grid-section {
    padding: 60px 0;
    background: #f4f7f9;
}

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

/* Compact Card Design */
.product-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-icon { font-size: 2.5rem; margin-bottom: 15px; }

/* Keep Title Visible on Hover */
.product-card h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.product-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.product-footer {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #0b771a;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Proper Popup Hover without hiding text */
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 86, 179, 0.1);
    border-color: #0056b3;
}

.product-card:hover h3 {
    color: #0056b3; /* Title turns blue but stays visible */
}


/* --- New Services Zone (Popup Boxes) --- */
.services-section {
    background-color: var(--light-bg);
    padding: 100px 0;
}

.section-title { text-align: center; margin-bottom: 60px; }
.accent-line { width: 60px; height: 4px; background: var(--accent); margin: 15px auto; }

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

/* Updated Popup Box Design */
.service-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid #edf2f7;
    text-align: center;
    padding: 50px 30px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    transition: 0.4s;
}

/* Popup Hover Effect */
.service-card:hover {
    transform: translateY(-15px) scale(1.02); /* Pops up and grows slightly */
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.15);
}

.service-card:hover .icon-circle {
    background: var(--primary);
    color: #fff;
    transform: rotateY(360deg);
}
/* --- Gallery Specific Styles --- */
.gallery-grid-section {
    padding: 80px 0;
    background: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; /* Space between images */
}

.gallery-item {
    position: relative;
    height: 300px; /* This forces all boxes to be the same height */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is what makes them fit similar sizes */
    transition: transform 0.5s ease;
}

/* Hover Effect: Zoom Image */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Gallery Overlay (Text appearing on hover) */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 86, 179, 0.8); /* Suprimo Blue with transparency */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 1px solid white;
    padding: 10px 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Mobile Tweak */
@media (max-width: 600px) {
    .gallery-item { height: 250px; }
}
/* --- About Image Fit Fix --- */

/* --- Balanced About Section --- */
.about-zone {
    padding: 80px 0;
    background: #ffffff;
}

.about-flex {
    display: flex;
    align-items: center; /* Vertical center alignment */
    justify-content: space-between;
    gap: 60px; /* Increased gap for breathing room */
    flex-wrap: wrap;
}

/* Make text side wider to fill space */
.about-content {
    flex: 1.2; /* Takes up more room than the image */
    min-width: 350px;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-content p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #4a5568;
}

/* Constrain the image container so it doesn't look giant */
.about-image-wrapper {
    flex: 0.8; /* Takes up less horizontal room */
    min-width: 300px;
    max-height: 450px; /* Limits the vertical height of the portrait image */
    border-radius: 20px; /* Softer rounded corners */
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.fit-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops the tall image to fit the container */
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .about-flex {
        flex-direction: column;
        text-align: center;
    }
    .about-image-wrapper {
        width: 100%;
        max-height: 350px;
    }
}
/* ==========================================
   3. LOWER PART: Contact & Footer
   ========================================== */

/* --- New Contact Zone --- */
.contact-zone { 
    padding: 80px 0; 
    background: linear-gradient(135deg, var(--primary) 0%, #003366 100%); 
    color: #fff; 
}

.contact-card-index { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 30px; 
}

.btn-accent { 
    background: var(--accent); 
    color: var(--dark); 
    padding: 15px 35px; 
    text-decoration: none; 
    border-radius: 5px; 
    font-weight: bold; 
    transition: 0.3s;
}

.btn-accent:hover { background: var(--white); transform: scale(1.05); }


/* --- Fix WhatsApp Size --- */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    background: #25d366;
    color: white;
    padding: 10px 15px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* This is the critical fix for the giant logo */
.whatsapp-btn img {
    width: 30px; 
    height: 30px;
    margin-right: 8px;
}

/* --- Simplified Footer Layout --- */
.main-footer {
    background: #fff;
    color: #1a1a1a;
    padding: 60px 0 20px;
    border-top: 5px solid #1a1a1a;
}

.footer-simple-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #0b771a; /* Green */
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.footer-col p, .footer-col li {
    color:black;
    font-size: 0.9rem;
    margin-bottom: 10px;
    list-style: none;
}

.footer-bottom-simple {
    text-align: center;
    border-top: 1px solid #2d3748;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #718096;
}
/* --- Contact Page Specific Layout --- */
.contact-grid-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Form is wider than info */
    gap: 40px;
    align-items: start;
}

.contact-form-card, .contact-info-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form-card h3 { margin-bottom: 30px; color: var(--primary); }

/* Styled Form Inputs */
.styled-form input, .styled-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    background: #f8fafc;
    font-family: inherit;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
/*
.btn-submit {
    background: var(--primary);
    color: rgb(255, 255, 255);
    border: none;
    padding: 15px 30px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover { background: var(--dark); transform: translateY(-3px); }
*/
/* This makes the button visible at all times */
.btn-submit {
    display: inline-block;
    padding: 12px 30px;
    background-color: #5cb85c; /* Your current brand green */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    visibility: visible; /* Ensures it is not hidden */
    opacity: 1;          /* Ensures it is not transparent */
}

/* This darkens the green when you hover over it */
.btn-submit:hover {
    background-color: #2e7d32; /* Darker green for hover state */
    transform: translateY(-2px); /* Slight lift effect */
}

/* Optional: Active state for when the button is clicked */
.btn-submit:active {
    transform: translateY(0);
    background-color: #1b5e20;
}

/* Info Block Styling */
.info-block { display: flex; gap: 20px; margin-bottom: 30px; }
.info-icon { 
    font-size: 1.5rem; 
    background: var(--light-bg); 
    width: 50px; height: 50px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%;
}
.info-block h4 { margin-bottom: 5px; color: var(--dark); font-size: 1.1rem; }
.info-block p { font-size: 0.95rem; color: #64748b; line-height: 1.5; }

.whatsapp-highlight a {
    color: #25d366;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid #25d366;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .contact-grid-main { grid-template-columns: 1fr; }
}

/* --- Mobile Menu & Responsive Styling --- */

/* 1. Ensure the container isn't a fixed width */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* 2. Hamburger Icon Styling */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark);
    transition: 0.3s;
}

/* 3. Media Query for Mobile (Tablets and Phones) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Show hamburger on mobile */
    }

    .nav-links {
        display: none; /* Hide default menu */
        position: absolute;
        top: 80px; /* Below header */
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex; /* Toggle this via JS */
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-links a {
        padding: 20px;
        display: block;
    }

    /* Fix for the Hero Banner text being too big */
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    /* Stack the About and Contact sections vertically */
    .about-flex, .contact-card-index, .footer-simple-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-image-wrapper {
        max-height: 300px; /* Shrink image box on mobile */
    }
}

/* --- Fix for extended content in about.php --- */
@media (max-width: 768px) {
    /* Allow "Our Journey" and "Quick Facts" to grow vertically */
    .journey-section, .facts-grid, .about-card {
        height: auto !important; /* Removes fixed height constraints */
        min-height: unset !important;
        padding: 40px 20px !important;
        display: block !important; /* Changes from flex to block for better stacking */
    }

    .facts-grid {
        display: grid;
        grid-template-columns: 1fr; /* Stacks facts in a single column */
        gap: 20px;
    }

    /* Prevents text from spreading too wide or hiding below screen */
    .journey-content p, .fact-item p {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    /* Ensures images don't push content off-screen */
    .about-image-wrapper {
        max-height: 250px;
        width: 100%;
        margin-top: 20px;
    }
}

/* --- Updated Trusted Partners Section --- */
/* --- Balanced Partner Marquee --- */
.partners-marquee-section {
    background: #4f7f5f;
    padding: 40px 0;
}

.partners-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.partners-label {
    color: #fff;
    font-weight: 600;
    letter-spacing: 2px;
}

.partners-divider {
    width: 1px;
    height: 60px;
    background: rgba(255,255,255,0.3);
}

.marquee-window {
    overflow: hidden;
    flex: 1;
}

.marquee-track {
    display: flex;
    gap: 60px;
    animation: marquee 20s linear infinite;
}

.logo-group {
    display: flex;
    gap: 60px;
}

.partner-logo {
    background: #fff;
    width: 180px;
    height: 90px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-height: 60px;
    max-width: 140px;
    object-fit: contain;
}

/* Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


.strengths-section {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.strength-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.strength-icon {
    width: 70px;
    height: 70px;
    background: #e8f5e9; /* Light green tint */
    color: #2e7d32; /* Brand green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.strength-card p {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

/* Hover Effects */
.strength-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: #2e7d32;
}

.strength-card:hover .strength-icon {
    background: #2e7d32; /* Fill with brand green */
    color: #fff; /* White icon */
    transform: rotateY(360deg); /* Subtle spin effect */
}

/* Mobile responsive tweak */
@media (max-width: 600px) {
    .strengths-grid {
        grid-template-columns: 1fr;
    }
}


.about-flex {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.about-content { flex: 1; min-width: 300px; }

/* Strengths List Styling */
.strength-mini-list h4 {
    margin: 25px 0 15px;
    color: #2e7d32;
    font-size: 1.2rem;
}

.strength-mini-list ul { list-style: none; padding: 0; }
.strength-mini-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.strength-mini-list i { color: #2e7d32; }

/* Stats Card Styling */
.about-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-top: 30px;
}

.about-stats-wrapper {
    flex: 1;
    background: #b9e6cf;
    padding: 30px;
    border-radius: 12px;
    border-right: 4px solid #2e7d32; /* Green accent on the side */
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.stat-item {
    margin-bottom: 25px;
}

.stat-item i {
    font-size: 24px;
    color: #2e7d32;
    margin-bottom: 10px;
}

.stat-text strong {
    display: block;
    font-size: 1.2rem;
    color: #1a1a1a;
}

.stat-sub-list {
    font-size: 0.95rem;
    color: #555;
    margin-top: 8px;
    line-height: 1.6;
}

.developer-credit {
    font-size: 14px;
    opacity: 0.8;
}