/* ============================================
   HERO CAROUSEL SECTION
   ============================================ */

.hero-section {
    position: relative;
    margin-top: 0;
    padding-top: 0;
}

/* Carousel Container */
.carousel {
    position: relative;
    height: 91vh;
    min-height: 600px;
    max-height: 900px;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    position: relative;
}

/* Image Wrapper & Overlay */
.carousel-image-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(47, 79, 79, 0.85) 0%,
        rgba(47, 79, 79, 0.7) 50%,
        rgba(224, 83, 12, 0.6) 100%
    );
    z-index: 1;
}

/* Caption Wrapper */
.carousel-caption-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.carousel-caption-content {
    max-width: 1200px;
    padding: 2rem;
    text-align: left;
}

/* Typography */
.carousel-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-description {
    font-size: 1.25rem;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-shadow: 1px 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

/* CTA Button */
.carousel-cta {
    margin-top: 2rem;
}

.btn-carousel-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #F19138;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.25rem 2.5rem;
    border: 2px solid #F19138;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 24px rgba(224, 83, 12, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-carousel-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-carousel-primary:hover {
    background-color: #FFFFFF;
    color: #F19138;
    border-color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(224, 83, 12, 0.4);
}

.btn-carousel-primary:hover::before {
    left: 100%;
}

.btn-carousel-primary:active {
    transform: translateY(-1px);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.btn-carousel-primary:hover .btn-icon {
    transform: translateX(5px);
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
    z-index: 3;
}

.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    width: 12px;
    border-radius: 6px;
    background-color: #F19138;
    border-color: #FFFFFF;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 80px;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 3;
}

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

.carousel-control-icon {
    width: 25px;
    height: 25px;
    background-color: rgba(224, 83, 12, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none;
    background-color: #F19138;
}

.carousel-control-icon:hover {
    background-color: rgba(224, 83, 12, 1);
    transform: scale(1.1);
}

.carousel-control-icon svg {
    color: #FFFFFF;
}

/* Slide Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.carousel-item.active .animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.carousel-item.active .animate-slide-up-delay {
    animation: slideUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.carousel-item.active .animate-fade-in {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* ============================================
   TABLET RESPONSIVE (768px - 991px)
   ============================================ */

@media (max-width: 991.98px) {
    .carousel {
        height: 80vh;
        min-height: 500px;
        max-height: 700px;
    }

    .carousel-caption-content {
        max-width: 100%;
        padding: 1.5rem;
    }

    .carousel-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .carousel-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .btn-carousel-primary {
        font-size: 1rem;
        /* padding: 0.875rem 2rem; */
    }

    .carousel-control-icon {
        width: 50px;
        height: 50px;
    }
}

/* ============================================
   MOBILE RESPONSIVE (Below 768px)
   ============================================ */

@media (max-width: 767.98px) {
    .carousel {
        height: 70vh;
        min-height: 500px;
        max-height: 600px;
    }

    .carousel-caption-wrapper {
        align-items: flex-end;
        padding-bottom: 80px;
    }

    .carousel-caption-content {
        padding: 1rem;
        text-align: center;
    }

    .carousel-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .carousel-description {
        font-size: 1rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }

    .carousel-cta {
        margin-top: 1.5rem;
    }

    .btn-carousel-primary {
        font-size: 0.95rem;
        /* padding: 0.75rem 1.5rem; */
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .carousel-indicators {
        bottom: 20px;
    }

    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 4px;
    }

    .carousel-indicators .active {
        width: 30px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
    }

    .carousel-control-icon {
        width: 40px;
        height: 40px;
    }

    .carousel-control-icon svg {
        width: 24px;
        height: 24px;
    }

    /* Reduce overlay intensity on mobile */
    .carousel-overlay {
        background: linear-gradient(
            135deg,
            rgba(47, 79, 79, 0.9) 0%,
            rgba(47, 79, 79, 0.8) 50%,
            rgba(224, 83, 12, 0.7) 100%
        );
    }
}

/* ============================================
   SMALL MOBILE (Below 576px)
   ============================================ */

@media (max-width: 575.98px) {
    .carousel {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
    }

    .carousel-title {
        font-size: 1.75rem;
    }

    .carousel-description {
        font-size: 0.95rem;
    }

    .btn-carousel-primary {
        font-size: 0.9rem;
        /* padding: 0.7rem 1.25rem; */
    }
}

/* ============================================
   LARGE SCREENS (1400px+)
   ============================================ */

@media (min-width: 1400px) {
    .carousel-caption-content {
        max-width: 1200px;
    }

    .carousel-title {
        font-size: 4rem;
    }

    .carousel-description {
        font-size: 1.35rem;
    }

    .btn-carousel-primary {
        font-size: 1.15rem;
        /* padding: 1.125rem 3rem; */
    }
}

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .carousel-item.active .animate-slide-up,
    .carousel-item.active .animate-slide-up-delay,
    .carousel-item.active .animate-fade-in {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .carousel-fade .carousel-item {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .carousel-overlay {
        background: rgba(0, 0, 0, 0.85);
    }

    .btn-carousel-primary {
        border-width: 3px;
    }
}

/* ============================================
   CALL TO ACTION (CTA) SECTION
   ============================================ */

.cta-section {
    position: relative;
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
    overflow: hidden;
}

/* Content Container */
.cta-content {
    position: relative;
    z-index: 2;
}

/* Badge/Label */
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #F19138;
    color: #FFFFFF;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(224, 83, 12, 0.2);
    animation: prime-badge 2s ease-in-out infinite;
}

.badge-icon {
    display: flex;
    align-items: center;
}

@keyframes prime-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(224, 83, 12, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(224, 83, 12, 0.3);
    }
}

