/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation */
.navbar {
    background-color: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

@media (min-width: 769px) {
    /* Hidden state for hover-activated navbar (desktop only) */
    .navbar.navbar-hidden {
        transform: translateY(-100%);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: -40px;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    /* Changed to a deep red for good contrast */
    color: #c62828;
}

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

.nav-links a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #2c5282;
}

.login-btn {
    background-color: #2c5282;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.login-btn:hover {
    background-color: #1a365d;
}

/* Navigation contact button */
.nav-links a.contact-btn {
    background-color: #0e5ea8;
    color: #ffffff !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}
.nav-links a.contact-btn:hover {
    background-color: #0d549a;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/banner lab.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 70px;
}

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-line-1 {
    font-size: 3.5rem;
    font-weight: 400;
    color: #fcefef;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.hero-line-2 {
    font-size: 3rem;
    font-weight: 700;
    color: #fcefef;
    text-transform: uppercase;
    text-shadow: 
        -1px -1px 0 rgba(0,0,0,0.3),
        1px -1px 0 rgba(0,0,0,0.3),
        -1px 1px 0 rgba(0,0,0,0.3),
        1px 1px 0 rgba(0,0,0,0.3),
        2px 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

/* Update existing hero styles for better spacing */
.hero-content {
    max-width: 1000px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.promotion {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background-color: #0e5ea8;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(14, 94, 168, 0.2);
}

.cta-button:hover {
    background-color: #0d549a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(14, 94, 168, 0.3);
}

/* Quick Links */
.quick-links {
    background-color: #022742;
    padding: 1rem 5%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.link-container {
    display: flex;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.link-container a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
    position: relative;
}

.link-container a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.link-container a:hover::after {
    width: 100%;
}

.link-container a:hover {
    color: #ffffff;
    opacity: 0.9;
}

/* Getting Started Section */
.getting-started {
    padding: 4rem 5%;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 3.5rem;
    color: #1a202c;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.section-title .highlight {
    color: #022742;
    font-weight: 700;
}

.section-description {
    max-width: 1000px;
    margin: 0 auto 0.5rem; /* reduced space below description */
    color: #4a5568;
    font-size: 1.32rem;
    line-height: 1.6;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    background-color: #e2e8f0;
    top: 70px; /* Align with dot center (half of 28px) */
    bottom: 200px; /* Align with last dot center */
}

.timeline-progress {
    position: absolute;
    left: 0;
    width: 100%;
    background-color: #022742;
    height: 0;
    transition: height 0.4s ease;
}

.timeline-container {
    position: relative;
    padding-top: 20px;
}

.timeline-item {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 0.5rem; /* 60% less spacing */
    position: relative;
    min-height: 70px; /* slightly tighter */
}

.timeline-item:last-child {
    margin-bottom: 0; /* Prevents line from extending */
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: #e2e8f0;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: background-color 0.3s ease;
    z-index: 2;
    border: 4px solid white;
    box-shadow: 0 0 0 1px #e2e8f0;
}

.timeline-dot.active {
    background-color: #022742;
    box-shadow: 0 0 0 1px #022742;
}

.timeline-dot.active {
    background-color: #022742;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: #f7f7f7;
    border-radius: 8px;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    position: relative;
}

.timeline-content.left {
    margin-right: 55%;
}

.timeline-content.right {
    margin-left: 55%;
}

.timeline-content h3 {
    color: #022742;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.timeline-content p {
    color: #4a5568;
    line-height: 1.5;
    font-size: 1.1rem;
}

.text-link {
    color: #022742;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.text-link:hover {
    color: #0056b3;
}

/* Free Sample Section Refactor */
.free-sample {
    background: radial-gradient(circle at center, #07467a 0%, #022742 70%);
    color: #ffffff;
    padding: 4rem 5%;
}

.free-sample-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.free-left {
    flex: 1 1 500px;
}

.free-left h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.free-left p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}

.free-left .contact-details a,
.free-left .contact-details span {
    color: #6cb2ff;
    font-weight: 500;
}

.interest-box {
    flex: 0 1 360px;
    background-color: #ffffff;
    color: #022742;
    border-radius: 45px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.interest-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.interest-box p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Why Choose Us Section (revamp) */
.why-choose-us {
    padding: 5rem 5%;
}

.why-container {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.why-image {
    flex: 0 1 420px;
    margin-left: 2rem; /* Move image to the right */
}

.why-image img {
    width: 100%;
    object-fit: cover;
}

.why-content {
    flex: 1 1 600px;
}

.why-content h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #022742;
    font-weight: 300;
}

.why-content h2 strong {
    font-weight: 700;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2.25rem; /* Increased gap by 50% */
    grid-template-areas:
        "rapid api"
        "tech  custom";
}

.feature-card {
    padding: 2rem 1.8rem;
    border-radius: 20px; /* Adjusted radius */
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

.feature-card.rapid,
.feature-card.api {
    background-color: #eff8ff;
}

.feature-card.tech {
    background-color: #dbeeff;
}

.feature-card.custom {
    background-color: #9bd0ff;
}

.feature-card h3 {
    font-size: 2.4rem; /* Increased by 60% */
    color: #0274d8;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2; /* Added for better two-line spacing */
}

.feature-card p {
    color: #022742;
    line-height: 1.6;
    font-size: 1.15rem; /* Increased by 40% */
}

.rapid  { grid-area: rapid; }
.api {
    grid-area: api;
    transform: translateY(2.3rem); /* Visually push down */
}
.tech   { grid-area: tech; }
.custom {
    grid-area: custom;
    transform: translateY(2.3rem); /* Visually push down */
}

@media(max-width: 900px) {
    .why-container {
        flex-direction: column;
    }
    .why-image {
        order: 2;
    }
    .why-content {
        order: 1;
    }

    .api, .custom {
        transform: translateY(0); /* Remove misalignment on mobile */
    }
}

/* Testimonials Section (Swiper) */
.testimonials {
    background-color: #f8f9fa;
    padding: 5rem 0;
    text-align: center;
    overflow: hidden; /* Prevent horizontal scrollbar */
}

.testimonials h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.testimonials .subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.testimonial-avatars {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.avatar-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.avatar-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-item.active {
    border-color: transparent; /* remove highlight border */
    transform: none; /* remove scale effect */
}

/* Remove drag indicator entirely if any leftover */
.drag-indicator { display: none; }

/* Neutralize arrow button hover highlight */
.testimonial-nav button:hover {
    background-color: #ffffff; /* keep same as default */
    color: #022742;
    transform: none;
}

/* Navigation arrows below testimonials */
.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin: 2rem auto 0;
    width: 100%;
    position: relative;
    z-index: 10;
}

.testimonial-nav button {
    background-color: #ffffff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1.2rem;
    color: #022742;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.testimonial-nav button:hover {
    background-color: #ffffff;
    color: #022742;
    transform: none;
}

.testimonial-slider {
    width: 100%;
    padding: 2rem 0;
}

.swiper-slide {
    width: 450px; /* Set a fixed width for slides */
    transition: all 0.4s ease;
    filter: blur(2px);
    transform: scale(0.9);
    opacity: 0.7;
}

.swiper-slide-active {
    filter: blur(0);
    transform: scale(1);
    opacity: 1;
}

.testimonial-card {
    background: #fcefef;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    position: relative;
    text-align: left;
}

.corner-bracket {
    position: absolute;
    width: 30px;
    height: 30px;
    border-color: #ff6b6b;
    border-style: solid;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.swiper-slide-active .corner-bracket {
    opacity: 1;
}

.corner-bracket.top-left { top: -15px; left: -15px; border-width: 4px 0 0 4px; }
.corner-bracket.top-right { top: -15px; right: -15px; border-width: 4px 4px 0 0; }
.corner-bracket.bottom-left { bottom: -15px; left: -15px; border-width: 0 0 4px 4px; }
.corner-bracket.bottom-right { bottom: -15px; right: -15px; border-width: 0 4px 4px 0; }

.testimonial-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-card .author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-card .author-info strong {
    display: block;
    color: #212529;
    font-weight: 700;
}

.testimonial-card .author-info span {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background-color: #2d3748;
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-section a {
    color: white;
    text-decoration: none;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #4a5568;
    border-radius: 4px;
    background-color: #2d3748;
    color: white;
}

.contact-form button {
    background-color: #48bb78;
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #38a169;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #4a5568;
}

/* Water Testing Lab Capabilities Section */
.water-testing {
    padding: 0.1rem 5%;
    text-align: center;
}

.wt-title {
    font-size: 2.9rem;
    color: #09264d;
    font-weight: 750;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.wt-subtitle {
    font-size: 1.1rem;
    color: #030404;
    max-width: 950px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.wt-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 0.1rem;
    position: relative;
}

.wt-row.reverse {
    flex-direction: row-reverse;
}

.wt-text {
    flex: 1;
    text-align: left;
}

.wt-text h3 {
    font-size: 1.8rem;
    color: #000000;
    margin-bottom: 1rem;
}

.wt-text h3:first-child {
    margin-top: 0;
}

/* Add margin to second row text to align with image */
.wt-row:last-child .wt-text h3:first-child {
    margin-top: 3.5rem;
}

.wt-text p,
.wt-text li {
    font-size: 1.1rem;
    color: #1e1e1e;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.wt-text ul {
    list-style: disc inside;
    padding-left: 0;
    margin-bottom: 2rem;
}

.wt-button {
    display: inline-block;
    background-color: #0da2ff;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.wt-button:hover {
    background-color: #0c90e6;
}

.wt-image {
    flex: 1;
}

.wt-image img {
    width: 100%;
    border-radius: 6px;
    object-fit: cover;
    display: block;
}

/* Decorative Arrows */
.wt-row::after {
    content: '';
    position: absolute;
    top: 0;
    right: -80px;
    width: 0;
    height: 0;
    border-top: 180px solid transparent;
    border-bottom: 180px solid transparent;
    border-left: 180px solid #0da2ff;
}

.wt-row.reverse::before {
    content: '';
    position: absolute;
    top: 0;
    left: -80px;
    width: 0;
    height: 0;
    border-top: 180px solid transparent;
    border-bottom: 180px solid transparent;
    border-right: 180px solid #23b409;
}

/* Remove decorative triangles */
.wt-row::after,
.wt-row.reverse::before {
    content: none;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .wt-row,
    .wt-row.reverse {
        flex-direction: column;
        text-align: center;
    }

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

    .wt-row::after,
    .wt-row.reverse::before {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 0.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transform: none !important;
    }

    .logo {
        margin-left: 0;
        padding: 0.5rem;
    }

    .logo-img {
        height: 40px;
    }

    .mobile-menu-toggle {
        display: block;
        position: static;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1100;
    }
    .mobile-menu-toggle i {
        font-size: 2rem;
        color: #022742;
    }

    .nav-links {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        width: 250px;
        height: 100vh;
        background-color: #fff;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        margin: 1rem 0;
        border-top: none;
    }

    .nav-links a {
        padding: 1rem;
        display: block;
        font-size: 1.2rem;
    }

    /* Quick Links Bar */
    .quick-links {
        padding: 0.5rem 2%;
    }

    .link-container {
        gap: 1rem;
        flex-direction: row;
        justify-content: space-between;
        overflow-x: auto;
        padding: 0.5rem 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .link-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .link-container a {
        font-size: 0.9rem;
        white-space: nowrap;
        letter-spacing: 1px;
        padding: 0.3rem 0.5rem;
    }

    /* Hero Section */
    .hero {
        height: auto;
        min-height: 60vh;
        margin-top: 60px;
        padding: 2rem 0;
    }

    .hero-title {
        gap: 15px;
    }

    .hero-line-1 {
        font-size: 2rem;
    }

    .hero-line-2 {
        font-size: 1.5rem;
    }

    /* Other Sections */
    .steps-container,
    .features,
    .testimonial-container {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .timeline-content {
        width: 85%;
        margin: 0 0 0 15% !important;
    }

    .timeline-line {
        left: 40px;
    }

    .timeline-dot {
        left: 40px;
    }

    .free-sample-content {
        flex-direction: column;
        text-align: center;
    }

    .interest-box {
        margin-top: 2rem;
        border-radius: 25px;
    }

    .free-left h2 {
        font-size: 2.2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.step,
.feature,
.testimonial {
    animation: fadeIn 1s ease-out;
} 

/* === Override default testimonial slide styles for JS-driven blur effect === */
.testimonial-slider .swiper-slide {
    filter: none;               /* JS will set dynamic blur */
    transform: scale(0.9);      /* Starting scale */
    opacity: 0.7;               /* Starting opacity */
    transition: filter 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
}

.testimonial-slider .swiper-slide-active {
    filter: none;
    transform: scale(1);
    opacity: 1;
} 

/* Mobile menu toggle hidden on larger screens */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none;
    }
}

@media (max-width: 600px) {
    /* Why Choose Us features grid single column */
    .features-grid {
        display: flex;
        flex-direction: column;
        grid-template-columns: none;
        grid-template-columns: 1fr;
        grid-template-areas: none;
    }
    .feature-card {
        transform: none !important;
    }

    /* Service grid single column */
    .service-grid {
        grid-template-columns: 1fr;
    }
} 