:root {
    --primary-red: #d9272e;
    --primary-dark: #4d4d4f;
    --secondary-cyan: #00b3c9;
    --secondary-gray: #727272;
    --gold: #d4af37;
    --light-gold: #f4e6c3;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--primary-dark);
    overflow-x: hidden;
    direction: rtl;
}

/* ===== Light Background ===== */
.light-bg {
    position: relative;
    background: #f8f9fa;
}
.light-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.03;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M50 10 L55 25 L70 25 L58 35 L63 50 L50 40 L37 50 L42 35 L30 25 L45 25 Z" fill="%23d4af37"/></svg>');
    background-size: 80px 80px;
    pointer-events: none;
}

/* ===== Navbar ===== */
.navbar {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}
.navbar-brand img {
    height: 45px;
    transition: transform 0.3s ease;
}
.navbar-brand:hover img {
    transform: scale(1.05);
}
.nav-link {
    color: var(--primary-dark) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-cyan);
    transition: all 0.3s ease;
    transform: translateX(50%);
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}
.nav-link:hover {
    color: var(--secondary-cyan) !important;
}
.btn-cta {
    background: var(--secondary-cyan);
    color: #fff;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--secondary-cyan);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Cairo', sans-serif;
}
.btn-cta:hover {
    background: transparent;
    color: var(--secondary-cyan);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 179, 201, 0.3);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    width: 100%;
    margin-top: 0;
    padding-bottom: 0;
}
.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Ramadan Offer Section ===== */
.offer-section {
    background: linear-gradient(135deg, var(--primary-red) 0%, #b91f26 100%);
    color: #fff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.offer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.1) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 2px, transparent 2px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    pointer-events: none;
}

/* Hanging Lanterns */
.lantern {
    position: absolute;
    width: 60px;
    height: 80px;
    animation: swing 3s ease-in-out infinite;
    z-index: 2;
}
.lantern-1 {
    top: -25px;
    right: 0;
    animation-delay: 0s;
}
.lantern-2 {
    top: 8%;
    left: 15%;
    animation-delay: 0.5s;
}

/* Crescent Stars */
.crescent-star {
    position: absolute;
    z-index: 2;
}
.crescent-star-1 {
    top: 15%;
    left: 5%;
    font-size: 100px;
    color: rgba(255,255,255,0.1);
    animation: float 6s ease-in-out infinite;
}
.crescent-star-2 {
    bottom: 20%;
    right: 8%;
    font-size: 80px;
    color: rgba(255,255,255,0.08);
    animation: float 8s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: rotate(-5deg); }
    50%       { transform: rotate(5deg); }
}
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-20px) rotate(10deg); }
}

.offer-content {
    position: relative;
    z-index: 3;
}
.ramadan-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-weight: 700;
    font-size: 1.1rem;
    border: 2px solid rgba(255,255,255,0.3);
}
.crescent-icon {
    font-size: 1.5rem;
}
.offer-title {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.offer-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.8;
}
.discount-badge {
    display: inline-block;
    background: #fff;
    color: var(--primary-red);
    padding: 2rem 3rem;
    border-radius: 20px;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 2.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: pulse 2s infinite;
    font-family: 'Cairo', sans-serif;
}
.discount-badge::before,
.discount-badge::after {
    content: '★';
    position: absolute;
    font-size: 2rem;
    color: var(--gold);
    animation: twinkle 2s ease-in-out infinite;
}
.discount-badge::before {
    top: -15px;
    left: -15px;
}
.discount-badge::after {
    bottom: -15px;
    right: -15px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
}
@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

.offer-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
}
.offer-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
}
.offer-feature i {
    font-size: 1.5rem;
    color: var(--gold);
}
.btn-cta-white {
    background: #fff;
    color: var(--primary-red);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.2rem;
    border: 2px solid #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Cairo', sans-serif;
}
.btn-cta-white:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

/* ===== Section Styling ===== */
section {
    padding: 5rem 0;
    position: relative;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-cyan);
    border-radius: 2px;
}
.section-subtitle {
    color: var(--secondary-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    margin-top: 1rem;
}

/* ===== Benefits Cards ===== */
.benefit-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(188,190,192,0.2);
    height: 100%;
    position: relative;
    overflow: hidden;
}
.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--secondary-cyan));
}
.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,179,201,0.15);
    border-color: var(--secondary-cyan);
}
.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(217,39,46,0.1) 0%, rgba(0,179,201,0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--secondary-cyan);
    transition: all 0.3s ease;
}
.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}
.benefit-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}
.benefit-text {
    color: var(--secondary-gray);
    line-height: 1.8;
}

