/* ===================================
   PROGLYST - WEBSITE STYLES
   Colors:
   - Deep Navy #103351 (Primary/Background)
   - Electric Cyan #00D1C1 (CTA/Interactive)
   - Steel Blue #2C3E50 (Secondary)
   - Cloud White #F8F9FA (Light backgrounds)
=================================== */

/* ===================================
   GLOBAL STYLES & RESET
=================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --deep-navy: #103351;
    --electric-cyan: #00D1C1;
    --steel-blue: #2C3E50;
    --cloud-white: #F8F9FA;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--deep-navy) 0%, var(--steel-blue) 100%);
    --gradient-accent: linear-gradient(135deg, var(--electric-cyan) 0%, #00B8AA 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(16, 51, 81, 0.08);
    --shadow-md: 0 4px 16px rgba(16, 51, 81, 0.12);
    --shadow-lg: 0 8px 32px rgba(16, 51, 81, 0.16);
    --shadow-xl: 0 16px 48px rgba(16, 51, 81, 0.24);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Almarai', 'Inter', sans-serif;
    background-color: var(--cloud-white);
    color: var(--deep-navy);
    line-height: 1.6;
    overflow-x: hidden;
}

body[dir="ltr"] {
    font-family: 'Inter', 'Almarai', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

body[dir="ltr"] h1,
body[dir="ltr"] h2,
body[dir="ltr"] h3,
body[dir="ltr"] h4,
body[dir="ltr"] h5,
body[dir="ltr"] h6 {
    font-family: 'Montserrat', 'Cairo', sans-serif;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section */
.section {
    padding: var(--spacing-xl) 0;
}

/* ===================================
   LOADING SCREEN
=================================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--deep-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 209, 193, 0.2);
    border-top: 4px solid var(--electric-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================
   LANGUAGE TOGGLE
=================================== */
.lang-toggle {
    position: fixed;
    top: 100px;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition-normal);
    font-weight: 600;
    color: var(--deep-navy);
}

body[dir="ltr"] .lang-toggle {
    left: auto;
    right: 2rem;
}

.lang-toggle:hover {
    background: var(--electric-cyan);
    color: var(--white);
    transform: scale(1.1);
}

/* ===================================
   NAVIGATION
=================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    z-index: 999;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.navbar.scrolled {
    background: rgba(16, 51, 81, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar.scrolled .nav-link,
.navbar.scrolled .logo {
    color: var(--white);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--deep-navy);
    transition: var(--transition-normal);
    height: 70px; 
    display: flex;
    align-items: center;
}

.logo img {
    height: 100%;
    width: auto;
    transition: var(--transition-normal);
    object-fit: contain;
}

.logo .logo-dark {
    display: block;
}

.logo .logo-light {
    display: none;
}

.navbar.scrolled .logo .logo-dark {
    display: none;
}

.navbar.scrolled .logo .logo-light {
    display: block;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--deep-navy);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--electric-cyan);
    transition: var(--transition-normal);
}

body[dir="ltr"] .nav-link::after {
    right: auto;
    left: 0;
}

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

.nav-link:hover {
    color: var(--electric-cyan);
}

.navbar.scrolled .nav-link:hover {
    color: var(--electric-cyan);
}

.nav-cta {
    display: flex;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--deep-navy);
    transition: var(--transition-normal);
}

.navbar.scrolled .mobile-menu-toggle span {
    background: var(--white);
}

/* ===================================
   BUTTONS
=================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
    transform: translate(-50%, -50%);
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--electric-cyan);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 209, 193, 0.3);
}

.btn-primary:hover {
    background: #00B8AA;
    box-shadow: 0 6px 24px rgba(0, 209, 193, 0.4);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--electric-cyan);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

/* ===================================
   HERO SECTION
=================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    background: var(--gradient-primary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-visual {
    animation: fadeInUp 0.8s ease 0.3s both;
}

.code-window {
    background: var(--steel-blue);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.code-header {
    background: #1a252f;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.code-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.code-header span:nth-child(2) {
    background: #ffbd2e;
}

.code-header span:nth-child(3) {
    background: #27c93f;
}

.code-content {
    padding: 1.5rem;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    direction: ltr;
    text-align: left;
}

.code-content code {
    color: var(--cloud-white);
}

.code-keyword { color: #c678dd; }
.code-variable { color: #e06c75; }
.code-function { color: #c678dd; }
.code-method { color: #61afef; }
.code-property { color: #d19a66; }
.code-boolean { color: #56b6c2; }
.code-string { color: #98c379; }
.code-comment { color: #5c6370; font-style: italic; }

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.875rem;
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===================================
   SECTION HEADERS
=================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--deep-navy);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--steel-blue);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   ABOUT SECTION
=================================== */
.about {
    background: var(--white);
}

