/* ==========================================
   Hero Split Layout with Slideshow
   ========================================== */

.hero-split {
    position: relative;
    background: linear-gradient(135deg, #0077B6 0%, #023E8A 50%, #00B4D8 100%);
    padding: 120px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-split .container {
    max-width: 100%;
    padding: 0 3rem;
}

/* Add decorative background pattern */
.hero-split::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(0, 180, 216, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 40fr 60fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

/* Left Content */
.hero-content-left {
    color: var(--white);
    animation: fadeInLeft 0.8s ease;
    position: relative;
    z-index: 2;
    padding-right: 2rem;
    padding-left: 1rem;
}

/* Add decorative accent */
.hero-content-left::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 70px;
    height: 5px;
    background: linear-gradient(90deg, #00B4D8, #48CAE4);
    border-radius: 3px;
    box-shadow: 0 0 25px rgba(0, 180, 216, 0.6);
}

.hero-content-left .hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.8rem;
    color: var(--white);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content-left .hero-title .highlight {
    background: linear-gradient(120deg, #00B4D8, #2A9D8F, #48CAE4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: gradientShift 3s ease infinite;
    background-size: 200% auto;
    position: relative;
}

.hero-content-left .hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00B4D8, transparent);
    opacity: 0.4;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.hero-content-left .hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.93);
    margin-bottom: 2.5rem;
    font-weight: 400;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
    max-width: 95%;
}

.hero-content-left .hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero-content-left .hero-buttons .btn {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.hero-content-left .hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.hero-content-left .hero-buttons .btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-content-left .hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.hero-content-left .hero-buttons .btn i {
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.hero-content-left .hero-buttons .btn:hover i {
    transform: scale(1.1);
}

.hero-content-left .hero-stats {
    display: flex;
    gap: 3.5rem;
    flex-wrap: wrap;
    padding: 2.5rem 0 0 0;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 1.5rem;
}

.hero-content-left .stat-item {
    text-align: left;
    position: relative;
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

.hero-content-left .stat-item:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-content-left .stat-item:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-content-left .stat-item:nth-child(3) {
    animation-delay: 0.6s;
}

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

.hero-content-left .stat-item::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 0;
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, #00B4D8, #48CAE4);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 180, 216, 0.6);
}

.hero-content-left .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00B4D8;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 15px rgba(0, 180, 216, 0.4);
    background: linear-gradient(135deg, #00B4D8, #48CAE4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content-left .stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Right Slideshow */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5),
        0 15px 40px rgba(0, 0, 0, 0.4);
    animation: fadeInRight 0.8s ease;
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

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

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
}

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

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

.dot.active {
    background-color: #00B4D8;
    transform: scale(1.3);
}

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

.slideshow-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.slideshow-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* ==========================================
   Dynamic Brand Slider
   ========================================== */

.brands-section {
    background: linear-gradient(135deg, #F8F9FA 0%, #E8F4F8 100%);
    padding: 80px 0;
}

.brands-container {
    overflow: hidden;
    margin-top: 3rem;
}

/* Static Layout (< 4 brands) */
.brands-static .brands-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-items: center;
}

/* Slider Layout (>= 4 brands) */
.brands-slider {
    position: relative;
    padding: 20px 0;
}

.brands-slider .brands-track {
    display: flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
}

.brands-slider .brands-track:hover {
    animation-play-state: paused;
}

/* Brand Card */
.brand-card {
    flex-shrink: 0;
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    min-width: 280px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.brand-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 119, 182, 0.2);
}

.brand-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 119, 182, 0.05), rgba(0, 180, 216, 0.05));
    border-radius: 12px;
}

.brand-logo img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.brand-card:hover .brand-logo img {
    filter: grayscale(0%);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-navy);
    margin-bottom: 0.75rem;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0077B6, #00B4D8);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.brand-badge i {
    font-size: 0.75rem;
}

.no-brands {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-brands i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Infinite Scroll Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1.5rem));
    }
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-split {
        padding: 100px 0 70px;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero-content-left {
        text-align: left;
    }

    .hero-content-left .hero-title {
        font-size: 2.75rem;
    }

    .hero-content-left .hero-subtitle {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .brands-slider .brands-track {
        gap: 2rem;
    }

    .brand-card {
        min-width: 240px;
    }
}

@media (max-width: 768px) {
    .hero-split {
        padding: 100px 0 60px;
        min-height: auto;
        background: linear-gradient(135deg, #0077B6 0%, #023E8A 100%);
    }

    .hero-split .container {
        padding: 0 1.5rem;
    }

    .hero-grid {
        gap: 3rem;
    }

    .hero-content-left {
        padding-right: 0;
        padding-left: 0;
    }

    .hero-content-left::before {
        width: 50px;
        height: 4px;
        top: -25px;
    }

    .hero-content-left .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-content-left .hero-subtitle {
        font-size: 1.05rem;
        max-width: 100%;
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    .hero-content-left .hero-buttons {
        gap: 0.875rem;
        margin-bottom: 2rem;
        justify-content: center;
    }

    .hero-content-left .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        flex: 1;
        min-width: 160px;
        text-align: center;
    }

    .hero-slideshow {
        height: 450px;
    }

    .brands-static .brands-track {
        grid-template-columns: 1fr;
    }

    .brand-card {
        min-width: 100%;
    }

    .hero-content-left .stat-number {
        font-size: 2.25rem;
    }

    .hero-content-left .stat-label {
        font-size: 0.7rem;
    }

    .hero-content-left .hero-stats {
        gap: 2.5rem;
        padding-top: 2rem;
        margin-top: 1rem;
    }

    .hero-content-left .stat-item::before {
        width: 35px;
        height: 3px;
        top: -1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-split {
        padding: 90px 0 50px;
        background: linear-gradient(135deg, #0077B6 0%, #023E8A 100%);
    }

    .hero-split .container {
        padding: 0 1rem;
    }

    .hero-grid {
        gap: 2.5rem;
    }

    .hero-content-left::before {
        width: 45px;
        height: 3px;
        top: -20px;
    }

    .hero-content-left .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1.25rem;
    }

    .hero-content-left .hero-subtitle {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 1.75rem;
    }

    .hero-content-left .hero-buttons {
        gap: 0.75rem;
        justify-content: center;
        flex-direction: column;
    }

    .hero-content-left .hero-buttons .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }

    .hero-slideshow {
        height: 350px;
    }

    .hero-content-left .stat-number {
        font-size: 1.875rem;
    }

    .hero-content-left .stat-label {
        font-size: 0.65rem;
    }

    .hero-content-left .hero-stats {
        gap: 2rem;
        padding-top: 1.75rem;
    }

    .hero-content-left .stat-item::before {
        width: 30px;
        height: 3px;
        top: -1.5rem;
    }
}