* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-glow: rgba(59, 130, 246, 0.35);
    --bg-dark: #070a10;
    --card-bg: rgba(19, 27, 46, 0.65);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: #3b82f6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* دعم الاتجاهات (RTL / LTR) */
html[dir="ltr"] body {
    direction: ltr;
    text-align: left;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

/* خلفية الكانفاس المتحركة */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(1120px, 92%);
    margin: auto;
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 10, 16, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-dot {
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ==========================================
   زر الهامبرجر (Burger Menu Toggle)
   ========================================== */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* تحويل الزر إلى علامة (X) عند الفتح */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================
   تنسيق الروابط وتأثيرات المربعات الزجاجية (Glassmorphism Navbar Links)
   ========================================== */
nav a {
    position: relative;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

/* تأثير الـ Hover والـ Touch على التليفون */
nav a:hover,
nav a:focus {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25),
        inset 0 0 12px rgba(59, 130, 246, 0.15);
}

nav a:active {
    transform: translateY(0) scale(0.97);
}

/* خط الإضاءة السفلي المتحرك */
nav a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

nav a:hover::before {
    width: 80%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* أزرار التحكم في الوضع */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    border: 1px solid var(--border-color);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* المؤشر النبّاض المضيء */
.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 12px;
    border-radius: 30px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulseGlow 1.8s infinite ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.status-text {
    font-size: 11px;
    font-weight: 800;
    color: #10b981;
    letter-spacing: 0.8px;
}

.nav-button,
.primary-button {
    background: var(--primary);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.nav-button:hover,
.primary-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

/* Hero Section */
.hero {
    padding: 110px 0 100px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
}

.small-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.12);
    color: var(--primary);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 22px;
    color: #ffffff;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, #93c5fd, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text>p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 580px;
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.secondary-button {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    border-radius: 10px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.secondary-button:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Hero Card Glassmorphism Effect */
.hero-card {
    min-height: 380px;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-end;
    padding: 38px;
    transition: all 0.4s ease;
}

.hero-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px -10px rgba(59, 130, 246, 0.25);
}

.card-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--primary-glow);
    border-radius: 50%;
    filter: blur(70px);
    top: -50px;
    left: -50px;
}

.hero-card-content {
    position: relative;
    z-index: 2;
}

.card-tag {
    color: var(--primary);
    font-weight: 800;
    font-size: 14px;
}

.hero-card-content h2 {
    font-size: 34px;
    color: #ffffff;
    margin: 8px 0;
}

.hero-card-content p {
    color: var(--text-muted);
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-heading {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px;
}

.section-heading>span,
.contact-text>span {
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
}

.section-heading h2 {
    font-size: 38px;
    color: #ffffff;
    margin: 10px 0 14px;
}

.section-heading p {
    color: var(--text-muted);
}

/* Services Section - Large 2 Grid */
.services-large-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.large-service-card {
    padding: 45px 35px;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.large-service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.25);
}

.web-service::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 50%;
    filter: blur(50px);
}

.system-service::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    filter: blur(50px);
}

.card-badge {
    align-self: flex-start;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.system-service .card-badge {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

.card-icon {
    font-size: 42px;
    margin-bottom: 16px;
}

.large-service-card h3 {
    font-size: 26px;
    color: #ffffff;
    margin-bottom: 14px;
}

.large-service-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 24px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 20px;
}

.service-features li {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 600;
}

/* --- Feedback Section & Modal --- */
.feedback-section {
    padding: 90px 0;
}

.feedback-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.feedback-header-bar h2 {
    font-size: 34px;
    color: #ffffff;
    margin-bottom: 6px;
}

.feedback-header-bar p {
    color: var(--text-muted);
}

.rate-us-btn {
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    color: #ffffff;
    padding: 13px 26px;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: all 0.3s ease;
}

.rate-us-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 28px rgba(59, 130, 246, 0.5);
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 24px;
}

.feedback-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 26px;
    backdrop-filter: blur(20px);
    transition: all 0.35s ease;
    animation: fadeInUp 0.5s ease forwards;
}

.feedback-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
}

