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

body {
    font-family: Arial, sans-serif;
    padding-top: 60px; 
}

/* Navigation Styles */
nav {
    background-color: #ffffff;
    color: #0369a1;
    padding: 10px;
    position: fixed; 
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); 
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px; 
}

.nav-links {
    list-style: none;
    display: flex;
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
    max-height: 200px;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    background-color: #0369a1;
    border-radius: 5px;
    display: inline-block;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon .fa {
    font-size: 24px;
}

.nav-links.active {
    max-height: 200px;
}

.nav-links.inactive {
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
}

/* Hero Section Styles */
header {
    background-image: url('./heroImg.webp');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    position: relative;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.hero .btn {
    padding: 15px 30px;
    background-color: #0369a1;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
}

/* Main Content Styles */
main {
    padding: 20px;
}

.cards {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    max-width: 300px;
    text-align: center;
}

.card img {
    max-width: 100%;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.card h2 {
    font-size: 1.5em;
    margin: 10px 0;
}

.card p {
    padding: 0 10px 20px;
}

/* Footer Styles */
footer {
    background-color: #0369a1;
    color: #fff;
    text-align: center;
    padding: 10px;
}

footer ul {
    list-style: none;
    padding: 0;
}

footer ul li {
    display: inline;
    margin: 0 10px;
}

footer ul li a {
    color: #fff;
    text-decoration: none;
}

footer ul li a:hover {
    text-decoration: underline;
}


/* Media Queries for Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        max-height: 0;
        width: 100%; 
        text-align: center; 
    }

    .menu-icon {
        display: flex;
        align-items: center;
        position: absolute;
        right: 10px;
    }

    .nav-links a {
        margin: 10px 0;
        padding: 15px 30px; 
        background-color: #0369a1;
        color: #fff;
        text-decoration: none;
        border-radius: 5px;
        font-size: 1.2em; 
    }

    .logo {
        order: -1;
    }

    .hero h1 {
        font-size: 2.5em;
    }

    .hero h2 {
        font-size: 1.5em;
    }

    .hero .btn {
        padding: 10px 20px;
        font-size: 1em;
    }
}
