@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Color Palette - Modernized & Premium */
    --primary-blue: #0b4f81;
    --primary-green: #65a844;
    --dark-blue: #072d4a;
    --dark-green: #487c2f;
    
    /* Modern accents */
    --accent-gold: #d4af37;
    --accent-gold-light: #f3e5ab;
    --bg-light-blue: #f0f7fc;
    --bg-light-green: #f2f9f0;
    
    /* Neutrals */
    --bg-base: #f8fafc;
    --white: #ffffff;
    --text-dark: #0f172a;     /* Slate 900 */
    --text-medium: #334155;   /* Slate 700 */
    --text-light: #64748b;    /* Slate 500 */
    --border-color: rgba(226, 232, 240, 0.8);
    
    /* Utilities */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 10px 20px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.1);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Inter', 'Cairo', sans-serif;
    color: var(--text-medium);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.6;
}

[dir="rtl"] body {
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--dark-blue);
    margin-bottom: 0.75rem;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
    font-family: 'Cairo', sans-serif;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-base);
}

.text-center {
    text-align: center;
}

.text-green {
    color: var(--primary-green) !important;
}

.text-blue {
    color: var(--primary-blue) !important;
}

.mb-4 { margin-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.ml-2 { margin-inline-start: 0.5rem; }

/* Section Headers */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.6rem;
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
    margin-bottom: 20px;
    color: var(--dark-blue);
}

.section-title span {
    color: var(--primary-green);
    position: relative;
    background: linear-gradient(120deg, var(--primary-green) 0%, var(--dark-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-green));
    border-radius: 2px;
}

.section-header .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-text .section-title::after, .contact-info .section-title::after {
    left: 0;
    transform: translateX(0);
}

[dir="rtl"] .about-text .section-title::after, [dir="rtl"] .contact-info .section-title::after {
    left: auto;
    right: 0;
}

.section-subtitle {
    font-size: 1.15rem;
    max-width: 750px;
    margin: 0 auto;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    box-shadow: 0 10px 20px -6px rgba(11, 79, 129, 0.25);
}

.btn-primary:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px rgba(11, 79, 129, 0.35);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: var(--white);
    box-shadow: 0 10px 20px -6px rgba(101, 168, 68, 0.25);
}

.btn-secondary:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px rgba(101, 168, 68, 0.35);
}

.btn-danger {
    background: #e11d48;
    color: var(--white);
    box-shadow: 0 10px 20px -6px rgba(225, 29, 72, 0.25);
}

.btn-danger:hover {
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -8px rgba(225, 29, 72, 0.35);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navigation - Redesigned with Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 64px;
    width: auto;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
    color: var(--text-dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-blue);
}

.lang-toggle {
    background: rgba(11, 79, 129, 0.08);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.hamburger {
    display: none;
    font-size: 1.6rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 4px;
}

/* Hero Section - Redesigned with Expanding Split Layout */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding-top: 0;
    overflow: hidden;
    background-color: var(--dark-blue);
}

.hero-split-container {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-split {
    flex: 1;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: var(--transition-slow);
}

.hero-split::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 45, 74, 0.45) 0%, rgba(7, 45, 74, 0.85) 100%);
    transition: var(--transition);
    z-index: 2;
}

.left-split {
    background-image: url('hero-left.png');
}

.right-split {
    background-image: url('hero-right.png');
}

