
* {
    margin: 0;
    padding: 0;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", 'Roboto', sans-serif;
    box-sizing: border-box;
    scroll-behavior: smooth;
}


.navbar {
    background-color: white;
    padding: 10px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-bottom: 4px solid #f4511e;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: border-color 0.5s ease;
    border-radius: 2px;
}


@keyframes borderColorFestival {
    0% {
        border-color: #f4511e;
        box-shadow: 0 0 8px #f4511e;
    }
    25% {
        border-color: #ff8f00;
        box-shadow: 0 0 8px #ff8f00;
    }
    50% {
        border-color: #43a047;
        box-shadow: 0 0 8px #43a047;
    }
    75% {
        border-color: #1e88e5;
        box-shadow: 0 0 8px #1e88e5;
    }
    100% {
        border-color: #d81b60;
        box-shadow: 0 0 8px #d81b60;
    }
}


.navbar {
    animation: borderColorFestival 3s linear infinite;
}


.navbar:hover {
    animation: borderColorFestival 1.5s linear infinite;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3); 
}


.navbar.scrolled {
    background-color:white;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}


.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #f4511e;
    font-size: 24px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #d33c14;
}

.logo-icon {
    width: 80px;
    height: auto;
    margin-right: 8px;
}


.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
    transition: right 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    padding: 10px;
    border-radius: 4px;
    position: relative; 
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #f4511e; 
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-in-out;
}

.nav-links a:hover {
    color: #f4511e; 
}

.nav-links a:hover::after {
    transform: scaleX(1); 
    transform-origin: bottom left; 
}



.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #f4511e;
    margin: 5px 0;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


.carousel {
    position: relative;
    width: 100%;
    max-width: 1792px;
    height: auto; 
    overflow: hidden;
    background-color: #a9a9a9;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.dot.active {
    background-color: white;
}


@media (min-width: 1024px) {
    .carousel {
        height: 650px; 
    }
}

@media (max-width: 1023px) {
    .carousel {
        height: 400px; 
    }
}

@media (max-width: 992px) {
    .carousel {
        height: 640px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.9); 
        flex-direction: column;
        padding: 100px 20px; 
        gap: 20px;
        z-index: 100;
        transition: right 0.3s ease; 
        box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2); 
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 101; 
    }

    .carousel {
        width:100%;
        height: 300px; 
    }

   

    .carousel-btn {
        width: 30px;
        height: 30px;
    }

    .carousel-dots {
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .nav-links a {
        padding: 10px;
        font-size: 18px;
        color: #333; 
        font-weight: bold;
        text-align: center;
        transition: color 0.3s ease, background-color 0.3s ease;
    }
    .nav-links a:hover {
        color: white;
        background-color: #f4511e; 
        border-radius: 4px;
    }
}


@media (max-width: 576px) {
    .logo {
        font-size: 20px;
    }

    .carousel {
        height: 400px; 
    }

    
    .carousel-btn {
        width: 25px;
        height: 25px;
    }

    .carousel-dots {
        gap: 6px;
    }

    .dot {
        width: 6px;
        height: 6px;
    }

    .slide h1, .slide p {
        font-size: 16px;
        margin: 0 10px;
    }
}

.overlay {
    display: none;
    transition: background-color 0.3s ease; 
}

.overlay.active {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); 
    z-index: 99;
}

