/* ==========================================================================
   1. المتغيرات والتجهيزات الأساسية (Variables & Reset)
   ========================================================================== */
:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --card-bg: #141414;
    --card-border: rgba(255, 204, 0, 0.1);
    --desc-color: #aaaaaa;
    --gold-primary: #ffcc00;
    --gold-hover: #e6b800;
}

body.light-theme {
    --bg-color: #f7f7f7;
    --text-color: #1a1a1a;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.1);
    --desc-color: #555555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.main-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   2. الهيدر والمنيو وزرار المود (Header, Nav & Theme Switch)
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-theme header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* لوجو أثر الذهبي المضيء */
.brand-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-primary);
    text-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
    letter-spacing: 1px;
}

.brand-text .divider {
    color: var(--text-color);
    margin: 0 10px;
}

/* منيو التنقل الوسطى لملء الفراغ */
.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: var(--desc-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* زرار توجّل الدارك واللايت مود */
.theme-toggle-btn {
    background: #222222;
    border: 2px solid var(--gold-primary);
    width: 60px;
    height: 32px;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: background 0.3s;
}

body.light-theme .theme-toggle-btn {
    background: #e0e0e0;
}

.toggle-circle {
    width: 24px;
    height: 24px;
    background: var(--gold-primary);
    border-radius: 50%;
    position: absolute;
    left: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.toggle-circle i {
    font-size: 12px;
    color: #000;
}

.sun-icon { display: none; }

body.light-theme .toggle-circle {
    transform: translateX(28px);
}

body.light-theme .moon-icon { display: none; }
body.light-theme .sun-icon { display: block; }

/* السوشيال ميديا */
.social-links a {
    color: var(--text-color);
    font-size: 20px;
    margin-left: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--gold-primary);
}

/* ==========================================================================
   3. قسم عن أثر المطور (Premium Glassmorphism About)
   ========================================================================== */
.about-section.glass-premium {
    max-width: 850px;
    margin: 40px auto;
    text-align: center;
    padding: 35px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 204, 0, 0.25);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(255, 204, 0, 0.05);
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-section.glass-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(255, 204, 0, 0.1);
}

body.light-theme .about-section.glass-premium {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.about-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 2px;
    color: var(--text-color);
}

.gold-text { 
    color: var(--gold-primary); 
}

.about-ar {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: var(--text-color);
}

.about-en {
    font-size: 14px;
    line-height: 1.6;
    color: var(--desc-color);
    font-style: italic;
}

/* ==========================================================================
   4. كروت المنتجات (Perfume Cards Section)
   ========================================================================== */
.perfume-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    padding-bottom: 60px;
}

.perfume-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    width: 320px;
    padding: 25px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    transform-style: preserve-3d;
}

.perfume-card:hover {
    border-color: var(--gold-primary);
    box-shadow: 0 15px 35px rgba(255, 204, 0, 0.1);
}

body.light-theme .perfume-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.card-img-container {
    width: 100%;
    height: 280px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #000;
}

.perfume-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.perfume-card:hover .perfume-img {
    transform: scale(1.05);
}

.perfume-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.inspired-by {
    font-size: 13px;
    color: var(--desc-color);
    margin-bottom: 15px;
    font-style: italic;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.view-btn {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.perfume-card:hover .view-btn {
    background: var(--gold-primary);
    color: #000;
}

/* ==========================================================================
   5. نافذة التفاصيل المنبثقة (Premium Modal Pop-up)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    width: 90%;
    max-width: 850px;
    border-radius: 25px;
    padding: 40px;
    position: relative;
    transform: translateY(40px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--gold-primary);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}

.modal-img-side {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
}

.modal-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-title {
    font-size: 32px;
    margin-bottom: 5px;
}

.modal-inspired {
    font-size: 14px;
    color: var(--desc-color);
    font-style: italic;
    margin-bottom: 15px;
}

.modal-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

.modal-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 25px;
    direction: rtl; /* اتجاه وصفي عربي سليم */
}

.notes-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.note-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--gold-primary);
    padding: 10px 15px;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}

body.light-theme .note-box {
    background: rgba(0, 0, 0, 0.02);
}

.note-box strong {
    color: var(--gold-primary);
}

.cta-buttons {
    display: flex;
    gap: 15px;
}

.btn-order, .btn-whatsapp {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s, transform 0.2s;
}

.btn-order {
    background: var(--gold-primary);
    color: #000;
}

.btn-order:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
}

/* ==========================================================================
   6. رذاذ وجزيئات الخلفية المتساقطة (Aromatic Particles Animation)
   ========================================================================== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(255, 204, 0, 0.25);
    border-radius: 50%;
    animation: fall linear infinite;
}

body.light-theme .particle {
    background: rgba(0, 0, 0, 0.15);
}

@keyframes fall {
    0% {
        transform: translateY(-20px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(105vh) rotate(360deg);
        opacity: 0;
    }
}

/* ==========================================================================
   7. شاشات الموبايل (Responsive Media Queries)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .nav-menu {
        order: 3; /* نزول المنيو تحت في الموبايل لترتيب شيك */
        gap: 15px;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .modal-img-side {
        height: 250px;
    }

    .modal-content {
        padding: 25px;
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
}