/* General Navbar Styling */

.navbar {
    padding: 15px 30px;
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    /* Ensures no wrapping in desktop view */
}


/* Logo Styling */

.logo {
    height: 70px;
    transition: transform 0.4s ease-in-out, filter 0.4s ease-in-out;
    filter: brightness(0.9);
}

.logo:hover {
    transform: scale(1.2);
    filter: brightness(6.9);
}


/* Navbar Links */

.navbar-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    /* Ensures items align to the right */
}

.navbar-nav .nav-link {
    font-size: 1.5rem;
    color: silver !important;
    padding: 10px 20px;
    font-weight: 600;
    position: relative;
    margin: 0 10px;
    transition: color 0.3s ease-in-out;
}

.navbar-nav .nav-link:before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffc107;
    transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover:before {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}


/* Navbar Toggler */

.navbar-toggler {
    border-color: #fff;
    transition: transform 0.4s ease-in-out;
}

.navbar-toggler:hover {
    transform: rotate(90deg);
}


/* Dropdown Menu Styling */

.dropdown-menu {
    background-color: #444;
    border: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.dropdown-item {
    color: #fff !important;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #ffc107 !important;
    color: #333 !important;
}


/* Responsive Styling */

@media (max-width: 768px) {
    .navbar {
        justify-content: center;
        flex-wrap: wrap;
    }
    .logo {
        position: relative;
        left: 0;
        transform: none;
        height: 50px;
        margin-bottom: 10px;
        /* Center logo in mobile */
    }
    .navbar-toggler {
        position: absolute;
        right: 20px;
        top: 15px;
    }
    .collapse {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .navbar-nav {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    .navbar-nav .nav-link {
        padding: 10px 0;
        margin: 0;
        width: 100%;
    }
}


/* Header Styles */

header {
background: linear-gradient(#3667cd, #c51e2a);
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    animation: fadeIn 1s ease-in-out;
}


/* Container Styles */

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}


/* Contact Info Styles */

.contact-info {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    animation: slideIn 0.8s ease-in-out;
}

.contact-info h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
}

.contact-info p {
    text-align: center;
    color: #7f8c8d;
}

.contact-details {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-item {
    margin: 15px 0;
    text-align: center;
}

.contact-item h3 {
    color: #e63946;
}


/* Link Styles */

.contact-item a {
    color: #1d3557;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #e63946;
}


/* Contact Form Styles */

.contact-form {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 30px;
    animation: slideIn 0.8s ease-in-out;
}

.contact-form h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    color: #666;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #e63946;
    outline: none;
}


/* Button Styles */

.contact-form button {
    background-color: #e63946;
    color: #ffffff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
}

.contact-form button:hover {
    background-color: #d62839;
    transform: translateY(-2px);
}


/* Map Styles */

.map {
    margin-top: 30px;
}

.map h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
}

.map-container {
    position: relative;
    padding-bottom: 56.25%;
    /* Aspect ratio: 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
    /* Rounded corners for the map */
}


/* Animations */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Media Queries for Responsive Design */

@media (max-width: 768px) {
    .contact-details {
        flex-direction: column;
    }
    .contact-item {
        margin: 10px 0;
    }
}


/* Footer styles */

footer {
    text-align: center;
    background-color: #e63946;
    /* Changed to red */
    color: #fff;
    padding: 1rem 0;
    margin-top: 20px;
}

footer p {
    margin: 0;
}

footer a {
    color: #ffc107;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

footer a:hover {
    color: #ffffff;
}


/* Media Queries for Mobile Adjustments */

@media (max-width: 991px) {
    .navbar-nav .nav-item {
        text-align: center;
        padding: 10px 0;
    }
    .carousel-caption {
        bottom: 20px;
    }
    .carousel-caption h5 {
        font-size: 1.5rem;
    }
    .carousel-caption p {
        font-size: 1rem;
    }
}


/* Responsive styles */

@media (max-width: 768px) {
    .contact-details {
        flex-direction: column;
    }
    .contact-item {
        flex: 1 1 100%;
    }
}

.video {
    margin: 2rem 0;
    text-align: center;
}

.video-container {
    max-width: 800px;
    margin: auto;
}

.video h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #007bff;
    /* Bootstrap primary color */
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}