/* ===== Contact Form ===== */
.contact-section {
    background: #fff;
    position: relative;
    z-index: 2;
}
.contact-form {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
    border: 2px solid rgba(212,175,55,0.2);
}
.form-label {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}
.form-control,
.form-select {
    border: 2px solid rgba(188,190,192,0.3);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-cyan);
    box-shadow: 0 0 0 0.2rem rgba(0,179,201,0.15);
}
.btn-submit {
    background: var(--secondary-cyan);
    color: #fff;
    padding: 1rem 3rem;
    border: none;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 100%;
    font-family: 'Cairo', sans-serif;
}
.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,179,201,0.3);
}
.alert-success {
    border-radius: 15px;
    border: none;
    background: rgba(0,179,201,0.1);
    color: var(--primary-dark);
}

/* ===== Terms ===== */
.terms-section {
    background: #fff;
}
.terms-content {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 2.5rem;
    border: 2px solid rgba(212,175,55,0.1);
}
.terms-content ul {
    list-style: none;
    padding: 0;
}
.terms-content li {
    padding: 0.75rem 0;
    padding-right: 2rem;
    position: relative;
    border-bottom: 1px solid rgba(188,190,192,0.2);
    line-height: 1.8;
}
.terms-content li:last-child {
    border-bottom: none;
}
.terms-content li::before {
    content: '★';
    position: absolute;
    right: 0;
    color: var(--gold);
    font-size: 1.2rem;
    line-height: 1.8;
}

/* ===== Products & Services ===== */
.product-card {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(188,190,192,0.2);
    transition: all 0.3s ease;
}
.product-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.product-icon {
    font-size: 3rem;
    color: var(--secondary-cyan);
    margin-bottom: 1rem;
}
.product-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}
.product-features {
    list-style: none;
    padding: 0;
}
.product-features li {
    padding: 0.5rem 0;
    color: var(--primary-dark);
    position: relative;
    padding-right: 1.5rem;
    line-height: 1.7;
}
.product-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--secondary-cyan);
    font-weight: bold;
}

/* ===== Locations ===== */
.location-card {
    background: #fff;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}
.location-card:hover,
.location-card.active {
    border-color: var(--secondary-cyan);
    box-shadow: 0 10px 25px rgba(0,179,201,0.15);
    transform: translateX(-5px);
}
.location-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}
.location-info {
    color: var(--secondary-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}
.location-info i {
    color: var(--secondary-cyan);
    margin-left: 0.5rem;
    width: 20px;
}
#map {
    height: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== Footer ===== */
footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 3rem 0 1.5rem;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    margin: 0 0.5rem;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-links a:hover {
    background: var(--secondary-cyan);
    transform: translateY(-5px);
}

/* ===== Back to Top ===== */
#backToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-cyan);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0,179,201,0.4);
}
#backToTop.show {
    opacity: 1;
    visibility: visible;
}
#backToTop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,179,201,0.5);
}

/* ===== Loading Animation ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section {
        margin-top: 35px;
    }
    .offer-section {
        padding: 3rem 0;
    }
    .lantern {
        width: 40px;
        height: 60px;
    }
    .crescent-star-1,
    .crescent-star-2 {
        font-size: 60px;
    }
    .offer-features {
        flex-direction: column;
        gap: 1rem;
    }
    section {
        padding: 3rem 0;
    }
    .contact-form {
        padding: 2rem 1.5rem;
    }
    #map {
        height: 350px;
        margin-top: 2rem;
    }
    .location-card:hover,
    .location-card.active {
        transform: translateX(0);
    }
}
/* ===== Language Switcher ===== */
.btn-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    color: var(--primary-dark);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.88rem;
    border: 2px solid var(--primary-dark);
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.04em;
    font-family: 'Inter', 'Cairo', sans-serif;
}
.btn-lang i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}
.btn-lang:hover {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 77, 79, 0.25);
}
.btn-lang:hover i {
    transform: rotate(15deg);
}

/* ===== Navbar RTL Order Fix ===== */
@media (min-width: 992px) {
    .navbar .container {
        flex-direction: row-reverse;
    }
    /* Push logo to the far right */
    .navbar-brand.order-lg-3 {
        margin-right: 0 !important;
        margin-left: 1.5rem;
    }
}

/* Mobile: stack nicely */
@media (max-width: 991px) {
    .navbar-brand {
        margin-right: auto;
    }
    .btn-lang {
        margin-top: 0.5rem;
        width: fit-content;
    }
}