/* assets/css/custom.css */

/* Hero Slider — dark base prevents white flash while image loads */
#hero-slider-section {
    background-color: #1c1c1c;
}

/* Hide scrollbar for tabs */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Client Logo Marquee */
.marquee-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.marquee-content {
    display: flex;
    width: fit-content;
    animation: marquee 30s linear infinite;
}
.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Tab Switching Fade */
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
    animation: tabFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes tabFadeIn {
    from { 
        opacity: 0; 
        transform: translateY(16px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Masonry Grid Layout Helper */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}
@media (max-width: 1024px) {
    .masonry-grid { column-count: 2; }
}
@media (max-width: 640px) {
    .masonry-grid { column-count: 1; }
}

/* Lightbox Base */
.lightbox {
    display: none;
}
.lightbox.active {
    display: flex;
}

/* Navbar Animations */
.nav-slide-down {
    animation: navSlideDown 0.6s ease-out forwards;
}

@keyframes navSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.nav-link-hover {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link-hover::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f5a623; /* accent color */
    transition: width 0.3s ease;
}

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

.logo-animate {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-animate:hover {
    transform: scale(1.05);
}

/* Dropdown Menu Transitions */
.dropdown-menu {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Mobile Accordion Smoothness */
.accordion-content {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease-in-out,
                visibility 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.accordion-content.accordion-open {
    max-height: 1000px !important;
    opacity: 1;
    visibility: visible;
}

/* Refined Dropdown Shadow */
.group-hover\:visible {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Transitions */
.dark .nav-link-hover::after {
    background-color: #f5a623;
}

/* Smooth Floating Bounce */
@keyframes subtleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
.animate-subtle-bounce {
    animation: subtleBounce 4s ease-in-out infinite;
}
.animate-subtle-bounce:hover {
    animation-play-state: paused;
}
