* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    overflow-x: hidden;
    color: #333;
}

header {
    background-color: #024da1;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    white-space: nowrap;
    color: #fff;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-icon {
    height: 38px;
    width: auto;
    margin-right: 12px; 
    border-radius: 4px; 
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center; 
}

.nav-links li {
    padding: 0 15px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00d4ff;
}

.dropbtn::after {
    display: inline-block;
    content: ""; /* No text content */
    margin-left: 8px;
    vertical-align: middle;
    /* Create a CSS triangle using borders */
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white; /* The color of the arrow */
    transition: transform 0.3s ease; /* For rotation effect */
}

@media screen and (min-width: 827px) {
    .dropdown {
        position: relative;
    }

    .dropdown-content {
        display: none;
        position: absolute;
        background-color: #ffffff;
        min-width: 200px;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
        
        /* Bridge: moves menu down slightly, maintains hover space */
        top: 140%; 
        left: 0;
        border-radius: 4px;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* Invisible bridge pseudo-element */
    .dropdown-content::before {
        content: "";
        position: absolute;
        top: -30px; /* Size of the gap */
        left: 0;
        width: 60%;
        height: 30px;
        background: transparent;
    }

    .dropdown-content a {
        color: #333;
        padding: 12px 16px;
        display: block;
        border-bottom: 1px solid #eee;
    }
    
    .dropdown-content a:last-child {
        border-bottom: none;
    }

    /* Hover behavior for desktop */
    .dropdown:hover .dropdown-content {
        display: block;
        opacity: 1;
    }

    .service-text {
        margin-top: -40px;
    }
    
    .service-image {
        padding: 0 0 0 20px;
    }
}

.hero {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(
        rgba(0, 43, 91, 0.7), 
        rgba(0, 43, 91, 0)
    );
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 0 20px;
}

@media screen and (max-width: 480px) {
    .hero {
        height: 50vh; /* Slightly shorter hero on mobile to save space */
        background-attachment: scroll; /* Smoother performance on mobile browsers */
    }
}


.hero h1 {
    font-size: clamp(1.6rem, 6vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    padding: 0 10px;
}

.hero p {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    max-width: 800px;
}

.cta-btn {
    margin-top: 2rem;
    padding: 12px 30px;
    background-color: #00d4ff;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
}

.burger {
    display: none;
    cursor: pointer;
    z-index:2100;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 826px) {
    body {
        overflow-x: hidden; /* Prevent side-scroll when menu is tucked away */
    }

    .nav-links {
        position: fixed;
        right: 0px;
        height: 100vh;
        top: 0px;
        background-color: #024da1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 60px;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 2000;
        overflow-y: auto;
    }

    .nav-links li {
        width: 100%;
        text-align: left;
        padding: 15px 30px;
    }

    .nav-icon {
        height: 30px;
    }

    .burger {
        display: block;
    }

    /* Standard links stay white, but dropdown links need to be readable on mobile */
    .dropdown-content {
        position: static;
        display: block;
        background-color: #003a7a;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease-out, opacity 0.3s ease-out, margin-top 0.3s;
        padding-left: 20px; 
        width: 100%;
        visibility: visible;
    }
    
    .dropdown-content a {
        color: #fff;
        padding: 10px 6px;
        display: block;
        font-size: 0.95rem;
        border-bottom: 1px solid #eee;
    }

    .dropdown-content a:last-child {
    border-bottom: none;
    }

    .mobile-dropdown-active .dropdown-content {
        max-height: 300px; 
        opacity: 1;
        margin-top: 10px;
    }

    .mobile-dropdown-active > .dropbtn::after {
        transform: rotate(-180deg);
    }
}

/* Class to be toggled by JavaScript */
.nav-active {
    transform: translateX(0%) !important;
}

/* Simple animation for the burger lines */
.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
.toggle .line2 { opacity: 0; }
.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

/* Animation for links appearing */
@keyframes navLinkFade {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0px); }
}

.content-container {
    margin: 0 auto;
    max-width: 1000px;
    text-align: center;
}

.expertise-section h2 {
padding: 10px 0;
}

.expertise-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 15px;
}

.expertise-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex: 1;
    max-width: 222px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.expertise-card img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 4px solid #f4f7f6;
}

.expertise-card h3 {
    color: #002b5b;
    margin-bottom: 10px;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
}

.expertise-card p {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    color: black;
    line-height: 1.6;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
}

@media screen and (max-width: 826px) {
    
    .expertise-list {
        gap: 10px;
        padding: 10px;
    }

    .expertise-card {
        max-width: 150px;
        padding: 15px;
    }

    .expertise-card img {
        width: 100px;       
        height: 100px;
        margin-bottom: 15px;
    }
}

.services-section {
    padding: 30px 2%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.service-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
    position: relative; 
    padding-bottom: 10px; 
}

.service-image {
    display: flex;
    justify-content: center;
    
}

.service-image img {
    width: 100%;
    max-width: 200px;
    height: auto;
    border: 6px solid #f4f7f6; 
    border-radius: 25px;       
}

.service-text {
    flex: 1;
    text-align: left;
}

.service-text h2 {
    color: #002b5b;
    font-size: clamp(1.2rem, 4vw, 1.7rem);
    margin-bottom: 15px;
}

.service-text p {
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.request-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 12px 25px;
    background-color: #00d4ff; 
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.request-btn:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 426px) {
    .service-block {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding-bottom: 80px;
    }

    .service-image {
        width: 100%;
    }

    .service-image img {
        max-width: 50%;
        border-width: 5px; 
    }

    .service-text {
        text-align: center;
    }
    
    .service-text p {
        text-align: left;
        padding: 0 15px;
    }

    .request-btn {
        right: 50%;
        transform: translateX(50%); /* Centers the button on mobile */
    }
    
    .request-btn:hover {
        transform: translateX(50%) scale(1.05);
    }
}