/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2656a5;
    --secondary-color: #3fa9f5;
    --text-color: #606060;
    --neutral-color: #fffdfd;
    --font-family: 'Inter', sans-serif;
    
    /* Added missing variables used in the CSS */
    --accent-blue: #3fa9f5; 
    --card-bg: #f9f9f9; 
    
    /* Text uniform styling */
    --paragraph-font-size: clamp(14px, 1.2vw, 18px);
    --heading-h1: clamp(24px, 2.5vw, 36px);
    --heading-h2: clamp(18px, 2vw, 30px);
    --heading-h3: clamp(16px, 1.5vw, 24px);
    --heading-h4: clamp(14px, 1.2vw, 20px);
    --explainer-font-size: clamp(12px, 1vw, 16px);
    
    /* Button uniform styling */
    --button-padding: 8px 20px;
    --button-border-radius: 5px;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===============================
  ------- Header styling -------
=================================*/
.main-header {
    background-color: var(--neutral-color);
    width: 100%;
    border-bottom: 2px solid var(--primary-color);
    position: fixed;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    font-size: var(--paragraph-font-size);
    transition: 0.3s;
    font-weight: 530;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.callus-btn a {
    background-color: var(--primary-color);
    color: var(--neutral-color);
    padding: var(--button-padding);
    border-radius: var(--button-border-radius);
    text-decoration: none;
    font-size: var(--paragraph-font-size);
    transition: 0.3s;
}

.callus-btn a:hover {
    background-color: var(--secondary-color);
}

/* ===============================
   RESPONSIVE + DROPDOWN + HAMBURGER
=================================*/
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    background: transparent;
    border: none;
    height: 21px; 
    width: 28px;
    padding: 0;
    z-index: 1000; 
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    position: absolute;
    background: var(--neutral-color);
    min-width: 200px;
    display: none;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-radius: 5px;
    padding: 10px 0;
    z-index: 100;
}

.dropdown-content a {
    padding: 10px 20px;
    display: block;
    text-align: left;
}

.dropdown:hover .dropdown-content {
    display: block;
}

body.no-scroll {
    overflow: hidden;
}

