/* ===== HERO CAROUSEL STYLES ===== */

/* Hero Section Base */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    margin-top: -80px;
}

.hero-section .carousel {
    height: 100%;
}

.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 100%;
}

/* Carousel Items */
.hero-section .carousel-item {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2C3E50 0%, #1A1A1A 100%);
}

/* Background Images */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    z-index: 1;
}

/* Content Styling */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    color: var(--white-color);
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--white-color);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    animation: fadeIn 1s ease-out 0.3s both;
    border-radius: 50px;
    padding: 15px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border: none;
    box-shadow: 0 4px 15px rgba(239, 61, 51, 0.3);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(239, 61, 51, 0.4);
}

.hero-buttons .btn-secondary {
    color: var(--white-color);
    border: 2px solid var(--white-color);
    background: transparent;
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-secondary:hover {
    background: var(--white-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
    z-index: 3;
    margin-bottom: 0;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    opacity: 1;
}

.carousel-indicators .active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--primary-color);
}

.carousel-indicators [data-bs-target]:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Navigation Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 80px;
    z-index: 3;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(239, 61, 51, 0.5);
}

/* Fade Transition Effect */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.8s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
    opacity: 1;
}

.carousel-fade .carousel-item-next,
.carousel-fade .carousel-item-prev {
    transform: none;
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pause on Hover */
.hero-section:hover .carousel {
    animation-play-state: paused;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .carousel-fade .carousel-item {
        transition: none;
    }
    
    .hero-content {
        animation: none;
    }
    
    .hero-buttons .btn {
        animation: none;
    }
    
    .carousel-indicators [data-bs-target],
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        transition: none;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets and Small Desktops */
@media (max-width: 992px) {
    .hero-buttons {
        flex-direction: column;
        max-width: 400px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 60px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    
    .hero-content h2 {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .hero-section {
        min-height: 600px;
        margin-top: -60px;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
        padding: 0 20px;
    }

    .hero-content h1 {
        padding-top: 50px;
        font-size: clamp(1.8rem, 6vw, 3rem);
        margin-bottom: 15px;
    }
    
    .hero-content h2 {
        font-size: clamp(1.1rem, 3vw, 1.6rem);
        margin-bottom: 20px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        justify-content: center;
        margin: 0 auto;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .carousel-indicators {
        bottom: 20px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }
}

/* Mobile Phones */
@media (max-width: 576px) {
    .hero-section {
        min-height: 500px;
        margin-top: -50px;
    }
    
    .hero-content {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: clamp(1.6rem, 8vw, 2.5rem);
        padding-top: 30px;
    }
    
    .hero-content h2 {
        font-size: clamp(1rem, 4vw, 1.4rem);
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

/* Very Small Devices */
@media (max-width: 320px) {
    .hero-content h1 {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .hero-content h2 {
        font-size: 0.9rem;
    }
    
    .hero-content p {
        font-size: 0.8rem;
    }
    
    .hero-buttons .btn {
        padding: 10px 15px;
        font-size: 0.8rem;
    }
}

/* ===== SPECIAL EFFECTS ===== */

/* Loading state for images */
.hero-bg {
    background-color: #2C3E50;
    background-image: linear-gradient(45deg, transparent 25%, rgba(255,255,255,.05) 25%, rgba(255,255,255,.05) 50%, transparent 50%, transparent 75%, rgba(255,255,255,.05) 75%, rgba(255,255,255,.05));
    background-size: 20px 20px;
    animation: loading 1s linear infinite;
}

@keyframes loading {
    0% { background-position: 0 0; }
    100% { background-position: 20px 20px; }
}

/* Remove loading animation when image loads */
.hero-bg[style*="url"] {
    animation: none;
    background-image: none;
}

/* Hover effects for better interaction */
.hero-section .carousel-item:hover .hero-content h1 {
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.hero-section .carousel-item:hover .hero-buttons .btn {
    transform: translateY(-2px);
}

/* Focus states for accessibility */
.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.carousel-indicators [data-bs-target]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
    
    .hero-content h1,
    .hero-content h2,
    .hero-content p {
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    }
}