/* ============ GLOBAL RESET ============ */
* {



}

body {
margin: 0;
padding: 0;
justify-content: center;
font-family: 'Poppins', sans-serif;
  color: #000000;
  background-color: #ffffff;
  background-image:
    linear-gradient(160deg, rgba(11, 84, 179, 0.486) 5%, transparent 20%),
    linear-gradient(100deg, rgba(11, 84, 179, 0.486) 10%, transparent 40%),
    linear-gradient(120deg, rgba(11, 84, 179, 0.486) 20%, transparent 60%),
    linear-gradient(60deg, rgba(11, 84, 179, 0.486) 30%, transparent 80%),
    radial-gradient(ellipse at 50% 20%, rgba(11, 84, 179, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse at 50% 60%, rgba(11, 84, 179, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse at 50% 90%, rgba(11, 84, 179, 0.05) 0%, transparent 70%);
  background-repeat: no-repeat;
  background-size: 120% 120%;
  background-attachment: fixed;
  background-position: top center;
}
.section{
    margin-top: 10%;
    margin-left: 5%;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}


/* ======= Navbar Slide In Animation ======= */
.transparent-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 97%;
    padding: 1rem 2rem;
    background-color: rgba(255, 255, 255, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color .3s ease, box-shadow .3s ease;
}

.nav-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* logo left, toggle/nav right */
}


.logo {
    height: 60px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav-links li a {
    position: relative;
    text-decoration: none;
    font-size: 16px;
    color: #0d1c3f;
    transition: color .3s ease;
}

.nav-links li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #00aaff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .3s ease-in-out;
}

.nav-links li a:hover::after {
    transform: scaleX(1);
}

.nav-links li a:hover {
    color: #00aaff;
}

.nav-links li a.active {
    color: #00cfff;
}

/* ===== HAMBURGER (hidden on desktop) ===== */
.menu-toggle {
    display: none;
    font-size: 2rem;
    color: #003C8B;
    cursor: pointer;
    z-index: 1001;
    position: absolute;
    top: 50%;
    right: 10%;
    /* distance from right edge */
    transform: translateY(-50%);
    /* vertical center */
}


/* ===== MOBILE STYLES ===== */
@media (max-width: 768px) {
    .menu-toggle {
        margin-right: 10vw;
        display: block;
        font-size: 2rem;
        color: #003C8B;
        cursor: pointer;
        z-index: 1001;
    }

  .nav-links {
    position: fixed;
    margin-right: 10vw;
    top: 0;
    right:0;
    /* full height drawer */
    /* not full screen */
    max-width: 280px;
    /* limit width */
    flex-direction: column;
    /* <<< force vertical */
    /* align to left */
    justify-content: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 1s ease-in-out;
    z-index: 1000;
    visibility: hidden;
  }

  .nav-links.active {
    transform: translateX(0);
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    transition: transform 1s ease-in-out;
    visibility: visible;
  }

    .nav-container {
        height: 10vh;

    }

    .nav-links li {
        width: 100%;
        /* make each link full width */
    }

    .nav-links li a {
        display: block;
        width: 100%;
        padding: 0.5rem 0;
        font-size: 1.2rem;
        font-weight: 600;
        color: #003C8B;
    }

}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .subsidiary-card:hover {
        transform: scale(1.05);
    }

    .client-logo:hover {
        transform: scale(1.2);
    }
}

footer {
    background: #003C8B;
    color: white;
    padding: 2rem 1rem;
    font-family: 'Barlow Condensed', sans-serif;
    border-top: 4px solid #ccc;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 50px;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d3e3f6;
}

.social-icon {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.contact-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.contact-inline .divider {
    color: #999;
    font-size: 18px;
}

.social-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.animated-navbar {
    transform: translateY(-100%);
    opacity: 0;
    animation: slideDownNavbar 0.7s ease-out forwards;
}


@keyframes slideDownNavbar {
    to {
        transform: translateY(0);
        opacity: 1;
    }

}

/* Mobile Fix for Certifications */
@media (max-width: 768px) {
    .cert-item:hover img {
        transform: none;
        /* prevent enlarge */
    }

    .cert-item:hover .popup {
        display: none;
        /* disable popup hover */
    }

    .cert-item img {
        max-height: 80px;
        /* smaller logos for mobile */
    }
}