/* ==========================================================================
   1. Reset & Global Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scroll behavior for anchor navigation tags */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Prevents sticky nav from overlapping your content headers */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f7f9fa;
}

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

/* Helper Class for New Sections */
.container-alt {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #1a202c;
    position: relative;
    font-weight: 700;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #3182ce;
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

.section-divider {
    border: 0;
    height: 1px;
    background: #eef2f5;
    margin: 20px 0;
}

/* ==========================================================================
   2. Sticky Header & Navigation Menu
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 100; /* High z-index ensures it sits safely on top of everything else */
    background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
    backdrop-filter: blur(8px); /* Frosted glass aesthetic effect */
    border-bottom: 1px solid #eef2f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1275px;
    margin: 0 auto;
    padding: 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand Area Styling */
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 50px; /* Reduced from 100px for better responsive alignment */
}

.logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.company-name {
    /* 
        Fluid typography scale using clamp(minimum, preferred, maximum)
        This uses a fluid font size scale for mobile devices to make it shrink proportionally.
     */
    font-size: clamp(1.2rem, 2vw, 1.5rem); /* The Minimum Size, The Preferred Fluid Value, The Maximum Size */
    font-weight: 700;
    white-space: nowrap; /* This completely prevents the text from breaking into two lines by forcing long company names to stay on one single line  */
    color: #1a202c;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.85rem;
    /*
   color: #718096;  
   */
   color: #0722eaea; /* Updated from grey to corporate blue */
   font-weight: 600; /* Added slight weight to make it legible on the white header */
}

.header-text {
    display: flex;
    flex-direction: column;
    align-items: center; /* flex-start; */
}

/* Menu Items Configuration */
.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
    padding: 5px 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #3182ce; /* Matching primary corporate blue motif color */
    border-bottom: 2px solid #3182ce;
}

/* ==========================================================================
   3. Image Carousel Configuration
   ========================================================================== */
.carousel-container {
    position: relative;
    width: 100%;
    height: 70vh; /* Keeps height bounded to 70% viewport height */
    overflow: hidden;
    background-color: #1a202c;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out; /* Smooth transition effect */
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    display: block;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed to cover for full banner scaling visibility */
    filter: brightness(50%); /* Integrated dimming tint mask */
}

/* Text Overlay Styling */
.carousel-caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    right: 10%;
    color: #ffffff;
    z-index: 3;
    text-align: left;
    max-width: 1000px;
}

.carousel-caption h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.carousel-caption p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    font-weight: 300;
}

/* Arrows Navigation UI Elements */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 4;
    transition: background-color 0.2s ease;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

/* Bottom Dot Indicators navigation */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 4;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: #ffffff;
}

/* ==========================================================================
   4. Core Services Headers
   ========================================================================== */
.page-header {
    text-align: center;
    padding: 60px 20px 20px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid #eef2f5;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #1a202c;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    color: #718096;
}

/* ==========================================================================
   5. Info Box Flexbox Layout (Services Grid)
   ========================================================================== */
.info-box {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 12px;
    margin-top: 40px;
    margin-bottom: 40px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.info-box.reverse {
    flex-direction: row-reverse;
}

.box-image {
    flex: 1;
    min-height: 350px;
    position: relative;
}

.box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.box-content {
    flex: 1;
    padding: 40px;
}

.box-content h2 {
    font-size: 1.8rem;
    color: #2d3748;
    margin-bottom: 15px;
}

.box-content p {
    color: #4a5568;
    margin-bottom: 25px;
}

.btn {
    display: none;   /* inline-block;*/
    padding: 10px 22px;
    background-color: #3182ce;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: #2b6cb0;
}

/* ==========================================================================
   6. About Us Section Styles
   ========================================================================== */
.about-section {
    background-color: #ffffff;
}

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

.about-block {
    background-color: #f8fafc;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.about-block h3 {
    color: #3182ce;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.about-block p {
    color: #4a5568;
    font-size: 0.95rem;
}

.team-heading {
    text-align: center;
    font-size: 1.8rem;
    color: #1a202c;
    margin-top: 20px;
    margin-bottom: 30px;
}

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

.team-card {
    text-align: center;
    background-color: #ffffff;
    padding: 25px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease;
}

.team-card:hover {
    transform: translateY(-3px);
}

.team-card img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid #f1f5f9;
}

.team-card h4 {
    color: #2d3748;
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.team-card .role {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   7. Customer Testimonials Styles
   ========================================================================== */
.testimonials-section {
    display: none; /* Added to hide the section from the website and to be activated later */
    background-color: #f1f5f9;
}

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

.testimonial-card {
    background: #ffffff;
    padding: 35px;
    border-left: 4px solid #3182ce;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    border-radius: 0 12px 12px 0;
}

.testimonial-card .feedback {
    font-style: italic;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1rem;
}

.testimonial-card .client-name {
    font-size: 0.95rem;
    color: #1a202c;
    font-weight: 700;
}

/* ==========================================================================
   8. Contact Us Section Styles
   ========================================================================== */
.contact-section {
    background-color: #ffffff;
}

.contact-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    color: #2d3748;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.address-box {
    font-style: normal;
    line-height: 1.7;
    margin: 20px 0;
    color: #4a5568;
    font-size: 1rem;
}

.map-container {
    display: none; /* Added to hide the map for future use */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin-top: 25px;
    border: 1px solid #e2e8f0;
}

/* Email Contact Form Container */
.contact-form-container {
    background: #f8fafc;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
    font-size: 0.9rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
    background-color: #ffffff;
    transition: border-color 0.2s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #3182ce;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.submit-btn {
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    padding: 14px;
    font-size: 1rem;
}

/* ==========================================================================
   9. Mega Corporate Footer & Legal Subsections
   ========================================================================== */
/* Hides legacy minimalist paragraph block from your old code */
.page-footer { 
    display: none !important; 
} 

.main-footer {
    background-color: #1a202c; /* Clean dark gray corporate anchor background matching your original variables */
    color: #a0aec0;
    padding: 60px 20px 30px 20px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #2d3748;
}

.footer-brand h4 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-nav h5, 
.footer-legal-links h5 {
    color: #ffffff;
    margin-bottom: 18px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-nav ul, 
.footer-legal-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li, 
.footer-legal-links ul li {
    margin-bottom: 12px;
}

.footer-nav ul li a, 
.footer-legal-links ul li a {
    color: #a0aec0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-nav ul li a:hover, 
.footer-legal-links ul li a:hover {
    color: #3182ce;
}

.footer-bottom {
    text-align: center;
    max-width: 1100px;
    margin: 30px auto 0 auto;
    font-size: 0.85rem;
    color: #718096;
}

/* ==========================================================================
   10. Responsive Mobile Design (Media Query Overhauls)
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column; /* Vertically stacks brand name and menu rows on phones */
        gap: 15px;
        padding: 12px;
        text-align: center;
    }

    .brand {
        flex-direction: column;
        gap: 5px;
    }

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

    .nav-menu ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .carousel-container {
        height: 50vh; /* Shorter viewport canvas height framework on mobile devices */
    }

    .carousel-caption h1 {
        font-size: 1.8rem;
    }

    .carousel-caption p {
        font-size: 0.95rem;
    }

    .info-box, .info-box.reverse {
        flex-direction: column;
    }

    .box-image {
        width: 100%;
        min-height: 250px;
    }

    .box-content {
        padding: 30px 20px;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }

    .contact-split {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .about-grid, .team-grid, .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}