/* Smooth Fade-in Animation for Page Load */
body {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
body.fade-in {
    opacity: 1;
}

/* Global Styles */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #343a40;
    line-height: 1.6;
}

/* Header Section */
header {
    background: linear-gradient(to right, #28a745, #1d3557);
    padding: 20px 0;
    color: white;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
header .logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 10px;
}
header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}
header p {
    margin: 5px 0 0;
    font-size: 1.2rem;
    font-weight: 300;
}

/* Navigation Menu */
nav {
    background-color: #1d3557;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
nav ul li {
    margin: 10px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 20px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 5px;
}
nav ul li a:hover {
    background-color: #007b5e;
    transform: scale(1.1);
}



/* Section Titles */
section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    color: #1d3557;
    margin: 30px 0;
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    text-align: center;
    background-color: #ffffff;
    margin: 20px;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.card img {
    width: 100%;
    height: auto;
    border-bottom: 3px solid #007b5e;
}
.card h5 {
    font-size: 1.25rem;
    margin: 15px 0;
    color: #343a40;
}
.card p {
    font-size: 1rem;
    color: #6c757d;
}

/* Button Styles */
.btn {
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}
.btn-primary:hover, .btn-success:hover, .btn-danger:hover {
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: #1d3557;
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
}
footer a {
    color: #007b5e;
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: #1d3557;
}

/* Gallery */
.gallery-slider {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
}
.gallery-item {
    flex: 0 0 auto;
    margin: 0 10px;
    scroll-snap-align: center;
}
.thumbnail {
    border: 3px solid #007bff;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.thumbnail:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
    .hero {
        height: 60vh;
    }
}
@media (max-width: 576px) {
    nav ul li {
        margin: 5px 0;
    }
    .card {
        margin: 10px;
    }
}