/* Interactive zoom hover for desktop */
@media (min-width: 993px) {
    .hero-split-container:has(.left-split:hover) .left-split {
        flex: 1.3;
    }
    .hero-split-container:has(.left-split:hover) .right-split {
        flex: 0.7;
    }
    .hero-split-container:has(.right-split:hover) .right-split {
        flex: 1.3;
    }
    .hero-split-container:has(.right-split:hover) .left-split {
        flex: 0.7;
    }
    
    .hero-split-container:has(.left-split:hover) .left-split::before {
        background: linear-gradient(180deg, rgba(7, 45, 74, 0.25) 0%, rgba(7, 45, 74, 0.75) 100%);
    }
    .hero-split-container:has(.right-split:hover) .right-split::before {
        background: linear-gradient(180deg, rgba(7, 45, 74, 0.25) 0%, rgba(7, 45, 74, 0.75) 100%);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(11, 79, 129, 0.2) 0%, rgba(7, 45, 74, 0.6) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 850px;
    margin: auto;
    text-align: center;
    padding: 120px 24px 60px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.6rem;
    margin-bottom: 24px;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
}

.hero-content p {
    color: rgba(248, 250, 252, 0.95);
    font-size: 1.3rem;
    margin-bottom: 44px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Trust Strip / Counter Section */
.trust-strip {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
    position: relative;
    z-index: 4;
    box-shadow: var(--shadow-sm);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.trust-item .num {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 4px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-item .lbl {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-medium);
    font-weight: 500;
    line-height: 1.7;
}

.vision-box {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 24px;
    border-inline-start: 5px solid var(--primary-green);
    margin-top: 30px;
}

.icon-box {
    font-size: 2.8rem;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.vision-box h3 {
    margin-bottom: 8px;
    font-size: 1.35rem;
}

.core-values h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-blue);
    position: relative;
    padding-bottom: 10px;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.values-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.values-list i {
    font-size: 1.6rem;
    margin-top: 3px;
}

.values-list h4 {
    margin-bottom: 4px;
    font-size: 1.15rem;
    color: var(--dark-blue);
}

.values-list p {
    margin: 0;
    font-size: 0.95rem;
}

/* Services Sections - Premium Cards Redesign */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.7);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-slow);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(11, 79, 129, 0.15);
}

.card-img {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .card-img img {
    transform: scale(1.08);
}

.card-icon {
    position: absolute;
    bottom: -24px;
    right: 24px;
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    border: 4px solid var(--white);
    z-index: 2;
    box-shadow: var(--shadow-md);
    transition: var(--transition-slow);
}

.service-card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    transform: rotateY(180deg);
}

.service-card:hover .card-icon i {
    transform: rotateY(180deg);
}

[dir="rtl"] .card-icon {
    right: auto;
    left: 24px;
}

.card-content {
    padding: 35px 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--dark-blue);
}

.card-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.55;
}

/* Why SAMKU Section - High Impact Dark Section */
.why-section {
    background-color: var(--dark-blue);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.why-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(101, 168, 68, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.why-section .section-title {
    color: var(--white);
}

.why-section .section-subtitle {
    color: rgba(248, 250, 252, 0.8);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.why-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
}

.why-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

.why-card .n {
    font-size: 1.15rem;
    color: var(--accent-gold);
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.why-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--white);
}

.why-card p {
    font-size: 0.9rem;
    color: rgba(248, 250, 252, 0.85);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Trusted By Section */
.clients-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--border-color);
}

.clients-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px 50px;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.client-logo-wrapper {
    width: 150px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
    transition: var(--transition);
    filter: grayscale(100%);
}

.client-logo-wrapper:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.client-logo-wrapper svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

.client-logo-placeholder {
    width: 100%;
    height: 100%;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    background-color: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-light);
}


/* Contact Section - High Impact Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    align-items: flex-start;
}

.contact-item .icon {
    width: 52px;
    height: 52px;
    background: rgba(11, 79, 129, 0.07);
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(11, 79, 129, 0.05);
}

.contact-item h4 {
    margin-bottom: 6px;
    font-size: 1.15rem;
    color: var(--dark-blue);
}

.contact-item p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-form-container {
    background: var(--white);
    padding: 44px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-blue);
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: var(--bg-base);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(11, 79, 129, 0.08);
}

/* Footer - Redesigned & Premium */
.footer {
    background-color: var(--dark-blue);
    color: rgba(248, 250, 252, 0.75);
    padding-top: 80px;
    position: relative;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    height: 84px;
    margin-bottom: 24px;
}

.footer-brand p {
    margin-bottom: 25px;
    max-width: 400px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links h3, .footer-vision h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h3::after, .footer-vision h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
}

[dir="rtl"] .footer-links h3::after, [dir="rtl"] .footer-vision h3::after {
    left: auto;
    right: 0;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links ul a {
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--primary-green);
    padding-inline-start: 6px;
}

