/* Featured Products Carousel */
#featured-products {
    position: relative;
    overflow: hidden;
    background: #000;
    padding: 2rem 0;
}

#featured-products .section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 1.8rem;
}

#featuredProductsCarousel {
    margin: 0 auto;
    max-width: 1200px;
}

#featuredProductsCarousel .carousel-inner {
    border-radius: 0;
    overflow: hidden;
}

#featuredProductsCarousel .carousel-item {
    height: 60vh;
    min-height: 400px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

#featuredProductsCarousel .carousel-item img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

/* Carousel controls */
#featuredProductsCarousel .carousel-control-prev,
#featuredProductsCarousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

#featuredProductsCarousel .carousel-control-prev {
    left: 20px;
}

#featuredProductsCarousel .carousel-control-next {
    right: 20px;
}

#featuredProductsCarousel .carousel-control-prev:hover,
#featuredProductsCarousel .carousel-control-next:hover {
    opacity: 1;
    background: var(--primary-color);
}

/* Carousel indicators */
#featuredProductsCarousel .carousel-indicators {
    bottom: 20px;
    margin: 0;
    justify-content: center;
}

#featuredProductsCarousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    opacity: 1;
}

#featuredProductsCarousel .carousel-indicators .active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #featuredProductsCarousel .carousel-item {
        height: 50vh;
        min-height: 300px;
    }
    
    #featuredProductsCarousel .carousel-control-prev,
    #featuredProductsCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
}

#featuredProductsCarousel .carousel-caption {
    bottom: 30%;
    left: 10%;
    right: 10%;
    text-align: left;
    padding: 25px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    transform: translateY(20px);
    transition: all 0.5s ease;
    opacity: 0;
}

#featuredProductsCarousel .carousel-item.active .carousel-caption {
    transform: translateY(0);
    opacity: 1;
}

#featuredProductsCarousel .carousel-caption h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

#featuredProductsCarousel .carousel-caption p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ddd;
}

#featuredProductsCarousel .carousel-caption .btn {
    padding: 8px 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 30px;
}

#featuredProductsCarousel .carousel-caption .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#featuredProductsCarousel .carousel-control-prev,
#featuredProductsCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

#featuredProductsCarousel:hover .carousel-control-prev,
#featuredProductsCarousel:hover .carousel-control-next {
    opacity: 1;
}

#featuredProductsCarousel .carousel-control-prev {
    left: 20px;
}

#featuredProductsCarousel .carousel-control-next {
    right: 20px;
}

#featuredProductsCarousel .carousel-indicators {
    bottom: 20px;
}

#featuredProductsCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
}

#featuredProductsCarousel .carousel-indicators button.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    #featuredProductsCarousel .carousel-item {
        height: 350px;
    }
    
    #featuredProductsCarousel .carousel-caption h3 {
        font-size: 1.8rem;
    }
    
    #featuredProductsCarousel .carousel-caption p {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    #featuredProductsCarousel .carousel-item {
        height: 300px;
    }
    
    #featuredProductsCarousel .carousel-caption {
        bottom: 20%;
        padding: 15px;
    }
    
    #featuredProductsCarousel .carousel-caption h3 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    #featuredProductsCarousel .carousel-caption p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }
    
    #featuredProductsCarousel .carousel-caption .btn {
        padding: 5px 15px;
        font-size: 0.8rem;
    }
}

/* Custom Navigation and Gallery Styles */
/* Navigation */
.navbar {
    padding: 2px 0;
    background: rgba(15, 15, 15, 0.98) !important;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    min-height: 70px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    padding: 2px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.main-logo {
    height: 70px;
    width: auto;
    transition: all 0.3s ease;
    max-width: none;
}

.navbar-brand {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-spinning-wheel {
    display: inline-block;
    width: 45px;
    height: 45px;
    border: 6px solid rgba(217, 35, 15, 0.3);
    border-top-color: var(--primary-color);
    border-right-color: rgba(217, 35, 15, 0.7);
    border-radius: 50%;
    animation: navWheelSpin 2s linear infinite;
    box-shadow: 0 0 20px rgba(217, 35, 15, 0.6), inset 0 0 10px rgba(0, 0, 0, 0.5);
    position: relative;
    flex-shrink: 0;
}

.navbar-spinning-wheel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(217, 35, 15, 1);
}

.navbar-spinning-wheel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(217, 35, 15, 1),
                0 -18px 0 -4px var(--primary-color),
                18px 0 0 -4px var(--primary-color),
                0 18px 0 -4px var(--primary-color),
                -18px 0 0 -4px var(--primary-color);
}

