/* Mobile card standardization - using exact model-card dimensions */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }
    
    /* Apply exact model-card dimensions to all cards except team */
    .service-card,
    .delivery-card,
    .success-card {
        /* Desktop dimensions from model-card */
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        padding: 1.5rem;
        min-width: 240px;
        max-width: 300px;
        position: relative;
        overflow: visible;
        transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
        cursor: pointer;
        z-index: 1;
        
        /* Mobile dimensions from model-card */
        height: auto;
        min-height: 140px;
        
        /* Additional styling to match model-card */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 1rem auto;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Sync all overlays with model-overlay dimensions and margins */
    .service-overlay,
    .delivery-overlay,
    .success-overlay,
    .team-overlay {
        /* Match model-overlay dimensions exactly */
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #111, #222); /* Updated to match desktop dark gradient */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        opacity: 0;
        transform: scale(1.2);
        transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
        overflow: visible; /* Changed from auto to visible to hide scrollbar by default */
        border-radius: 10px;
        z-index: 2;
        
        /* Mobile dimensions with 10px padding from left and right */
        padding: 1rem 10px;
        box-sizing: border-box;
        margin: 0;
        
        /* Add golden border */
        border: 1px solid rgba(254, 207, 106, 0.4);
        /* Add subtle golden glow */
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2),
                0 0 8px rgba(254, 207, 106, 0.3);
    }
    
    /* Sync hover state for all overlays */
    .service-card:hover .service-overlay,
    .delivery-card:hover .delivery-overlay,
    .success-card:hover .success-overlay,
    .team-card:hover .team-overlay {
        opacity: 1;
        transform: scale(1);
        /* Enhanced golden glow on hover */
        border: 2px solid rgba(254, 207, 106, 0.8);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 
                0 0 15px rgba(254, 207, 106, 0.6),
                0 0 25px rgba(254, 207, 106, 0.3);
    }
    
    /* Update all underlines to match beOnd gold color */
    .service-title-underline,
    .overlay-title-underline,
    .model-title-underline,
    .team-title-underline {
        width: 40px;
        height: 2px;
        background-color: #fecf6a; /* Changed from white to beOnd yellow/gold */
        margin: 0 auto 0.5rem;
        transform: scaleX(0);
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
    }
    
    .service-card:hover .service-title-underline,
    .delivery-card:hover .overlay-title-underline,
    .model-card:hover .model-title-underline,
    .team-card:hover .team-title-underline {
        transform: scaleX(1);
        box-shadow: 0 0 10px #fecf6a; /* Changed from white to beOnd yellow/gold */
    }
    
    /* Custom scrollbar styling for mobile */
    .service-overlay-desc::-webkit-scrollbar,
    .delivery-overlay-desc::-webkit-scrollbar,
    .success-overlay-desc::-webkit-scrollbar,
    .team-overlay-desc::-webkit-scrollbar {
        width: 4px;
        display: none; /* Hide by default */
    }
    
    .service-overlay-desc:hover::-webkit-scrollbar,
    .delivery-overlay-desc:hover::-webkit-scrollbar,
    .success-overlay-desc:hover::-webkit-scrollbar,
    .team-overlay-desc:hover::-webkit-scrollbar {
        display: block; /* Only show when hovering over content */
    }
    
    .service-overlay-desc::-webkit-scrollbar-thumb,
    .delivery-overlay-desc::-webkit-scrollbar-thumb,
    .success-overlay-desc::-webkit-scrollbar-thumb,
    .team-overlay-desc::-webkit-scrollbar-thumb {
        background: #fecf6a; /* beOnd signature yellow/gold color */
        border-radius: 10px;
    }
    
    .service-overlay-desc::-webkit-scrollbar-thumb:hover,
    .delivery-overlay-desc::-webkit-scrollbar-thumb:hover,
    .success-overlay-desc::-webkit-scrollbar-thumb:hover,
    .team-overlay-desc::-webkit-scrollbar-thumb:hover {
        background: #fdd169; /* Slightly lighter shade on hover */
        box-shadow: 0 0 5px rgba(254, 207, 106, 0.8);
    }
    
    /* Ensure overlay content has the exact same margins as model-overlay */
    .service-overlay-title,
    .delivery-overlay-title,
    .success-overlay-title {
        width: calc(100% - 20px);
        margin: 0 0 0.3rem 0;
        padding: 0;
        font-size: 0.9rem;
        text-align: center;
    }
    
    /* Sync overlay descriptions with model-overlay-desc margins */
    .service-overlay-desc,
    .delivery-overlay-desc,
    .success-overlay-desc {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.8rem;
        line-height: 1.3;
        transform: translateY(15px);
        opacity: 0;
        transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
        text-align: center;
        width: calc(100% - 20px);
        max-height: 60%;
        overflow-y: auto;
        box-sizing: border-box;
        
        /* Mobile dimensions with 10px padding */
        padding: 0 10px;
        margin: 0 0 0.3rem 0;
    }
    
    /* Keep model-overlay-desc with its original padding */
    .model-overlay-desc {
        width: 100%;
        padding: 0 0.5rem;
    }
    
    /* Justified text for model overlay descriptions and slide overlay paragraphs on mobile */
    .model-overlay-desc,
    .slide-overlay p {
        text-align: justify !important;
        hyphens: auto !important;
        text-justify: inter-word !important;
    }
    
    /* Mobile click functionality - active state for all cards */
    .service-card.active,
    .model-card.active,
    .delivery-card.active,
    .success-card.active,
    .team-card.active {
        transform: scale(1.15);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
        border-color: var(--primary);
        z-index: 20;
        overflow: visible;
    }
    
    /* Mobile click functionality - active state for overlays */
    .service-card.active .service-overlay,
    .model-card.active .model-overlay,
    .delivery-card.active .delivery-overlay,
    .success-card.active .success-overlay {
        opacity: 1;
        transform: scale(1);
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }
    
    /* Mobile click functionality - active state for descriptions */
    .service-card.active .service-overlay-desc,
    .model-card.active .model-overlay-desc,
    .delivery-card.active .delivery-overlay-desc,
    .success-card.active .success-overlay-desc {
        transform: translateY(0);
        opacity: 1;
    }
    
    /* Mobile click functionality - active state for titles */
    .service-card.active .service-overlay-title,
    .model-card.active .model-overlay-title,
    .delivery-card.active .delivery-overlay-title,
    .success-card.active .success-overlay-title {
        transform: translateY(0);
        opacity: 1;
    }
    
    /* Mobile click functionality - active state for title underlines */
    .service-card.active .service-title-underline,
    .model-card.active .model-title-underline,
    .delivery-card.active .delivery-title-underline,
    .success-card.active .success-title-underline {
        transform: scaleX(1);
    }
    
    /* Preserve hover effects for non-mobile devices */
    @media (min-width: 769px) {
        .service-card:hover,
        .delivery-card:hover,
        .success-card:hover {
            transform: scale(1.25);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
            border-color: var(--primary);
            z-index: 20;
            overflow: visible;
        }
        
        .service-card:hover .service-overlay,
        .delivery-card:hover .delivery-overlay,
        .success-card:hover .success-overlay {
            opacity: 1;
            transform: scale(1);
            width: 100%;
            height: 100%;
            left: 0;
            top: 0;
        }
        
        .service-card:hover .service-overlay-desc,
        .delivery-card:hover .delivery-overlay-desc,
        .success-card:hover .success-overlay-desc {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    /* For very small screens */
    @media (max-width: 320px) {
        .service-card,
        .delivery-card,
        .success-card {
            min-width: 200px;
            min-height: 120px;
            padding: 1rem;
        }
        
        .service-overlay-title,
        .delivery-overlay-title,
        .success-overlay-title {
            font-size: 0.8rem;
        }
        
        .service-overlay-desc,
        .delivery-overlay-desc,
        .success-overlay-desc {
            font-size: 0.7rem;
            line-height: 1.2;
        }
        
        .service-card.active,
        .model-card.active,
        .delivery-card.active,
        .success-card.active {
            transform: scale(1.1);
        }
    }
    
    /* Ensure all cards have 10px margin from edge of screen */
    .services-grid,
    .delivery-grid,
    .success-grid,
    .model-cards {
        padding: 0 10px;
        box-sizing: border-box;
    }
    
    /* Enhanced team grid styling */
    .team-grid {
        padding: 0 1rem;
        box-sizing: border-box;
        margin: 0 auto 1rem;
        width: calc(100% - 2rem);
        max-width: 100%;
    }
    
    /* Container padding to prevent content from being cut off */
    .container {
        padding-left: 10px;
        padding-right: 10px;
        width: calc(100% - 20px);
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Ensure the yellow O highlights remain visible */
    .highlight {
        display: inline-block;
        color: #fecf6a;
    }
}

/* Responsive team cards for different screen sizes */
@media (max-width: 1200px) {
    .team-grid {
        gap: 1.5rem;
    }
    
    .team-card {
        width: 220px;
        height: 220px;
    }
    
    .team-image {
        width: 140px;
        height: 140px;
    }
    
    .team-glow {
        width: 150px;
        height: 150px;
    }
    
    .team-name {
        font-size: 1.1rem;
    }
    
    .team-role {
        font-size: 0.85rem;
    }
}

@media (max-width: 992px) {
    .team-grid {
        gap: 1.2rem;
    }
    
    .team-card {
        width: 200px;
        height: 200px;
        padding: 1.2rem;
    }
    
    .team-image {
        width: 120px;
        height: 120px;
    }
    
    .team-glow {
        width: 130px;
        height: 130px;
    }
    
    .team-name {
        font-size: 1rem;
    }
    
    .team-role {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .team-grid {
        gap: 1rem;
        padding: 0 1rem;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .team-card {
        width: 180px;
        height: 180px;
        padding: 1rem;
        margin-bottom: 1rem;
        flex: 0 0 auto;
    }
    
    /* Second row container removed as all cards are now in one container */
    
    .team-image {
        width: 100px;
        height: 100px;
    }
    
    .team-glow {
        width: 110px;
        height: 110px;
    }
    
    .team-name {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .team-role {
        font-size: 0.75rem;
    }
    
    .team-overlay {
        padding: 0.8rem;
    }
    
    .team-overlay-title {
        font-size: 0.9rem;
    }
    
    .team-overlay-desc {
        font-size: 0.75rem;
        max-height: 70%;
    }
}

@media (max-width: 576px) {
    .team-grid {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 0.8rem;
        overflow-x: visible;
    }
    
    .team-grid > .team-card {
        width: calc(50% - 0.4rem);
        height: auto;
        aspect-ratio: 1/1;
        padding: 0.8rem;
        margin-bottom: 1rem;
        margin-right: 0;
        flex: 0 0 calc(50% - 0.4rem);
    }
    
    .second-row-container {
        flex-wrap: wrap;
        justify-content: space-between;
        overflow-x: visible;
        width: 100%;
    }
    
    .second-row-container > .team-card {
        width: calc(50% - 0.4rem);
        flex: 0 0 calc(50% - 0.4rem);
        margin-right: 0;
    }
    
    .team-image {
        width: 90px;
        height: 90px;
    }
    
    .team-glow {
        width: 100px;
        height: 100px;
    }
    
    .team-name {
        font-size: 0.85rem;
        margin-bottom: 0.1rem;
    }
    
    .team-role {
        font-size: 0.7rem;
    }
    
    .team-overlay {
        padding: 0.6rem;
    }
    
    .team-overlay-title {
        font-size: 0.85rem;
    }
    
    .team-overlay-desc {
        font-size: 0.7rem;
        line-height: 1.3;
    }
}

@media (max-width: 400px) {
    .team-grid {
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .team-grid > .team-card,
    .second-row-container > .team-card {
        width: calc(50% - 0.4rem);
        height: auto;
        aspect-ratio: 1/1;
        max-width: calc(50% - 0.4rem);
        margin: 0 0 1rem 0;
        flex: 0 0 calc(50% - 0.4rem);
    }
    
    .team-image {
        width: 80px;
        height: 80px;
    }
    
    .team-glow {
        width: 90px;
        height: 90px;
    }
}

/* Force beOnd to stay together and move to next line if needed */
.brand-name,
span.brand-name,
.beond-word {
    display: inline-block !important;
    white-space: nowrap !important;
    color: #fecf6a !important; /* beOnd signature yellow/gold color */
    font-weight: 600 !important;
}

/* Apply to all possible text containers */
p, h1, h2, h3, h4, h5, h6, div, span, a, li, td, th, label, button, input, textarea {
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Ensure all overlay text containers have proper word breaking */
.service-overlay-title, .service-overlay-desc,
.delivery-overlay-title, .delivery-overlay-desc,
.model-overlay-title, .model-overlay-desc,
.team-overlay-title, .team-overlay-desc,
.studio-overlay-title, .studio-overlay-desc,
.success-overlay-title, .success-overlay-desc,
.slide-overlay h3, .slide-overlay p,
.overlay-title, .overlay-desc {
    word-break: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: none;
}

/* Ensure beOnd brand name is never broken across lines */
.service-overlay-title,
.delivery-overlay-title,
.model-overlay-title,
.team-overlay-title,
.overlay-title,
.slide-overlay h3,
.service-overlay-desc,
.delivery-overlay-desc,
.model-overlay-desc,
.team-overlay-desc,
.overlay-desc,
.slide-overlay p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: manual; /* Allow manual hyphens but don't auto-hyphenate */
}

/* Enhanced styling for beOnd brand name to prevent breaking */
.brand-name {
    white-space: nowrap !important; /* Force nowrap with highest priority */
    display: inline-block; /* Ensure inline-block display */
    color: #fecf6a !important; /* Use the distinctive beOnd yellow/gold color */
    font-weight: 600; /* Make it slightly bolder */
}

/* Additional styling for studio cards */
.studio-card p,
.studio-card h3,
.studio-overlay-title,
.studio-overlay-desc,
.studio-card .overlay-title,
.studio-card .overlay-desc {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: manual; /* Allow manual hyphens but don't auto-hyphenate */
}

/* Ensure all text containers have proper word breaking */
p, h1, h2, h3, h4, h5, h6, div, span, a {
    word-break: keep-all; /* Prevent breaking words */
}

/* Special case for beOnd in any context */
*:not(.brand-name) {
    word-break: normal;
}

/* Special styling for the beOnd brand name */
.service-overlay-title span.brand-name,
.delivery-overlay-title span.brand-name,
.model-overlay-title span.brand-name,
.team-overlay-title span.brand-name,
.overlay-title span.brand-name,
.slide-overlay h3 span.brand-name,
.service-overlay-desc span.brand-name,
.delivery-overlay-desc span.brand-name,
.model-overlay-desc span.brand-name,
.team-overlay-desc span.brand-name,
.overlay-desc span.brand-name,
.slide-overlay p span.brand-name {
    white-space: nowrap; /* Prevent beOnd from breaking across lines */
    color: #fecf6a; /* Use the distinctive beOnd yellow/gold color */
    font-weight: 600; /* Make it slightly bolder */
}

/* Brand Carousel Styles - Ultra Simple Version */
.brand-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    align-items: center;
}

.brand-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 0 20px;
}

.brand-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.brand-card {
    flex: 0 0 auto;
    width: 300px;
    height: 300px;
    margin-right: 20px;
    position: relative;
    border-radius: 10px;
    overflow: visible;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    /* Golden border */
    border: 1px solid rgba(254, 207, 106, 0.4);
    /* Subtle golden glow */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2),
                0 0 4px rgba(254, 207, 106, 0.3);
    transform: scale(0.95);
}

.brand-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(254, 207, 106, 0.3);
    z-index: 10;
}

.carousel-prev,
.carousel-next {
    background: linear-gradient(135deg, rgba(254, 207, 106, 0.2), rgba(114, 9, 183, 0.2));
    border: 2px solid #fecf6a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    position: relative;
    flex-shrink: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: linear-gradient(135deg, rgba(254, 207, 106, 0.4), rgba(114, 9, 183, 0.4));
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(254, 207, 106, 0.5);
}

.carousel-arrow {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fecf6a;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
    width: 100%;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: #fecf6a;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(254, 207, 106, 0.5);
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .brand-carousel-container {
        padding: 1rem 0;
    }
    
    .brand-card {
        width: 260px;
        height: 260px;
        margin-right: 15px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
    }
    
    .carousel-arrow {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .brand-card {
        width: 220px;
        height: 220px;
        margin-right: 10px;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
    }
    
    .carousel-arrow {
        font-size: 1rem;
    }
}

/* Add smooth sliding line animation */
.brand-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    /* Use a single gradient for smoother animation */
    background: linear-gradient(90deg, #fecf6a, #fecf6a);
    background-size: 15% 1px; /* Small line (15% of width, 1px thick) */
    background-repeat: no-repeat;
    /* Start at top-left corner */
    background-position: 0 0;
    /* Slower animation (12s instead of 8s) */
    animation: smooth-border-flow 12s infinite linear;
    z-index: 3;
    pointer-events: none;
}

/* Hover effect - make the card larger and enhance glow */
.brand-card:hover::after {
    filter: brightness(1.5) drop-shadow(0 0 3px rgba(254, 207, 106, 0.8));
    animation-duration: 8s; /* Faster animation on hover */
}

/* Sliding border animation */
@keyframes smooth-border-flow {
    /* Top edge: left to right */
    0% {
        background: linear-gradient(90deg, #fecf6a, #fecf6a);
        background-size: 15% 1px; /* Small line */
        background-repeat: no-repeat;
        background-position: 0% 0;
    }
    12.5% {
        background: linear-gradient(90deg, #fecf6a, #fecf6a);
        background-size: 15% 1px; /* Small line */
        background-repeat: no-repeat;
        background-position: 85% 0;
    }
    
    /* Right edge: top to bottom */
    12.51% {
        background: linear-gradient(180deg, #fecf6a, #fecf6a);
        background-size: 1px 15%; /* Small line */
        background-repeat: no-repeat;
        background-position: 100% 0%;
    }
    25% {
        background: linear-gradient(180deg, #fecf6a, #fecf6a);
        background-size: 1px 15%; /* Small line */
        background-repeat: no-repeat;
        background-position: 100% 85%;
    }
    
    /* Bottom edge: right to left */
    25.01% {
        background: linear-gradient(270deg, #fecf6a, #fecf6a);
        background-size: 15% 1px; /* Small line */
        background-repeat: no-repeat;
        background-position: 100% 100%;
    }
    37.5% {
        background: linear-gradient(270deg, #fecf6a, #fecf6a);
        background-size: 15% 1px; /* Small line */
        background-repeat: no-repeat;
        background-position: 15% 100%;
    }
    
    /* Left edge: bottom to top */
    37.51% {
        background: linear-gradient(0deg, #fecf6a, #fecf6a);
        background-size: 1px 15%; /* Small line */
        background-repeat: no-repeat;
        background-position: 0% 100%;
    }
    50% {
        background: linear-gradient(0deg, #fecf6a, #fecf6a);
        background-size: 1px 15%; /* Small line */
        background-repeat: no-repeat;
        background-position: 0% 15%;
    }
    
    /* Repeat the cycle for a complete animation */
    /* Top edge: left to right (second half) */
    50.01% {
        background: linear-gradient(90deg, #fecf6a, #fecf6a);
        background-size: 15% 1px; /* Small line */
        background-repeat: no-repeat;
        background-position: 0% 0;
    }
    62.5% {
        background: linear-gradient(90deg, #fecf6a, #fecf6a);
        background-size: 15% 1px; /* Small line */
        background-repeat: no-repeat;
        background-position: 85% 0;
    }
    
    /* Right edge: top to bottom (second half) */
    62.51% {
        background: linear-gradient(180deg, #fecf6a, #fecf6a);
        background-size: 1px 15%; /* Small line */
        background-repeat: no-repeat;
        background-position: 100% 0%;
    }
    75% {
        background: linear-gradient(180deg, #fecf6a, #fecf6a);
        background-size: 1px 15%; /* Small line */
        background-repeat: no-repeat;
        background-position: 100% 85%;
    }
    
    /* Bottom edge: right to left (second half) */
    75.01% {
        background: linear-gradient(270deg, #fecf6a, #fecf6a);
        background-size: 15% 1px; /* Small line */
        background-repeat: no-repeat;
        background-position: 100% 100%;
    }
    87.5% {
        background: linear-gradient(270deg, #fecf6a, #fecf6a);
        background-size: 15% 1px; /* Small line */
        background-repeat: no-repeat;
        background-position: 15% 100%;
    }
    
    /* Left edge: bottom to top (second half) */
    87.51% {
        background: linear-gradient(0deg, #fecf6a, #fecf6a);
        background-size: 1px 15%; /* Small line */
        background-repeat: no-repeat;
        background-position: 0% 100%;
    }
    100% {
        background: linear-gradient(0deg, #fecf6a, #fecf6a);
        background-size: 1px 15%; /* Small line */
        background-repeat: no-repeat;
        background-position: 0% 15%;
    }
}

/* Elegant Carousel Styles */
.elegant-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem 0;
    overflow: visible;
}

.elegant-carousel-inner {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.elegant-carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 30px;
}

/* Elegant Card Design */
.elegant-card {
    flex: 0 0 auto;
    width: 280px;
    height: 320px;
    perspective: 1000px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.elegant-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 15px;
    overflow: hidden;
}

.elegant-card:hover .elegant-card-inner {
    transform: rotateY(180deg);
}

.elegant-card-front, 
.elegant-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.elegant-card-front {
    background-color: #fff;
    padding: 2rem;
}

.elegant-card-front img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.elegant-card-back {
    background: linear-gradient(135deg, #111, #222);
    color: white;
    transform: rotateY(180deg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.elegant-card-back h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
}

.elegant-underline {
    width: 50px;
    height: 3px;
    background-color: #fecf6a;
    margin: 0.5rem auto 1rem;
    border-radius: 2px;
}

.elegant-card-back p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Elegant Navigation Arrows */
.elegant-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid #fecf6a;
}

.elegant-prev {
    left: -25px;
}

.elegant-next {
    right: -25px;
}

.elegant-nav-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(254, 207, 106, 0.5);
}

.elegant-nav-arrow svg {
    width: 24px;
    height: 24px;
}

/* Elegant Indicators */
.elegant-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 10px;
}

.elegant-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.elegant-indicator.active {
    background-color: #fecf6a;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(254, 207, 106, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .elegant-carousel-container {
        margin: 2rem auto;
    }
    
    .elegant-card {
        width: 240px;
        height: 280px;
    }
    
    .elegant-nav-arrow {
        width: 40px;
        height: 40px;
    }
    
    .elegant-nav-arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .elegant-carousel-container {
        margin: 1rem auto;
    }
    
    .elegant-card {
        width: 220px;
        height: 260px;
    }
    
    .elegant-card-back h3 {
        font-size: 1.2rem;
    }
    
    .elegant-card-back p {
        font-size: 0.8rem;
    }
    
    .elegant-nav-arrow {
        width: 35px;
        height: 35px;
    }
    
    .elegant-nav-arrow svg {
        width: 18px;
        height: 18px;
    }
}

/* Simple Carousel Styles */
.simple-carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 20px;
    overflow: hidden;
}

.simple-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.simple-carousel {
    display: flex;
    transition: transform 0.5s ease;
    padding-left: 0; /* Remove padding to allow for proper centering */
    width: 100%;
    position: relative;
}

.simple-slide {
    flex: 0 0 33.33%;
    min-width: 33.33%;
    height: 280px;
    padding: 0;
    margin: 0 10px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(0.95);
    /* Golden border - more visible by default */
    border: 2px solid rgba(254, 207, 106, 0.8); /* Increased opacity from 0.6 to 0.8 */
    /* Enhanced golden glow by default */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2),
                0 0 12px rgba(254, 207, 106, 0.6), /* Increased glow size and opacity */
                0 0 20px rgba(254, 207, 106, 0.3); /* Added additional outer glow */
}

/* Add permanent golden outline */
.simple-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: 2px solid #fecf6a;
    box-shadow: 0 0 10px rgba(254, 207, 106, 0.8),
                0 0 15px rgba(254, 207, 106, 0.4);
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    transition: all 0.3s ease;
}

/* Add smooth sliding line animation - always visible */
.simple-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    /* Use a single gradient for smoother animation */
    background: linear-gradient(90deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
    background-size: 15% 2px; /* Thicker line (2px) with longer gradient fade */
    background-repeat: no-repeat;
    /* Start at top-left corner */
    background-position: 0 0;
    /* Slower animation (12s instead of 8s) */
    animation: smooth-border-flow 12s infinite linear;
    z-index: 3; /* Position above the main border */
    pointer-events: none;
    /* Make it more glowing */
    filter: brightness(1.8) blur(1.5px) drop-shadow(0 0 5px rgba(254, 207, 106, 0.9));
    opacity: 1;
}

/* Sliding border animation */
@keyframes smooth-border-flow {
    /* Top edge: left to right */
    0% {
        background: linear-gradient(90deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 15% 2px;
        background-repeat: no-repeat;
        background-position: 0% 0;
    }
    12.5% {
        background: linear-gradient(90deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 15% 2px;
        background-repeat: no-repeat;
        background-position: 85% 0;
    }
    
    /* Right edge: top to bottom */
    12.51% {
        background: linear-gradient(180deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 2px 15%;
        background-repeat: no-repeat;
        background-position: 100% 0%;
    }
    25% {
        background: linear-gradient(180deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 2px 15%;
        background-repeat: no-repeat;
        background-position: 100% 85%;
    }
    
    /* Bottom edge: right to left */
    25.01% {
        background: linear-gradient(270deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 15% 2px;
        background-repeat: no-repeat;
        background-position: 100% 100%;
    }
    37.5% {
        background: linear-gradient(270deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 15% 2px;
        background-repeat: no-repeat;
        background-position: 15% 100%;
    }
    
    /* Left edge: bottom to top */
    37.51% {
        background: linear-gradient(0deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 2px 15%;
        background-repeat: no-repeat;
        background-position: 0% 100%;
    }
    50% {
        background: linear-gradient(0deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 2px 15%;
        background-repeat: no-repeat;
        background-position: 0% 15%;
    }
    
    /* Repeat the cycle for a complete animation */
    /* Top edge: left to right (second half) */
    50.01% {
        background: linear-gradient(90deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 15% 2px;
        background-repeat: no-repeat;
        background-position: 0% 0;
    }
    62.5% {
        background: linear-gradient(90deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 15% 2px;
        background-repeat: no-repeat;
        background-position: 85% 0;
    }
    
    /* Right edge: top to bottom (second half) */
    62.51% {
        background: linear-gradient(180deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 2px 15%;
        background-repeat: no-repeat;
        background-position: 100% 0%;
    }
    75% {
        background: linear-gradient(180deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 2px 15%;
        background-repeat: no-repeat;
        background-position: 100% 85%;
    }
    
    /* Bottom edge: right to left (second half) */
    75.01% {
        background: linear-gradient(270deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 15% 2px;
        background-repeat: no-repeat;
        background-position: 100% 100%;
    }
    87.5% {
        background: linear-gradient(270deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 15% 2px;
        background-repeat: no-repeat;
        background-position: 15% 100%;
    }
    
    /* Left edge: bottom to top (second half) */
    87.51% {
        background: linear-gradient(0deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 2px 15%;
        background-repeat: no-repeat;
        background-position: 0% 100%;
    }
    100% {
        background: linear-gradient(0deg, rgba(254, 207, 106, 1), rgba(254, 207, 106, 0));
        background-size: 2px 15%;
        background-repeat: no-repeat;
        background-position: 0% 15%;
    }
}

/* Make the sliding line brighter on hover with stronger glow */
.simple-slide:hover::after,
.simple-slide:active::after,
.simple-slide:focus::after {
    filter: brightness(2) blur(2px) drop-shadow(0 0 8px rgba(254, 207, 106, 1));
    animation-duration: 8s; /* Faster animation on hover */
}

/* Hover effect - make the card larger and enhance glow */
.simple-slide:hover, 
.simple-slide:active,
.simple-slide:focus {
    transform: scale(1.05);
    /* Much stronger glow on hover */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 
                0 0 30px rgba(254, 207, 106, 0.8),
                0 0 40px rgba(254, 207, 106, 0.4);
    border: 2px solid rgba(254, 207, 106, 1);
    z-index: 10;
}

/* Enhance the permanent border on hover */
.simple-slide:hover::before,
.simple-slide:active::before,
.simple-slide:focus::before {
    border: 3px solid #fecf6a;
    box-shadow: 0 0 15px rgba(254, 207, 106, 0.9),
                0 0 25px rgba(254, 207, 106, 0.5);
    opacity: 1;
}

/* Restoring the missing hover styles for slide overlay and front */
.simple-slide:hover .slide-overlay,
.simple-slide:active .slide-overlay,
.simple-slide:focus .slide-overlay {
    opacity: 1;
    transform: translateY(0);
}

.simple-slide:hover .slide-front,
.simple-slide:active .slide-front,
.simple-slide:focus .slide-front {
    transform: scale(0.8);
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.slide-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1;
    transition: all 0.3s ease;
}

.slide-front img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #111, #222);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    z-index: 5;
    text-align: center;
    -webkit-tap-highlight-color: transparent; /* Prevents the tap highlight on mobile */
    touch-action: manipulation; /* Improves touch interaction */
    cursor: pointer;
}

.slide-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #fff;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease 0.1s;
}

.slide-underline {
    width: 50px;
    height: 3px;
    background-color: #fecf6a;
    margin: 0.5rem auto 1rem;
    border-radius: 2px;
    transform: scaleX(0);
    transition: all 0.3s ease 0.2s;
}

.slide-overlay p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease 0.3s;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 10px; /* Add padding for scrollbar */
}

/* Custom scrollbar for overlay text - golden theme */
.slide-overlay p::-webkit-scrollbar {
    width: 5px;
}

.slide-overlay p::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.slide-overlay p::-webkit-scrollbar-thumb {
    background: #fecf6a; /* beOnd signature yellow/gold color */
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.slide-overlay p::-webkit-scrollbar-thumb:hover {
    background: #fdd169; /* Slightly lighter shade on hover */
    box-shadow: 0 0 5px rgba(254, 207, 106, 0.8);
}

.simple-slide:hover .slide-overlay h3,
.simple-slide:active .slide-overlay h3,
.simple-slide:focus .slide-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

.simple-slide:hover .slide-underline,
.simple-slide:active .slide-underline,
.simple-slide:focus .slide-underline {
    transform: scaleX(1);
}

.simple-slide:hover .slide-overlay p,
.simple-slide:active .slide-overlay p,
.simple-slide:focus .slide-overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* Navigation Buttons */
.simple-prev,
.simple-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fecf6a;
    border: 2px solid #fecf6a;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    outline: none;
}

.simple-prev {
    left: 5px;
}

.simple-next {
    right: 5px;
}

.simple-prev:hover,
.simple-next:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px rgba(254, 207, 106, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 1200px) and (min-width: 769px) {
    .simple-slide {
        flex: 0 0 40%;
        min-width: 40%;
        height: 280px;
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .simple-carousel-container {
        margin: 2rem auto;
        padding: 0;
    }
    
    .simple-carousel {
        padding-left: 0;
    }
    
    .simple-slide {
        flex: 0 0 65%; /* 65% width for tablets */
        min-width: 65%;
        height: 250px;
        margin: 0 auto;
        box-sizing: border-box;
        touch-action: manipulation;
    }
    
    .slide-overlay {
        padding: 1rem;
        transition: all 0.2s ease;
    }
    
    /* For mobile/tablet only - show overlay when active class is applied */
    .simple-slide.active .slide-overlay {
        opacity: 1;
        transform: translateY(0);
    }
    
    .simple-slide.active .slide-front {
        transform: scale(0.8);
    }
    
    /* Show text content in active slide overlay */
    .simple-slide.active .slide-overlay h3 {
        transform: translateY(0);
        opacity: 1;
    }
    
    .simple-slide.active .slide-underline {
        transform: scaleX(1);
    }
    
    .simple-slide.active .slide-overlay p {
        transform: translateY(0);
        opacity: 1;
    }
    
    /* Disable hover effects on mobile/tablet */
    .simple-slide:hover .slide-overlay,
    .simple-slide:active .slide-overlay,
    .simple-slide:focus .slide-overlay {
        opacity: 0;
        transform: translateY(100%);
    }
    
    .simple-slide:hover .slide-front,
    .simple-slide:active .slide-front,
    .simple-slide:focus .slide-front {
        transform: none;
    }
    
    .slide-overlay h3 {
        font-size: 1.4rem; /* Increased from 1.2rem */
        margin-bottom: 0.3rem;
    }
    
    .slide-underline {
        margin: 0.3rem auto 0.7rem;
        width: 60px; /* Wider underline to match larger text */
    }
    
    .slide-overlay p {
        font-size: 0.95rem; /* Increased from 0.8rem */
        max-height: 120px;
        line-height: 1.5; /* Slightly increased line height */
    }
    
    .simple-prev,
    .simple-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .simple-carousel-container {
        padding: 0;
        margin: 1.5rem auto;
        width: 100%;
        overflow: hidden;
        position: relative;
    }
    
    .simple-carousel-wrapper {
        width: 100%;
        overflow: hidden;
    }
    
    .simple-carousel {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
        display: flex;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .simple-slide {
        flex: 0 0 90%;
        min-width: 90%;
        height: 220px;
        margin: 0 auto;
        scroll-snap-align: center;
        box-sizing: border-box;
        touch-action: manipulation;
    }
    
    .slide-overlay {
        padding: 0.8rem; /* Increased from 0.7rem for better text spacing */
        transition: all 0.2s ease;
    }
    
    /* For mobile only - show overlay when active class is applied */
    .simple-slide.active .slide-overlay {
        opacity: 1;
        transform: translateY(0);
    }
    
    .simple-slide.active .slide-front {
        transform: scale(0.8);
    }
    
    /* Show text content in active slide overlay */
    .simple-slide.active .slide-overlay h3 {
        transform: translateY(0);
        opacity: 1;
    }
    
    .simple-slide.active .slide-underline {
        transform: scaleX(1);
    }
    
    .simple-slide.active .slide-overlay p {
        transform: translateY(0);
        opacity: 1;
    }
    
    /* Disable hover effects on mobile */
    .simple-slide:hover .slide-overlay,
    .simple-slide:active .slide-overlay,
    .simple-slide:focus .slide-overlay {
        opacity: 0;
        transform: translateY(100%);
    }
    
    .simple-slide:hover .slide-front,
    .simple-slide:active .slide-front,
    .simple-slide:focus .slide-front {
        transform: none;
    }
    
    .slide-overlay h3 {
        font-size: 1.2rem; /* Increased from 1rem */
        margin-bottom: 0.2rem;
        font-weight: 600;
    }
    
    .slide-underline {
        margin: 0.2rem auto 0.4rem;
        height: 2px;
        width: 50px; /* Wider underline to match larger text */
    }
    
    .slide-overlay p {
        font-size: 0.9rem; /* Increased from 0.75rem */
        max-height: 110px; /* Slightly increased to accommodate larger text */
        line-height: 1.4; /* Slightly increased line height */
        padding: 0 0.3rem;
    }
    
    .simple-prev,
    .simple-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
        left: 0;
    }
    
    .simple-next {
        right: 0;
        left: auto;
    }
    
    /* Add indicators for mobile */
    /* Simple indicators moved to carousel-indicators.css for all screen sizes */
}

/* Extra small screens */
@media (max-width: 360px) {
    .simple-carousel {
        padding-left: 20%;
    }
    
    .simple-slide {
        flex: 0 0 75%;
        min-width: 75%;
        height: 170px;
        margin: 0 3px;
    }
    
    .slide-overlay {
        padding: 0.6rem;
    }
    
    .slide-overlay h3 {
        font-size: 0.9rem;
        margin-bottom: 0.1rem;
    }
    
    .slide-underline {
        margin: 0.1rem auto 0.3rem;
        height: 1px;
        width: 30px;
    }
    
    .slide-overlay p {
        font-size: 0.65rem;
        line-height: 1.2;
        max-height: 70px;
    }
    
    .simple-prev,
    .simple-next {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}
