@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Variables CSS */
:root {
    --primary: #8442ff;
    --secondary: #ff42c6;
    --dark: #1a1a2e;
    --light: #f1f1f1;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-sm: 0 3px 10px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(45deg, var(--primary), var(--secondary));
    --gradient-transparent: linear-gradient(45deg, var(--primary), transparent);
    --border-radius-sm: 10px;
    --border-radius-md: 15px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --border-radius-circle: 50%;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.05);
}

body {
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Theme Switching */
body[data-theme="light"] {
    --dark: #f1f1f1;
    --light: #1a1a2e;
    --glass-bg: rgba(26, 26, 46, 0.05);
    --glass-border: rgba(26, 26, 46, 0.1);
    background-color: var(--dark);
    color: var(--light);
}

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

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    margin-bottom: 1rem;
    max-width: 65ch;
}

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

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

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

/* Utility Classes */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.glow {
    box-shadow: 0 0 20px rgba(132, 66, 255, 0.3);
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--gradient);
    color: #fff;
    border: none;
    border-radius: var(--border-radius-circle);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
    perspective: 1000px;
}

.theme-toggle i {
    color: white;
    font-size: 1.3rem;
    transition: var(--transition);
    transform-origin: center;
    transform-style: preserve-3d;
}

/* Theme Toggle Animations */
.theme-toggle--dynamic .fa-moon {
    transform: rotate(-15deg);
}

.theme-toggle--dynamic[data-theme="dark"] .fa-moon {
    transform: rotate(25deg);
}

.theme-toggle--dynamic .fa-sun {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.theme-toggle--dynamic[data-theme="dark"] .fa-sun {
    opacity: 0;
    transform: scale(0) rotate(180deg);
}

.theme-toggle--dynamic[data-theme="light"] .fa-moon {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
}

.theme-toggle--dynamic .fa-sun,
.theme-toggle--dynamic .fa-moon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.theme-toggle:hover .fa-moon {
    transform: rotate(25deg) scale(1.1);
}

.theme-toggle:hover .fa-sun {
    transform: rotate(-15deg) scale(1.1);
}

.theme-toggle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Display Theme Icons */
body[data-theme="light"] .theme-toggle .fa-moon,
body[data-theme="dark"] .theme-toggle .fa-sun {
    display: none;
}

body[data-theme="light"] .theme-toggle .fa-sun,
body[data-theme="dark"] .theme-toggle .fa-moon {
    display: block;
}

/* Scroll Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--border-radius-circle);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.scroll-top-btn.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.scroll-top-btn i {
    transition: transform 0.3s ease;
}

.scroll-top-btn:hover i {
    transform: translateY(-3px);
}

/* ===== زر تبديل اللغة ===== */
.language-switcher {
    position: relative;
    margin-right: 20px;
    z-index: 110;
    /* تحسين مظهر الحاوية */
    background: rgba(255,255,255,0.03);
    border-radius: var(--border-radius-md);
    box-shadow: 0 2px 12px rgba(132,66,255,0.08);
    padding: 2px 6px;
    transition: var(--transition);
}

.language-switcher:hover {
    box-shadow: 0 4px 24px rgba(132,66,255,0.18);
    background: rgba(255,255,255,0.07);
}

.language-btn {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 1.5px solid var(--primary);
    border-radius: var(--border-radius-md);
    padding: 10px 18px;
    color: var(--light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(132,66,255,0.10);
    backdrop-filter: blur(6px);
}

body[data-theme="light"] .language-btn {
    color: var(--dark);
    border-color: var(--secondary);
}

.language-btn:hover, .language-btn:focus {
    background: var(--gradient);
    color: #fff;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(255,66,198,0.13);
}

.language-btn i {
    margin: 0 7px;
    font-size: 1.15rem;
}

.language-btn .fa-globe {
    color: var(--primary);
    font-size: 1.2rem;
    margin-left: 2px;
}

.language-dropdown {
    position: absolute;
    top: 110%;
    right: 0;
    width: 170px;
    background: rgba(40, 20, 60, 0.97);
    border: 1.5px solid var(--primary);
    border-radius: var(--border-radius-md);
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: all 0.3s cubic-bezier(.4,2,.6,1);
    z-index: 120;
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 32px rgba(132,66,255,0.18);
    overflow: hidden;
    text-align: center;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.language-dropdown a {
    display: block;
    padding: 14px 20px;
    color: var(--light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: transparent;
    transition: var(--transition);
}

body[data-theme="light"] .language-dropdown {
    background: rgba(255,255,255,0.97);
    border-color: var(--secondary);
}

body[data-theme="light"] .language-dropdown a {
    color: var(--dark);
}

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

.language-dropdown a:hover, .language-dropdown a.active {
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255,66,198,0.08);
}

/* Header Styles */
header {
    position: fixed;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: var(--transition);
}

.header-scrolled {
    background-color: rgba(26, 26, 46, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

body[data-theme="light"] .header-scrolled {
    background-color: rgba(241, 241, 241, 0.95);
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 3px;
    background: var(--gradient);
    transition: var(--transition);
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-right: 25px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--primary);
}

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

.burger {
    display: none;
    cursor: pointer;
    z-index: 1000;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--light);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.05;
    border-radius: 50%;
    transform: scale(1.5);
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1.5);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.8);
        opacity: 0.03;
    }
    100% {
        transform: scale(1.5);
        opacity: 0.05;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    position: relative;
    z-index: 1;
}

.subtitle {
    display: inline-block;
    font-size: 16px;
    color: var(--light);
    margin-bottom: 15px;
    position: relative;
    padding-right: 15px;
    font-weight: 500;
}

.subtitle::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -20px;
    width: 30px;
    height: 2px;
    background: var(--secondary);
    transform: translateY(-50%);
}

