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

/* GLOBAL FONTS */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
}

/* NAVBAR */

.hamburger {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

nav {
    position: sticky;
    top: 0;
    background-color: #00154A;
    color: white;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.logo img {
    height: 4rem;      
    width: auto;       
    display: block;  
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    text-align: center;
}
.nav-links a:hover {
    color: #3BB3E5;
  }

.nav-links li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.social-icons img {
    width: 3rem;
}
.nav-links .mobile-icons {
    display: none;
}
.desktop-icons {
    display: flex;
    gap: 15px;
    align-items: center;
}


/* BANNER */
.banner {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
}

/* Black rectangle behind the image */
.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    z-index: 0; 
}

.banner-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1; 
}

.banner-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2; 
}

.banner-text h1 {
    font-family: 'Anton', sans-serif;
    font-size: 48px;
    text-shadow: 5px 10px 3px rgba(0,0,0,0.25);
}

.banner-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    margin-top: 15px;
    text-shadow: 3px 4px 3px rgba(0,0,0,0.25);
}

/* CARDS */

.cards-section {
    display: flex;
    justify-content: space-around;
    padding: 60px 20px;
    background-color: #E1E3E8;
}

.card {
    width: 30%;
    position: relative;
    background-color: #000000;
    color: white;
    border-radius: 10px;
    overflow: visible; 
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.card.show {
    opacity: 1;
    transform: translateY(0);
  }

  
.card-img {
    position: relative;
    width: 100%;
    height: 500px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    border-radius: 10px;             
    box-shadow: 5px 6px 4px #00154A;   
    display: block;
}

/* Third card specific opacity */
.cards-section .card:nth-child(3) .card-img img {
    opacity: 0.4; 
}
.card-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    padding: 0 10px;
}

.card-text h1 {
    font-family: 'Anton', sans-serif;
    font-size: 40px;
    margin-bottom: 10px;
}

.card-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 21px;
    margin-bottom: 15px;
}

.card-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #00154A;
    color: white;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    border-radius: 5px;
}

.card-btn:hover {
    background-color: #3BB3E5; 
    transform: translateY(-3px);
}

/* FOOTER */
footer {
  height: 80px;
  background-color: #00154A;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer p {
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
}


/* ----------------- MEDIA QUERIES ----------------- */

/* ----------------- TABLET / SMALLER DESKTOP (~992px) ----------------- */
@media (max-width: 992px) {

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        position: relative;
    }

    .hamburger {
        display: block;
    }

    /* Nav links hidden initially */
    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 0;     
        overflow: hidden;
        background-color: #00154A;
        position: absolute;
        top: 70px;
        left: 0;
        text-align: center;
        transition: max-height 0.4s ease;
        gap: 15px;
        padding: 0;
    }

    /* Show dropdown */
    .nav-links.active {
        max-height: 500px; 
        padding: 15px 0;
    }

    .nav-links li {
        margin: 10px 0;
    }
    .desktop-icons {
        display: none;  
    }

    .nav-links .mobile-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }

    .logo img {
        height: 3.5rem;
    }

    /* Banner */
    .banner-text h1 {
        font-size: 36px;
    }
    .banner-text h2 {
        font-size: 18px;
    }

    /* Cards */
    .cards-section {
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
    }
    .card {
        width: 80%;
        margin-bottom: 30px;
    }
    .card-img {
        height: 400px;
    }
    .card-text h1 {
        font-size: 32px;
    }
    .card-text h2 {
        font-size: 18px;
    }
    .card-btn {
        padding: 10px 20px;
        font-size: 15px;
    }
}

/* ----------------- MOBILE (~600px) ----------------- */
@media (max-width: 600px) {

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
        position: relative;
    }

    .hamburger {
        display: block;
    }
    .nav-links .social-icons {
        display: none; 
    }


    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        background-color: #00154A;
        position: absolute;
        top: 60px;
        left: 0;
        text-align: center;
        transition: max-height 0.4s ease;
        padding: 0;
        gap: 10px;
    }

    .nav-links.active {
        max-height: 500px;
        padding: 15px 0;
    }

    .nav-links li {
        margin: 8px 0;
    }

    .nav-links .social-icons {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
    }

    .logo img {
        height: 3rem;
    }

    /* Banner */
    .banner {
        height: 60vh;
    }
    .banner-text h1 {
        font-size: 28px;
    }
    .banner-text h2 {
        font-size: 16px;
    }

    /* Cards */
    .cards-section {
        padding: 20px 10px;
    }
    .card {
        width: 95%;
        margin-bottom: 20px;
        height: auto;
    }
    .card-img {
        height: 300px;
    }
    .card-text h1 {
        font-size: 24px;
    }
    .card-text h2 {
        font-size: 14px;
    }
    .card-btn {
        padding: 8px 15px;
        font-size: 14px;
    }

    footer {
        height: 60px;
        padding: 10px 0;
    }
}