.feedback-card .stars {
    color: #f59e0b;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.feedback-card .user-name {
    font-weight: 800;
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.feedback-card .service-tag {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 14px;
    display: inline-block;
}

.feedback-card .comment {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Modal Overlay & Form */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-card {
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 35px;
    width: 90%;
    max-width: 480px;
    position: relative;
    transform: scale(0.85);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

html[dir="rtl"] .close-modal {
    left: 22px;
}

html[dir="ltr"] .close-modal {
    right: 22px;
}

.close-modal:hover {
    color: #ffffff;
}

.modal-header h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 22px;
}

/* اختيار النجوم التفاعلي */
.stars-selector {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 2.2rem;
    color: #334155;
    margin-bottom: 22px;
    cursor: pointer;
}

.stars-selector .star {
    transition: all 0.2s ease;
}

.stars-selector .star.active {
    color: #f59e0b;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.stars-selector .star:hover {
    transform: scale(1.2);
}

.input-group {
    margin-bottom: 16px;
}

html[dir="rtl"] .input-group {
    text-align: right;
}

html[dir="ltr"] .input-group {
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(7, 10, 16, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.input-group select option {
    background: #0f172a;
    color: #ffffff;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.submit-rating-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px var(--primary-glow);
    margin-top: 10px;
}

.submit-rating-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-box {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 50px;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.contact-text h2 {
    font-size: 40px;
    color: #ffffff;
    line-height: 1.2;
    margin: 10px 0 18px;
}

.contact-text>p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* كروت التواصل الإحترافية الفاخرة */
.contact-cards-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fancy-contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

html[dir="rtl"] .fancy-contact-card:hover {
    transform: translateX(-10px);
}

html[dir="ltr"] .fancy-contact-card:hover {
    transform: translateX(10px);
}

.fancy-contact-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* تأثير كارت الواتساب */
.whatsapp-card:hover {
    border-color: #25d366;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.25);
}

.whatsapp-card .card-icon-glow {
    color: #25d366;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.3);
}

/* تأثير كارت البريد */
.email-card:hover {
    border-color: #ea4335;
    box-shadow: 0 12px 30px rgba(234, 67, 53, 0.25);
}

.email-card .card-icon-glow {
    color: #ea4335;
    background: rgba(234, 67, 53, 0.12);
    border: 1px solid rgba(234, 67, 53, 0.3);
}

.card-icon-glow {
    font-size: 24px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: all 0.3s ease;
}

.card-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.card-value {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.arrow-icon {
    font-size: 16px;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

html[dir="rtl"] .fancy-contact-card:hover .arrow-icon {
    transform: translateX(-6px);
}

html[dir="ltr"] .fancy-contact-card:hover .arrow-icon {
    transform: translateX(6px);
}

.fancy-contact-card:hover .arrow-icon {
    color: #ffffff;
}

/* Form Styles */
.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--border-color);
    background: rgba(7, 10, 16, 0.8);
    color: #ffffff;
    border-radius: 10px;
    padding: 14px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.contact-form select option {
    background: #0d131f;
    color: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* تنسيق حقل الرسالة الموقوف والنشط */
.contact-form textarea:disabled {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.04);
    cursor: not-allowed;
    opacity: 0.4;
}

.contact-form textarea.active-field {
    background: rgba(7, 10, 16, 0.9);
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 0 15px var(--primary-glow);
}

.contact-form button {
    border: 0;
    cursor: pointer;
    background: var(--primary);
    color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 4px 18px var(--primary-glow);
}

.contact-form button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

/* Light Mode Overrides */
body.light-mode {
    --bg-dark: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.9);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.85);
}

body.light-mode nav a {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.06);
    color: #334155;
}

body.light-mode nav a:hover {
    color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

body.light-mode .hero h1,
body.light-mode .section-heading h2,
body.light-mode .large-service-card h3,
body.light-mode .contact-text h2,
body.light-mode .card-value,
body.light-mode .feedback-header-bar h2,
body.light-mode .feedback-card .user-name {
    color: #0f172a;
}

body.light-mode .modal-card {
    background: #ffffff;
}

body.light-mode .close-modal:hover {
    color: #0f172a;
}

body.light-mode .star-box i {
    color: #cbd5e1;
}

body.light-mode .contact-form input,
body.light-mode .contact-form select,
body.light-mode .contact-form textarea,
body.light-mode .input-group input,
body.light-mode .input-group select,
body.light-mode .input-group textarea {
    background: #f1f5f9;
    color: #0f172a;
}

body.light-mode .input-group select option {
    background: #ffffff;
    color: #0f172a;
}

/* Footer */
footer {
    background: rgba(4, 6, 10, 0.95);
    border-top: 1px solid var(--border-color);
    padding-top: 50px;
}

body.light-mode footer {
    background: #f1f5f9;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 50px;
    padding-bottom: 40px;
}

.footer-content p {
    color: var(--text-muted);
    margin-top: 8px;
    font-size: 14px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding: 24px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   تنسيقات لوحة الأدمن الخفية
   ========================================== */
.admin-link-btn {
    background: none;
    border: none;
    color: var(--text-muted, #888);
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.admin-link-btn:hover {
    opacity: 1;
    color: var(--primary, #3b82f6);
}

.admin-logout-btn {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    transition: all 0.3s ease;
}

.admin-logout-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* إخفاء زر السلة افتراضياً عن الزوار العاديين */
.delete-review-btn {
    display: none !important;
}

/* إظهار زر السلة فقط لما تسجل دخول كـ أدمن */
body.is-admin .delete-review-btn {
    display: inline-block !important;
}

/* ==========================================
   إصلاح ألوان صفحة التقييمات للوضع النهاري (Light Mode)
   ========================================== */
body.light-mode .feedback-header-bar h2 {
    color: #0f172a !important;
}

body.light-mode .feedback-header-bar p {
    color: #475569 !important;
}

body.light-mode .no-reviews-msg {
    background: rgba(241, 245, 249, 0.9) !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

body.light-mode .no-reviews-msg p {
    color: #1e293b !important;
}

body.light-mode .feedback-card {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-mode .feedback-card p {
    color: #334155 !important;
}

/* ==========================================
   تنسيق كارت الهيرو (Z-Matrix Core) في الوضع النهاري
   ========================================== */
body.light-mode .hero-card,
body.light-mode .hero-banner-card {
    background: linear-gradient(135deg, #e0f2fe 0%, #f1f5f9 100%) !important;
    border: 1px solid #bae6fd !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .hero-card h1,
body.light-mode .hero-card h2,
body.light-mode .hero-card h3,
body.light-mode .hero-card p,
body.light-mode .hero-card span,
body.light-mode .hero-banner-card h1,
body.light-mode .hero-banner-card h2,
body.light-mode .hero-banner-card h3,
body.light-mode .hero-banner-card p,
body.light-mode .hero-banner-card span {
    background: transparent !important;
    color: #0f172a !important;
}

body.light-mode .hero-card p,
body.light-mode .hero-banner-card p {
    color: #334155 !important;
}

/* ==========================================
   إعدادات الـ Canvas الخلفي والتأثيرات التفاعلية
   ========================================== */
#bgCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at 50% 20%, #0d1117 0%, #030712 100%);
    transition: background 0.4s ease;
}

/* دعم الوضع الفاتح للخلفية */
body.light-mode #bgCanvas {
    background: radial-gradient(circle at 50% 20%, #f8fafc 0%, #e2e8f0 100%);
}

/* --- لمسات توهج وانسيابية (Glow Effects) --- */
.hero-card,
.large-service-card,
.contact-box {
    position: relative;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-card:hover,
.large-service-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 20px 40px -15px rgba(59, 130, 246, 0.3);
}

/* حركة عائمة شعاعية خلف قسم الـ Hero */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    filter: blur(50px);
    z-index: -1;
    animation: pulseGlow 6s infinite alternate ease-in-out;
}

/* ==========================================
   إصلاح الاستجابة الكاملة للشاشات والموبايل (Mobile Responsiveness & Drawer)
   ========================================== */

/* ضبط ترتيب الهيدر ليكون أعلى من باقي مكونات الصفحة */
header {
    position: relative;
    z-index: 1000;
}

@media (max-width: 900px) {

    .hero-content,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .services-large-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    html,
    body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* إظهار زر الـ Burger Menu وضبط أشرطته لتبدو واضحة جداً */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 1001;
    }

    /* إصلاح لون أشرطة زر البرجر ليظهر بوضوح في الوضع الداكن */
    .menu-toggle span {
        background-color: #ffffff !important;
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
        display: block;
        width: 24px;
        height: 2px;
        margin: 3px 0;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* تغيير لون زر البرجر في الوضع الفاتح */
    body.light-mode .menu-toggle span {
        background-color: #0f172a !important;
        box-shadow: none;
    }

    /* تحويل القائمة nav إلى قائمة منسدلة عمودية مع خلفية معتمة تمنع التداخل */
    nav {
        position: fixed;
        top: 75px;
        left: 0;
        right: 0;
        background: rgba(7, 10, 16, 0.98) !important;
        /* خلفية معتمة تمنع ظهور المحتوى الخلفي */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 20px 24px !important;
        gap: 12px !important;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-15px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    /* تغيير الخلفية في الوضع الفاتح للموبايل */
    body.light-mode nav {
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    }

    /* إظهار القائمة عند تفعيل كلاس active */
    nav.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    nav a {
        padding: 12px 18px !important;
        font-size: 15px !important;
        width: 100%;
        justify-content: flex-start;
    }

    /* إعادة ضبط قسم الـ Hero والعناوين */
    .hero,
    .hero-content {
        width: 100% !important;
        padding: 30px 10px !important;
        text-align: center !important;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons button,
    .hero-buttons a {
        width: 100%;
    }

    h1,
    .hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.3 !important;
    }

    /* تحويل باقي الشبكات إلى عمود واحد */
    .services-large-grid,
    .contact-box,
    .footer-content,
    .feedback-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .hero-card,
    .large-service-card,
    .contact-box,
    .feedback-card {
        padding: 20px !important;
        width: 100% !important;
    }

    input,
    select,
    textarea {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .status-badge {
        display: none;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }

    .hero-card {
        padding: 16px !important;
    }
}