@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Styles */
@layer utilities {
    .animate-marquee-infinite {
        animation: marquee 30s linear infinite;
    }

    .animate-marquee-3x {
        animation: marquee-3x 90s linear infinite;
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes marquee-3x {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-75%);
    }
}

/* Slider Styles */
.slider-container {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* Slider Dots */
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #CBBE9C;
    /* Secondary color */
    transform: scale(1.2);
}

.slider-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Navigation Link Hover Effect */
.nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #473729;
    /* Primary Color (Dark Brown) */
    transition: width 0.3s ease-in-out;
}

.dark .nav-link::after {
    background-color: #CBBE9C;
    /* Secondary Color (Beige) for Dark Mode */
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}