/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ebe9e9;
    overflow-x: hidden; /* Prevents horizontal scrolling from animation overflow */
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #d9534f;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease; /* Smooth transition for color changes */
}
.navbar:hover {
    background-color: #c8423e; /* Darker background on hover */
}

.navbar .logo {
    height: 50px;
    border-radius: 5px;
    animation: fadeIn 1.5s ease-in-out; /* Fade-in effect for logo */
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
    animation: slideIn 1.5s ease-in-out; /* Slide-in effect for navigation links */
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-links a:hover {
    color: #ffe066;
    background-color: #05052b;
    padding: 10px;
    border-radius: 5px;
}
header{
    position: sticky;
    top: 0px;
    z-index: 1000;
}

/* Hero Section */
#hero {
    /* background-image: url('./Assests/nav_bacground_image.jpg');
    background-size: cover;
    background-position: center;
    height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
    animation: fadeIn 1.5s ease-in-out; Fade-in effect for hero section */
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    background-color: #ddbdbd;
    color: #05052b;
    border-radius: 10px;
    padding: 10px;
    animation: slideDown 1.5s ease-out; /* Slide-down effect for heading */
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    background-color: #cec8c8;
    color: #25252a;
    border-radius: 10px;
    padding: 10px;
    animation: slideUp 1.5s ease-out; /* Slide-up effect for paragraph */
}

.hero-content .btn {
    text-decoration: none;
    background-color: #ffe066;
    color: #d9534f;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.hero-content .btn:hover {
    background-color: #d9534f;
    color: white;
    transform: scale(1.1); /* Subtle zoom effect on hover */
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    max-height: 300px;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    animation: slide 15s infinite;
}

.carousel-slide {
    flex: 0 0 100%; /* Ensures each slide takes full width */
    position: relative;
}

.carousel-slide img {
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    /* padding: 20px; */
    animation: fadeIn 1.5s ease-in-out;
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 80%;
}

.carousel-caption h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.carousel-caption p {
    font-size: 16px;
}

/* Keyframes for the Automatic Slider */
@keyframes slide {
    0% { transform: translateX(0%); }
    33.33% { transform: translateX(0%); }
    50% { transform: translateX(-100%); }
    83.33% { transform: translateX(-100%); }
    100% { transform: translateX(-200%); }
}

/* Menu Section */
#menu {
    padding: 40px 20px;
    text-align: center;
}

.section-title {
    font-size: 28px;
    color: #d21c16;
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgb(207, 206, 219);
    border-radius: 20px;
    animation: fadeIn 1.5s ease-in-out; /* Fade-in effect for title */
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
    background-color: #faf9f9;
    border-radius: 10px;

}

.menu-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: zoomIn 1.5s ease-in-out; /* Zoom-in effect for images */
    
}

.menu-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    
}

.menu-item p {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.menu-item p:hover {
    color: #d9534f;
}
.menu-item:hover{
    background-color: #b8aeac;
    border-radius: 20px;
}

/* Back to Main Button */
.back-to-main {
    text-align: center;
    margin: 20px 0;
    animation: fadeIn 1.5s ease-in-out; /* Fade-in effect for the button */
}

.back-to-main .btn {
    text-decoration: none;
    background-color: #d9534f;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: none;
    display: inline-block;
}

.back-to-main .btn:hover {
    background-color: #18335b;
    color: #ffe066;
    transform: scale(1.1); /* Subtle zoom effect on hover */
}


/* Our Branches Section */
#branches {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
    align-items: center;
    
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.branch-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.branch-card h3 {
    font-size: 20px;
    color: #d9534f;
    margin-bottom: 10px;
}

.branch-card p {
    font-size: 16px;
    color: #555; }


/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px;
    text-align: center;
    margin-top: auto; /* Pushes the footer to the bottom if there's extra space */
    margin-bottom: 0px;
    animation: fadeIn 1.5s ease-in-out; /* Fade-in effect for footer */
}

footer h1{
    font-size: 24px;
    margin-bottom: 0px;
}

footer .social-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #ffe066;
}

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

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

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 24px;
    }

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

    .menu-item p {
        font-size: 16px;
    }
}

/* About Section */
#about {
    padding: 40px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: zoomIn 1.5s ease-in;
}

.about-container h1 {
    font-size: 32px;
    color: #d9534f;
    margin-bottom: 20px;
}

.about-container h2 {
    font-size: 24px;
    color: #333;
    margin-top: 20px;
    margin-bottom: 15px;
    text-align: left;
}

.about-container p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.about-container ul {
    text-align: left;
    padding-left: 20px;
    margin: 20px 0;
}

.about-container ul li {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Carousel Base Styles */
.carousel {
    position: relative;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    max-width: 80%;
}

/* Default Font Sizes */
.carousel-caption h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

.carousel-caption p {
    font-size: 16px;
}

/* Media Queries */

/* 320px to 480px (Small Phones) */
@media (max-width: 480px) {
    .carousel {
        max-height: 250px;
    }

    .carousel-slide img {
        height: 250px;
    }

    .carousel-caption h2 {
        font-size: 18px;
    }

    .carousel-caption p {
        font-size: 14px;
    }
}

/* 481px to 768px (Tablets) */
@media (min-width: 481px) and (max-width: 768px) {
    .carousel {
        max-height: 300px;
    }

    .carousel-slide img {
        height: 300px;
    }

    .carousel-caption h2 {
        font-size: 20px;
    }

    .carousel-caption p {
        font-size: 15px;
    }
}

/* 769px to 1024px (Small Laptops) */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel {
        max-height: 350px;
    }

    .carousel-slide img {
        height: 350px;
    }

    .carousel-caption h2 {
        font-size: 22px;
    }

    .carousel-caption p {
        font-size: 16px;
    }
}

/* 1025px to 1440px (Larger Laptops) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .carousel {
        max-height: 400px;
    }

    .carousel-slide img {
        height: 400px;
    }

    .carousel-caption h2 {
        font-size: 24px;
    }

    .carousel-caption p {
        font-size: 16px;
    }
}

/* 1441px to 1920px (Desktops) */
@media (min-width: 1441px) and (max-width: 1920px) {
    .carousel {
        max-height: 450px;
    }

    .carousel-slide img {
        height: 450px;
    }

    .carousel-caption h2 {
        font-size: 26px;
    }

    .carousel-caption p {
        font-size: 18px;
    }
}

/* 1921px to 2560px (Large Screens) */
@media (min-width: 1921px) and (max-width: 2560px) {
    .carousel {
        max-height: 500px;
    }

    .carousel-slide img {
        height: 500px;
    }

    .carousel-caption h2 {
        font-size: 28px;
    }

    .carousel-caption p {
        font-size: 20px;
    }
}
