:root {
    --primary-color: #3498db;
    --secondary-color: #ecf0f1;
    --text-color: #2c3e50;
    --accent-color: #e74c3c;
    --message-bg-color: #34495e;
    --message-text-color: #ecf0f1;
    --navbar-bg-color: rgba(255, 255, 255, 0.9);
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
}

a {
    color: var(--accent-color);
}

a:hover,
a:focus {
    text-decoration: underline;
}

.top-bar {
    background: linear-gradient(to right, black, var(--accent-color));
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.4);
    flex-wrap: wrap;
}

.top-bar .contact-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar .contact-info span {
    margin-right: 15px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.top-bar .contact-info i {
    margin-right: 5px;
}

.top-bar .social-media {
    display: flex;
    align-items: center;
}

.top-bar .social-media a {
    color: white;
    margin-left: 15px;
    font-size: 20px;
    transition: color 0.3s, transform 0.3s;
}

.top-bar .social-media a:hover {
    color: #f1f1f1;
    transform: scale(1.2);
}

/* Navbar Styles */
.navbar {
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: top 0.3s;
    flex-wrap: wrap;
}

.navbar img {
    width: 250px;
    /* Adjusted for better responsiveness */
    height: 80px;
    transition: transform 0.3s ease;
}

.navbar img:hover {
    transform: scale(1.05);
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}

.navbar ul li {
    margin: 30px;
    /* Adjusted for better spacing */
}

.navbar ul li a {
    color: #333;
    text-decoration: none;
    padding: 10px 15px;
    /* Adjusted for better spacing */
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.navbar ul li a:hover {
    background-color: #f1f1f1;
    color: var(--accent-color);
    border-radius: 5px;
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.navbar .toggle-button {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar .toggle-button div {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}
/* Navbar Container */
.navbar {
    position: relative; /* Ensure that the dropdown menu is positioned relative to the navbar */
}

/* Dropdown Menu Container */
.navbar .dropdown {
    position: relative; /* Positioning context for the dropdown menu */
}

/* Dropdown Menu */
.navbar .dropdown-menu {
    opacity: 0; /* Initially hidden */
    transform: scale(0.9) translateY(-20px); /* Start position and scale */
    display: block; /* Make sure it is positioned correctly */
    position: absolute;
    top: 100%; /* Position directly below the parent */
    left: 0; /* Align with the left edge of the parent */
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    list-style: none;
    padding: 0;
    margin: 0;
    width: 200px; /* Adjust width as necessary */
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition */
}

/* Dropdown Menu Items */
.navbar .dropdown-menu li {
    margin: 0;
    opacity: 0; /* Initially hidden for each item */
    transform: translateY(10px); /* Slide down effect for each item */
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth transition for items */
}

.navbar .dropdown-menu li a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s, color 0.3s, transform 0.2s; /* Smooth transition for hover effects */
}

.navbar .dropdown-menu li a:hover {
    background-color: #f1f1f1;
    color: var(--accent-color);
    transform: scale(1.02); /* Slightly scale up the hovered item */
}

/* Show dropdown on hover with enhanced animation */
.navbar .dropdown:hover .dropdown-menu {
    opacity: 1; /* Show the dropdown */
    transform: scale(1) translateY(0); /* Move to its final position and scale */
}

/* Animate dropdown items */
.navbar .dropdown:hover .dropdown-menu li {
    opacity: 1; /* Make each item visible */
    transform: translateY(0); /* Move to final position */
    transition-delay: 0.1s; /* Delay for staggered effect */
}

.navbar .dropdown:hover .dropdown-menu li:nth-child(1) { transition-delay: 0.1s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(2) { transition-delay: 0.2s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(3) { transition-delay: 0.3s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(4) { transition-delay: 0.4s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(5) { transition-delay: 0.5s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(6) { transition-delay: 0.6s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(7) { transition-delay: 0.7s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(8) { transition-delay: 0.8s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(9) { transition-delay: 0.9s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(10) { transition-delay: 1s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(11) { transition-delay: 1.1s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(12) { transition-delay: 1.2s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(13) { transition-delay: 1.3s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(14) { transition-delay: 1.4s; }
.navbar .dropdown:hover .dropdown-menu li:nth-child(15) { transition-delay: 1.5s; }


/* Keyframes for slide down effect */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Optionally add a bounce effect on hover */
.navbar .dropdown-menu li a {
    animation: none; /* Reset animation for menu items */
}

.navbar .dropdown:hover .dropdown-menu li a {
    animation: bounce 0.3s ease forwards; /* Add bounce effect on hover */
}

/* Keyframes for bounce effect */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-2.5px);
    }
}



/* Responsive Styles */
@media (max-width: 992px) {
    .top-bar .contact-info {
        font-size: 12px;
        /* Adjusted for smaller screens */
    }

    .top-bar .contact-info span {
        margin-right: 10px;
        /* Adjusted for smaller screens */
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
        top: 0;
        /* Adjusted for fixed positioning */
    }

    .navbar img {
        width: 150px;
        /* Adjusted for smaller screens */
    }

    .navbar ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 60px;
        /* Adjusted to appear below the navbar */
        left: 0;
        background-color: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .navbar ul.show {
        display: flex;
    }

    .navbar .toggle-button {
        display: flex;
    }

    .navbar .toggle-button div {
        background-color: var(--primary-color);
    }

    .navbar ul li {
        margin: 0;
    }

    .navbar ul li a {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }

    .navbar ul li a:last-child {
        border-bottom: none;
    }
}

@media (max-width: 480px) {
    .top-bar {
        padding: 10px;
        flex-direction: column;
    }

    .top-bar .contact-info {
        margin-bottom: 10px;
    }

    .top-bar .contact-info span {
        font-size: 12px;
    }

    .top-bar .social-media a {
        font-size: 18px;
    }
}

/* Full-width Image with Centered Text */
.hero-image {
    position: relative;
    text-align: center;
    color: white;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: brightness(0.8);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

 /* Box Container */
 .box-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 20px 0;
    animation: fadeIn 1.5s ease;
}

.box {
    background-color: white;
    width: 30%;
    margin: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.box img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.box img:hover {
    transform: scale(1.05);
}

.box h3 {
    margin: 10px 0;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.box p {
    color: var(--text-color);
}