.vision-badge {
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.vision-logo {
    height: 52px;
    width: auto;
}

.vision-badge p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.4;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.88rem;
    color: rgba(248, 250, 252, 0.5);
}

.footer-bottom a {
    color: var(--primary-green);
    font-weight: 600;
}

.footer-bottom a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[dir="rtl"] .fade-in-left {
    transform: translateX(40px);
}

[dir="rtl"] .fade-in-right {
    transform: translateX(-40px);
}

.fade-in-up.visible, .fade-in-left.visible, .fade-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: var(--white);
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: var(--white);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-container {
        height: 80px;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .services-grid {
        grid-template-columns: 1fr;
    }
    .logo {
        height: 52px;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        padding-top: 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 25px;
        box-shadow: inset 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    [dir="rtl"] .nav-links {
        left: auto;
        right: -100%;
    }
    
    [dir="rtl"] .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero {
        flex-direction: column;
    }
    
    .hero-split-container {
        flex-direction: column;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
    
    [dir="rtl"] .whatsapp-float {
        right: auto;
        left: 20px;
    }
}

/* ==========================================================================
   IMAGE CUSTOMIZER SYSTEM STYLES
   ========================================================================== */
.edit-mode-btn i {
    margin-right: 6px;
    transition: transform 0.3s ease;
}

.edit-mode-active .edit-mode-btn {
    background-color: var(--primary-green) !important;
    color: var(--white) !important;
    border-radius: 4px;
    font-weight: 700;
}

.edit-mode-active .edit-mode-btn i {
    transform: rotate(45deg);
    color: var(--white);
}

/* Edit Mode Overlay on Cards */
.edit-mode-active .service-card .card-img {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.edit-mode-active .service-card .card-img::after {
    content: '\f304 \00a0 Edit Image';
    font-family: 'Font Awesome 6 Free', sans-serif;
    font-weight: 900;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 79, 129, 0.75);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    backdrop-filter: blur(2px);
}

[dir="rtl"] .edit-mode-active .service-card .card-img::after {
    content: '\f304 \00a0 تعديل الصورة';
}

.edit-mode-active .service-card:hover .card-img::after {
    opacity: 1;
}

/* Customizer Modal Overlay & Layout */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--white);
    border-radius: 12px;
    width: 92%;
    max-width: 820px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: scale(1);
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    color: var(--dark-blue);
}

.modal-close-icon {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
    transition: var(--transition);
}

.modal-close-icon:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 24px;
    overflow-y: auto;
}

@media (max-width: 768px) {

    .services-grid {
        grid-template-columns: 1fr;
    }
    .modal-body {
        grid-template-columns: 1fr;
    }
}

/* Modal Left Section (Preview & Drag Drop) */
.customizer-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    background: var(--light-gray);
}

.preview-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 10;
    text-transform: uppercase;
}

[dir="rtl"] .preview-tag {
    left: auto;
    right: 10px;
}

.image-preview-container {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.image-preview-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.1s, transform 0.1s;
}

.image-source-options {
    background: var(--light-gray);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 8px;
    padding: 16px;
}

