/* =========================================
   إعدادات عامة
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

:root {
    --bg-dark: #121212;
    --text-light: #f5f5f5;
    --accent: #c9a063;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* =========================================
   قسم الهيرو
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: brightness(0.6) contrast(1.15);
}

.ripple-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* =========================================
   التموجات
   ========================================= */
.ripple {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(201, 160, 99, 0.6);
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    animation: rippleExpand 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    box-shadow: 
        0 0 20px rgba(201, 160, 99, 0.4),
        inset 0 0 20px rgba(201, 160, 99, 0.2);
    backdrop-filter: blur(2px);
}

.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(201, 160, 99, 0.4);
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%;
    height: 30%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(201, 160, 99, 0.3);
}

@keyframes rippleExpand {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    60% { opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(18,18,18,0.92) 100%);
    z-index: 2;
    pointer-events: none;
}

/* =========================================
   شريط التنقل
   ========================================= */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: transparent;
    transition: 0.3s;
}

.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 3px;
    color: white;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.logo span {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(201, 160, 99, 0.6);
}

.cart-btn {
    text-decoration: none;
    color: white;
    border: 1px solid var(--glass-border);
    padding: 10px 20px;
    border-radius: 30px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.cart-btn:hover {
    background: var(--accent);
    color: black;
    border-color: var(--accent);
}

/* =========================================
   محتوى الهيرو
   ========================================= */
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1100px;
    width: 100%;
    padding: 0 20px;
}

/* =========================================
   SVG Masked Heading
   ========================================= */
.hero-title-wrapper {
    width: 100%;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.masked-svg {
    width: 100%;
    max-width: 1100px;
    height: auto;
    display: block;
    overflow: visible;
}

.svg-line {
    font-family: 'Cairo', sans-serif;
    font-weight: 900;
    font-size: 78px;
    fill: url(#goldGradient);
    text-rendering: geometricPrecision;
    filter: drop-shadow(0 5px 20px rgba(0,0,0,0.8));
    stroke: rgba(0, 0, 0, 0.3);
    stroke-width: 0.5px;
    paint-order: stroke fill;
    animation: breathe 4s ease-in-out infinite;
}

.highlight-svg {
    font-size: 88px;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.6)) 
            drop-shadow(0 5px 20px rgba(0,0,0,0.8));
    animation: breatheHighlight 4s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { filter: drop-shadow(0 5px 20px rgba(0,0,0,0.8)); }
    50% { filter: drop-shadow(0 5px 30px rgba(212, 175, 55, 0.3)); }
}

@keyframes breatheHighlight {
    0%, 100% { 
        filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.6)) 
                drop-shadow(0 5px 20px rgba(0,0,0,0.8)); 
    }
    50% { 
        filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.9)) 
                drop-shadow(0 5px 20px rgba(0,0,0,0.8)); 
    }
}

.mask-rect {
    transform: translateX(-100%);
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.mask-rect.revealed {
    transform: translateX(0);
}

/* =========================================
   الفقرة الوصفية
   ========================================= */
.hero-content p {
    font-size: 20px;
    color: #cccccc;
    margin-bottom: 40px;
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* =========================================
   الأزرار
   ========================================= */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary, .btn-secondary {
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    transition: 0.4s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #121212;
    box-shadow: 0 0 20px rgba(201, 160, 99, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 160, 99, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}

/* =========================================
   نافذة التواصل المنبثقة
   ========================================= */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.contact-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.contact-modal-content {
    position: relative;
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    border: 1px solid rgba(201, 160, 99, 0.3);
    border-radius: 24px;
    padding: 40px 35px;
    width: 90%;
    max-width: 480px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(201, 160, 99, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
}

.contact-modal.active .contact-modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cccccc;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--accent);
    color: #121212;
    border-color: var(--accent);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 28px;
    font-weight: 900;
    color: var(--accent);
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(201, 160, 99, 0.4);
}

.modal-subtitle {
    font-size: 15px;
    color: #999999;
    text-align: center;
    margin-bottom: 30px;
}

/* خيارات التواصل */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.contact-person::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 160, 99, 0.15), transparent);
    transition: right 0.6s ease;
}

.contact-person:hover::before {
    right: 100%;
}

.contact-person:hover {
    background: rgba(201, 160, 99, 0.08);
    border-color: rgba(201, 160, 99, 0.5);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(201, 160, 99, 0.2);
}

.person-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c9a063, #8B6914);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    color: #121212;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(201, 160, 99, 0.3);
}

.person-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: right;
    justify-content: center;
}

.person-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.whatsapp-icon {
    color: #25D366;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.1);
    border-radius: 50%;
    transition: 0.3s;
    flex-shrink: 0;
}

.contact-person:hover .whatsapp-icon {
    background: #25D366;
    color: white;
    transform: scale(1.1) rotate(-10deg);
}

/* =========================================
   التجاوب مع الجوال
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    .svg-line { font-size: 44px; }
    .highlight-svg { font-size: 50px; }
    .hero-content p { font-size: 16px; }
    .hero-buttons { flex-direction: column; }
    
    .contact-modal-content {
        padding: 30px 20px;
    }
    .modal-title { font-size: 22px; }
    .person-avatar { width: 44px; height: 44px; font-size: 18px; }
    .person-name { font-size: 18px; }
}