/* ===============================
   GLOBAL RESET
   =============================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f6f8;
    color: #333333;
}

/* ===============================
   HEADER / NAVBAR
   =============================== */

/* Header */
.nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2b6cb0, #68a0cf);
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    /* vertically centers img + text */
    gap: 8px;
    /* space between the icon and text */
}

.logo a {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    /* make the image + text align in a row */
    align-items: center;
    /* vertically center them */
    gap: 8px;
}

.logo img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    display: block;

}

.nav-links {
    display: flex;
    gap: 3rem;
    margin-left: 50px;
    justify-content: flex-start;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
}


/* ===============================
   HERO / SLIDESHOW
   =============================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #000;
    /* fallback if images fail to load */
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* slides are behind text */
}

.slideshow .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: slideAnim 15s infinite;
    filter: brightness(1.2);
}

.slideshow .slide:first-child {
    opacity: 1;
    /* ensures first slide is visible initially */
}

.hero-title {
    position: relative;
    /* brings it above the slides */
    z-index: 1;
    /* above slides */
    color: white;
    font-size: 3rem;
    text-transform: uppercase;
    padding: 0 10px;
    border-radius: 8px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    /* optional for better readability */
}

.slideshow .slide:nth-child(1) {
    animation-delay: 0s;
}

.slideshow .slide:nth-child(2) {
    animation-delay: 5s;
}

.slideshow .slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes slideAnim {
    0% {
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    30% {
        opacity: 1;
    }

    38% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* dark overlay for readability */
.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.hero-title {
    position: relative;
    z-index: 3;
    font-size: 3rem;
    text-transform: uppercase;
    color: #ffffff;
    text-align: center;
    padding: 0 20px;
}


/* ===============================
   FADE-IN ANIMATION (ON SCROLL)
   =============================== */

.intro-section,
.quick-access-section,
#services-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===============================
   INTRO SECTION
   =============================== */

.intro-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin: 50px auto;
    width: 88%;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 35px 45px;
    opacity: 1;
    /* make it visible */
    transform: translateY(0);
    /* no animation offset */
}

.intro-section p {
    max-width: 550px;
    font-size: 1rem;
    color: #555;
}

.intro-section img {
    max-width: 350px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.title-team {
    text-align: center;
    /* centers text */
    font-size: 2.8rem;
    /* slightly larger */
    font-weight: 700;
    margin-bottom: 50px;
    /* space between title and members */
    color: #222;
}

/* ================= Partners Section ================= */
.member-section {
    padding: 100px 20px;
    background-color: #f8f9fa;
    text-align: center;
}

.member-container {
    display: flex;
    flex-wrap: wrap;
    /* allows wrapping on smaller screens */
    justify-content: center;
    gap: 60px;
    /* space between partner cards */
    max-width: 1400px;
    margin: 0 auto;
}

.member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 220px;
    /* controls card size */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    /* indicates hoverable */
}

.member-card img {
    width: 160px;
    /* circle size */
    height: 140px;
    border-radius: 50%;
    /* makes it circular */
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card p {
    font-size: 1.2rem;
    font-weight: 600;
    color: #222;
    text-align: center;
}

/* Hover effect */
.member-card:hover img {
    transform: scale(1.05);
    /* slightly larger */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.member-card:hover p {
    color: #1e6bd6;
    /* accent color on hover */
}

/* ================= Responsive ================= */
@media (max-width: 900px) {
    .member-card {
        width: 140px;
    }

    .member-card img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 600px) {
    .member-container {
        gap: 25px;
    }

    .member-card {
        width: 120px;
    }

    .member-card img {
        width: 80px;
        height: 80px;
    }
}

/* ===============================
   FOOTER
   =============================== */

.site-footer {
    background-color: #1f3b56;
    padding: 40px 20px;
    margin-top: 40px;
    color: #e1e8f0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.5fr 1.3fr;
    gap: 32px;
}

.footer-col h3,
.footer-col h4 {
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #68a0cf;
    text-decoration: none;
}

.footer-col a:hover {
    color: #f2a654;
    text-decoration: underline;
}

.footer-brand {
    border-left: 1px solid #dedac5;
    padding-left: 20px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #5c999b;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-social svg {
    width: 22px;
    height: 22px;
    fill: #e0ddc8;
}

/*The section below contains code for the responsiveness of the webpage*/

/* =============================== 
   FULL RESPONSIVE DESIGN 
=============================== */

/* -------- NAVBAR -------- */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
        gap: 10px;
    }

    .nav-links {
        margin-left: 0;
        gap: 1rem;
        width: 100%;
        justify-content: space-between;
    }

    .nav-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.95rem;
    }
}

/* -------- HERO SECTION -------- */
@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        /* safer than 100vh on phones */
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.3;
        padding: 0 10px;
    }
}

/* -------- INTRO SECTION -------- */
@media (max-width: 768px) {
    .intro-section {
        flex-direction: column;
        padding: 25px 20px;
        gap: 25px;
        width: 95%;
    }

    .intro-section img {
        max-width: 100%;
        height: auto;
    }

    .intro-section p {
        font-size: 0.95rem;
    }
}

/* -------- TEAM MEMBER CARDS -------- */
@media (max-width: 900px) {
    .member-card {
        width: 140px;
    }

    .member-card img {
        width: 100px;
        height: 100px;
    }

    .title-team {
        font-size: 2.2rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 600px) {
    .member-container {
        gap: 25px;
    }

    .member-card {
        width: 120px;
    }

    .member-card img {
        width: 80px;
        height: 80px;
    }

    .title-team {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

/* -------- FOOTER -------- */
@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        border-left: none;
        padding-left: 0;
    }
}

/* -------- GENERAL TEXT SCALING -------- */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .title-team {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .intro-section p {
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }
}