/* ==========================================================================
   CSS Variables & Base Setup
   ========================================================================== */
:root {
    /* Color Palette */
    --primary-color: #1b2a47;      /* Navy Blue */
    --secondary-color: #ff5f00;    /* Elegant Orange */
    --accent-color: #e65100;       /* Darker Orange for hover */
    --text-color: #333;            /* Dark Grey */
    --text-light: #666;            /* Light Grey */
    --bg-color: #ffffff;           /* White */
    --bg-light: #f9f8f6;           /* Beige / Off-white */
    --white: #ffffff;
    --card-bg: #ffffff;            /* Card background color */
    
    /* Typography */
    --font-heading: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   Dark Theme Variables & Overrides
   ========================================================================== */
.dark-theme {
    --text-color: #e2e8f0;         /* Light slate text */
    --text-light: #94a3b8;         /* Soft slate text */
    --bg-color: #0b1329;           /* Deep dark background */
    --bg-light: #111a3b;           /* Slightly lighter dark background */
    --card-bg: #16224f;            /* Dark blue card background */
}

.dark-theme .about {
    background: linear-gradient(to bottom, #0b1329, #111a3b);
}

.dark-theme .section-title {
    color: var(--secondary-color);
}

.dark-theme .service-card {
    background: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark-theme .card-content h3 {
    color: var(--secondary-color);
}

.dark-theme .feature-box {
    background: var(--card-bg);
}

.dark-theme .feature-box h3 {
    color: var(--white);
}

.dark-theme .feature-box:hover {
    background: var(--bg-light);
    border-color: var(--secondary-color);
}

.dark-theme .back-btn {
    color: var(--secondary-color);
}

.dark-theme .back-btn:hover {
    color: var(--white);
}

.dark-theme .location {
    background: linear-gradient(to bottom, #0b1329, #080e20) !important;
}

.dark-theme .location-card {
    border-color: rgba(255, 95, 0, 0.1);
}

.dark-theme iframe {
    filter: invert(90%) hue-rotate(180deg) grayscale(10%);
}

/* i18n Layout Overrides */
[dir="ltr"] .nav-links a::after {
    left: 0;
    right: auto;
}
[dir="ltr"] .about-scroll-arrow {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
[dir="ltr"] .about-features i {
    margin-left: 0;
    margin-right: 8px;
}
[dir="ltr"] .about-features li {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}
[dir="ltr"] .about-features i {
    margin: 0;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    width: 100%;
    overflow-x: hidden;
    /* scroll-behavior handled by JS only to avoid auto-scroll bug */
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    /* ضمان أن الـ scroll يعمل دائماً */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

.text-white {
    color: var(--white);
}

.mb-2 { margin-bottom: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-facebook {
    background-color: #1877F2;
    color: #fff;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-facebook:hover {
    background-color: #166fe5;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.header.scrolled {
    background: rgba(27, 42, 71, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo {
    height: 50px;
    width: auto;
    border-radius: 4px;
    transition: height 0.3s ease;
}

.header.scrolled .header-logo {
    height: 40px;
}

.brand-names {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-main {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: 0.5px;
}

.brand-sub {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

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

.nav-links a {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

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

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

.header-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: bold;
    transition: var(--transition);
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}


.fb-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fb-link:hover {
    background: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 5px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 70vh;
    min-height: 450px;
    background-image: url('../assets/images/new_fabric_cover.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible; /* مهم: يضمن ظهور السهم دائماً */
}

.hero::before {
    display: none;
}

.hero-overlay {
    display: block; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Warm dark premium overlay matching the brown/beige fabric tones */
    background: linear-gradient(to right, rgba(30, 20, 10, 0.85), rgba(15, 10, 5, 0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 15px;
}

/* Magic Animated Colorful Text */
.magic-text {
    display: inline-block;
    font-size: 4.5rem;
    font-weight: 900;
    margin-top: 5px;
    /* تدرج برتقالي كروم معدني مع بريق إضاءة متحرك */
    background: linear-gradient(120deg, #ff3c00 0%, #ff7b00 30%, #ffffff 50%, #ff7b00 70%, #ff3c00 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    /* حواف سوداء شبه شفافة */
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.7);
    /* ظل ثلاثي الأبعاد مع توهج برتقالي ناعم */
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 15px rgba(255, 95, 0, 0.2));
    animation: orangeShimmer 3s linear infinite, floatText 6s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    user-select: none;
}

.magic-text:hover {
    transform: scale(1.08) translateY(-5px);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 25px rgba(255, 95, 0, 0.6));
}

@keyframes orangeShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes floatText {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes magicColors {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.subtitle-text {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}

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

.pulse-btn {
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 95, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 95, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 95, 0, 0); }
}

.scroll-down-icon {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    z-index: 10;
    animation: bounceDown 2s infinite;
    cursor: pointer;
    text-decoration: none;
    opacity: 0.8;
}

.scroll-down-icon:hover {
    color: var(--secondary-color);
    opacity: 1;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(15px) translateX(-50%);
    }
    60% {
        transform: translateY(7px) translateX(-50%);
    }
}

/* ==========================================================================
   Section Titles
   ========================================================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    position: relative;
    background: linear-gradient(to bottom, #ffffff, #fdfbf7);
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 40c0-2.2 1.8-4 4-4h20v-4H44a8 8 0 0 0-8 8v20h4V40zm0 0c0 2.2-1.8 4-4 4H16v4h20a8 8 0 0 0 8-8V16h-4v24z' fill='%23d4af37' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.about-grid {
    margin-top: 0;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 5;
}

.about-text h2 {
    text-align: right;
}
.about-text h2::after {
    margin: 10px 0 0 0;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-features {
    margin-top: 30px;
}

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

.about-features i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border-bottom: 4px solid var(--secondary-color);
}

.experience-badge span {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
}

.experience-badge strong {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

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

.stat-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary-color);
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0 !important;
}

/* سهم ذهبي داخل المنطقة البيضاء */
.about-arrow-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 5px;
    width: 100%;
    text-align: center;
    /* لضمان التوسيط في صفحات RTL */
    direction: ltr;
}

.about-scroll-arrow {
    color: var(--secondary-color);
    font-size: 2rem;
    animation: bounceDown 2s ease-in-out infinite;
    cursor: pointer;
    /* توسيط مضمون بصرف النظر عن RTL أو LTR */
    display: block;
    margin: 0 auto;
    text-align: center;
    width: 52px;
    height: 52px;
    line-height: 52px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 10;
}

.about-scroll-arrow:hover {
    color: var(--primary-color);
}

/* اللوجو في قسم من نحن */
.about-logo {
    height: 130px;
    width: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    display: block;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card .card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.gallery-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 95, 0, 0.95);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 3;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    pointer-events: none;
}

[dir="ltr"] .gallery-badge {
    right: auto;
    left: 15px;
}

.service-card:hover .gallery-badge {
    background: var(--white);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 95, 0, 0.4);
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.card-content {
    padding: 25px 20px;
    text-align: center;
}

.card-content h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.card-content p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* ==========================================================================
   Why Us Section
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-box {
    text-align: center;
    padding: 40px 30px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.feature-box:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.feature-box .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 95, 0, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: var(--transition);
}

.feature-box:hover .icon {
    background: var(--secondary-color);
    color: var(--white);
}

.feature-box h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-box p {
    color: var(--text-light);
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    /* تم إلغاء الطول الثابت لتظهر الصورة بالكامل من الأعلى للأسفل */
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(27, 42, 71, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.gallery-item:hover img {
    transform: scale(1.05); /* تقليل التكبير قليلاً حتى لا تتقص الصورة كثيراً عند اللمس */
}

.gallery-item:hover::before {
    opacity: 1;
}

/* ==========================================================================
   Location Section
   ========================================================================== */
.location {
    background: linear-gradient(to bottom, #fdfbf7, #f4f1eb);
    position: relative;
}

.location::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 40c0-2.2 1.8-4 4-4h20v-4H44a8 8 0 0 0-8 8v20h4V40zm0 0c0 2.2-1.8 4-4 4H16v4h20a8 8 0 0 0 8-8V16h-4v24z' fill='%23d4af37' fill-opacity='0.04' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.location-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(27, 42, 71, 0.12);
    overflow: hidden;
    border: 1px solid rgba(255, 95, 0, 0.2);
    position: relative;
    transition: var(--transition);
    max-width: 900px;
    margin: 0 auto;
}

.location-card:hover {
    box-shadow: 0 16px 60px rgba(27, 42, 71, 0.18);
    transform: translateY(-4px);
}

/* Decorative gold top bar */
.location-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--primary-color));
    z-index: 2;
}

.map-container {
    position: relative;
    width: 100%;
    line-height: 0;
    /* Pointer overlay makes the entire map clickable without interacting */
}

.map-container iframe {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
    filter: saturate(0.9) contrast(1.05);
}

/* Clickable overlay – directs user to Google Maps on tap/click */
.map-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    cursor: pointer;
    background: transparent;
}

.location-action {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #243655 100%);
}

.location-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 38px;
    font-size: 1.1rem;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(255, 95, 0, 0.4);
    transition: var(--transition);
}

.location-btn i {
    font-size: 1.2rem;
    animation: pinBounce 2s ease-in-out infinite;
}

@keyframes pinBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-4px); }
}

.location-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 95, 0, 0.55);
}

/* Responsive */
@media (max-width: 768px) {
    .map-container iframe {
        height: 280px;
    }

    .location-btn {
        padding: 12px 26px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .map-container iframe {
        height: 220px;
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background-color: var(--primary-color);
    background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23d4af37" fill-opacity="0.05"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    color: var(--white);
}

.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    min-width: 220px;
    transition: var(--transition);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.8);
}

.contact-card strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.contact-card a {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--secondary-color);
    letter-spacing: 1px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #111a2d; /* Darker navy */
    color: rgba(255, 255, 255, 0.6);
    padding: 30px 0;
    text-align: center;
}

