/* ===== HERO SECTION STYLES ===== */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* Ensure first slide is visible immediately */
.hero-slide:first-child,
.hero-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
    z-index: 2 !important;
}

/* Preload all background images with new photos */
.hero-slide:nth-child(1) {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/VISA HAJ OMARA.png') !important;
}
.hero-slide:nth-child(2) {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/VISA AMAL.png') !important;
}
.hero-slide:nth-child(3) {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/travel1679769182.png') !important;
}
.hero-slide:nth-child(4) {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/givepesporrt.jpg') !important;
}
.hero-slide:nth-child(5) {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../images/banner-small-13-min1679976141.jpg') !important;
}

/* Force first slide content to be visible */
.hero-slide:first-child .hero-content,
.hero-slide.active .hero-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero-slide:first-child .hero-title,
.hero-slide.active .hero-title {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero-slide:first-child .hero-subtitle,
.hero-slide.active .hero-subtitle {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero-slide:first-child .hero-description,
.hero-slide.active .hero-description {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero-slide:first-child .hero-buttons,
.hero-slide.active .hero-buttons {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Hero Slider Container */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 1.5s ease-in-out;
    transform: scale(1.1);
    z-index: 1;
}

/* Ensure all slides load properly */
.hero-slide[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

/* Force background images to load */
.hero-slide {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

/* Additional CSS to ensure new images work */
.hero-slides-container .hero-slide {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: all 1.5s ease-in-out;
    z-index: 2;
}

/* Ken Burns effect for active slides */
.hero-slide.active {
    animation: kenBurns 8s ease-out forwards;
}

@keyframes kenBurns {
    0% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1.05);
    }
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(30, 60, 114, 0.8) 25%,
        rgba(42, 82, 152, 0.6) 75%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s ease;
}

.hero-slide.active .hero-content {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.5s;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, #fff, #dbb365, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.hero-slide.active .hero-title {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.7s;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-slide.active .hero-subtitle {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.9s;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-slide.active .hero-description {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 1.1s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
}

.hero-slide.active .hero-buttons {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 1.3s;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(219, 179, 101, 0.4);
}

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

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

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

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(219, 179, 101, 0.6);
}

.hero-btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Animated Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(219, 179, 101, 0.2));
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-shape:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    animation-delay: 0s;
    animation-duration: 10s;
}

.hero-shape:nth-child(2) {
    width: 180px;
    height: 180px;
    top: 55%;
    right: 12%;
    animation-delay: 3s;
    animation-duration: 12s;
}

.hero-shape:nth-child(3) {
    width: 90px;
    height: 90px;
    bottom: 25%;
    left: 18%;
    animation-delay: 6s;
    animation-duration: 9s;
}

.hero-shape:nth-child(4) {
    width: 140px;
    height: 140px;
    top: 8%;
    right: 25%;
    animation-delay: 2s;
    animation-duration: 11s;
}

.hero-shape:nth-child(5) {
    width: 60px;
    height: 60px;
    top: 70%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 8s;
}

.hero-shape:nth-child(6) {
    width: 200px;
    height: 200px;
    bottom: 10%;
    right: 5%;
    animation-delay: 1s;
    animation-duration: 13s;
    opacity: 0.5;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    color: white;
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 2s;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    position: relative;
    margin: 0 auto 10px;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s infinite;
}

.scroll-text {
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
}

/* Slider Navigation */
.hero-nav {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.hero-nav-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.hero-nav-dot.active {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(219, 179, 101, 0.5);
}

.hero-nav-dot.active::before {
    width: 100%;
    height: 100%;
}

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

/* Slider Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0.8;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.15);
    opacity: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-arrow-prev {
    left: 30px;
    animation: slideInFromLeft 1s ease 2s both;
}

.hero-arrow-next {
    right: 30px;
    animation: slideInFromRight 1s ease 2s both;
}

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

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

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(10px);
    }
    60% {
        transform: translateX(-50%) translateY(5px);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-15px) rotate(90deg) scale(1.1);
        opacity: 0.9;
    }
    50% {
        transform: translateY(-30px) rotate(180deg) scale(0.9);
        opacity: 1;
    }
    75% {
        transform: translateY(-15px) rotate(270deg) scale(1.1);
        opacity: 0.8;
    }
}

/* Loading State */
.hero-section.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Progress Bar */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #fff, var(--primary-color));
    background-size: 200% 100%;
    z-index: 5;
    transform-origin: left;
    animation: progressBar 5s linear infinite;
    box-shadow: 0 0 10px rgba(219, 179, 101, 0.5);
}

@keyframes progressBar {
    0% {
        width: 0%;
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        width: 100%;
        background-position: 0% 50%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .hero-slide {
        background-attachment: scroll; /* Fix for mobile */
    }

    .hero-arrow {
        width: 40px;
        height: 40px;
    }
    
    .hero-arrow-prev {
        left: 15px;
    }
    
    .hero-arrow-next {
        right: 15px;
    }
    
    .hero-nav {
        bottom: 30px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-content {
        padding: 0 15px;
    }
}

/* Auto-slide Indicator */
.auto-slide-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 12px;
    z-index: 10;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.auto-slide-indicator:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.auto-slide-icon {
    font-size: 10px;
    animation: rotate 2s linear infinite;
}

.auto-slide-text {
    font-weight: 500;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
