:root {
    --bg-dark: #fcf6f6;          
    --card-bg: rgba(255, 255, 255, 0.85); 
    --gold: #dc2626;             
    --gold-light: #f87171;       
    --accent-blue: #b91c1c;      
    --text-light: #0f172a;       
    --text-muted: #475569;       
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    cursor: default;
}

a, button {
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    perspective: 1200px;
}

/* مؤشر التمرير العلوي الفاخر */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-blue), var(--gold), #fca5a5);
    width: 0%;
    z-index: 9999;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
    transition: width 0.1s ease-out;
}

/* مؤشر الفأرة المخصص */
.custom-cursor {
    width: 12px;
    height: 12px;
    background-color: var(--gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease;
    box-shadow: 0 0 12px var(--gold);
    will-change: transform, left, top;
}

.cursor-follower {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.12s ease-out, width 0.3s ease, height 0.3s ease;
}

body.cursor-hover .custom-cursor {
    width: 25px;
    height: 25px;
    background-color: var(--accent-blue);
}

body.cursor-hover .cursor-follower {
    width: 65px;
    height: 65px;
    border-color: var(--gold);
    background: rgba(220, 38, 38, 0.05);
}

/* الخلفيات المضيئة والجسيمات الفاتحة */
.bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 15% 10%, rgba(220, 38, 38, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 85% 85%, rgba(248, 113, 113, 0.08) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.floating-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.25;
    animation: floatOrb 12s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
    will-change: transform;
}

.orb-1 { width: 400px; height: 400px; background: #f87171; top: 5%; right: 5%; }
.orb-2 { width: 500px; height: 500px; background: #fee2e2; bottom: 10%; left: 5%; animation-delay: -5s; }
.orb-3 { width: 300px; height: 300px; background: #fecaca; top: 40%; left: 35%; animation-delay: -2.5s; }

@keyframes floatOrb {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    100% { transform: translateY(50px) scale(1.15) rotate(15deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    z-index: 2;
}

/* هيدر زجاجي فاتح متطور */
header.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(254, 202, 202, 0.6);
    padding: 16px 0;
    transition: all 0.4s ease;
}

header.glass-header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(220, 38, 38, 0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
}

.logo-gold {
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-right: 35px;
    font-weight: 600;
    position: relative;
    transition: 0.3s;
}

.nav-link-fx::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link-fx:hover {
    color: var(--gold);
}

.nav-link-fx:hover::after {
    width: 100%;
    left: 0;
    right: auto;
}

.nav-btn {
    background: linear-gradient(135deg, var(--gold), var(--accent-blue));
    color: #ffffff !important;
    padding: 11px 28px;
    border-radius: 30px;
    font-weight: 900;
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.25);
    transition: all 0.3s ease;
}

.pulse-glow {
    animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    background: none;
    border: none;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    transform-origin: center;
}

.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* قسم Hero */
.hero {
    padding: 150px 0 120px;
    text-align: center;
    position: relative;
}

.badge-container {
    margin-bottom: 25px;
}

.badge {
    background: rgba(220, 38, 38, 0.08);
    color: var(--gold);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 8px 25px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 25px;
    color: var(--text-light);
    letter-spacing: -1px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--text-light) 10%, var(--gold) 60%, var(--accent-blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto 45px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--accent-blue));
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
}

.btn-gold:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.45);
}

.btn-outline {
    border: 2px solid rgba(220, 38, 38, 0.3);
    color: var(--text-light);
    padding: 15px 35px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(220, 38, 38, 0.05);
    transform: translateY(-4px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.7;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--gold);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--gold);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
}

.hero-scroll-indicator span {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* الميزات */
.about-section { padding: 100px 0; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 60px;
    position: relative;
    color: var(--text-light);
}

.section-title::after {
    content: '';
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--gold));
    display: block;
    margin: 12px auto 0;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid rgba(254, 202, 202, 0.7);
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card-glow-bg {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: rgba(220, 38, 38, 0.08);
    border-radius: 50%;
    filter: blur(25px);
}

.feature-card:hover {
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(220, 38, 38, 0.12);
    transform: translateY(-4px);
}

.icon-box {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(220, 38, 38, 0.08);
    border-radius: 16px;
    border: 1px solid rgba(220, 38, 38, 0.15);
    transition: 0.3s;
}

.feature-card:hover .icon-box {
    background: var(--gold);
    color: #ffffff;
}

.feature-card h3 { margin-bottom: 12px; font-size: 1.35rem; color: var(--text-light); }
.feature-card p { color: var(--text-muted); font-size: 1rem; }