.footer .brand {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 10px;
}

.footer .brand span {
    color: var(--secondary-color);
}

/* ==========================================================================
   Floating Action Buttons
   ========================================================================== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    text-decoration: none;
    transition: var(--transition);
}

.floating-btn.whatsapp {
    left: 30px;
    background-color: #25D366;
}

.floating-btn.whatsapp:hover {
    background-color: #20BA56;
    transform: scale(1.1);
}

.floating-btn.phone {
    left: 100px;
    background-color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.floating-btn.phone:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.3s; transition-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; transition-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Design - Professional Overhaul
   ========================================================================== */

/* Large screens */
@media (max-width: 1200px) {
    .container { padding: 0 25px; }
    .nav-links { gap: 18px; }
    .nav-links a { font-size: 1rem; }
}

/* Tablets */
@media (max-width: 991px) {
    .section-padding { padding: 60px 0; }

    .mobile-menu-btn { display: block !important; }

    .navbar .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(15, 22, 40, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        transition: left 0.4s ease;
        z-index: 1100;
    }

    .navbar .nav-links.active { left: 0; }
    .navbar .nav-links li { margin: 12px 0; }
    .navbar .nav-links a { font-size: 1.3rem; color: #fff; }

    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-image { display: none; }
}

/* Mobile */
@media (max-width: 768px) {
    .section-padding { padding: 50px 0; }

    .hero { height: 65vh; min-height: 380px; }
    .hero-content { padding: 0 15px; }
    .magic-text { font-size: 2rem !important; }
    .subtitle-text { font-size: 0.95rem !important; }
    .hero-buttons { gap: 12px; }
    .btn { padding: 10px 22px; font-size: 0.9rem; }

    .section-title { font-size: 1.7rem; }

    .about-grid {
        margin-top: -30px;
        padding: 25px 20px;
    }
    .about-stats { gap: 15px; margin-top: 25px; }
    .stat-num { font-size: 1.5rem; }

    .services-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }

    .footer { padding: 40px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
}

/* Small phones */
@media (max-width: 414px) {
    .header-logo { height: 42px; }
    .brand-main { font-size: 1.1rem; }
    .brand-sub { font-size: 0.72rem; letter-spacing: 1.5px; }

    .magic-text { font-size: 1.7rem !important; }
    .subtitle-text { font-size: 0.88rem !important; }
    .hero-buttons { flex-direction: column; align-items: center; width: 100%; }
    .hero-buttons .btn { width: 90%; max-width: 280px; }

    .section-title { font-size: 1.5rem; }
    .stat-num { font-size: 1.3rem; }
    .about-grid { padding: 20px 15px; }

    .services-grid { grid-template-columns: 1fr; }

    /* توسيط اللوجو على الموبايل الصغير */
    .about-text {
        text-align: center;
    }
    .about-logo {
        margin-left: auto;
        margin-right: auto;
        height: 110px;
    }
    .about-features {
        text-align: right;
    }
    .about-stats {
        justify-content: center;
    }
}

/* Overflow prevention */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
*, *::before, *::after {
    box-sizing: border-box;
    max-width: 100%;
}

/* منع تعليق الـ scroll على الموبايل */
@media (max-width: 768px) {
    .about-logo {
        display: block;
        margin: 0 auto 20px auto;
        height: 120px;
    }
    .hero-scroll-arrow {
        bottom: 15px;
        font-size: 1.6rem;
        width: 44px;
        height: 44px;
    }
    /* منع أي عنصر من حجب اللمس */
    .hero-overlay {
        pointer-events: none;
    }
}