.hero h1 {
    font-size: 60px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--gradient);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(132, 66, 255, 0.35);
    position: relative;
    overflow: hidden;
    z-index: 1;
    will-change: transform;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
    opacity: 0;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    z-index: -2;
}

.btn:hover::before {
    width: 100%;
    opacity: 1;
}

.btn i {
    margin-right: 10px;
    font-size: 1.2rem;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(132, 66, 255, 0.5);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.btn:hover i {
    transform: translateX(-3px) rotate(-5deg);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.btn:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 5px 15px rgba(132, 66, 255, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2.5px solid var(--primary);
    color: #ffffff;
    position: relative;
    z-index: 1;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(132, 66, 255, 0.2);
    text-shadow: none;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.btn-outline:hover::before {
    width: 100%;
}

.btn-outline:hover {
    color: #ffffff;
    border-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

body[data-theme="light"] .btn-outline,
body[data-theme="dark"] .btn-outline {
    color: #ffffff;
    border-color: var(--primary);
    background: rgba(132, 66, 255, 0.2);
}

/* تأثير الموجة للزر */
.btn-wave {
    position: relative;
    overflow: hidden;
}

.btn-wave::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn-wave:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    animation: morphAnimation 8s ease-in-out infinite;
}

@keyframes morphAnimation {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        box-shadow: 0 10px 30px rgba(132, 66, 255, 0.4);
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
        box-shadow: 0 10px 30px rgba(255, 66, 198, 0.4);
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        box-shadow: 0 10px 30px rgba(132, 66, 255, 0.4);
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        box-shadow: 0 10px 30px rgba(255, 66, 198, 0.4);
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        box-shadow: 0 10px 30px rgba(132, 66, 255, 0.4);
    }
}

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

.profile-wrapper:hover .profile-image {
    transform: scale(1.05);
}

.glow-effect {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(132, 66, 255, 0.3) 0%, rgba(255, 66, 198, 0.1) 50%, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
    filter: blur(20px);
    z-index: -1;
    animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--light);
    text-decoration: none;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient);
    transition: var(--transition);
    z-index: -1;
}

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

.social-link:hover {
    transform: translateY(-3px);
    color: white;
    box-shadow: var(--shadow-sm);
}

.social-link i {
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover i {
    transform: scale(1.2);
}

/* Section Styles */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title .subtitle {
    font-size: 18px;
    color: var(--primary);
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 30%;
    left: 30%;
    height: 3px;
    background: var(--gradient);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img {
    position: relative;
}

.about-img::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 5px solid var(--primary);
    z-index: -1;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
}

.about-img:hover::before {
    top: -15px;
    right: -15px;
}

.about-img img {
    width: 100%;
    display: block;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-md);
    transition: var(--transition);
}

