html {
    scroll-behavior: smooth;
}

#cards {
    scroll-margin-top: 100px;
}

body {
    margin: 0 auto;
    background: linear-gradient(to bottom, #f8fafc, #e6f4ea);
    color: #1e293b;
    overflow-x: hidden;
}

/* Navbar Section CSS */

.navbar {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #1e293b;
    padding: 10px 30px;
}

.nav-img {
    width: 50px;
    height: 50px;
    border-radius: 100%;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.logo {
    padding: 0 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #15803d;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.logo h2 {
    margin: 15px 0;
}

.logo-img {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.menu {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
    padding: 0 10px;
    flex-grow: 1;
    align-items: center;
}

.menu a {
    color: #475569;
    text-decoration: none;
    margin: 0 20px;
    font-size: 18px;
}

.menu a:hover {
    color: #16a34a;
    text-shadow: 0 0 6px rgba(22, 163, 74, 0.3);
    transition: 0.3s ease;
}

/* Hero Section CSS */

.hero {
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: url('https://images.unsplash.com/photo-1501785888041-af3ef285b470') center/cover no-repeat;
    position: relative;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.4);
    animation: fadeIn 1.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

.hero * {
    position: relative;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 0;
    color: #14532d;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    animation: fade-slide-down 1.2s ease;
}

.hero p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #334155;
    animation: fade-slide-down 1.2s ease;
}

@keyframes fade-slide-down {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button {
    background: linear-gradient(135deg, #22c55e, #bbf7d0);
    border-radius: 12px;
    padding: 10px 22px;
    font-size: 16px;
    border: none;
    color: #14532d;
    font-weight: bold;
    animation: fade-slide-up 1.2s ease;
}

@keyframes fade-slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

button:hover {
    transition: 0.5s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
    cursor: pointer;
}

/* Card Section CSS */

.card-container {
    display: flex;
    gap: 30px;
    margin: 40px 0 40px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.card {
    width: 100%;
    max-width: 280px;
    max-height: 500px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    color: #1e293b;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
}

.card img {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
}

.card h2 {
    color: #15803d;
}

.card p {
    line-height: 1.5;
    font-size: 16px;
    color: #475569;
}

.card:hover {
    transform: translateY(-8px);
    transition: 0.3s ease;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card img:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: scale(1.1) translateY(-10px);
    transition: 0.3s ease;
    cursor: pointer;
}

/* Footer Section CSS */

.footer-ui {
    margin-top: 30px;
    padding: 20px 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f1f5f9;
    color: #475569;
    border-top: 1px solid #e2e8f0;
}


/* Mobile Responsive Web */

@media (max-width: 768px) {

    .navbar {
        padding: 10px 15px;
    }

    .menu {
        display: none;
    }

    .hero {
        height: 70vh;
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero p {
        font-size: 16px;
    }

    .card-container {
        margin: 40px 0;
        padding: 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .card {
        width: 100%;
        max-width: 300px;
    }

    .card h2 {
        font-size: 1.5rem;
    }

    .card p {
        font-size: 1rem;
    }

}