.about-content {
    display: grid;
    gap: 4rem;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--deep-navy);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--steel-blue);
    margin-bottom: 2rem;
}

.vision-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.vm-card {
    background: var(--cloud-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.vm-card:hover {
    transform: translateY(-5px);
    border-color: var(--electric-cyan);
    box-shadow: var(--shadow-md);
}

.vm-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.vm-card h4 {
    font-size: 1.5rem;
    color: var(--deep-navy);
    margin-bottom: 1rem;
}

.vm-card p {
    font-size: 1rem;
    color: var(--steel-blue);
    margin: 0;
}

.why-choose {
    margin-top: 4rem;
}

.why-choose h3 {
    font-size: 2rem;
    color: var(--deep-navy);
    margin-bottom: 2rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--cloud-white);
    transition: var(--transition-normal);
    text-align: center;
}

.feature-card:hover {
    border-color: var(--electric-cyan);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.25rem;
    color: var(--deep-navy);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--steel-blue);
    margin: 0;
}

/* ===================================
   SERVICES SECTION
=================================== */
.services {
    background: var(--cloud-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--electric-cyan);
}

.service-card.featured {
    border-color: var(--electric-cyan);
    background: linear-gradient(135deg, rgba(0, 209, 193, 0.05) 0%, rgba(16, 51, 81, 0.05) 100%);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--electric-cyan);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

body[dir="ltr"] .featured-badge {
    left: auto;
    right: 1rem;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--deep-navy);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    color: var(--steel-blue);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-features {
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.5rem 0;
    padding-right: 1.5rem;
    position: relative;
    color: var(--steel-blue);
    font-size: 0.95rem;
}

body[dir="ltr"] .service-features li {
    padding-right: 0;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    right: 0;
    color: var(--electric-cyan);
    font-weight: bold;
}

body[dir="ltr"] .service-features li::before {
    right: auto;
    left: 0;
}

.service-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.service-tech span {
    background: var(--cloud-white);
    color: var(--deep-navy);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===================================
   PROCESS SECTION
=================================== */
.process {
    background: var(--white);
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    right: 45px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--electric-cyan);
}

body[dir="ltr"] .process-timeline::before {
    right: auto;
    left: 45px;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    background: var(--electric-cyan);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 209, 193, 0.3);
    position: relative;
    z-index: 2;
}

