/* 🌙 SPACEGROUP MASTER RAMADAN THEME 🌙 */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

:root {
    --primary: #F02020;
    --gold: #D4AF37;
    --dark: #121212;
    --light: #FFFFFF;
    --bg-warm: #fffafa;
    --transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 0. CORE RESET */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background: var(--light);
    color: var(--dark);
    font-family: 'Tajawal', sans-serif;
    margin: 0;
    overflow-x: hidden;
    direction: rtl;
}

section {
    position: relative;
    width: 100%;
    clear: both;
}

/* 1. RAMADAN DECOR */
.ramadan-decoration-top {
    position: absolute;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.ribbon-rope {
    width: 100%; height: 10px;
    background: var(--gold);
}

.ramadan-ribbons {
    width: 100%; height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='50' viewBox='0 0 100 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0 Q 25 10 50 0 T 100 0' fill='none' stroke='%23D4AF37' stroke-width='1'/%3E%3Cpath d='M10 5 L25 35 L5 35 Z' fill='%23F02020'/%3E%3Cpath d='M40 2 L55 32 L25 32 Z' fill='%23D4AF37'/%3E%3Cpath d='M70 5 L85 35 L65 35 Z' fill='%23F02020'/%3E%3C/svg%3E");
    background-size: 150px 50px;
    background-repeat: repeat-x;
    animation: ribbonWave 20s linear infinite;
}

@keyframes ribbonWave { from { background-position-x: 0; } to { background-position-x: 150px; } }

.ramadan-lantern {
    position: absolute !important;
    width: 50px;
    z-index: 900;
    animation: lanternSwing 4s ease-in-out infinite alternate;
    transform-origin: top center;
}

.lantern-chain {
    position: absolute;
    top: -150px; left: 50%;
    width: 1.5px; height: 150px;
    background: linear-gradient(to bottom, transparent, var(--gold));
}

@keyframes lanternSwing { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

/* 2. CREATIVE HERO - SLIDER REFACTOR */
.hero-slider-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-slide {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 120px 5% 80px;
}

.hero-slide-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-slide-content {
    position: relative;
    z-index: 10;
    color: white;
}

.hero-slide-content .hero-main-title {
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: white; /* Force white for visibility on dark overlay */
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.hero-slide-content .hero-subtitle {
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Ensure Ramadan decor stays on top */
.ramadan-decoration-top, .ramadan-lantern {
    z-index: 1000 !important;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary);
    width: 30px;
    border-radius: 6px;
}

@media (max-width: 767px) {
    .hero-slide { padding-top: 100px; }
    .hero-slide-content .hero-main-title { font-size: 2.8rem; }
}

/* 3. ASYMMETRICAL OFFERS & SERVICES */
.dynamic-split-section {
    padding: 100px 0;
    background: #fff;
}

.asymmetric-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* Offers get 60%, Services 40% */
    gap: 3rem;
    align-items: center;
}

.offers-featured-panel {
    background: var(--bg-warm);
    padding: 3rem;
    border-radius: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.services-compact-panel {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Premium Mini Card */
.service-portal-card {
    background: white;
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.service-portal-card:hover {
    transform: translateX(-10px); /* Slide effect in RTL */
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(240, 32, 32, 0.08);
}

.service-portal-card i {
    width: 50px; height: 50px;
    background: #fff5f5;
    color: var(--primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* 4. REVEAL SYSTEM */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* 5. MOBILE */
@media (max-width: 1200px) {
    .hero-main-title { font-size: 3.5rem; }
    .asymmetric-grid { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    .hero-creative-split { flex-direction: column; }
    .hero-main-content { padding: 120px 5% 40px; text-align: center; align-items: center; }
    .hero-side-panel { padding: 40px 5% 80px; border-right: none; background: transparent; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
}

@media (max-width: 767px) {
    .hero-main-title { font-size: 2.5rem; }
    .offers-featured-panel { padding: 1.5rem; border-radius: 24px; }
    .ramadan-lantern { display: none; }
}
