﻿/* ----- modern reset & design tokens ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-red: #c61d23;
    --brand-dark: #8b1317;
    --soft-gray: #f8f9fa;
    --card-shadow: 0 20px 35px -8px rgba(0,0,0,0.07), 0 10px 15px -6px rgba(0,0,0,0.03);
    --hover-lift: translateY(-12px) scale(1.02);
    --transition-slow: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background-color: var(--soft-gray);
    color: #1a1e24;
    line-height: 1.5;
    scroll-behavior: smooth;
    overflow-x: hidden;
    transition: background-color 0.3s;
    padding-top: 80px; /* avoid fixed nav overlap */
}

    /* Arabic font adjustment */
    body[dir="rtl"] {
        font-family: 'Cairo', 'Inter', 'Segoe UI', sans-serif;
    }

@supports (font-variation-settings: normal) {
    body {
        font-family: 'Inter var', 'Inter', sans-serif;
    }

        body[dir="rtl"] {
            font-family: 'Cairo', 'Inter var', 'Inter', sans-serif;
        }
}

/* ----- language selector (adjusted for mobile) ----- */
.lang-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,0.12));
    animation: langPop 0.7s var(--transition-bounce) forwards;
}

@keyframes langPop {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }

    80% {
        transform: scale(1.05) translateY(2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.lang-toggle {
    background: white;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--brand-dark);
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(198,29,35,0.25), 0 0 0 1.5px rgba(255,255,255,0.8) inset;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(198,29,35,0.3);
    transition: all 0.3s var(--transition-bounce);
    letter-spacing: 0.5px;
}

    .lang-toggle:hover {
        transform: scale(1.08) translateY(-3px);
        box-shadow: 0 18px 30px rgba(198,29,35,0.35);
        background: white;
    }

    .lang-toggle:active {
        transform: scale(0.96);
    }

.lang-icon {
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.4s ease;
}

.lang-toggle:hover .lang-icon {
    transform: rotate(12deg);
}

.lang-text {
    text-transform: uppercase;
    background: var(--brand-red);
    color: white;
    padding: 4px 10px;
    border-radius: 40px;
    font-size: 0.8rem;
    transition: 0.2s;
}

/* ----- MOBILE-RESPONSIVE NAV with BURGER ----- */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1200;
    position: fixed;
    top: 24px;
    left: 24px;
    background: transparent;
    border: none;
    padding: 0;
}

    .burger span {
        width: 100%;
        height: 3px;
        background: var(--brand-dark);
        border-radius: 6px;
        transition: all 0.3s ease;
        transform-origin: left;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(3px, -3px);
        background: var(--brand-red);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(5px);
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(3px, 3px);
        background: var(--brand-red);
    }

/* main navigation – desktop style (horizontal) */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 60px;
    padding: 12px 28px;
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255,255,255,0.6) inset;
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.5);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    animation: navGlide 0.8s var(--transition-bounce) forwards;
    transition: 0.3s;
}

@keyframes navGlide {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

nav a {
    padding: 8px 20px;
    text-decoration: none;
    color: #1e1e2f;
    font-weight: 550;
    font-size: 0.9rem;
    border-radius: 40px;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    white-space: nowrap;
    background: transparent;
}

    nav a:hover {
        background: var(--brand-red);
        color: white;
        box-shadow: 0 8px 18px -6px rgba(198,29,35,0.5);
        transform: scale(1.05);
    }

body[dir="rtl"] nav a {
    letter-spacing: 0;
    font-family: 'Cairo', sans-serif;
}

/* ----- mobile styles: burger + vertical menu ----- */
@media (max-width: 800px) {
    .burger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 70px;
        left: 20px;
        transform: none;
        width: 240px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        border-radius: 32px;
        padding: 20px 12px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
        border: 1px solid rgba(198,29,35,0.15);
        transition: opacity 0.3s var(--transition-bounce), visibility 0.3s, transform 0.3s;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        left: 20px;
    }

        nav.open {
            opacity: 1;
            visibility: visible;
            pointer-events: all;
            transform: translateY(0);
            margin-left: 100px !important;
        }

        nav a {
            width: 100%;
            text-align: left;
            padding: 12px 20px;
            font-size: 1rem;
            border-radius: 40px;
        }

    body[dir="rtl"] nav {
        left: auto;
        right: 20px;
        align-items: flex-end;
    }

        body[dir="rtl"] nav a {
            text-align: right;
        }

    .lang-wrapper {
        top: 16px;
        right: 16px;
    }

    .lang-toggle {
        padding: 8px 14px;
    }
}

/* adjust for very small */
@media (max-width: 480px) {
    nav {
        width: 200px;
        left: 12px;
    }

    body[dir="rtl"] nav {
        right: 12px;
        left: auto;
    }
}

/* ----- rest of your existing styles (unchanged but keep them) ----- */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    scroll-margin-top: 100px;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.9s var(--transition-slow), transform 0.9s var(--transition-slow);
    will-change: opacity, transform;
}

    .fade-in.appear {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

.profile-section {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 45px auto;
    background: white;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.4s, transform 0.4s;
    border: 1px solid rgba(255,255,255,0.5);
}

    .profile-section:hover {
        box-shadow: 0 30px 50px -18px rgba(198,29,35,0.15);
    }

.profile-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
    object-fit: cover;
}

