.hero-section {
    background-image: url('../images/backgrounds/hero-palms-lightning.jpg');
    background-color: #1a1510;
    background-size: cover;
    background-position: center 72%;
    height: 600px;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: 90px;
    margin-left: -10px;
    margin-right: -10px;
}

/* طبقات الخلفية المتبادلة */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroFade 16s infinite;
    z-index: 0;
    transform: scale(1.02);
}

.hero-bg.bg-1 {
    background-image: url('../images/backgrounds/hero-palms-lightning.jpg');
    background-position: center 72%;
    animation-delay: 0s;
}

.hero-bg.bg-2 {
    background-image: url('../images/backgrounds/hero-palm-night.jpg');
    animation-delay: 8s;
}

@keyframes heroFade {
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    50%  { opacity: 1; }
    58%  { opacity: 0; }
    100% { opacity: 0; }
}

/* التعتيم فوق الخلفية لوضوح النص */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--white);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.primary-btn, .secondary-btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--secondary-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: var(--primary-color);
}

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

.secondary-btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-section {
        height: 500px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .primary-btn, .secondary-btn {
        width: 100%;
    }
}