.about-img:hover img {
    box-shadow: var(--shadow-lg);
}

.experience-badge {
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 120px;
    height: 120px;
    background: var(--gradient);
    border-radius: var(--border-radius-circle);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    box-shadow: 0 5px 15px rgba(132, 66, 255, 0.4);
    transition: var(--transition);
}

.experience-badge:hover {
    transform: scale(1.05) rotate(5deg);
}

.exp-years {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.exp-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.about-text {
    padding: 20px;
}

.about-text h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    padding: 10px;
    border-radius: var(--border-radius-sm);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.info-title {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.info-value {
    color: var(--light);
}

/* Skills Section */
.skills {
    background-color: rgba(26, 26, 46, 0.5);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%238442ff' fill-opacity='0.05' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'%3E%3C/path%3E%3C/svg%3E");
    z-index: -1;
    opacity: 0.5;
}

body[data-theme="light"] .skills {
    background-color: rgba(241, 241, 241, 0.5);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skills-category {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 30px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.skills-category::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
    z-index: -1;
}

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

.skills-category h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-bottom: 10px;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-transparent);
}

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

.skill-item {
    text-align: center;
    padding: 15px;
    border-radius: var(--border-radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(45deg, rgba(132, 66, 255, 0.1), rgba(255, 66, 198, 0.1));
    z-index: -1;
    transition: var(--transition);
}

.skill-item:hover::before {
    width: 100%;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: rgba(132, 66, 255, 0.1);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: var(--transition);
}

.skill-item:hover .skill-icon {
    background: rgba(132, 66, 255, 0.2);
    transform: rotate(10deg);
}

.skill-icon i {
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
}

.skill-item:hover .skill-icon i {
    transform: scale(1.2) rotate(15deg);
    color: var(--secondary);
    text-shadow: 0 0 15px rgba(255, 66, 198, 0.4);
    filter: drop-shadow(0 2px 4px rgba(132, 66, 255, 0.3));
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.skill-item h4 {
    color: var(--light);
    font-size: 1.1rem;
    margin: 1rem 0 0.8rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 0.5rem;
}

.skill-item h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--gradient-transparent);
    transition: var(--transition);
}

.skill-item:hover h4 {
    color: var(--primary);
    letter-spacing: 0.5px;
}

.skill-item:hover h4::after {
    width: 60px;
    background: var(--gradient);
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    width: 0;
    border-radius: var(--border-radius-xl);
    transition: width 1.2s ease-out, opacity 0.8s ease;
    position: relative;
    opacity: 0.9;
}

.skill-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@keyframes progressGlow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.skill-progress::after {
    content: attr(data-progress);
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.skill-item.in-view .skill-progress {
    width: var(--skill-level);
    opacity: 1;
}

.skill-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--dark);
    color: var(--light);
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 10;
    border: 1px solid rgba(132, 66, 255, 0.2);
}

.skill-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--dark) transparent transparent transparent;
}

.skill-item:hover .skill-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(132, 66, 255, 0.1), var(--primary), var(--secondary), rgba(255, 66, 198, 0.1));
    transform: translateX(50%);
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(132, 66, 255, 0.3);
}

html[lang="en"] .timeline::before {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    padding: 40px 0;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    right: 50%;
    width: 24px;
    height: 24px;
    background: var(--gradient);
    border-radius: var(--border-radius-circle);
    transform: translateX(50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(132, 66, 255, 0.5);
    transition: var(--transition);
}

html[lang="en"] .timeline-dot {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item:hover .timeline-dot {
    transform: translateX(50%) scale(1.2);
    box-shadow: 0 0 20px rgba(132, 66, 255, 0.7);
}

html[lang="en"] .timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
}

.timeline-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(132, 66, 255, 0.15);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    z-index: 5;
}

html[lang="en"] .timeline-date {
    left: auto;
    right: 10px;
}

.timeline-item:hover .timeline-date {
    transform: translateY(-3px);
    background: rgba(132, 66, 255, 0.25);
    box-shadow: var(--shadow-md);
}