.step-content {
    flex: 1;
    background: var(--cloud-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.step-content:hover {
    transform: translateX(-10px);
    box-shadow: var(--shadow-md);
}

body[dir="ltr"] .step-content:hover {
    transform: translateX(10px);
}

.step-content h3 {
    font-size: 1.5rem;
    color: var(--deep-navy);
    margin-bottom: 1rem;
}

.step-content p {
    font-size: 1rem;
    color: var(--steel-blue);
    line-height: 1.8;
    margin: 0;
}

/* ===================================
   PORTFOLIO SECTION
=================================== */
.portfolio {
    background: var(--cloud-white);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    height: 300px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 51, 81, 0.95);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.portfolio-overlay p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tags span {
    background: var(--electric-cyan);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ===================================
   CONTACT SECTION
=================================== */
.contact {
    background: var(--white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    color: var(--deep-navy);
    margin-bottom: 1rem;
}

.contact-info > p {
    font-size: 1.125rem;
    color: var(--steel-blue);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

/* تنسيق جديد للأيقونات - باللون الأزرق العميق (Deep Navy) */
.method-icon {
    width: 50px;
    height: 50px;
    /* تغيير الخلفية إلى Deep Navy مع شفافية 10% */
    background: rgba(16, 51, 81, 0.1); 
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* تغيير لون الأيقونة نفسها إلى Deep Navy */
    color: var(--deep-navy); 
    flex-shrink: 0;
    transition: var(--transition-normal);
}

.method-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* تأثير عند تمرير الماوس */
.contact-method:hover .method-icon {
    /* عند التحويم تصبح الخلفية Deep Navy غامق */
    background: var(--deep-navy); 
    color: var(--white);
    transform: scale(1.1);
}

.method-text h4 {
    font-size: 1.125rem;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}

.method-text a {
    color: var(--electric-cyan);
    font-weight: 500;
}

.method-text a:hover {
    text-decoration: underline;
}

.response-time {
    background: var(--cloud-white);
    padding: 1rem;
    border-radius: var(--radius-md);
    border-right: 4px solid var(--electric-cyan);
}

body[dir="ltr"] .response-time {
    border-right: none;
    border-left: 4px solid var(--electric-cyan);
}

.response-time p {
    margin: 0;
    color: var(--steel-blue);
    font-weight: 500;
}

.contact-form-wrapper {
    background: var(--cloud-white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--cloud-white);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--white);
    color: var(--deep-navy);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--electric-cyan);
    box-shadow: 0 0 0 3px rgba(0, 209, 193, 0.1);
}

/* Country Select with Flags */
.country-select {
    padding-right: 3rem !important;
    position: relative;
}

body[dir="ltr"] .country-select {
    padding-right: 1.25rem !important;
    padding-left: 3rem !important;
}

.country-select option {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.country-select option::before {
    content: attr(data-flag);
    margin-left: 0.5rem;
    font-size: 1.25rem;
}

body[dir="ltr"] .country-select option::before {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* Custom styling for country select to show flag */
.country-select-wrapper {
    position: relative;
}

.country-select-wrapper::after {
    content: attr(data-selected-flag);
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 1.25rem;
    z-index: 1;
}

body[dir="ltr"] .country-select-wrapper::after {
    right: auto;
    left: 1rem;
}

/* Phone Input with Country Code */
.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.country-code-select {
    flex-shrink: 0;
    width: 120px;
    padding: 0.875rem 0.75rem !important;
    border: 2px solid var(--cloud-white);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--white);
    color: var(--deep-navy);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23103351' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    padding-right: 2rem !important;
}

body[dir="ltr"] .country-code-select {
    background-position: right 0.75rem center;
    padding-right: 0.75rem !important;
    padding-left: 2rem !important;
}

.country-code-select:focus {
    outline: none;
    border-color: var(--electric-cyan);
    box-shadow: 0 0 0 3px rgba(0, 209, 193, 0.1);
}

.phone-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--cloud-white);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--white);
    color: var(--deep-navy);
}

.phone-input:focus {
    outline: none;
    border-color: var(--electric-cyan);
    box-shadow: 0 0 0 3px rgba(0, 209, 193, 0.1);
}

.contact-form button {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

/* ===================================
   FOOTER
=================================== */
.footer {
    background: var(--deep-navy);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 150px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    color: var(--electric-cyan);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-links ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a,
.footer-services li {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--electric-cyan);
    padding-right: 0.5rem;
}

body[dir="ltr"] .footer-links a:hover {
    padding-right: 0;
    padding-left: 0.5rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* ===================================
   BACK TO TOP BUTTON
=================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--electric-cyan);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 998;
}

body[dir="ltr"] .back-to-top {
    left: auto;
    right: 2rem;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #00B8AA;
    transform: translateY(-5px);
}

/* ===================================
   RESPONSIVE DESIGN
=================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-xl);
        transition: var(--transition-normal);
        align-items: flex-start;
        gap: 1.5rem;
        overflow-y: auto;
    }
    
    body[dir="ltr"] .nav-menu {
        right: auto;
        left: -100%;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    body[dir="ltr"] .nav-menu.active {
        left: 0;
    }
    
    .navbar.scrolled .nav-menu {
        background: var(--deep-navy);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 6rem 0 4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .process-timeline::before {
        right: 30px;
    }
    
    body[dir="ltr"] .process-timeline::before {
        left: 30px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .process-step {
        gap: 1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .lang-toggle {
        top: 80px;
        left: 1rem;
    }
    
    body[dir="ltr"] .lang-toggle {
        right: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        left: 1rem;
    }
    
    body[dir="ltr"] .back-to-top {
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .code-content {
        font-size: 0.75rem;
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .vm-card,
    .feature-card,
    .service-card {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* ===================================
   ANIMATIONS & UTILITIES
=================================== */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Smooth scroll */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   WHATSAPP FLOATING BUTTON
=================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem; /* تم وضعه في اليسار كما طلبت */
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #20BA5A;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* تأثير النبض للجذب */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* تعديل زر العودة للأعلى ليكون في اليمين (لتجنب التداخل) */
.back-to-top {
    left: auto !important; /* إلغاء التمركز اليساري القديم */
    right: 2rem !important; /* نقله لليمين */
}

/* في الشاشات الصغيرة (الموبايل) */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 1.5rem;
        left: 1.5rem;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ===================================
   SOCIAL MEDIA LINKS (FOOTER)
=================================== */
.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    /* خلفية بيضاء شفافة لتناسب الفوتر الغامق */
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%; /* شكل دائري */
    display: flex;
    align-items: center;
    justify-content: center;
    /* لون الأيقونة أبيض */
    color: var(--white);
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.social-icon:hover {
    /* عند التحويم تصبح الخلفية تركوازية */
    background: var(--electric-cyan);
    color: var(--white);
    transform: translateY(-3px); /* حركة خفيفة للأعلى */
    box-shadow: 0 4px 12px rgba(0, 209, 193, 0.3);
    border-color: transparent;
}

/* ===================================
   PORTFOLIO STYLES
=================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    background: #fff;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.portfolio-img {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

/* تأثير التكبير عند التحويم */
.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

/* الطبقة الشفافة */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 51, 81, 0.9); /* لون Deep Navy مع شفافية */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    padding: 1.5rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    transform: translateY(20px);
    transition: 0.3s;
}

