/* ===================================
   Cairo Play Font Import
   =================================== */
@font-face {
    font-family: 'Cairo Play';
    src: url('CairoPlay-VariableFont_slntwght.ttf') format('truetype');
    font-weight: 100 1000;
    font-display: swap;
}

/* ===================================
   CSS Variables - Design System
   =================================== */
:root {
    /* Colors - Based on Color Hunt Palette */
    --primary: #213448;
    /* Dark Blue - Main color */
    --primary-dark: #1a2838;
    /* Darker shade */
    --primary-light: #547792;
    /* Medium Blue */
    --secondary: #94B4C1;
    /* Light Blue */
    --secondary-dark: #7a9fae;
    /* Darker light blue */
    --accent: #EAE0CF;
    /* Cream/Beige */
    --dark: #213448;
    /* Same as primary */
    --dark-light: #2d4558;
    /* Slightly lighter dark */
    --light: #f9f7f4;
    /* Very light cream */
    --gray: #547792;
    /* Medium blue as gray */
    --gray-light: #94B4C1;
    /* Light blue as light gray */

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #213448 0%, #547792 100%);
    --gradient-secondary: linear-gradient(135deg, #547792 0%, #94B4C1 100%);
    --gradient-dark: linear-gradient(135deg, #213448 0%, #2d4558 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(33, 52, 72, 0.9) 0%, rgba(84, 119, 146, 0.8) 100%);
    --gradient-accent: linear-gradient(135deg, #94B4C1 0%, #EAE0CF 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(33, 52, 72, 0.1);
    --shadow-md: 0 4px 6px rgba(33, 52, 72, 0.15);
    --shadow-lg: 0 10px 15px rgba(33, 52, 72, 0.2);
    --shadow-xl: 0 20px 25px rgba(33, 52, 72, 0.25);
    --shadow-glow: 0 0 20px rgba(84, 119, 146, 0.4);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Typography */
    --font-family: 'Cairo Play', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--light);
    overflow-x: hidden;
}

/* ===================================
   Loading Screen
   =================================== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 150px;
    height: auto;
    animation: pulse 2s infinite;
}

.loader-spinner {
    margin-top: 2rem;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-light);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   Fixed Contact Buttons
   =================================== */
.fixed-contact-buttons {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

[dir="ltr"] .fixed-contact-buttons {
    left: auto;
    right: 2rem;
}

.contact-btn {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
}

.contact-btn::before {
    content: attr(data-tooltip-ar);
    position: absolute;
    right: 70px;
    background: var(--dark);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
}

[dir="ltr"] .contact-btn::before {
    content: attr(data-tooltip-en);
    right: auto;
    left: 70px;
}

.contact-btn:hover::before {
    opacity: 1;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.phone-btn {
    background: var(--gradient-primary);
}

.email-btn {
    background: var(--gradient-secondary);
}

.contact-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(33, 52, 72, 0.98) 0%, rgba(42, 66, 88, 0.98) 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: all var(--transition-base);
    border-bottom: 1px solid rgba(148, 180, 193, 0.2);
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, rgba(33, 52, 72, 1) 0%, rgba(42, 66, 88, 1) 100%);
}

.navbar {
    padding: 0.25rem 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    position: relative;
    width: 160px;
    height: 60px;
    /* This controls the header height contribution */
    z-index: 1000;
}

.logo img {
    position: absolute;
    top: -10px;
    right: 0;
    width: 160px;
    height: 160px;
    object-fit: contain;
    transition: transform var(--transition-base);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

[dir="ltr"] .logo img {
    right: auto;
    left: 0;
}

.logo:hover img {
    transform: scale(1.05);
}

/* Logo text removed - text is included in the logo image */
/*.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.logo-sub {
    font-size: var(--font-size-sm);
    color: var(--secondary);
}*/

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(148, 180, 193, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    0% {
        transform: scale(1) translateX(0) translateY(0);
    }

    100% {
        transform: scale(1.1) translateX(-20px) translateY(-20px);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 52, 72, 0.85) 0%, rgba(84, 119, 146, 0.75) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 900px;
    z-index: 1;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #547792 0%, #94B4C1 50%, #EAE0CF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.hero-description {
    font-size: var(--font-size-lg);
    margin-bottom: 2.5rem;
    color: #cbd5e1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
    font-size: var(--font-size-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ===================================
   Advertisement Banner
   =================================== */
.ad-banner {
    background: var(--gradient-accent);
    padding: 1.5rem 0;
    box-shadow: var(--shadow-md);
}

.ad-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.ad-icon {
    font-size: 2.5rem;
    color: var(--primary);
    animation: pulse 2s infinite;
}

.ad-text {
    flex: 1;
    color: var(--dark);
}

.ad-text h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.ad-text p {
    font-size: var(--font-size-sm);
    opacity: 0.8;
    color: var(--gray);
}

.ad-btn {
    background: var(--primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-base);
}

.ad-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-dark);
}

/* ===================================
   Section Styles
   =================================== */
.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-label {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-description {
    font-size: var(--font-size-lg);
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   About Section
   =================================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.about-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
    color: var(--dark);
}

.about-card p {
    color: var(--gray);
    line-height: 1.8;
}

/* About Section - New Expanded Styles */
.about-intro {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
    border-right: 4px solid var(--primary);
}

[dir="ltr"] .about-intro {
    border-right: none;
    border-left: 4px solid var(--primary);
}

.about-intro-text {
    font-size: var(--font-size-lg);
    line-height: 2;
    color: var(--dark);
    text-align: justify;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-detail-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border-top: 3px solid transparent;
}

.about-detail-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-top-color: var(--primary-light);
}

.detail-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.about-detail-card h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-detail-card p {
    color: var(--gray);
    line-height: 1.9;
    font-size: var(--font-size-base);
}

.goals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.goal-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: rgba(84, 119, 146, 0.05);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.goal-item:hover {
    background: rgba(84, 119, 146, 0.1);
    transform: translateX(-5px);
}

[dir="ltr"] .goal-item:hover {
    transform: translateX(5px);
}

.goal-item i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.goal-item p {
    margin: 0;
    color: var(--dark);
    line-height: 1.8;
}

/* ===================================
   Services Section
   =================================== */
.services {
    background: linear-gradient(180deg, var(--light) 0%, #e2e8f0 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    position: relative;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-image i {
    font-size: 4rem;
    color: white;
    z-index: 2;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: all var(--transition-base);
}

.service-card:hover .service-overlay {
    background: rgba(0, 0, 0, 0);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: var(--font-size-xl);
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-content p {
    color: var(--gray);
    line-height: 1.8;
}

/* ===================================
   Projects Section
   =================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    height: 350px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: #e2e8f0;
    /* Skeleton color */
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: loading 1.5s infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

.project-card.loaded::before {
    display: none;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    text-align: center;
    color: white;
    padding: 2rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-info i {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

/* ===================================
   Success Partners Section
   =================================== */
.partners {
    background: linear-gradient(180deg, var(--light) 0%, #f1f5f9 100%);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: center;
}

.partner-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.partner-logo {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter var(--transition-base);
}

.partner-card:hover .partner-logo {
    filter: grayscale(0%);
}

/* ===================================
   Team Section
   =================================== */
.team {
    background: linear-gradient(180deg, var(--light) 0%, rgba(148, 180, 193, 0.12) 100%);
    position: relative;
    overflow: hidden;
}

.team::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(84, 119, 146, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.team::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(148, 180, 193, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(33, 52, 72, 0.12);
    transition: all var(--transition-slow);
    border: 2px solid transparent;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

[dir="ltr"] .team-card::before {
    transform-origin: right;
}

.team-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(33, 52, 72, 0.25);
    border-color: var(--primary-light);
}

.team-card:hover::before {
    transform: scaleX(1);
}

.premium-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: 2px solid var(--secondary);
    position: relative;
    overflow: hidden;
}

.premium-card::after {
    content: '★';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--accent);
    animation: sparkle 2s infinite;
    text-shadow: 0 0 10px rgba(234, 224, 207, 0.8);
}

[dir="ltr"] .premium-card::after {
    right: auto;
    left: 1rem;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0.6;
        transform: rotate(0deg) scale(1);
    }

    50% {
        opacity: 1;
        transform: rotate(180deg) scale(1.15);
    }
}

.premium-card .team-name,
.premium-card .team-title {
    color: white;
}

.premium-card .team-contact-item {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.premium-card .team-contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

[dir="ltr"] .card-badge {
    right: auto;
    left: 1rem;
}

.team-card-content {
    text-align: center;
}

.team-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.premium-card .team-avatar {
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.team-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.name-ar {
    display: block;
    margin-bottom: 0.25rem;
}

.name-en {
    display: block;
    font-size: var(--font-size-base);
    opacity: 0.8;
}

[dir="ltr"] .name-ar {
    display: none;
}

[dir="ltr"] .name-en {
    display: block;
    font-size: var(--font-size-xl);
    opacity: 1;
}

[dir="rtl"] .name-en {
    font-size: var(--font-size-sm);
}

.team-title {
    font-size: var(--font-size-base);
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.team-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.team-contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--dark);
    transition: all var(--transition-base);
    font-weight: 500;
}

.team-contact-item:hover {
    background: var(--primary-light);
    color: white;
    border-color: var(--primary-light);
}

.team-contact-item i {
    font-size: 1.25rem;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: linear-gradient(180deg, #e2e8f0 0%, var(--light) 100%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
}

.contact-card h3 {
    font-size: var(--font-size-lg);
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-base);
}

.contact-card a:hover {
    color: var(--primary-dark);
}

.contact-form-wrapper {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #1a2530 100%);
    color: white;
    padding: var(--spacing-lg) 0 2rem;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--secondary) 50%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: var(--font-size-xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-text span {
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.footer-logo-text small {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section a:hover {
    opacity: 1;
    transform: translateX(5px);
}

[dir="ltr"] .footer-section a:hover {
    transform: translateX(-5px);
}

/* Footer Download Link Styling */
.footer-download-link {
    background: var(--gradient-primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    opacity: 1 !important;
    margin-top: 0.5rem;
    box-shadow: var(--shadow-md);
}

.footer-download-link:hover {
    background: var(--gradient-secondary);
    transform: translateX(5px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

[dir="ltr"] .footer-download-link:hover {
    transform: translateX(-5px) scale(1.05);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-light);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    opacity: 0.7;
}

/* ===================================
   Scroll to Top Button
   =================================== */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 998;
}

[dir="rtl"] .scroll-to-top {
    left: auto;
    right: 2rem;
}

[dir="ltr"] .scroll-to-top {
    left: auto;
    right: 2rem;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===================================
   Animations
   =================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
        transition: right var(--transition-slow);
        z-index: 998;
        overflow-y: auto;
    }

    [dir="ltr"] .nav-menu {
        right: auto;
        left: -100%;
        transition: left var(--transition-slow);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
    }

    .nav-menu.active {
        right: 0;
    }

    [dir="ltr"] .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        color: white !important;
        font-size: var(--font-size-lg);
        font-weight: 500;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover {
        color: var(--accent) !important;
        padding-right: 10px;
    }

    [dir="ltr"] .nav-link:hover {
        padding-right: 0;
        padding-left: 10px;
    }

    .menu-toggle {
        display: flex;
        z-index: 999;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Logo adjustments for tablets */
    .logo {
        width: 180px;
        height: 65px;
    }

    .logo img {
        width: 180px;
        height: 180px;
        top: -15px;
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-2xl);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: var(--font-size-3xl);
    }

    /* Logo adjustments for mobile */
    .logo {
        width: 200px;
        height: 70px;
    }

    .logo img {
        width: 200px;
        height: 200px;
        top: -20px;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-xl);
    }

    .hero-description {
        font-size: var(--font-size-base);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .ad-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .ad-icon {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        height: 300px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-card {
        padding: 2rem 1.5rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .fixed-contact-buttons {
        bottom: 1rem;
        left: 1rem;
        gap: 0.75rem;
    }

    [dir="ltr"] .fixed-contact-buttons {
        right: 1rem;
        left: auto;
    }

    .contact-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 1rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .about-grid {
        gap: 1.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 150px;
        height: 60px;
    }

    .logo img {
        width: 150px;
        height: 150px;
        top: -15px;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .about-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {

    .header,
    .fixed-contact-buttons,
    .scroll-to-top,
    .menu-toggle,
    .lang-toggle {
        display: none !important;
    }
}

/* ===================================
   Developer Credit
   =================================== */
.developer-credit {
    margin-top: 0.5rem;
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dev-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-base);
    position: relative;
    padding-bottom: 2px;
}

.dev-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-base);
}

.dev-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.dev-link:hover::after {
    width: 100%;
}

/* ===================================
   Profile Download Styles
   =================================== */
.btn-download {
    background: linear-gradient(135deg, #EAE0CF 0%, #94B4C1 100%);
    color: var(--dark);
    box-shadow: var(--shadow-lg);
    font-weight: 700;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #94B4C1 0%, #547792 100%);
    color: white;
}

.btn-download i {
    margin-right: 0.5rem;
}

[dir="ltr"] .btn-download i {
    margin-right: 0;
    margin-left: 0.5rem;
}

.profile-download {
    background: var(--gradient-accent);
    color: var(--dark) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: all var(--transition-base);
}

.profile-download:hover {
    background: var(--gradient-secondary);
    color: white !important;
    transform: translateY(-2px);
}

.profile-download i {
    margin-right: 0.5rem;
}

[dir="ltr"] .profile-download i {
    margin-right: 0;
    margin-left: 0.5rem;
}