.timeline-content {
    position: relative;
    width: calc(50% - 60px);
    padding: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-right: calc(50% + 60px);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html[lang="en"] .timeline-content {
    margin-right: 0;
    margin-left: calc(50% + 60px);
    text-align: left;
}

.timeline-content:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(132, 66, 255, 0.3);
}

.timeline-content h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 700;
}

.timeline-content h4 {
    font-size: 17px;
    color: var(--secondary);
    margin-bottom: 18px;
    font-weight: 500;
    opacity: 0.9;
}

.timeline-content p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--light);
}

.timeline-content a {
    display: inline-block;
    font-size: 16px;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 30px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags span {
    font-size: 13px;
    padding: 6px 14px;
    background: rgba(132, 66, 255, 0.15);
    color: var(--primary);
    border-radius: 20px;
    transition: var(--transition);
}

.timeline-content:hover .tech-tags span {
    background: rgba(132, 66, 255, 0.25);
    box-shadow: 0 3px 10px rgba(132, 66, 255, 0.2);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: calc(50% + 60px);
    text-align: left;
}

html[lang="en"] .timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: calc(50% + 60px);
    text-align: right;
}

.timeline-item .timeline-dot::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(132, 66, 255, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 8px 15px rgba(132, 66, 255, 0.3);
}

.timeline-icon i {
    font-size: 24px;
    color: #fff;
}

.timeline-content:before {
    content: '';
    position: absolute;
    top: 30px;
    right: -30px;
    width: 30px;
    height: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-right: 0;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

html[lang="en"] .timeline-content:before {
    right: auto;
    left: -30px;
    border-left: 0;
    border-right: 1px solid var(--glass-border);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.timeline-item:nth-child(even) .timeline-content:before {
    right: auto;
    left: -30px;
    border-left: 0;
    border-right: 1px solid var(--glass-border);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

html[lang="en"] .timeline-item:nth-child(even) .timeline-content:before {
    left: auto;
    right: -30px;
    border-right: 0;
    border-left: 1px solid var(--glass-border);
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.timeline-date i {
    font-size: 18px;
    color: var(--secondary);
}

/* تعديلات للشاشات المتوسطة والصغيرة */
@media (max-width: 992px) {
    .timeline::before {
        right: 30px;
        transform: none;
    }
    
    html[lang="en"] .timeline::before {
        right: auto;
        left: 30px;
    }
    
    .timeline-dot {
        right: 30px;
        transform: none;
    }
    
    html[lang="en"] .timeline-dot {
        right: auto;
        left: 30px;
    }
    
    .timeline-item:hover .timeline-dot {
        transform: scale(1.2);
    }
    
    .timeline-date {
        position: relative;
        top: 0;
        left: auto;
        right: auto;
        display: inline-flex;
        margin-bottom: 15px;
        font-size: 0.9rem;
        width: fit-content;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-right: 80px;
        margin-left: 0;
        padding: 25px;
    }
    
    html[lang="en"] .timeline-content {
        margin-right: 0;
        margin-left: 80px;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 80px;
        margin-left: 0;
        text-align: right;
    }
    
    html[lang="en"] .timeline-item:nth-child(even) .timeline-content {
        margin-right: 0;
        margin-left: 80px;
        text-align: left;
    }
    
    .timeline-content:before,
    .timeline-item:nth-child(even) .timeline-content:before,
    html[lang="en"] .timeline-content:before,
    html[lang="en"] .timeline-item:nth-child(even) .timeline-content:before {
        display: none;
    }
}

/* تعديلات إضافية للشاشات الصغيرة جدًا */
@media (max-width: 576px) {
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
    }
    
    .timeline-icon i {
        font-size: 20px;
    }
    
    .timeline-content h3 {
        font-size: 20px;
    }
    
    .timeline-content h4 {
        font-size: 16px;
    }
    
    .timeline-content p {
        font-size: 15px;
    }
    
    .tech-tags span {
        font-size: 12px;
        padding: 5px 12px;
    }
}


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

.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }
  
  .animate.active {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* تأخيرات متتالية للعناصر */
  .animate.delay-1 { transition-delay: 0.2s; }
  .animate.delay-2 { transition-delay: 0.4s; }
  .animate.delay-3 { transition-delay: 0.6s; }

/* Projects Section */
.projects {
    background-color: rgba(26, 26, 46, 0.6);
    position: relative;
    overflow: hidden;
}

body[data-theme="light"] .projects {
    background-color: rgba(241, 241, 241, 0.7);
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="none"/><circle cx="3" cy="3" r="1" fill="%238442ff" opacity="0.1"/></svg>');
    z-index: -1;
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
    gap: 12px;
}

.filter-btn {
    background: rgba(132, 66, 255, 0.1);
    border: 1px solid rgba(132, 66, 255, 0.2);
    color: var(--light);
    padding: 12px 25px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 25px;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(132, 66, 255, 0.3);
    border-color: transparent;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

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

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-item:hover .project-img img {
    transform: scale(1.12);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.95), rgba(26, 26, 46, 0.5) 70%, transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.215, 0.610, 0.355, 1);
    transform: translateY(20px);
    pointer-events: none;
}

.project-item.coming-soon .soon-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    transition: var(--transition);
}

.project-item.coming-soon .soon-overlay i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.project-item.coming-soon:hover .soon-overlay {
    background: rgba(26, 26, 46, 0.8);
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.project-desc {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 50px;
}

.project-tech span {
    font-size: 12px;
    padding: 5px 12px;
    background: rgba(132, 66, 255, 0.25);
    color: #fff;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.project-item:hover .project-tech span {
    background: rgba(132, 66, 255, 0.35);
    transform: translateY(-2px);
}

.project-links {
    position: absolute;
    bottom: 25px;
    right: 25px;
    display: flex;
    gap: 12px;
    z-index: 2;
}

.project-link {
    width: 45px;
    height: 45px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-circle);
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    z-index: 3;
    box-shadow: var(--shadow-md);
}

.project-link:hover {
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(132, 66, 255, 0.4);
}

.projects-cta {
    text-align: center;
    margin-top: 50px;
}

/* Testimonials Section */
.testimonials-slider {
    position: relative;
    padding: 40px 0;
}

.testimonial-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 35px;
    margin: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.testimonial-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(132, 66, 255, 0.2);
    border-color: rgba(132, 66, 255, 0.3);
}