.overlay-content p {
    color: #e0e0e0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transform: translateY(20px);
    transition: 0.3s 0.1s;
}

/* التاجات التقنية (مثل Flutter, C#) */
.tech-tag {
    display: inline-block;
    background: var(--electric-cyan);
    color: var(--deep-navy);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin: 2px;
    transform: translateY(20px);
    transition: 0.3s 0.2s;
}

/* حركة النصوص عند الظهور */
.portfolio-item:hover .overlay-content h3,
.portfolio-item:hover .overlay-content p,
.portfolio-item:hover .tech-tag {
    transform: translateY(0);
}

/* ===================================
   HERO BRAND LOGO REDESIGN
=================================== */

/* الحاوية الرئيسية للوجو */
.hero-brand-display {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    animation: fadeInUp 1s ease 0.3s both;
}

/* اللوجو نفسه */
.main-hero-logo {
    width: 100%;
    max-width: 480px; /* حجم كبير للوجو */
    height: auto;
    position: relative;
    z-index: 2;
    /* تأثير ظل ملون (وهج) حول اللوجو */
    filter: drop-shadow(0 0 30px rgba(0, 209, 193, 0.4));
    /* حركة الطفو */
    animation: floatLogo 6s ease-in-out infinite;
}

/* تأثير الإضاءة الخلفية */
.brand-glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 209, 193, 0.2) 0%, rgba(16, 51, 81, 0) 70%);
    border-radius: 50%;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 4s ease-in-out infinite alternate;
}

/* حركة الطفو (Floating Animation) */
@keyframes floatLogo {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px); /* يرتفع قليلاً */
    }
    100% {
        transform: translateY(0px);
    }
}

/* حركة نبض الإضاءة */
@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.8;
    }
}

/* تحسين العرض على الموبايل */
@media (max-width: 768px) {
    .main-hero-logo {
        max-width: 280px; /* تصغير اللوجو قليلاً على الموبايل */
        margin-top: 2rem;
    }
    
    .brand-glow-effect {
        width: 200px;
        height: 200px;
    }
}