/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

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

.hero-slide[data-bg="mosque-prayer.jpg"] {
    background-image: var(--gradient-hero), url('./mosque-prayer.jpg');
}

.hero-slide[data-bg="mosque-exterior.jpg"] {
    background-image: var(--gradient-hero), url('./mosque-exterior.jpg');
}

.hero-slide[data-bg="quran-study.jpg"] {
    background-image: var(--gradient-hero), url('./quran-study.jpg');
}

.hero-slide[data-bg*="unsplash"] {
    background-image: var(--gradient-hero), var(--bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
}

.hero-text {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-text.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    opacity: 0.9;
}

.hero-title {
    font-family: 'Amiri', serif;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.95;
}

.slider-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

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

.slider-dot.active {
    background: var(--text-light);
    border-color: var(--text-light);
}

.slider-dot:hover {
    border-color: var(--text-light);
    transform: scale(1.2);
}

/* Islamic Pattern Decoration */
.islamic-pattern {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
    z-index: 1;
}

.pattern-element {
    width: 80px;
    height: 80px;
    border: 2px solid var(--text-light);
    border-radius: 50%;
    margin: 20px;
    position: relative;
    animation: rotate 20s linear infinite;
}

.pattern-element::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border: 1px solid var(--text-light);
    border-radius: 50%;
}

.pattern-element:nth-child(2) {
    animation-delay: -7s;
    transform: scale(1.2);
}

.pattern-element:nth-child(3) {
    animation-delay: -14s;
    transform: scale(0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 42px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .islamic-pattern {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-content {
        text-align: center;
    }
}