.testimonial-text {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--light);
    position: relative;
    padding-right: 35px;
}

.testimonial-text::before {
    content: "\201C";
    position: absolute;
    right: -15px;
    top: -25px;
    font-size: 90px;
    color: var(--primary);
    opacity: 0.2;
    font-family: 'Arial', sans-serif;
    transition: var(--transition);
}

.testimonial-item:hover .testimonial-text::before {
    opacity: 0.4;
    transform: translateY(-5px);
}

.rating {
    color: #ffd700;
    margin-bottom: 18px;
    display: flex;
    gap: 3px;
}

.rating i {
    margin-left: 3px;
    filter: drop-shadow(0 2px 3px rgba(255, 215, 0, 0.3));
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary) !important;
    background: rgba(132, 66, 255, 0.15);
    width: 45px !important;
    height: 45px !important;
    border-radius: var(--border-radius-circle);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 22px !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(132, 66, 255, 0.3);
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5) !important;
    opacity: 1 !important;
    width: 10px !important;
    height: 10px !important;
    transition: var(--transition);
}

.swiper-pagination-bullet-active {
    background: var(--gradient) !important;
    transform: scale(1.3);
}

.coming-soon-section {
    text-align: center;
    padding: 60px 25px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    margin: 30px 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.coming-soon-section:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(132, 66, 255, 0.2);
}

.coming-soon-section i {
    font-size: 70px;
    color: var(--primary);
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
}

.coming-soon-section p {
    text-align: center;
    margin: 0 auto;
    display: block;
}

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

.blog-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.blog-preview-item {
    padding: 25px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    transition: var(--transition);
}

.blog-preview-item:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-md);
    border-color: rgba(132, 66, 255, 0.2);
}

.blog-preview-item h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary);
    transition: var(--transition);
}

.blog-preview-item:hover h4 {
    color: var(--secondary);
}

/* ... existing code ... */

/* قسم الأسئلة الشائعة */
.faq {
    background-color: rgba(26, 26, 46, 0.7);
    position: relative;
    overflow: hidden;
}