/* Title */
.cta-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2F4F4F;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

/* Description */
.cta-description {
    font-size: 1.25rem;
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons Container */
.cta-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Primary CTA Button */
.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #F19138;
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.25rem 2.5rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(224, 83, 12, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(224, 83, 12, 0.4);
    color: #FFFFFF;
}

.btn-cta-primary:hover::before {
    left: 100%;
}

.btn-cta-primary:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-cta-primary:active {
    transform: translateY(-1px);
}

/* Secondary CTA Button */
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #FFFFFF;
    color: #2F4F4F;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.25rem 2.5rem;
    border: 2px solid #2F4F4F;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(47, 79, 79, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #2F4F4F;
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-cta-secondary:hover {
    color: #FFFFFF;
    border-color: #2F4F4F;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(47, 79, 79, 0.2);
}

.btn-cta-secondary:hover::before {
    width: 100%;
}

.btn-cta-secondary:hover .btn-arrow {
    transform: translateX(5px);
}

.btn-cta-secondary:active {
    transform: translateY(-1px);
}

/* Button Arrow Icon */
.btn-arrow {
    transition: transform 0.3s ease;
}

/* Trust Indicators */
.cta-trust-indicators {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(47, 79, 79, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #5a6c7d;
    font-size: 0.95rem;
    font-weight: 500;
}

.trust-icon {
    color: #F19138;
    flex-shrink: 0;
}

/* Background Decorative Elements */
.cta-bg-decoration {
    position: absolute;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.05;
}

.cta-decoration-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #F19138 0%, #ff6b2c 100%);
    top: -250px;
    left: -200px;
    filter: blur(100px);
}

.cta-decoration-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #2F4F4F 0%, #3a6363 100%);
    bottom: -200px;
    right: -150px;
    filter: blur(100px);
}

/* ============================================
   TABLET RESPONSIVE (768px - 991px)
   ============================================ */

@media (max-width: 991.98px) {
    .cta-section {
        padding: 40px 0;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .cta-description {
        font-size: 1.15rem;
        margin-bottom: 2.5rem;
    }

    .cta-buttons {
        gap: 1rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        font-size: 1rem;
        padding: 0.25rem 2rem; 
    }

    .cta-trust-indicators {
        gap: 2rem;
    }
}

/* ============================================
   MOBILE RESPONSIVE (Below 768px)
   ============================================ */

@media (max-width: 767.98px) {
    .cta-section {
        padding: 30px 0;
    }

    .cta-badge {
        font-size: 0.85rem;
        padding: 0.4rem 1.25rem;
        margin-bottom: 1.5rem;
    }

    .cta-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    .cta-description {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 350px;
        justify-content: center;
        font-size: 1rem;
        padding: 0.25rem 2rem; 
    }

    .cta-trust-indicators {
        flex-direction: column;
        gap: 1.25rem;
        padding-top: 1.5rem;
    }

    .trust-item {
        font-size: 0.9rem;
    }
}

/* ============================================
   SMALL MOBILE (Below 576px)
   ============================================ */

@media (max-width: 575.98px) {
    .cta-section {
        padding: 25px 0;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-description {
        font-size: 1rem;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        font-size: 0.95rem;
        padding: 0.25rem 2rem; 
        max-width: 100%;
    }
}

/* ============================================
   LARGE SCREENS (1400px+)
   ============================================ */

@media (min-width: 1400px) {
    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 3.5rem;
    }

    .cta-description {
        font-size: 1.35rem;
        max-width: 800px;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        font-size: 1.15rem;
        padding: 0.25rem 2rem; 
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .cta-badge {
        animation: none;
    }

    .btn-cta-primary::before,
    .btn-cta-secondary::before {
        transition: none;
    }

    .btn-cta-primary:hover,
    .btn-cta-secondary:hover {
        transform: none;
    }
}

/* Focus states for keyboard navigation */
.btn-cta-primary:focus,
.btn-cta-secondary:focus {
    outline: 3px solid #F19138;
    outline-offset: 4px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .cta-title {
        color: #000000;
    }

    .cta-description {
        color: #333333;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        border-width: 3px;
    }
}