/* Tablet */
@media (max-width: 992px) {
    .top-header {
       margin-top: 15%;
    }
    
    .header-container {
        padding: 20px;
        display: flex;
        flex-direction: row; /* Keep row for logo and hamburger */
        justify-content: space-between;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .callus-btn a {
        padding: 6px 15px;
        font-size: 14px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        max-width: 80%;
        width: 100%;
        height: 100vh;
        background: var(--neutral-color);
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Left aligned */
        text-align: left; /* Left aligned */
        padding: 80px 30px 30px 30px; 
        box-shadow: -5px 0 25px rgba(0,0,0,0.15); 
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        display: block;
        margin: 15px 0;
        width: 100%;
        text-align: left; /* Enforce left alignment */
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding: 0 0 0 15px; 
        border-left: 2px solid var(--primary-color);
        margin-top: 10px;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }
}

/* ===============================
  ------- Footer styling -------
=================================*/
.site-footer {
    background-color: var(--primary-color); 
    color: var(--neutral-color);
    padding-top: 3rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
}

.footer-column {
    flex: 1;
    min-width: 250px; 
}

.brand-column {
    flex: 1.2; 
}

.footer-logo {
    max-width: 220px;
    margin-bottom: 1.5rem;
    display: block; 
}

.brand-description {
    font-size: var(--explainer-font-size);
    line-height: 1.5;
    color: #e0e0e0;
}

.footer-column h3 {
    color: #64a3e3; 
    font-size: var(--explainer-font-size);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 1rem;
}

.footer-column ul a {
    color: #ffffff;
    text-decoration: none;
    font-size: var(--explainer-font-size);
    transition: color 0.3s ease;
    line-height: 1.4;
    display: inline-block;
}

.footer-column ul a:hover {
    color: #64a3e3; 
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #ffffff;
    color: #2b5c9d;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    background-color: #64a3e3;
    color: #ffffff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 1.5rem 2rem;
    border-top: 1px solid #ffffff;
    text-align: center; /* Desktop default */
}

.footer-bottom p {
    font-size: var(--paragraph-font-size);
    font-weight: 300;
    color: #ffffff;
}

@media (max-width: 850px) {
    .footer-container {
        gap: 2rem;
    }
}

@media (max-width: 650px) {
    .footer-column {
        flex: 100%; 
        text-align: left; /* Enforce left alignment */
    }
    
    .footer-logo {
        max-width: 180px;
    }
    
    .footer-bottom {
        text-align: left; /* Left align on mobile */
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
        text-align: left;
    }
}

/* ===============================
  ------- Hero section styling -------
=================================*/
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.top-header {
    background-color: #ffffff;
    padding-top: 140px; 
    padding-bottom: 80px;
}

.top-header .header-container {
    /* Removed gap: 300px; which breaks responsiveness */
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15rem; /* Reasonable gap */
}

.logo-wrapper {
    flex: 0 0 300px; 
}

.logo-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.intro-text-wrapper {
    flex: 1;
    text-align: left;
}

.intro-text-wrapper p {
    font-size: var(--paragraph-font-size);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

.hero-banner {
    background-image: linear-gradient(rgba(38, 86, 165, 0.8), rgba(38, 86, 165, 0.8)), url('images/hero-background.png');
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 100px 0 120px;
    color: #ffffff;
    text-align: center; /* Desktop default */
    min-height: 100vh; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-pill {
    position: absolute;
    top: 0;
    right: 5%;
    background-color: #ffffff;
    padding: 15px 70px;
    border-radius: 0 0 30px 30px; 
    display: flex;
    gap: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.social-pill a {
    color: var(--primary-color);
    font-size: 28px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-pill a:hover {
    color: #2c5282;
    transform: translateY(-3px);
}

.hero-container {
    max-width: 900px;
}

.hero-banner h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-banner p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background-color: #5bb4ff; 
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #4aa3ee;
}

@media (max-width: 992px) {
    .top-header .header-container {
        flex-direction: column;
        align-items: flex-start; /* Left aligned */
        text-align: left; /* Left aligned */
        gap: 20px;
    }

    .intro-text-wrapper {
        text-align: left;/* Left aligned */
    }

    .hero-banner {
        display: flex;
        flex-direction: column;
        text-align: left; /* Left aligned */
        padding: 80px 5%;
    }
    
    .social-pill {
        top: 0;
        right: 5%;
        padding: 12px 50px;
        gap: 30px;
    }

    .hero-container {
        text-align: left; /* Left aligned */
    }

    .hero-banner h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 20px 0;
    }

    .logo-wrapper {
        flex: 0 0 180px; 
    }

    .intro-text-wrapper p {
        font-size: 1rem;
    }

    .social-pill {
        position: absolute;
        top: 0;
        right: 5%;
        background-color: #ffffff;
        padding: 10px 30px;
        border-radius: 0 0 20px 20px;
        display: flex;
        gap: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        border-bottom: none;
        justify-content: center;
    }

    .social-pill a {
        color: var(--primary-color); 
        font-size: 24px;
    }

    .hero-banner h1 {
        font-size: 2rem;
        margin-top: 40px;
    }

    .hero-banner p {
        font-size: 1rem;
    }
}

/* ===============================
  --- About section styling ---
=================================*/
.about-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.about-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
    margin-top: 8rem;
}

.about-text {
    flex: 1;
}

.about-text h1 {
    color: #2756A1; 
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-text p {
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.about-text .mission-text {
    margin-bottom: 0;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.about-bottom {
    text-align: center; /* Desktop Default */
}

.about-bottom h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.client-card {
    background-color: var(--primary-color); 
    color: #ffffff;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: default;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.client-card.inquiry {
    background-color: #616161; 
    cursor: pointer;
}

@media (max-width: 900px) {
    .about-top {
        gap: 2rem;
    }
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
  
}

@media (max-width: 768px) {
    .about-top {
        flex-direction: column;
        align-items: flex-start; /* Left aligned */
        text-align: left; /* Left aligned */
    }
    
    .about-image {
        order: -1; 
        margin-bottom: 1rem;
        justify-content: flex-start;
    }

    .about-bottom {
        text-align: left; /* Left aligned */
    }

    .about-bottom h2 {
        text-align: left; /* Left aligned */
    }

    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .client-card {
        justify-content: flex; /* center aligned */
        text-align: center; /* center aligned */
    }
}

/* ===============================
  --- Core Services styling ---
=================================*/
.services-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    margin-top: 80px;
    /* Fixed the broken height and massive margin */
    min-height: auto;
    margin-bottom: 80px;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 45px;
    height: 4px;
    background-color: var(--accent-blue);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.service-card h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
}

.features-list {
    list-style: none;
    padding: 0;
    margin-top: 0.5rem;
}

.features-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-blue);
    font-weight: bold;
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .section-header h2 {
        font-size: 1.75rem;
        text-align: left; /* Enforce left align */
    }
    .section-header {
        text-align: left; /* Enforce left align */
    }
}


/* ===============================
  --- Contact Page styling ---
=================================*/
.loading-wheel {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff; /* Contrast against the blue button */
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ensure button doesn't shrink when text disappears */
.contact-submit-btn {
    min-width: 180px;
    min-height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.contact-hero-banner {
    background-color: var(--primary-color);
    background-image: url('images/bubbles-bg.png'); /* Ensure you have this bg asset */
    background-size: cover;
    background-position: center;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5%;
}

.pill-title-container {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 40px;
    border-radius: 50px;
}

.pill-title-container h1 {
    color: white;
    font-size: var(--heading-h1);
    font-weight: 600;
}

.vertical-connector {
    width: 35px;
    height: 60px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

.contact-main-container {
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.contact-form-card {
    background-color: var(--primary-color);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    color: white;
    text-align: center;
}

.contact-form-card h3 {
    margin-bottom: 30px;
    font-size: var(--heading-h3);
    font-weight: 500;
}

.styled-form input, 
.styled-form textarea {
    width: 100%;
    padding: 12px 18px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    outline: none;
}

.contact-submit-btn {
    background: linear-gradient(to right, #4facfe, #00f2fe);
    color: var(--primary-color);
    border: none;
    padding: 12px 60px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Bottom Details Layout */
.contact-footer-info {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    align-items: flex-start;
    text-align: center;
}

.info-title h2 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 800;
}

.clean-details-list {
    list-style: none;
}

.clean-details-list li {
    margin-bottom: 12px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: var(--heading-h3);
}

.clean-details-list i {
    color: var(--text-color);
    width: 20px;
    text-align: left;
}

/* RESPONSIVE LOGIC */
@media (max-width: 768px) {
    .contact-hero-banner { padding: 40px 10px; }
    .pill-title-container h1 { font-size: 20px; }
    
    .contact-form-card { padding: 30px 20px; }
    
    .contact-footer-info {
        flex-direction: column;
        align-items: center;
        text-align: left;
        gap: 20px;
    }
    
    .clean-details-list li { justify-content: center; }
    
    .contact-submit-btn { width: 100%; }
}