/* ==========================================================================
   متغيرات التصميم (Design Variables)
   ========================================================================== */
:root {
    --primary-color: #212660; /* أزرق داكن كحلي مستوحى من نص الشعار */
    --primary-light: #3a4185;
    --primary-dark: #12153b;
    --accent-color: #d6b054;  /* ذهبي مستوحى من الأشرطة بالشعار */
    --accent-hover: #b8923a;
    --gold-gradient: linear-gradient(135deg, #f3d78d, #d6b054, #b8923a);
    
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --text-light: #f3f4f6;
    
    --bg-main: #f9fafb;
    --bg-white: #ffffff;
    --bg-light: #f3f4f6;
    
    --transition-speed: 0.3s;
    --border-radius: 16px;
    --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   قواعد البداية (Reset/Base)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   العناوين (Typography)
   ========================================================================== */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.title-underline {
    height: 4px;
    width: 60px;
    background-color: var(--accent-color);
    margin-bottom: 40px;
    border-radius: 2px;
}

.title-underline.center {
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   الأزرار (Buttons)
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
    border: none;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(214, 176, 84, 0.4);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d6b054, #b8923a, #997825);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(214, 176, 84, 0.6);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==========================================================================
   شريط التنقل (Navbar)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 65px;
    width: auto;
    border-radius: 8px;
    mix-blend-mode: multiply; /* لجعل خلفية الشعار تندمج مع النافبار الأبيض */
}

.logo-text h1 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.nav-links ul {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.05rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
    border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* ==========================================================================
   الواجهة الرئيسية (Hero Section)
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-dark) 0%, rgba(33,38,96, 0.9) 100%), url('../images/LOGO.jpeg') center/cover no-repeat;
    background-blend-mode: multiply;
    overflow: hidden;
}

.hero-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(214, 176, 84, 0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    margin-top: 60px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
    text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* ==========================================================================
   قسم من نحن (About Section)
   ========================================================================== */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.features-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.about-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: 1px solid var(--accent-color);
    width: 100%;
    max-width: 400px;
    height: 350px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 15px 35px rgba(214,176,84,0.15);
    transform: rotate(-3deg);
    transition: transform var(--transition-speed);
}

.glass-box:hover {
    transform: rotate(0deg);
}

.glass-box i {
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.glass-box h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* ==========================================================================
   أقسام المنتجات (Product Categories Banners)
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.cat-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white;
    border-radius: var(--border-radius);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cat-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.cat-banner:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(13, 71, 161, 0.3);
}

.cat-banner:hover::before {
    opacity: 1;
}

.cat-banner i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    text-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.cat-banner h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

/* ==========================================================================
   الماركات العالمية (Brands Marquee)
   ========================================================================== */
.overflow-hidden {
    overflow: hidden;
}

.brands-marquee {
    position: relative;
    width: 100%;
    margin-top: 30px;
    background: white;
    padding: 30px 0;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.brands-marquee::before, .brands-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    z-index: 10;
}

.brands-marquee::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.brands-marquee::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.brands-track {
    display: flex;
    width: calc(150px * 14); /* 14 items */
    animation: scrollBrands 25s linear infinite;
}

.brand-item {
    width: 150px;
    height: 60px;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all var(--transition-speed);
    filter: grayscale(100%) opacity(0.6);
}

.brand-item:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

.logo-samsung { font-family: "Arial Black", sans-serif; font-weight: 900; letter-spacing: -1px; color: #1428A0; font-size: 1.4rem; }
.logo-lg { font-family: Arial, sans-serif; font-weight: 800; color: #A50034; font-size: 1.8rem; }
.logo-beko { font-family: Tahoma, sans-serif; font-weight: 800; color: #000; font-size: 1.8rem; letter-spacing: 1px; }
.logo-sharp { font-family: Impact, sans-serif; font-weight: 400; color: #E60012; font-size: 1.7rem; letter-spacing: 1px; }
.logo-toshiba { font-family: "Arial Black", sans-serif; font-weight: 900; color: #FF0000; font-size: 1.4rem; letter-spacing: 1px; }
.logo-panasonic { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 900; color: #0040A1; font-size: 1.3rem; letter-spacing: 1px; }
.logo-hisense { font-family: "Segoe UI", Arial, sans-serif; font-weight: 800; color: #00938B; font-size: 1.6rem; }

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-150px * 7)); } /* Shift by half */
}

/* ==========================================================================
   الفروع (Branches Section)
   ========================================================================== */
.branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.branch-card {
    background-color: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all var(--transition-speed);
    position: relative;
    border-bottom: 4px solid var(--bg-light);
}

.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-bottom: 4px solid var(--accent-color);
}

.branch-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(214, 176, 84, 0.15);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.branch-card:hover .branch-icon {
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.branch-city {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.branch-address {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.branch-phones {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.branch-phones a {
    background-color: var(--bg-light);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.branch-phones a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ==========================================================================
   أزرار واتس اب (WhatsApp Button)
   ========================================================================== */
.whatsapp-btn {
    background-color: #e8f5e9 !important;
    color: #2e7d32 !important;
    border-color: #2e7d32 !important;
}

.whatsapp-btn:hover {
    background-color: #25d366 !important;
    color: white !important;
    border-color: #25d366 !important;
}

/* ==========================================================================
   نموذج المراسلة (Contact Form)
   ========================================================================== */
.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-speed);
    background-color: var(--bg-main);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 71, 161, 0.1);
    background-color: white;
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   زر واتس اب العائم (Floating WhatsApp)
   ========================================================================== */
.floating-wa {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform var(--transition-speed);
}

.floating-wa:hover {
    transform: scale(1.1) translateY(-5px);
    color: white;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* ==========================================================================
   التذييل (Footer)
   ========================================================================== */
.footer {
    background-color: #12153b;
    color: var(--text-light);
    padding: 60px 0 0 0;
    border-top: 4px solid var(--accent-color);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 70px;
    border-radius: 8px;
    margin-bottom: 20px;
    background-color: white;
    padding: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-right: 5px; /* تأثير لطيف عند التمرير */
}

.footer-bottom {
    background-color: #050810;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   حركات (Animations)
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   استجابة للشاشات (Responsive Design)
   ========================================================================== */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .about-container {
        flex-direction: column;
        text-align: center;
    }
    .title-underline {
        margin-left: auto;
        margin-right: auto;
    }
    .features-list li {
        justify-content: center;
    }
}
