/**
 * Hero Section – First Impression
 * Modern, animated hero with gradient background and ripple effects
 */

/* ========================================
   HERO SECTION SLIDER
======================================== */

.hero-section-slider {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    width: 100%;
}

/* Responsive height adjustments */
@media (max-width: 576px) {
    .hero-section-slider {
        min-height: 100vh;
        max-height: 100vh;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .hero-section-slider {
        min-height: 100vh;
    }
}

@media (min-width: 769px) {
    .hero-section-slider {
        min-height: 100vh;
    }
}

/* Hero Slide */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease-in-out, visibility 0s linear 1.2s;
    z-index: 1;
    /* Image quality optimization */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: opacity;
}

/* Ensure images fit properly on all devices with quality */
@media (max-width: 576px) {
    .hero-slide {
        background-size: cover;
        background-position: center center;
        min-height: 100vh;
        height: 100vh;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .hero-slide {
        background-size: cover;
        background-position: center center;
        min-height: 100vh;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-slide {
        background-size: cover;
        background-position: center center;
        min-height: 100vh;
    }
}

@media (min-width: 1025px) {
    .hero-slide {
        background-size: cover;
        background-position: center center;
        min-height: 100vh;
    }
}

/* Landscape orientation optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-slide {
        background-size: cover;
        background-position: center center;
        min-height: 100vh;
    }
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease-in-out, visibility 0s linear 0s;
    z-index: 2;
}

/* Dark Overlay - Light 10% for 90% image visibility */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Responsive overlay adjustments for all devices */
@media (max-width: 576px) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.1);
    }
}

@media (min-width: 1025px) {
    .hero-overlay {
        background: rgba(0, 0, 0, 0.1);
    }
}

/* Water Ripple Effect */
.hero-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: ripple 8s ease-in-out infinite;
}

@keyframes ripple {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.1;
    }
}

/* Pattern Overlay */
.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.03) 35px, rgba(255,255,255,.03) 70px);
    opacity: 0.5;
}

/* ========================================
   HERO CONTENT
======================================== */

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    padding: 40px 0;
}

/* Hero Headline */
.hero-headline {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 25px;
    color: #fff;
    letter-spacing: -1px;
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 0, 0, 0.7), 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Responsive headline sizes */
@media (max-width: 576px) {
    .hero-headline {
        font-size: 32px;
        text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .hero-headline {
        font-size: 42px;
        text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9), 0 0 22px rgba(0, 0, 0, 0.7);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-headline {
        font-size: 48px;
    }
}

.hero-headline .highlight {
    color: #003d82;
    position: relative;
    display: inline-block;
}

.hero-headline .highlight::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #003d82;
    animation: underlineGrow 1s ease-out 1s forwards;
    transform: scaleX(0);
    transform-origin: left;
}

@keyframes underlineGrow {
    to {
        transform: scaleX(1);
    }
}

/* Subtitle */
.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.98);
    max-width: 600px;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.9), 0 0 18px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Responsive subtitle sizes */
@media (max-width: 576px) {
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.5;
        text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.6);
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .hero-subtitle {
        font-size: 18px;
        text-shadow: 1px 1px 7px rgba(0, 0, 0, 0.9), 0 0 16px rgba(0, 0, 0, 0.6);
    }
}

/* ========================================
   CALL TO ACTION
======================================== */

.hero-cta {
    margin-bottom: 30px;
}

.btn-hero-main {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 45px;
    background: linear-gradient(135deg, #003d82 0%, #002a5c 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 61, 130, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-hero-main::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-hero-main:hover::before {
    left: 100%;
}

.btn-hero-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 61, 130, 0.5);
    color: #fff;
}

.btn-hero-main i {
    transition: transform 0.3s ease;
}

.btn-hero-main:hover i {
    transform: translateX(5px);
}

/* ========================================
   TAGLINE
======================================== */

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.tag-item i {
    color: #003d82;
    font-size: 18px;
}

.tag-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.tag-divider {
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
}

/* ========================================
   SCROLL INDICATOR
======================================== */

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 10;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 8px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

.scroll-indicator span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   SLIDER NAVIGATION
======================================== */

/* Navigation Dots */
.hero-nav-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

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

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

.hero-nav-dots .dot.active {
    background: #003d82;
    border-color: #fff;
    transform: scale(1.3);
}

/* Navigation Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow:hover {
    background: #003d82;
    border-color: #003d82;
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev {
    left: 30px;
}

.hero-arrow-next {
    right: 30px;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1200px) {
    .hero-headline {
        font-size: 56px;
    }

    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .hero-headline {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .btn-hero-main {
        padding: 18px 40px;
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
    }

    .hero-headline {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .btn-hero-main {
        padding: 16px 35px;
        font-size: 16px;
    }

    .tag-item {
        font-size: 14px;
        padding: 8px 16px;
    }

    .scroll-indicator {
        bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero-section-slider {
        min-height: 100vh;
    }

    .hero-headline {
        font-size: 32px;
        font-weight: 800;
        letter-spacing: -0.5px;
    }

    .hero-subtitle {
        font-size: 15px;
        line-height: 1.7;
    }

    .btn-hero-main {
        padding: 16px 40px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
        justify-content: center;
        margin: 0 auto;
        display: flex;
    }

    .hero-cta {
        display: flex;
        justify-content: center;
    }

    .hero-tagline {
        justify-content: center;
        gap: 10px;
    }

    .tag-item {
        font-size: 13px;
        padding: 8px 16px;
    }

    .tag-divider {
        display: none;
    }

    /* Optimize hero overlay for mobile - 10% dark */
    .hero-overlay {
        background: rgba(0, 0, 0, 0.1);
    }

    /* Better spacing */
    .hero-content-wrapper {
        padding: 30px 20px;
    }
}

/* ========================================
   ANIMATIONS
======================================== */

/* Fade up animation */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Pulse animation for CTA */
.btn-hero-main {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 61, 130, 0.4);
    }
    50% {
        box-shadow: 0 10px 40px rgba(0, 61, 130, 0.6);
    }
}