body[data-theme="light"] .faq {
    background-color: rgba(241, 241, 241, 0.7);
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" fill="none"/><circle cx="3" cy="3" r="1" fill="%238442ff" opacity="0.1"/></svg>');
    z-index: -1;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(132, 66, 255, 0.3);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question h3 {
    font-size: 18px;
    margin: 0;
    color: var(--light);
    transition: var(--transition);
}

.faq-icon {
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-icon i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 1000px;
}

.faq-item.active .faq-question {
    background: rgba(132, 66, 255, 0.1);
}

.faq-item.active .faq-question h3 {
    color: var(--primary);
}

@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 16px;
    }
    
    .faq-answer p {
        font-size: 15px;
    }
}

/* Contact Section */
.contact {
    background-color: rgba(26, 26, 46, 0.8);
    position: relative;
    overflow: hidden;
}

body[data-theme="light"] .contact {
    background-color: rgba(241, 241, 241, 0.8);
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('/api/placeholder/1600/900') no-repeat center center/cover;
    opacity: 0.05;
    z-index: -1;
    filter: blur(5px);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.contact-info {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 35px;
    transition: var(--transition);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.contact-info:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(132, 66, 255, 0.25);
    border-color: rgba(132, 66, 255, 0.3);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    gap: 18px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(132, 66, 255, 0.15);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    top: 0;
    left: 0;
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.contact-item:hover .contact-icon::before {
    opacity: 1;
}

.contact-icon i {
    font-size: 22px;
    color: var(--primary);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.contact-item:hover .contact-icon i {
    color: white;
    transform: scale(1.2);
}

.contact-details h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 600;
}

body[data-theme="light"] .contact-details h4 {
    color: var(--primary);
}

body[data-theme="light"] .contact-details a {
    color: var(--primary);
}

.contact-details p, 
.contact-details a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    line-height: 1.6;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.contact-details a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    padding: 35px;
    transition: var(--transition);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.contact-form:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(132, 66, 255, 0.25);
    border-color: rgba(132, 66, 255, 0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-control {
    width: 100%;
    padding: 15px 22px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    color: var(--light);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.4s ease;
    outline: none;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.form-control:focus {
    border-color: var(--primary);
    background: rgba(132, 66, 255, 0.08);
    box-shadow: 0 0 20px rgba(132, 66, 255, 0.2);
}

.form-control:hover:not(:focus) {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
}

body[data-theme="light"] .form-control {
    background: rgba(26, 26, 46, 0.05);
    border-color: rgba(26, 26, 46, 0.1);
    color: var(--dark);
}

body[data-theme="light"] .form-control::placeholder {
    color: rgba(26, 26, 46, 0.6);
}

body[data-theme="light"] .form-control:focus {
    border-color: var(--secondary);
    background: rgba(255, 66, 198, 0.05);
    box-shadow: 0 0 20px rgba(255, 66, 198, 0.2);
}

.form-control.invalid {
    border-color: #ff4d4d;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

button[type="submit"] {
    width: 100%;
    padding: 16px;
    background: var(--gradient);
    border: none;
    border-radius: var(--border-radius-sm);
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

button[type="submit"]:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(132, 66, 255, 0.4);
}

button[type="submit"]:hover::before {
    left: 100%;
}

.btn-primary {
    text-align: center;
    display: inline-block;
}

/* Footer Section */
.footer {
    background: rgba(26, 26, 46, 0.98);
    padding: 90px 0 30px;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

body[data-theme="light"] .footer {
    background: rgba(241, 241, 241, 0.98);
    border-top-color: rgba(26, 26, 46, 0.1);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(132, 66, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 66, 198, 0.03) 0%, transparent 50%);
    z-index: -1;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 70px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 أعمدة متساوية */
    gap: 30px;
}

.footer-col:last-child {
    grid-column: span 1;
}

.footer-brand .logo {
    font-size: 30px;
    margin-bottom: 25px;
    display: inline-block;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    font-size: 16px;
}

body[data-theme="light"] .footer-brand p {
    color: rgba(26, 26, 46, 0.7);
}

.footer-col h4 {
    font-size: 22px;
    margin-bottom: 30px;
    color: var(--light);
    position: relative;
    padding-bottom: 12px;
    font-weight: 600;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 14px;
    transition: var(--transition);
}

.footer-col li:hover {
    transform: translateX(8px);
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 5px 0;
    font-size: 16px;
}

body[data-theme="light"] .footer-col a {
    color: rgba(26, 26, 46, 0.7);
}

.footer-col a:hover {
    color: var(--primary);
}

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

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(132, 66, 255, 0.1);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    top: 0;
    left: 0;
    opacity: 0;
    transition: var(--transition);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link i {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 20px rgba(132, 66, 255, 0.3);
}

.social-link:hover i {
    color: white;
}

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

body[data-theme="light"] .footer-bottom {
    border-top-color: rgba(26, 26, 46, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    text-align: center;
}

body[data-theme="light"] .copyright {
    color: rgba(26, 26, 46, 0.5);
}

/* زر الشهادة */
.btn-certificate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 2px solid var(--primary);
    border-radius: var(--border-radius-md);
    padding: 12px 22px;
    margin-top: 18px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 15px rgba(132,66,255,0.15);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    z-index: 1;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .btn-certificate,
body[data-theme="dark"] .btn-certificate {
    color: #ffffff;
    border-color: var(--primary);
    background: rgba(132, 66, 255, 0.2);
}

.btn-certificate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
}

.btn-certificate i {
    margin-left: 10px;
    font-size: 1.15rem;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body[data-theme="light"].btn-certificate i {
    color: var(--light);
}

.btn-certificate:hover, .btn-certificate:focus {
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255,66,198,0.25);
}

.btn-certificate:hover::before {
    width: 100%;
}

.btn-certificate:hover i {
    color: #ffffff;
    transform: rotate(20deg) scale(1.2);
}

.btn-certificate:active {
    transform: translateY(-2px);
}

/* تعديلات للشاشات الصغيرة */
@media (max-width: 768px) {
    .btn-certificate {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
        padding: 12px 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

/* Responsive Rules */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-grid {
        gap: 40px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 2fr;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .nav-links {
        display: none;
    }
    
    .burger {
        display: block;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
        margin-bottom: 30px;
    }
    
    .cta-buttons, .social-links {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-img {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline::before {
        right: 20px;
        left: auto;
        transform: none;
    }
    
    .timeline-item {
        padding-right: 60px;
        padding-left: 0;
    }
    
    .timeline-dot {
        right: 11px;
        left: auto;
        transform: none;
    }
    
    .timeline-content {
        width: 100%;
        margin-right: 0;
    }
    
    .timeline-date {
        right: auto;
        left: 0;
        top: -40px;
        position: relative;
        display: inline-block;
        margin-bottom: 15px;
        text-align: left;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-right: 0;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 20px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .project-filters {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .project-filters button {
        padding: 8px 16px;
        font-size: 14px;
        flex: 1 0 calc(50% - 10px);
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-col h4 {
        margin-bottom: 15px;
    }
    
    .footer-col {
        text-align: right;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .contact-form,
    .contact-info {
        padding: 25px 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
    }
    
    .timeline-icon i {
        font-size: 20px;
    }
    
    .timeline-content h3 {
        font-size: 20px;
    }
    
    .timeline-content h4 {
        font-size: 16px;
    }
    
    .timeline-content p {
        font-size: 15px;
    }
    
    .tech-tags span {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .skill-item {
        padding: 15px;
    }
    
    .project-overlay h3 {
        font-size: 18px;
    }
    
    .project-overlay p {
        font-size: 14px;
    }
    
    .project-tech span {
        padding: 3px 6px;
        font-size: 11px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .nav-content {
        padding: 15px 0;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        left: 15px;
    }
    
    .timeline-item {
        padding-right: 50px;
    }
    
    .timeline::before {
        right: 15px;
    }
    
    .timeline-dot {
        right: 6px;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .profile-wrapper {
        width: 200px;
        height: 200px;
    }
    
    .experience-badge {
        width: 70px;
        height: 70px;
        font-size: 0.8rem;
    }
    
    .exp-years {
        font-size: 1.5rem;
    }
}

@media (max-width: 992px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--dark);
        z-index: 999;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        animation: slideIn 0.3s ease-in-out;
        overflow-y: auto;
    }
    
    @keyframes slideIn {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    .nav-links.active li {
        margin: 0;
        width: 100%;
    }
    
    .nav-links.active a {
        display: block;
        padding: 15px 30px;
        font-size: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .nav-links.active a:hover,
    .nav-links.active a.active {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--primary);
        padding-right: 35px;
    }
    
    .burger.active .line1 {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .burger.active .line2 {
        opacity: 0;
    }
    
    .burger.active .line3 {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1440px;
    }
    
    .hero-grid {
        gap: 80px;
    }
    
    h1 {
        font-size: 3.5rem;
    }
    
    .profile-wrapper {
        width: 350px;
        height: 350px;
    }
    
    .section {
        padding: 120px 0;
    }
}

@media print {
    .nav-content, .burger, .theme-toggle, .scroll-top-btn, .footer, .contact-form {
        display: none !important;
    }
    
    body {
        background-color: #fff !important;
        color: #000 !important;
    }
    
    .section {
        padding: 20px 0 !important;
        page-break-inside: avoid;
    }
    
    a {
        color: #000 !important;
        text-decoration: none !important;
    }
    
    .container {
        max-width: 100% !important;
    }
    
    .profile-wrapper {
        box-shadow: none !important;
    }
    
    .btn {
        border: 1px solid #000 !important;
        color: #000 !important;
        background: none !important;
    }
    
    .timeline::before, .timeline-dot {
        background-color: #000 !important;
    }
    
    .skill-bar, .skill-progress {
        border: 1px solid #000 !important;
    }
    
    .skill-progress {
        background-color: #666 !important;
    }
}

/* تعديلات للغة الإنجليزية */
html[lang="en"] {
    direction: ltr;
}

html[lang="en"] body {
    font-family: 'Poppins', sans-serif;
}

html[lang="en"] .nav-links {
    padding-right: 0;
    padding-left: 0;
}

html[lang="en"] .language-dropdown {
    right: auto;
    left: 0;
}

/* تعديلات إضافية للغة الإنجليزية */
html[lang="en"] .subtitle::before {
    right: auto;
    left: -20px;
}

html[lang="en"] .logo::after {
    right: auto;
    left: 0;
}

html[lang="en"] .nav-links a::after {
    right: auto;
    left: 0;
}

html[lang="en"] .nav-links li {
    margin-right: 0;
    margin-left: 25px;
}

html[lang="en"] .btn i {
    margin-right: 0;
    margin-left: 8px;
}

html[lang="en"] .section-title h2::after {
    right: 30%;
    left: 30%;
}

html[lang="en"] .about-img::before {
    right: auto;
    left: -20px;
}

html[lang="en"] .about-img:hover::before {
    right: auto;
    left: -15px;
}

html[lang="en"] .experience-badge {
    right: auto;
    left: -25px;
}

html[lang="en"] .info-item:hover {
    transform: translateX(-5px);
}

html[lang="en"] .language-switcher {
    margin-right: 0;
    margin-left: 20px;
}

@media (max-width: 768px) {
    html[lang="en"] .language-switcher {
        margin-right: 0;
        margin-left: 15px;
    }
    
    html[lang="en"] .nav-links .language-dropdown {
        left: 0;
        right: auto;
    }
}

/* تعديلات للقائمة المتنقلة في الإنجليزية */
@media (max-width: 768px) {
    html[lang="en"] .nav-active .nav-links {
        right: auto;
        left: 0;
        transform: translateX(-100%);
    }
    
    html[lang="en"] .nav-active .nav-links.active {
        transform: translateX(0);
    }
}

/* تعديلات للأزرار في الإنجليزية */
html[lang="en"] .cta-buttons {
    flex-direction: row;
}

html[lang="en"] .hero-text {
    text-align: left;
}

html[lang="en"] .about-text {
    text-align: left;
}

html[lang="en"] .section-title {
    text-align: center;
}

/* تعديلات للأيقونات في الإنجليزية */
html[lang="en"] .fa-arrow-left:before {
    content: "\f061"; /* تغيير السهم للاتجاه المعاكس */
}

html[lang="en"] .theme-toggle,
html[lang="en"] .scroll-top-btn {
    right: auto;
    left: 20px;
}