/* ========================================
   ZEBRONICS EXACT CAROUSEL REPLICA
   Full-width with exact animations
   ======================================== */

/* Remove white space between header and carousel */
[data-include="header"] {
    margin-bottom: 0 !important;
}

[data-include="header"] + .carousel,
[data-include="header"] + * + .carousel {
    margin-top: 0 !important;
}

/* Remove default carousel styling - FULL WIDTH */
.container-fluid.carousel {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    max-width: 100% !important;
    width: 100% !important;
    overflow: hidden;
    position: relative;
    top: -30px;
    margin-bottom: -30px;
    border-radius: 0 !important;
}

/* Full-width carousel container */
.carousel > .row {
    margin: 0 !important;
    width: 100% !important;
    padding: 0 !important;
}

.carousel > .row > .col-12,
.carousel > .row > .col-lg-7,
.carousel > .row > .col-xl-9 {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.carousel > .row > .col-lg-5,
.carousel > .row > .col-xl-3 {
    display: none !important;
}

/* Owl Carousel - Full Width */
.header-carousel {
    width: 100% !important;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.header-carousel.bg-light {
    background: transparent !important;
}

.header-carousel.py-5 {
    padding: 0 !important;
}

.header-carousel .owl-stage-outer {
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.header-carousel .owl-stage {
    display: flex;
    padding: 0 !important;
    margin: 0 !important;
}

/* Fix carousel item structure */
.header-carousel .owl-item {
    padding: 0 !important;
    margin: 0 !important;
}

.header-carousel .owl-item .row {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100%;
}

.header-carousel .owl-item .col-xl-6 {
    padding: 0 !important;
    margin: 0 !important;
}

/* Carousel Items - Full Screen Hero */
.header-carousel-item {
    position: relative;
    width: 100%;
    display: block !important;
    overflow: hidden;
    background: transparent;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.header-carousel-item.row {
    display: flex !important;
    align-items: center;
}

/* Image Container - Full Bleed */
.header-carousel-item .carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.header-carousel-item .carousel-img img,
.header-carousel-item img {
    width: 100%;
    height: auto;
    display: block;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}

/* Content Overlay - Zebronics Style */
.header-carousel-item .carousel-content {
    position: relative;
    z-index: 10;
    padding: 60px 80px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

/* Animate content on active slide */
.header-carousel .owl-item.active .carousel-content {
    opacity: 1;
    transform: translateY(0);
}

.header-carousel-item .carousel-content h4 {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #30385f !important;
    margin-bottom: 15px;
    opacity: 1;
    transform: translateY(0);
}

.header-carousel .owl-item.active .carousel-content h4 {
    opacity: 1;
    transform: translateY(0);
}

.header-carousel-item .carousel-content h1 {
    font-family: 'Inter', 'Roboto', sans-serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    color: #30385f !important;
    margin-bottom: 20px;
    max-width: 700px;
    opacity: 1;
    transform: translateY(0);
}

.header-carousel .owl-item.active .carousel-content h1 {
    opacity: 1;
    transform: translateY(0);
}

.header-carousel-item .carousel-content p {
    font-family: 'Inter', 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: #30385f !important;
    margin-bottom: 30px;
    max-width: 600px;
    opacity: 1;
    transform: translateY(0);
}

.header-carousel .owl-item.active .carousel-content p {
    opacity: 1;
    transform: translateY(0);
}

/* Button - Zebronics Style */
.header-carousel-item .btn {
    display: inline-block;
    padding: 15px 50px;
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
    color: #fff;
    background: #30385f;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    opacity: 1;
    transform: translateY(0);
}

.header-carousel .owl-item.active .carousel-content .btn {
    opacity: 1;
    transform: translateY(0);
}

.header-carousel-item .btn:hover {
    background: #1f2740;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Navigation Arrows - Zebronics Style */
.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    left: 30px;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    z-index: 200;
    pointer-events: auto;
}

.header-carousel .owl-nav button {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50%;
    color: #fff !important;
    font-size: 20px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer !important;
    pointer-events: auto !important;
    backdrop-filter: blur(10px);
    z-index: 200;
}

.header-carousel .owl-nav button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.05);
}

.header-carousel .owl-nav button span,
.header-carousel .owl-nav button .nav-arrow {
    font-size: 32px;
    line-height: 1;
    font-weight: bold;
    display: block;
}

.header-carousel .owl-nav button.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.header-carousel .owl-nav button.disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.2) !important;
}

/* Slide Number Dots - Circular Style */
.header-carousel .owl-dots {
    position: absolute;
    bottom: 40px;
    right: 60px;
    left: auto;
    transform: none;
    display: flex !important;
    align-items: center;
    gap: 12px;
    z-index: 100;
    margin: 0;
    counter-reset: slide-num;
    font-family: 'Inter', 'Roboto', sans-serif;
    pointer-events: auto !important;
}

.header-carousel .owl-dot {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    pointer-events: auto !important;
    z-index: 100;
    transform: scale(1);
}

.header-carousel .owl-dot::before {
    counter-increment: slide-num;
    content: counter(slide-num);
    transition: all 0.3s ease;
    display: block;
}

.header-carousel .owl-dot:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    transform: scale(1.05);
}

.header-carousel .owl-dot.active {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    color: #667eea;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

/* Dot pulse animation when becoming active */
@keyframes dotPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    50% {
        transform: scale(1.25);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    }
    100% {
        transform: scale(1.15);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }
}

/* Hide side banner completely */
.carousel-header-banner {
    display: none !important;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide transition effects */
.header-carousel .owl-item {
    opacity: 1 !important;
    pointer-events: none;
}

.header-carousel .owl-item.active {
    opacity: 1 !important;
    pointer-events: auto;
}

/* Force visibility of cloned items during transition */
.header-carousel .owl-item.cloned {
    opacity: 1 !important;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .header-carousel-item .carousel-content {
        padding: 0 60px;
    }

    .header-carousel-item .carousel-content h1 {
        font-size: 48px;
    }
}

@media (max-width: 1024px) {
    .header-carousel-item .carousel-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .header-carousel-item .carousel-content {
        padding: 0 30px;
    }

    .header-carousel-item .carousel-content h1 {
        font-size: 32px;
    }

    .header-carousel-item .carousel-content p {
        font-size: 16px;
    }

    .header-carousel .owl-nav {
        padding: 0 20px;
    }

    .header-carousel .owl-nav button {
        width: 40px;
        height: 40px;
    }

    .header-carousel .owl-dots {
        right: 20px;
        bottom: 20px;
    }

    .header-carousel .owl-dot {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .header-carousel-item .carousel-content h1 {
        font-size: 28px;
    }

    .header-carousel-item .carousel-content h4 {
        font-size: 12px;
    }

    .header-carousel-item .btn {
        padding: 12px 35px;
        font-size: 14px;
    }

    .header-carousel .owl-nav button {
        width: 35px;
        height: 35px;
    }

    .header-carousel .owl-nav button span,
    .header-carousel .owl-nav button .nav-arrow {
        font-size: 24px;
    }
}