@keyframes navWheelSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.navbar-toggler {
    margin-right: 15px;
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-link {
    padding: 8px 12px !important;
    margin: 0 3px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Adjust body padding to account for fixed navbar */
body {
    padding-top: 0 !important;
}

@media (max-width: 991.98px) {
    .main-logo {
        height: 70px;
    }
    
    .navbar {
        min-height: 80px;
        padding: 5px 0;
    }
    
    .navbar-collapse {
        background: rgba(0, 0, 0, 0.98);
        padding: 15px;
        margin: 10px -15px 0;
        border-radius: 5px;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0 !important;
        margin: 5px 0;
        font-size: 1.1rem;
    }
    
    .hero-section {
        margin-top: -80px;
        padding-top: 160px;
        padding-bottom: 80px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1.1rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
}

/* Service Icons */
.icon-box {
    position: relative;
    height: 60px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-box i {
    position: absolute;
    transition: all 0.3s ease;
}

.icon-box i:first-child {
    font-size: 2.5rem;
    opacity: 0.9;
}

.icon-box i:last-child {
    font-size: 1.5rem;
    margin-left: 15px;
    margin-top: 15px;
    opacity: 0.8;
}

/* Showcase Slider */
.showcase-slider {
    padding: 20px 15px 40px;
    margin: 0 auto;
    max-width: 1200px;
}

.showcase-slider .swiper-slide {
    text-align: center;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s ease;
    border: none;
}

.showcase-slider .swiper-slide:hover {
    transform: translateY(-2px);
}

.showcase-slider img {
    width: 100%;
    height: 450px;
    object-fit: contain;
    display: block;
    background: #000;
}

.showcase-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #d1d1d1;
    opacity: 1;
}

.showcase-slider .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}

.showcase-slider .swiper-button-next,
.showcase-slider .swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.9);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.showcase-slider .swiper-button-next:after,
.showcase-slider .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

.showcase-slider .swiper-button-next:hover,
.showcase-slider .swiper-button-prev:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .showcase-slider img {
        height: 250px;
    }
    
    .showcase-slider .swiper-button-next,
    .showcase-slider .swiper-button-prev {
        display: none;
    }
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 15px;
}

.fab-main {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.fab-main.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-main:hover {
    background-color: #b81d0d;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(217, 35, 15, 0.3);
}

.fab-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    position: absolute;
    bottom: 70px;
    right: 0;
}

.fab-container.active .fab-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.fab-container.active .fab-option {
    opacity: 1;
    transform: translateY(0);
}

.fab-option:nth-child(1) {
    transition-delay: 0.1s;
    background-color: #25D366; /* WhatsApp green */
    color: white;
}

.fab-option:nth-child(2) {
    transition-delay: 0.2s;
    background-color: #EA4335; /* Gmail red */
    color: white;
}

.fab-option:nth-child(3) {
    transition-delay: 0.3s;
    background-color: var(--primary-color);
    color: white;
}

.fab-option:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Scroll to top button (now part of FAB) */
.scroll-to-top {
    display: none; /* Hide the old button */
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 8px 15px !important;
    margin: 0 5px;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 15px;
    background-color: #d9230f;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 30px);
}

/* Hero Badges */
.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px 10px;
    height: 100%;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.hero-badge i {
    margin-bottom: 10px;
}

.hero-badge h4 {
    margin: 5px 0;
    font-size: 1.1rem;
}

.hero-badge small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Brands Section */
#brands {
    background-color: #000;
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}

#brands::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, #000 0%, rgba(0,0,0,0) 100%);
    z-index: 10;
    pointer-events: none;
}

#brands::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(270deg, #000 0%, rgba(0,0,0,0) 100%);
    z-index: 10;
    pointer-events: none;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    padding: 25px 35px;
    background: rgba(20, 20, 20, 0.9);
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(217, 35, 15, 0.5);
    transition: all 0.3s ease;
    border: 1px solid rgba(217, 35, 15, 0.5);
    position: relative;
    overflow: hidden;
    width: 220px;
    min-width: 200px;
    margin: 0 15px;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.brand-logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brand-logo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.2);
}

.brand-logo-container:hover::before {
    opacity: 1;
}

.brand-logo {
    max-width: 100%;
    max-height: 140px; /* Increased max height */
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(0) brightness(1.2) drop-shadow(0 0 20px rgba(217, 35, 15, 0.7));
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    padding: 15px;
    transform: scale(1.1); /* Slightly scale up */
    animation: pulseGlow 3s infinite alternate;
}

