/* ===================================
   إعدادات أساسية وتهيئة عامة
   =================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #223656;
    --secondary-color: #2C70AF;
    --bg-dark: #0a0e1a;
    --bg-darker: #050810;
    --text-light: #ffffff;
    --text-gray: #b0b8c9;
    --gradient-1: linear-gradient(135deg, #2C70AF 0%, #223656 100%);
    --gradient-2: linear-gradient(135deg, #223656 0%, #2C70AF 100%);
    --gradient-glow: linear-gradient(90deg, #2C70AF, #4a90d9, #2C70AF);
    --shadow-glow: 0 0 30px rgba(44, 112, 175, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* ===================================
   القائمة العلوية الثابتة
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(44, 112, 175, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(44, 112, 175, 0.5));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-glow);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-link:hover::before {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

/* ===================================
   القسم البطل (Hero Section)
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-darker);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(44, 112, 175, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(34, 54, 86, 0.2) 0%, transparent 50%);
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 20px 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: slideDown 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gradient-text {
    background: var(--gradient-glow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-gray);
    margin-bottom: 40px;
    animation: fadeIn 1s ease 0.3s backwards;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    background: var(--gradient-1);
    background-size: 200% auto;
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 1s ease 0.6s backwards;
    box-shadow: var(--shadow-glow);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(44, 112, 175, 0.5);
    background-position: right center;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

.floating-element {
    position: absolute;
    background: radial-gradient(circle, rgba(44, 112, 175, 0.3), transparent);
    border-radius: 50%;
    filter: blur(60px);
}

.element-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

.element-2 {
    width: 300px;
    height: 300px;
    bottom: 15%;
    left: 15%;
    animation: float 10s ease-in-out infinite reverse;
}

.element-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    animation: pulse 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: var(--secondary-color);
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(15px); }
}

/* ===================================
   أقسام عامة وعناوين
   =================================== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(44, 112, 175, 0.1);
    border: 1px solid rgba(44, 112, 175, 0.3);
    border-radius: 30px;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   أنيميشن ظهور العناصر عند التمرير
   =================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-up {
    animation: fadeUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===================================
   قسم من نحن (About)
   =================================== */
.about {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    padding: 30px;
    background: rgba(44, 112, 175, 0.05);
    border: 1px solid rgba(44, 112, 175, 0.2);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-glow);
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
}

.stat-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-light);
}

.stat-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.vision-section,
.expertise-section {
    background: rgba(34, 54, 86, 0.3);
    border-radius: 30px;
    padding: 60px;
    margin-top: 60px;
    border: 1px solid rgba(44, 112, 175, 0.2);
    position: relative;
    overflow: hidden;
}