.profile-section:hover .profile-image {
    transform: scale(1.02);
}

#product-list {
    margin: 90px auto 70px;
    text-align: center;
}

.section-header {
    color: var(--brand-dark);
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    text-transform: uppercase;
    background: linear-gradient(145deg, var(--brand-red), #a3151a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

body[dir="rtl"] .section-header {
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Cairo', sans-serif;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 25%;
    width: 50%;
    height: 4px;
    background: var(--brand-red);
    border-radius: 4px;
    transform: scaleX(0);
    transition: transform 0.5s var(--transition-bounce);
}

.section-header.appear::after {
    transform: scaleX(1);
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 28px;
    margin-top: 50px;
}

.gallery-item {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 15px 30px -12px rgba(0,0,0,0.1);
    transition: all 0.35s var(--transition-bounce);
    border: 1px solid rgba(0,0,0,0.02);
    transform: translateY(0);
}

    .gallery-item:hover {
        transform: var(--hover-lift);
        box-shadow: 0 30px 50px -20px rgba(198,29,35,0.25);
    }

    .gallery-item img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
        transition: transform 0.7s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.06);
    }

footer {
    background: #121212;
    color: #ddd;
    text-align: center;
    padding: 70px 30px 50px;
    margin-top: 80px;
    clip-path: polygon(0 8%, 100% 0, 100% 100%, 0 100%);
    border-top: 4px solid var(--brand-red);
}

    footer h2 {
        font-size: 3.5rem;
        font-weight: 800;
        letter-spacing: 4px;
        color: var(--brand-red);
        text-shadow: 0 0 15px rgba(198,29,35,0.4);
    }

body[dir="rtl"] footer h2 {
    letter-spacing: 0;
}

footer p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 500px;
    margin: 16px auto;
}

.footer-ar {
    font-size: 1.5rem;
    font-weight: 300;
    color: #bbb;
    direction: rtl;
}

.en-only, .ar-only {
    transition: opacity 0.25s;
}

body[dir="ltr"] .ar-only {
    display: none;
}

body[dir="rtl"] .en-only {
    display: none;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}

.profile-section {
    position: relative;
}

    .profile-section:hover::before {
        opacity: 1;
    }

h1 {
    display: none;
}

@media (max-width: 800px) {
    .section-header {
        font-size: 2.5rem;
    }

    .product-gallery {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .profile-section {
        border-radius: 24px;
    }
}

.whatsapp-fixed {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    z-index: 1000;
    background: var(--brand-red);
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(198,29,35,0.5), 0 0 0 2px white inset;
    transition: all 0.25s var(--transition-bounce);
}

    .whatsapp-fixed a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        background-color: #25D366;
        border-radius: 50%;
        text-decoration: none;
        box-shadow: 0 10px 25px rgba(198,29,35,0.5), 0 0 0 2px white inset;
        transition: all 0.25s var(--transition-bounce);
    }

    .whatsapp-fixed:hover {
        background: #25D366;
        transform: scale(1.12) translateY(-5px);
        box-shadow: 0 18px 30px rgba(198,29,35,0.6);
        */
    }

    .whatsapp-fixed:active {
        transform: scale(0.94);
    }



/* ---------- SCROLL UP BUTTON (bottom, as requested) ---------- */
.scrollup {
    position: fixed;
    bottom: 20px;
    left: 15px;
    z-index: 1000;
    background: var(--brand-red);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(198,29,35,0.5), 0 0 0 2px white inset;
    transition: all 0.25s var(--transition-bounce);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    border: none;
    cursor: pointer;
}

    .scrollup.visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .scrollup:hover {
        background: #a3151a;
        transform: scale(1.12) translateY(-5px);
        box-shadow: 0 18px 30px rgba(198,29,35,0.6);
    }

    .scrollup:active {
        transform: scale(0.94);
    }

/* RTL support: mirror icon? not needed, arrow is universal */
/* body[dir="rtl"] .scrollup {
            right: auto;
            left: 20px;
        }*/

/* adjust bottom for whatsapp, so they don't overlap too tightly */
@media (max-width: 600px) {
    .scrollup {
        bottom: 20px;
        width: 44px;
        height: 44px;
        font-size: 24px;
        right: 15px;
    }
    /*  body[dir="rtl"] .scrollup {
                right: auto;
                left: 15px;
            }*/
    .whatsapp-fixed {
        bottom: 20px;
        right: 15px;
    }

    .phone {
        bottom: 20px;
        right: 15px;
    }

    body[dir="rtl"] .whatsapp-fixed {
        right: auto;
        left: 15px;
    }

    body[dir="rtl"] .phone {
        right: auto;
        left: 15px;
    }
}


/* ---------- phone UP BUTTON (bottom, as requested) ---------- */


.phone {
    position: fixed;
    bottom: 95px;
    right: 15px;
    z-index: 1000;
    z-index: 1000;
    background: var(--brand-red);
    color: white !important;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(198,29,35,0.5), 0 0 0 2px white inset;
    transition: all 0.25s var(--transition-bounce);
}

    .phone:hover {
        background: #a3151a;
        transform: scale(1.12) translateY(-5px);
        box-shadow: 0 18px 30px rgba(198,29,35,0.6);
    }

    .phone:active {
        transform: scale(0.94);
    }