.card-footer-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.feature-card:hover .card-footer-line { width: 100%; }

/* معرض المنتجات */
.products-section { padding: 100px 0; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(254, 202, 202, 0.7);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: all 0.4s ease;
}

.product-card:hover {
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.12);
}

.img-box { position: relative; height: 260px; overflow: hidden; }

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.6));
    z-index: 1;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .img-box img { transform: scale(1.1); }

.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 2;
}

.card-body { padding: 28px; }
.card-body h3 { font-size: 1.35rem; margin-bottom: 10px; color: var(--text-light); }
.card-body p { color: var(--text-muted); font-size: 0.98rem; margin-bottom: 20px; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
}

.card-link:hover { color: var(--accent-blue); }

/* قسم التواصل والنموذج */
.contact-section { padding: 100px 0; }

.glass-contact-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(252, 246, 246, 0.95));
    border: 1px solid rgba(254, 202, 202, 0.8);
    padding: 65px 30px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-box-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(220, 38, 38, 0.08);
    border-radius: 50%;
    top: -150px;
    left: -150px;
    filter: blur(50px);
    pointer-events: none;
}

.section-title.white { color: var(--text-light); }

.sub-contact {
    color: var(--gold);
    margin-bottom: 45px;
    font-size: 1.15rem;
    font-weight: 600;
}

.quote-form {
    background: #ffffff;
    border: 1px solid rgba(254, 202, 202, 0.8);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 40px;
    text-align: right;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid rgba(220, 38, 38, 0.2);
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: inherit;
    font-size: 16px;
    resize: vertical;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-submit-btn {
    width: 100%;
    margin-top: 10px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.contact-card {
    background: #ffffff;
    border: 1px solid rgba(254, 202, 202, 0.8);
    padding: 30px 20px;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s ease;
}

.contact-card:hover {
    border-color: var(--gold);
    background: rgba(220, 38, 38, 0.02);
    transform: translateY(-4px);
}

.contact-icon-wrapper {
    width: 55px;
    height: 55px;
    background: rgba(220, 38, 38, 0.08);
    color: var(--gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 18px;
    transition: 0.3s;
}

.contact-card:hover .contact-icon-wrapper {
    background: var(--gold);
    color: #ffffff;
}

.c-label {
    display: block;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.c-value {
    font-weight: 700;
    color: var(--text-light);
    font-size: 1.05rem;
    word-break: break-all;
    display: block;
    margin-bottom: 12px;
}

.copy-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(220, 38, 38, 0.06);
    padding: 5px 12px;
    border-radius: 20px;
}

.contact-card:hover .copy-hint {
    background: var(--gold);
    color: #ffffff;
}

/* مبدّل اللغة */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(220, 38, 38, 0.06);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 30px;
    padding: 4px;
    margin-right: 10px;
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.25s;
    font-family: inherit;
}

.lang-btn:hover { color: var(--gold); }
.lang-btn.active { background: var(--gold); color: #ffffff; }

html[dir="ltr"] nav a { margin-right: 0; margin-left: 35px; }
html[dir="ltr"] .lang-switch { margin-right: 0; margin-left: 10px; }
html[dir="ltr"] .quote-form { text-align: left; }

/* إشعار النسخ */
.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ffffff;
    color: var(--text-light);
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(254, 202, 202, 0.8);
    border-right: 5px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateY(120px);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show { transform: translateY(0); opacity: 1; }
.toast-notification i { color: var(--gold); font-size: 1.2rem; }

/* الفوتر */
footer {
    border-top: 1px solid rgba(254, 202, 202, 0.8);
    padding: 35px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    background: #fee2e2;
    position: relative;
    z-index: 2;
}

/* التوافق التام مع الشاشات الصغيرة */
@media (max-width: 768px) {
    * { cursor: auto !important; }
    .custom-cursor, .cursor-follower { display: none !important; }
    .container { padding: 0 15px; }
    .hero { padding: 100px 0 60px; }
    .hero h1 { font-size: 2.3rem; }
    .hero p { font-size: 1.05rem; }
    .hero-actions { flex-direction: column; gap: 12px; }
    .btn-gold, .btn-outline { width: 100%; text-align: center; justify-content: center; }
    .section-title { font-size: 2rem; margin-bottom: 35px; }
    .mobile-menu-toggle { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    .quote-form { padding: 20px; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -20px 0 50px rgba(0,0,0,0.1);
        z-index: 1001;
    }
    
    .nav-links.active { right: 0; }
    nav a { margin: 15px 0; font-size: 1.2rem; }
    .lang-switch { margin: 20px 0 0; }
}