.vision-section::before,
.expertise-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(44, 112, 175, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vision-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.vision-title,
.expertise-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.vision-subtitle,
.expertise-subtitle {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 25px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.vision-text,
.expertise-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.expertise-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(44, 112, 175, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(44, 112, 175, 0.3);
    transition: all 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    background: rgba(44, 112, 175, 0.2);
    border-color: var(--secondary-color);
}

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

.expertise-card span {
    font-weight: 600;
    font-size: 1rem;
}

/* ===================================
   قسم الخدمات (Services)
   =================================== */
.services {
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    padding: 40px;
    background: rgba(34, 54, 86, 0.3);
    border-radius: 25px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 60px rgba(44, 112, 175, 0.4);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(360deg);
    filter: drop-shadow(0 0 20px rgba(44, 112, 175, 0.8));
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.service-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.service-features span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

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

/* ===================================
   قسم الأعمال (Portfolio)
   =================================== */
.portfolio {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 60px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover img {
    transform: scale(1.2);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(34, 54, 86, 0.95), rgba(44, 112, 175, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 10px;
}

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.portfolio-overlay p {
    font-size: 1rem;
    color: var(--text-gray);
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.portfolio-overlay i {
    font-size: 2rem;
    color: var(--text-light);
    margin-top: 15px;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay i {
    transform: translateY(0);
}

/* ===================================
   قسم لماذا نحن (Why Us)
   =================================== */
.why-us {
    background: var(--bg-dark);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.why-card {
    padding: 40px 30px;
    background: rgba(34, 54, 86, 0.3);
    border: 2px solid rgba(44, 112, 175, 0.2);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(44, 112, 175, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.why-card:hover::before {
    width: 400px;
    height: 400px;
}

.why-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(44, 112, 175, 0.3);
}

.why-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.why-card:hover i {
    transform: scale(1.2) rotate(360deg);
}

.why-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.why-text {
    text-align: center;
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(44, 112, 175, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(44, 112, 175, 0.2);
}

/* ===================================
   قسم التواصل (Contact)
   =================================== */
.contact {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    padding: 40px;
    background: rgba(34, 54, 86, 0.3);
    border: 2px solid rgba(44, 112, 175, 0.2);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-glow);
}

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover .info-icon {
    transform: rotate(360deg) scale(1.1);
}

.info-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
}

.info-card p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.cta-final {
    text-align: center;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 25px 60px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    background: var(--gradient-1);
    background-size: 200% auto;
    border: 3px solid var(--secondary-color);
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(44, 112, 175, 0.4);
}

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

.cta-button-large:hover::before {
    width: 500px;
    height: 500px;
}

.cta-button-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(44, 112, 175, 0.6);
    background-position: right center;
}

.cta-button-large span,
.cta-button-large i {
    position: relative;
    z-index: 1;
}

/* ===================================
   التذييل (Footer)
   =================================== */
/* ===================================
   إعدادات أساسية وتهيئة عامة
   =================================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #223656;
    --secondary-color: #2C70AF;
    --bg-dark: #0a0e1a;
    --bg-darker: #050810;
    --text-light: #ffffff;
    --text-gray: #b0b8c9;
    --gradient-1: linear-gradient(135deg, #2C70AF 0%, #223656 100%);
    --gradient-2: linear-gradient(135deg, #223656 0%, #2C70AF 100%);
    --gradient-glow: linear-gradient(90deg, #2C70AF, #4a90d9, #2C70AF);
    --shadow-glow: 0 0 30px rgba(44, 112, 175, 0.3);
    --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.8;
    overflow-x: hidden;
}

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

/* ===================================
   القائمة العلوية الثابتة
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(44, 112, 175, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: rgba(10, 14, 26, 0.95);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(44, 112, 175, 0.5));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05) rotate(-2deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-glow);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.nav-link:hover::before {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

/* ===================================
   القسم البطل (Hero Section)
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-darker);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(44, 112, 175, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(34, 54, 86, 0.2) 0%, transparent 50%);
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 100px 20px 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: slideDown 1s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gradient-text {
    background: var(--gradient-glow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-gray);
    margin-bottom: 40px;
    animation: fadeIn 1s ease 0.3s backwards;
}

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

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    background: var(--gradient-1);
    background-size: 200% auto;
    border: 2px solid transparent;
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 1s ease 0.6s backwards;
    box-shadow: var(--shadow-glow);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(44, 112, 175, 0.5);
    background-position: right center;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

.floating-element {
    position: absolute;
    background: radial-gradient(circle, rgba(44, 112, 175, 0.3), transparent);
    border-radius: 50%;
    filter: blur(60px);
}

.element-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    right: 10%;
    animation: float 8s ease-in-out infinite;
}

.element-2 {
    width: 300px;
    height: 300px;
    bottom: 15%;
    left: 15%;
    animation: float 10s ease-in-out infinite reverse;
}

.element-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    animation: pulse 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    color: var(--secondary-color);
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(15px); }
}

/* ===================================
   أقسام عامة وعناوين
   =================================== */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(44, 112, 175, 0.1);
    border: 1px solid rgba(44, 112, 175, 0.3);
    border-radius: 30px;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   أنيميشن ظهور العناصر عند التمرير
   =================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-up {
    animation: fadeUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===================================
   قسم من نحن (About)
   =================================== */
.about {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.about-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    padding: 30px;
    background: rgba(44, 112, 175, 0.05);
    border: 1px solid rgba(44, 112, 175, 0.2);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-glow);
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(10deg);
}

.stat-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-light);
}

.stat-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.vision-section,
.expertise-section {
    background: rgba(34, 54, 86, 0.3);
    border-radius: 30px;
    padding: 60px;
    margin-top: 60px;
    border: 1px solid rgba(44, 112, 175, 0.2);
    position: relative;
    overflow: hidden;
}

.vision-section::before,
.expertise-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(44, 112, 175, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vision-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.vision-title,
.expertise-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 15px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.vision-subtitle,
.expertise-subtitle {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 25px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.vision-text,
.expertise-text {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-gray);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
    position: relative;
    z-index: 1;
}

.expertise-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(44, 112, 175, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(44, 112, 175, 0.3);
    transition: all 0.3s ease;
}

.expertise-card:hover {
    transform: translateY(-5px);
    background: rgba(44, 112, 175, 0.2);
    border-color: var(--secondary-color);
}

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

.expertise-card span {
    font-weight: 600;
    font-size: 1rem;
}

/* ===================================
   قسم الخدمات (Services)
   =================================== */
.services {
    background: var(--bg-dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    padding: 40px;
    background: rgba(34, 54, 86, 0.3);
    border-radius: 25px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 60px rgba(44, 112, 175, 0.4);
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(360deg);
    filter: drop-shadow(0 0 20px rgba(44, 112, 175, 0.8));
}

.service-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.service-desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.service-features span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

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

/* ===================================
   قسم الأعمال (Portfolio)
   =================================== */
.portfolio {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 60px;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover {
    transform: scale(1.05) translateY(-10px);
    z-index: 10;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover img {
    transform: scale(1.2);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(34, 54, 86, 0.95), rgba(44, 112, 175, 0.9));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 10px;
}

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

.portfolio-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.portfolio-overlay p {
    font-size: 1rem;
    color: var(--text-gray);
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.portfolio-overlay i {
    font-size: 2rem;
    color: var(--text-light);
    margin-top: 15px;
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay i {
    transform: translateY(0);
}

/* ===================================
   قسم لماذا نحن (Why Us)
   =================================== */
.why-us {
    background: var(--bg-dark);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.why-card {
    padding: 40px 30px;
    background: rgba(34, 54, 86, 0.3);
    border: 2px solid rgba(44, 112, 175, 0.2);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(44, 112, 175, 0.3), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.why-card:hover::before {
    width: 400px;
    height: 400px;
}

.why-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 40px rgba(44, 112, 175, 0.3);
}

.why-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.why-card:hover i {
    transform: scale(1.2) rotate(360deg);
}

.why-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
    z-index: 1;
}

.why-text {
    text-align: center;
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(44, 112, 175, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(44, 112, 175, 0.2);
}

/* ===================================
   قسم التواصل (Contact)
   =================================== */
.contact {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.info-card {
    padding: 40px;
    background: rgba(34, 54, 86, 0.3);
    border: 2px solid rgba(44, 112, 175, 0.2);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-glow);
}

.info-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover .info-icon {
    transform: rotate(360deg) scale(1.1);
}

.info-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-light);
}

.info-card p {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.cta-final {
    text-align: center;
}

.cta-button-large {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 25px 60px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    background: var(--gradient-1);
    background-size: 200% auto;
    border: 3px solid var(--secondary-color);
    border-radius: 50px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(44, 112, 175, 0.4);
}

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

.cta-button-large:hover::before {
    width: 500px;
    height: 500px;
}

.cta-button-large:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(44, 112, 175, 0.6);
    background-position: right center;
}

.cta-button-large span,
.cta-button-large i {
    position: relative;
    z-index: 1;
}

/* ===================================
   التذييل (Footer)
   =================================== */
.footer {
    background: var(--bg-darker);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(44, 112, 175, 0.2);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-glow);
    background-size: 200% auto;
    animation: gradientShift 3s ease infinite;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient-1);
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(44, 112, 175, 0.5));
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-desc {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 112, 175, 0.1);
    border: 2px solid rgba(44, 112, 175, 0.3);
    border-radius: 50%;
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-link:hover {
    transform: translateY(-5px) rotate(360deg);
    border-color: var(--secondary-color);
    box-shadow: 0 5px 20px rgba(44, 112, 175, 0.4);
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link i {
    position: relative;
    z-index: 1;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links li a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-right: 20px;
}

.footer-links li a::before {
    content: '◄';
    position: absolute;
    right: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.footer-links li a:hover {
    color: var(--secondary-color);
    padding-right: 25px;
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-contact li:hover {
    color: var(--text-light);
    transform: translateX(-5px);
}

.footer-contact i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    width: 25px;
    text-align: center;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(44, 112, 175, 0.1);
    margin-top: 50px;
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* ===================================
   استجابة الشاشات (Responsive)
   =================================== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
    
    .vision-section,
    .expertise-section {
        padding: 40px 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 16px;
    }
    
    .cta-button-large {
        padding: 20px 40px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card,
    .info-card,
    .why-card {
        padding: 30px 20px;
    }
    
    .vision-section,
    .expertise-section {
        padding: 30px 20px;
    }
}

/* ===================================
   تحسينات إضافية للأداء
   =================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* تأثيرات تمرير سلسة */
html {
    scroll-padding-top: 100px;
}

/* تحسين أداء الأنيميشن */
.hero-background,
.floating-element,
.service-card,
.portfolio-item,
.why-card {
    will-change: transform;
}

/* ظلال متوهجة للعناوين */
.section-title {
    text-shadow: 0 0 30px rgba(44, 112, 175, 0.3);
}

/* تأثير تمرير خاص */
.service-card:nth-child(odd) {
    animation-delay: 0.1s;
}

.service-card:nth-child(even) {
    animation-delay: 0.2s;
}

.portfolio-item:nth-child(3n+1) {
    animation-delay: 0.1s;
}

.portfolio-item:nth-child(3n+2) {
    animation-delay: 0.2s;
}

.portfolio-item:nth-child(3n) {
    animation-delay: 0.3s;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 25px;
}

.menu-toggle {
    display: none;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 992px) {

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: #000;
        padding: 20px 0;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 12px 0;
    }
}

