/* CSS reset and base styles */
:root {
    --primary-blue: #4A86D1;
    --dark-blue: #2c5a94;
    --light-blue: #e8f1fa;
    --text-dark: #333333;
    --text-gray: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: 1px;
}

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

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

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

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #333;
}

/* Hero Section */
#home {
    height: 100vh;
    min-height: 600px; /* Prevent being too short on small screens */
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 80%); /* Softer gradient matching waves */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-blue);
    padding: 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

/* Animated Waves */
.waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px; /* Increased from 120px to 250px for a more prominent wave */
}

.layer {
    transform: translate3d(0, 0, 0);
    will-change: transform;
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-1200px); }
}

/* Different speeds and heights for depth */
.layer1 {
    animation: scroll 22s linear infinite;
    transform: translateY(6px);
}
.layer2 {
    animation: scroll 14s linear infinite reverse;
    transform: translateY(2px);
}
.layer3 {
    animation: scroll 10s linear infinite;
    transform: translateY(0px);
}

.hero-content {
    z-index: 1;
    padding: 0 20px;
    max-width: 1400px;
    width: 100%;
    margin-bottom: 120px; /* Increased to account for taller waves */
}

.hero-content .subtitle {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInDown 1s ease-out 0.3s both;
}

.hero-content .hero-slogan {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
    color: var(--dark-blue);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--primary-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.btn:hover {
    background-color: var(--dark-blue);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 134, 209, 0.4);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Global */
section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: #222;
    position: relative;
}

.section-title::after {
        content: '';
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 4px;
        background-color: var(--primary-blue);
        border-radius: 2px;
    }
    
    /* About Section Redesign */
    #about {
        background-color: #f8f9fa;
        max-width: 100%;
    }
    
    .about-container {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }
    
    .about-main.full-width {
        text-align: center;
        max-width: 1000px;
        margin: 0 auto;
    }

    .about-main.full-width h3 {
        font-size: 2.2rem;
        color: var(--primary-blue);
        margin-bottom: 1.5rem;
    }
    
    .about-main.full-width p {
        font-size: 1.15rem;
        line-height: 1.8;
        color: var(--text-gray);
        margin-bottom: 1rem;
    }
    
    .about-cards.grid-2x2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        width: 100%;
    }
    
    .about-card {
        background: #fff;
        padding: 2.5rem;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        position: relative;
        overflow: hidden;
        transition: transform 0.3s ease;
    }
    
    .about-card:hover {
        transform: translateX(-10px);
    }
    
    .about-card.highlight {
        border-left: 6px solid var(--primary-blue);
    }
    
    .about-card.primary {
        background: var(--primary-blue);
        color: #fff;
    }
    
    .about-card .card-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .about-card h4 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        color: inherit;
    }
    
    .about-card.highlight h4 {
        color: var(--primary-blue);
    }
    
    .about-card .subtitle {
        font-size: 1.1rem;
        font-weight: bold;
        margin-bottom: 1rem;
        opacity: 0.9;
    }
    
    .about-card p {
        line-height: 1.6;
        margin: 0;
        opacity: 0.8;
    }

/* Products Section */
    #products {
        background-color: #ffffff; /* Swapped to white */
        max-width: 100%;
    }
    
    .services-container {
        max-width: 1400px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        padding: 0 2%;
    }
    
    .service-card {
        background: #fff;
        padding: 2.5rem 1.5rem;
        border-radius: 12px;
        text-align: left;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
        transition: all 0.3s;
        border-bottom: 4px solid transparent;
        display: flex;
        flex-direction: column;
    }
    
    .service-card:hover {
        transform: translateY(-10px);
        border-bottom: 4px solid var(--primary-blue);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }
    
    .service-icon {
        font-size: 2.5rem;
        color: var(--primary-blue);
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .service-card h4 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        color: var(--primary-blue);
        text-align: center;
        min-height: 3rem;
    }
    
    .helper-question {
        color: var(--dark-blue);
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        background: var(--light-blue);
        padding: 0.8rem;
        border-radius: 8px;
        min-height: 4.5rem;
    }
    
    .report-contents {
        list-style-type: none;
        margin-bottom: 2rem;
        flex-grow: 1;
    }
    
    .report-contents li {
        margin-bottom: 0.6rem;
        position: relative;
        padding-left: 1.2rem;
        color: var(--text-gray);
        font-size: 0.9rem;
    }
    
    .report-contents li::before {
        content: '•';
        color: var(--primary-blue);
        font-weight: bold;
        position: absolute;
        left: 0;
    }
    
    .product-meta {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        margin-top: auto;
    }
    
    .badge {
        background-color: #f1f3f5;
        padding: 0.5rem 0.8rem;
        border-radius: 6px;
        font-size: 0.85rem;
        color: var(--text-dark);
        border-left: 3px solid var(--primary-blue);
    }

    /* Why Choose Us Section */
    #why-us {
        background-color: #f8fbff; /* Soft blue background to contrast with products */
        max-width: 100%;
    }

    .reasons-container {
        max-width: 1400px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
        padding: 0 2%;
    }

    .reason-card {
        background: #fff;
        padding: 3rem 2rem;
        border-radius: 12px;
        text-align: center;
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
        transition: transform 0.3s;
        border-top: 4px solid var(--primary-blue);
    }

    .reason-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }

    .reason-icon {
        margin-bottom: 1.5rem;
        display: flex;
        justify-content: center;
    }

    .reason-card h4 {
        font-size: 1.4rem;
        color: var(--primary-blue);
        margin-bottom: 0.5rem;
    }

    .reason-subtitle {
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--dark-blue);
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #eee;
    }

    .reason-desc {
        color: var(--text-gray);
        font-size: 1rem;
        text-align: left;
        line-height: 1.8;
    }
    
    /* Contact Section Redesign */
    #contact {
        background-color: var(--primary-blue);
        color: white;
        max-width: 100%;
        padding: 6rem 5%;
    }
    
    .contact-wrapper {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 4rem;
        align-items: center;
    }
    
    .contact-header {
        text-align: left;
    }
    
    .contact-header h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
        color: white;
    }
    
    .contact-header p {
        font-size: 1.1rem;
        opacity: 0.9;
        line-height: 1.8;
    }
    
    .contact-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .contact-card {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        padding: 2.5rem 2rem;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: transform 0.3s ease;
    }
    
    .contact-card:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.15);
    }
    
    .contact-card .icon-circle {
        width: 60px;
        height: 60px;
        background: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-card h4 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        color: white;
    }
    
    .contact-card p {
        font-size: 1rem;
        opacity: 0.9;
        margin-bottom: 0.3rem;
    }
    
    .contact-card .highlight-text {
        font-size: 1.5rem;
        font-weight: bold;
        margin-top: 0.5rem;
        color: #fff;
    }
    
    /* Footer */
footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 3rem 0;
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
            .about-container {
                gap: 3rem;
            }
            .about-cards.grid-2x2 {
                grid-template-columns: 1fr;
            }
            .contact-wrapper {
                grid-template-columns: 1fr;
                gap: 3rem;
            }
            .services-container, .reasons-container {
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            }
        }

@media (max-width: 768px) {
            .contact-cards {
                grid-template-columns: 1fr;
            }
            .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        padding: 2rem 0;
    }

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

    .nav-links li {
        margin: 1.5rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 4rem 5%;
    }
}