.control-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.drag-drop-zone {
    border: 2px dashed rgba(11, 79, 129, 0.2);
    background: var(--white);
    border-radius: 6px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.drag-drop-zone:hover, .drag-drop-zone.dragover {
    border-color: var(--primary-blue);
    background: rgba(11, 79, 129, 0.03);
}

.drag-drop-zone p {
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* Modal Right Section (Presets & Sliders) */
.customizer-right {
    display: flex;
    flex-direction: column;
}

.preset-btn {
    transition: var(--transition);
    color: var(--text-light);
}

.preset-btn:hover {
    border-color: var(--primary-blue) !important;
    color: var(--primary-blue);
}

.preset-btn.active {
    background-color: var(--primary-blue) !important;
    border-color: var(--primary-blue) !important;
    color: var(--white) !important;
}

/* Custom Slider Styles */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
    outline: none;
    margin: 8px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

/* RTL Adjustments */
[dir="rtl"] .modal-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-footer div {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
}

[dir="rtl"] .slider-header {
    flex-direction: row-reverse;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-toggle i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-item {
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--primary-blue);
    color: white;
    padding-left: 25px;
}

[dir="rtl"] .dropdown-item:hover {
    padding-left: 20px;
    padding-right: 25px;
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .services-grid {
        grid-template-columns: 1fr;
    }
    .nav-dropdown {
        display: block;
        width: 100%;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        display: none;
    }
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        display: flex;
    }
}


/* Brand Name in Header */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-name {
    display: flex;
    flex-direction: column;
    color: var(--dark-blue);
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    font-family: 'Maiandra GD', sans-serif;
}
.brand-name span {
    font-size: 0.9rem;
    font-weight: bold;
    font-style: italic;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
    text-transform: capitalize;
    font-family: 'Maiandra GD', sans-serif;
}
@media (max-width: 768px) {
    .brand-name {
        display: none; /* Hide text on very small screens to save space */
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 30px;
}

.scroll-to-top.show {
    outline: none;
    margin: 8px 0;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-blue);
    cursor: pointer;
    transition: transform 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

/* RTL Adjustments */
[dir="rtl"] .modal-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .modal-footer div {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
}

[dir="rtl"] .slider-header {
    flex-direction: row-reverse;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-toggle i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-item {
    padding: 12px 20px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: var(--primary-blue);
    color: white;
    padding-left: 25px;
}

[dir="rtl"] .dropdown-item:hover {
    padding-left: 20px;
    padding-right: 25px;
}

/* Mobile adjustments */
@media (max-width: 768px) {

    .services-grid {
        grid-template-columns: 1fr;
    }
    .nav-dropdown {
        display: block;
        width: 100%;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f8fafc;
        display: none;
    }
    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        display: flex;
    }
}


/* Brand Name in Header */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}
.brand-name {
    display: flex;
    flex-direction: column;
    color: var(--dark-blue);
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
    font-family: 'Maiandra GD', sans-serif;
}
.brand-name span {
    font-size: 0.9rem;
    font-weight: bold;
    font-style: italic;
    color: var(--primary-blue);
    letter-spacing: 0.5px;
    text-transform: capitalize;
    font-family: 'Maiandra GD', sans-serif;
}
@media (max-width: 768px) {
    .brand-name {
        display: none; /* Hide text on very small screens to save space */
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 30px;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover, .scroll-to-top:focus {
    background-color: var(--dark-blue);
    color: var(--accent-gold);
    transform: translateY(-5px);
}

/* Custom Chatbot Styles */
.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 9999;
}

[dir="rtl"] .chatbot-toggler {
    left: auto;
    right: 30px;
}

.chatbot-toggler:hover {
    transform: scale(1.1);
    background-color: var(--dark-green);
}

.chatbot-window {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 350px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 9999;
    border: 1px solid var(--border-color);
}

[dir="rtl"] .chatbot-window {
    left: auto;
    right: 30px;
}

.chatbot-window.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chatbot-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-header h3::before {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

.close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.chatbot-body {
    padding: 20px;
    height: 350px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-color: #f8fafc;
}

.chatbot-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.chatbot-message.bot {
    background: var(--white);
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.chatbot-message.user {
    background: var(--primary-blue);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-faq {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.faq-btn {
    background: var(--white);
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

[dir="rtl"] .faq-btn {
    text-align: right;
}

.faq-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
}

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

@media (max-width: 400px) {
    .chatbot-window {
        width: calc(100% - 40px);
        left: 20px;
        bottom: 90px;
    }
    
    [dir="rtl"] .chatbot-window {
        right: 20px;
        left: 20px;
    }
}

/* Chatbot Form Styles */
.chatbot-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    animation: fadeIn 0.3s ease;
}

.chatbot-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: var(--transition);
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(11, 79, 129, 0.1);
}

.chatbot-submit {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-submit:hover {
    background-color: var(--dark-blue);
}

.chatbot-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.chatbot-download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f0f7fc;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 8px;
    border: 1px solid rgba(11, 79, 129, 0.1);
    transition: var(--transition);
}

.chatbot-download-link:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

/* Project Cards */
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg) !important;
}
