/* Modern Hero Section - Complete Redesign */

/* Hero Section Container */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

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

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Individual Slides */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 25%, #3a3a3a 50%, #2d2d2d 75%, #1a1a1a 100%);
}

.carousel-slide.active {
    opacity: 1;
}

/* Simple Overlay for Better Text Readability */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 1;
}

/* Slide Content */
.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.slide-content .container {
    max-width: 800px;
    margin: 0 auto;
}

/* Typography */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease-out 0.3s forwards;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 500;
    color: #0170B9;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease-out 0.5s forwards;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #f0f0f0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease-out 0.7s forwards;
}

/* Action Buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 1s ease-out 0.9s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #0170B9 0%, #0056b3 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(1, 112, 185, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 112, 185, 0.6);
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Navigation Buttons */
.carousel-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 10;
    pointer-events: none;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

/* Enhanced Dots */
.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: #0170B9;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.dot.active {
    background: transparent;
    border-color: #0170B9;
}

.dot.active::before {
    width: 8px;
    height: 8px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}


/* Progress Bar - Global */
.carousel-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0170B9, #00a8ff);
    width: 0%;
    transition: width 0.1s linear;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .carousel-navigation {
        padding: 0 1rem;
    }
    
    .nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 70vh;
        min-height: 450px;
    }
    
    .slide-content {
        padding: 1rem;
    }
    
    .carousel-navigation {
        display: none; /* Hide navigation arrows on mobile */
    }
    
    .carousel-dots {
        bottom: 1.5rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active::before {
        width: 6px;
        height: 6px;
    }
    
    .hero-actions {
        gap: 0.75rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 60vh;
        min-height: 400px;
    }
    
    .slide-content {
        padding: 0.75rem;
    }
    
    .hero-title {
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1rem;
    }
    
    .hero-description {
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
    }
    
    .carousel-dots {
        bottom: 1rem;
        gap: 0.5rem;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    .dot.active::before {
        width: 4px;
        height: 4px;
    }
}

/* Clean, minimal design - no decorative elements */

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .carousel-slide,
    .hero-title,
    .hero-subtitle,
    .hero-description,
    .hero-actions {
        animation: none;
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .slide-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
    
    .btn-secondary {
        border-color: #ffffff;
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Focus States for Accessibility */
.nav-btn:focus,
.dot:focus,
.btn:focus {
    outline: 3px solid #0170B9;
    outline-offset: 2px;
}

/* Loading State */
.hero-section.loading .slide-background {
    filter: blur(5px);
}

.hero-section.loading .slide-overlay {
    background: rgba(0, 0, 0, 0.8);
}
