/* ===== Enhanced Hero Section Styles ===== */

/* تحسينات الخلفية والتحميل */
.hero-bg {
    /* Optimize image loading */
    content-visibility: auto;
    image-rendering: high-quality;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* تأثير التحميل - placeholder */
.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(207, 163, 160, 0.1) 0%,
        rgba(207, 163, 160, 0.05) 50%,
        rgba(207, 163, 160, 0.1) 100%
    );
    animation: shimmer 2s infinite;
    z-index: 1;
    pointer-events: none;
}

.hero-slide.active::before {
    animation: none;
}

@keyframes shimmer {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.5;
    }
}

/* تحسين الـ Overlay للنصوص */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(16, 26, 43, 0.55) 0%,
        rgba(16, 26, 43, 0.25) 45%,
        rgba(207, 163, 160, 0.18) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* تحسين النصوص في الـ Hero */
.hero-content {
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-title {
    color: #f7f2e9;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.hero-eyebrow {
    color: #cfa3a0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* تحسينات الأزرار في الـ Hero */
.hero-actions .lux-btn {
    background: linear-gradient(135deg, #101a2b 0%, rgba(16, 26, 43, 0.9) 100%);
    border: 1px solid rgba(207, 163, 160, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-actions .lux-btn:hover {
    box-shadow: 0 8px 25px rgba(207, 163, 160, 0.4);
    border-color: rgba(207, 163, 160, 0.6);
}

/* Improved dots styling */
.hero-dots {
    display: flex;
    gap: 16px;
    align-items: center;
}

.hero-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(247, 242, 233, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    box-shadow: 0 0 0 2px transparent;
}

.hero-dots .dot.active {
    background: #cfa3a0;
    border-color: #cfa3a0;
    box-shadow: 0 0 20px rgba(207, 163, 160, 0.8);
    transform: scale(1.2);
}

.hero-dots .dot:hover:not(.active) {
    border-color: rgba(207, 163, 160, 0.6);
    background: rgba(207, 163, 160, 0.3);
}

/* Controls animation */
.hero-controls {
    animation: slideUp 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0.5s backwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero-slide .hero-content {
        max-width: 90%;
    }

    .hero-title {
        font-size: 28px;
    }

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

    .hero-controls {
        bottom: 20px;
        gap: 20px;
    }

    .hero-prev,
    .hero-next {
        width: 40px;
        height: 40px;
        font-size: 12px;
    }

    .hero-dots .dot {
        width: 12px;
        height: 12px;
    }
}

/* ===== Story Section Enhancements ===== */

.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.story-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    padding: 28px;
    border-radius: 18px;
    background: var(--velvet);
    min-height: 240px;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.story-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(207, 163, 160, 0.08) 0%,
        rgba(207, 163, 160, 0) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.story-card:hover::before {
    opacity: 1;
}

.story-card:hover {
    transform: translateY(-8px);
    border-color: rgba(207, 163, 160, 0.45);
    box-shadow: 0 12px 30px rgba(207, 163, 160, 0.15);
}

.story-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(207, 163, 160, 0.12), rgba(207, 163, 160, 0.06));
    border: 1px solid rgba(207, 163, 160, 0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    z-index: 2;
}

.story-card:hover .story-icon {
    background: linear-gradient(135deg, rgba(207, 163, 160, 0.25), rgba(207, 163, 160, 0.12));
    border-color: rgba(207, 163, 160, 0.4);
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 6px 20px rgba(207, 163, 160, 0.2);
}

.story-card h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 18px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.story-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* ===== Highlight Section Improvements ===== */

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.highlight-grid > div:first-child {
    padding-inline-end: 20px;
}

.highlight-grid h2 {
    font-size: 36px;
    margin: 16px 0;
    color: var(--navy);
}

.highlight-card {
    position: relative;
    border: 1px solid var(--line);
    padding: 32px;
    border-radius: 18px;
    background: var(--velvet);
    display: grid;
    gap: 20px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.highlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(207, 163, 160, 0.1) 0%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.highlight-card:hover {
    border-color: rgba(207, 163, 160, 0.5);
    box-shadow: 0 12px 30px rgba(207, 163, 160, 0.15);
    transform: translateY(-4px);
}

.highlight-card:hover::before {
    opacity: 1;
}

.highlight-label {
    color: var(--gold);
    letter-spacing: 2px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.highlight-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 24px;
    font-weight: 600;
}

.highlight-card p {
    color: var(--muted);
    margin: 0;
}

.highlight-card .lux-btn {
    position: relative;
    z-index: 2;
}

/* Responsive improvements */
@media (max-width: 1024px) {
    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .story-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 720px) {
    .story-grid {
        grid-template-columns: 1fr;
    }

    .highlight-grid > div:first-child {
        padding-inline-end: 0;
    }

    .highlight-card {
        padding: 24px;
    }

    .highlight-card h3 {
        font-size: 20px;
    }
}