/* Ensure SVGs are visible and properly sized */
.brand-logo[src$='.svg'] {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Add constant glowing animation */
@keyframes pulseGlow {
    0% {
        filter: grayscale(0) brightness(1.2) drop-shadow(0 0 15px rgba(217, 35, 15, 0.5));
    }
    100% {
        filter: grayscale(0) brightness(1.4) drop-shadow(0 0 30px rgba(217, 35, 15, 0.8));
    }
}

.brand-logo-container:hover .brand-logo {
    transform: scale(1.15);
    animation: pulseGlowHover 1.5s infinite alternate;
}

@keyframes pulseGlowHover {
    0% {
        filter: grayscale(0) brightness(1.4) drop-shadow(0 0 25px rgba(217, 35, 15, 0.8));
    }
    100% {
        filter: grayscale(0) brightness(1.6) drop-shadow(0 0 40px rgba(217, 35, 15, 1));
    }
}

/* Brands Carousel with Arrows */
.brands-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 0;
    overflow: hidden;
}

.brands-carousel {
    width: 100%;
    position: relative;
    z-index: 1;
}

.brands-carousel .swiper-wrapper {
    display: flex;
    align-items: center;
    padding: 40px 0;
    margin: 0;
    list-style: none;
    will-change: transform;
    min-width: 100%;
}

.brands-carousel .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin: 0 25px;
    transition: transform 0.3s ease;
    position: relative;
}

.brands-carousel .swiper-slide:hover {
    transform: translateY(-5px);
}

/* Arrow buttons */
.brands-carousel-prev,
.brands-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid #d9230f;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    outline: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.brands-carousel-prev:hover,
.brands-carousel-next:hover {
    background: #d9230f;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 20px rgba(217, 35, 15, 0.6);
}

.brands-carousel-prev {
    left: 20px;
}

.brands-carousel-next {
    right: 20px;
}

.brands-carousel-prev:disabled,
.brands-carousel-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.5);
    border-color: #666;
}

.brands-carousel .swiper-slide {
    width: auto !important;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .brand-logo-container {
        height: 120px;
        padding: 15px;
        width: 180px;
    }
    
    .brand-logo {
        max-height: 70px;
    }
}

@media (max-width: 767.98px) {
    .brand-logo-container {
        height: 100px;
        padding: 15px 10px;
        width: 160px;
    }
    
    .brand-logo {
        max-height: 60px;
    }
    
    #brands::before,
    #brands::after {
        width: 50px;
    }
}

@media (max-width: 575.98px) {
    .brand-logo-container {
        height: 90px;
        width: 140px;
    }
    
    .brand-logo {
        max-height: 50px;
    }
}

/* Contact Section */
.contact-item {
    transition: transform 0.3s ease;
}

.contact-link {
    width: 100%;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.contact-link:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
}

.contact-link:hover::before {
    opacity: 1;
}

.contact-link i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-link:hover i {
    transform: scale(1.1);
    color: #ff4d4d !important;
}

.contact-link h5,
.contact-link p {
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.contact-link:hover h5,
.contact-link:hover p {
    color: #fff !important;
}

/* Social Icons */
.social-links {
    margin-top: 30px;
}

.social-links h5 {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.social-links h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: #d9230f;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #d9230f, #ff6b6b);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-icon i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    color: #fff !important;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(217, 35, 15, 0.4);
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover i {
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 1199.98px) {
    .brand-logo-container {
        height: 120px;
        padding: 15px;
    }
    
    .brand-logo {
        max-height: 90px;
    }
}

@media (max-width: 767.98px) {
    .brand-logo-container {
        height: 100px;
        padding: 15px 10px;
    }
    
    .brand-logo {
        max-height: 70px;
    }
}

.gallery-filters .btn {
    margin: 0 5px 10px;
    border-radius: 30px;
    padding: 8px 20px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.gallery-filters .btn:hover,
.gallery-filters .btn.active {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item {
    margin-bottom: 30px;
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out forwards;
}

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

.gallery-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.9);
}

.gallery-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gallery-content h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.gallery-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.gallery-content .btn {
    align-self: flex-start;
    margin-top: auto;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .gallery-filters .btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .gallery-content {
        padding: 15px;
    }
    
    .gallery-content h5 {
        font-size: 1rem;
    }
    
    .gallery-content p {
        font-size: 0.85rem;
    }
}

/* Animation for gallery items */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeIn 0.6s ease-out forwards;
    animation-delay: calc(var(--animation-order) * 100ms);
    opacity: 0;
}
