/* Hero Slider Styles with Auto-Play */
.hero {
    position: relative;
    height: 700px;
    overflow: hidden;
    margin-top: 0;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 8s ease-in-out;
}

.hero-slide.active img {
    transform: scale(1.1);
}

/* Hero Dots Navigation */
.hero-dots {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

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

.hero-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.hero-dot.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: scale(1.2);
}

.hero-dot.active::after {
    transform: scale(0.7);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.hero-dot:hover::after {
    transform: scale(0.5);
}

/* Auto-play Progress Indicator */
.hero-dot-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: white;
    border-radius: 50%;
    z-index: -1;
    transition: width 5s linear;
}

.hero-dot.active .hero-dot-progress {
    width: 100%;
    animation: progress 5s linear;
}

@keyframes progress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Hero Overlay Content */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 61, 93, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 40px;
    z-index: 3;
    pointer-events: none;
}

.hero-title {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.hero-subtitle {
    font-size: 26px;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 900px;
    line-height: 1.5;
    opacity: 0.95;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.hero-buttons {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.7s;
    pointer-events: auto;
}

.hero-btn {
    padding: 16px 35px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8b5c 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    pointer-events: auto;
}

.hero-btn:hover {
    background: linear-gradient(135deg, #ff8b5c 0%, #ff6b35 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.hero-btn-secondary {
    background: transparent;
    border: 3px solid white;
}

.hero-btn-secondary:hover {
    background: white;
    color: #083d5d;
}

/* Navigation Arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(8, 61, 93, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
}

.hero:hover .hero-nav {
    opacity: 1;
}

.hero-nav:hover {
    background: rgba(8, 61, 93, 0.9);
    border-color: white;
    transform: translateY(-50%) scale(1.1);
}

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

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

/* Auto-play Controls */
.hero-controls {
    position: absolute;
    bottom: 100px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero:hover .hero-controls {
    opacity: 1;
}

.control-btn {
    background: rgba(8, 61, 93, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
}

.control-btn:hover {
    background: rgba(8, 61, 93, 0.9);
    border-color: white;
    transform: scale(1.1);
}

.control-btn.active {
    background: rgba(255, 107, 53, 0.9);
    border-color: #ff6b35;
}

/* Slide Counter */
.slide-counter {
    color: white;
    font-size: 16px;
    font-weight: 600;
    background: rgba(8, 61, 93, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

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

@keyframes slideZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 1400px) {
    .hero {
        height: 650px;
    }
}

@media (max-width: 1200px) {
    .hero {
        height: 600px;
    }
    .hero-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

@media (max-width: 992px) {
    .hero {
        height: 550px;
    }
    .hero-nav {
        opacity: 0.7;
    }
    .hero-controls {
        opacity: 0.7;
    }
}

@media (max-width: 900px) {
    .hero {
        height: 500px;
    }
    .hero-nav {
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
    .hero-nav-prev {
        left: 20px;
    }
    .hero-nav-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 450px;
    }
    .hero-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
        opacity: 0.8;
    }
    .hero-controls {
        bottom: 90px;
        right: 20px;
        opacity: 0.8;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 400px;
    }
    .hero-nav {
        display: none;
    }
    .hero-controls {
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 350px;
    }
    .hero-dots {
        bottom: 25px;
    }
    .hero-controls {
        bottom: 70px;
        right: 15px;
    }
}

/* Pause on hover */
.hero.pause-on-hover:hover .hero-slide.active img {
    animation-play-state: paused;
}


/* Hide Pause/Play button and slide counter */
.hero-controls,
.play-pause-btn,
.slide-counter {
    display: none !important;
}


/* Hide pause/play button and slide counter */
.hero-controls {
    display: none !important;
}

.play-pause-btn,
.slide-counter {
    display: none !important;
}
