:root {
    /* Joyful Tech & AI Palette */
    --primary-color: #4F46E5; /* Indigo - Deep Tech */
    --secondary-color: #7C3AED; /* Violet - AI & Creativity */
    --accent-color: #06B6D4; /* Cyan - Future & Innovation */
    --success-color: #10B981; /* Green */
    --warning-color: #F59E0B; /* Orange */
    --text-primary: #1E293B; /* Slate 800 */
    --text-secondary: #475569; /* Slate 600 */
    --white: #ffffff;
    --bg-color: #F8FAFC; /* Slate 50 */
    --card-bg: #ffffff;
    --section-alt: #F1F5F9; /* Slate 100 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Cairo', sans-serif;
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    --gradient-glow: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.3);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.5);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #06B6D4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader {
    text-align: center;
}

.loader-circle {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loader-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

.loader-text .dots::after {
    content: '';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-color);
    overflow-x: hidden;
    position: relative;
    padding-top: 65px;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(180deg, #F8FAFC 0%, #E0E7FF 100%);
}

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

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

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

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

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

/* Section Divider */
.section-line {
    width: 80px;
    height: 4px;
    background: var(--gradient-main);
    margin: 0.5rem auto 0;
    border-radius: 2px;
    position: relative;
}

.section-line::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--accent-color);
    right: -50px;
    border-radius: 2px;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 65px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(79, 70, 229, 0.1);
    animation: slideDown 0.5s ease-out;
}

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

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
}

.logo i {
    font-size: 1.8rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo span {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-heading);
}

.logo:hover {
    transform: scale(1.1);
}

.logo:hover i {
    animation: bounce 0.6s ease;
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
    transition: var(--transition);
    position: relative;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-main);
    transition: var(--transition);
}

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

#lang-toggle {
    padding: 0.45rem 1.2rem;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.8rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

#lang-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    transition: var(--transition);
    z-index: -1;
}

#lang-toggle:hover::before {
    left: 0;
}

#lang-toggle:hover {
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    padding-top: 80px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 5rem;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-text {
    flex: 1;
    animation: fadeInLeft 1s ease-out;
}

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

.greeting {
    color: var(--secondary-color);
    font-family: var(--font-main);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(79, 70, 229, 0.05));
    border-radius: 50px;
    border: 2px solid rgba(124, 58, 237, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    }
}

/* Glitch Effect */
.glitch {
    position: relative;
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 900;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 90%, 100% {
        transform: translate(0);
    }
    92% {
        transform: translate(-2px, 2px);
    }
    94% {
        transform: translate(2px, -2px);
    }
    96% {
        transform: translate(-2px, -2px);
    }
    98% {
        transform: translate(2px, 2px);
    }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    color: var(--primary-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    color: var(--accent-color);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 90%, 100% {
        transform: translate(0);
    }
    91% {
        transform: translate(-2px, -2px);
        opacity: 0.6;
    }
    92% {
        transform: translate(0);
        opacity: 0;
    }
}

@keyframes glitch-2 {
    0%, 90%, 100% {
        transform: translate(0);
    }
    93% {
        transform: translate(2px, 2px);
        opacity: 0.6;
    }
    94% {
        transform: translate(0);
        opacity: 0;
    }
}

/* Typing Effect */
.typing-text {
    font-size: 2rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -10px;
    color: var(--primary-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(79, 70, 229, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.stat-item:hover::before {
    transform: scaleX(1);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 600;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    border: none;
}

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

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

.btn span {
    position: relative;
    z-index: 1;
}

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

.btn.primary {
    background: var(--gradient-main);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.btn.primary:hover i {
    transform: translateX(5px);
}

.btn.secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid #e2e8f0;
    box-shadow: var(--shadow-md);
}

.btn.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Hero Image with Badges */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    animation: fadeInRight 1s ease-out;
}

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

.image-wrapper {
    position: relative;
    width: 500px;
    height: 500px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1), -20px -20px 60px rgba(255,255,255,0.5);
    transition: var(--transition);
    z-index: 2;
    position: relative;
    border: 5px solid var(--white);
}

.hero-image img:hover {
    transform: scale(1.02);
    box-shadow: 25px 25px 70px rgba(79, 70, 229, 0.2);
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    border-radius: 30px;
    top: 30px;
    right: -30px;
    opacity: 0.15;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

[dir="rtl"] .hero-image::before {
    right: auto;
    left: -30px;
}

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

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    border: 2px solid rgba(79, 70, 229, 0.1);
    animation: floatBadge 3s ease-in-out infinite;
    z-index: 3;
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.floating-badge i {
    font-size: 1.5rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.badge-2 {
    top: 50%;
    right: -15%;
    animation-delay: 0.5s;
}

.badge-3 {
    bottom: 15%;
    left: -5%;
    animation-delay: 1s;
}

/* Sections General */
section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Animated Backgrounds for Each Section */
/* Hero Section - Geometric Shapes */
#hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
}

#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    filter: blur(40px);
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
    filter: blur(40px);
}

/* About Section - Clean Subtle */
#about {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}

/* Services Section - Minimal */
#services {
    position: relative;
    overflow: hidden;
    background: #F8FAFC;
}

#services::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
}

/* Skills Section - Simple */
#skills {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
}

#skills::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
}

/* Tech Stack - Clean */
#tech-stack {
    position: relative;
    overflow: hidden;
    background: #F8FAFC;
}

#tech-stack::before {
    content: '';
    position: absolute;
    top: 50%;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
}

/* Experience Section - Elegant */
#experience {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
}

#experience::before {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
}

/* Achievements - Professional */
#achievements {
    position: relative;
    overflow: hidden;
    background: #F8FAFC;
}

#achievements::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
}

/* Certifications - Minimal */
#certifications {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
}

#certifications::before {
    content: '';
    position: absolute;
    top: 0;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
}

/* Portfolio - Simple */
#portfolio {
    position: relative;
    overflow: hidden;
    background: #F8FAFC;
}

#portfolio::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
}

/* Recommendations - Clean */
#recommendations {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
}

#recommendations::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(100px);
}

/* Contact - Professional */
#contact {
    position: relative;
    overflow: hidden;
    background: #F8FAFC;
}

#contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(120px);
}

.section-alt {
    background: linear-gradient(180deg, var(--section-alt) 0%, var(--bg-color) 100%);
    width: 100%;
    max-width: 100%;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 1;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 900;
}

.section-header p {
    color: #475569;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.about-left {
    position: sticky;
    top: 100px;
}

.about-image-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
}

.about-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
    border-radius: 20px;
}

.about-image-card:hover .about-img {
    transform: scale(1.05);
}

.about-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

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

.highlight-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.highlight-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.highlight-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.about-right {
    animation: fadeInRight 1s ease-out;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.about-expertise {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 2px solid rgba(79, 70, 229, 0.1);
}

.about-expertise h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.expertise-list {
    list-style: none;
}

.expertise-list li {
    padding: 0.8rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    border-bottom: 1px solid #f1f5f9;
    transition: var(--transition);
}

.expertise-list li:last-child {
    border-bottom: none;
}

.expertise-list li:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.expertise-list li i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.education-section h3 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.education-section h3 i {
    color: var(--accent-color);
}

.edu-card {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 12px;
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-main);
    transition: var(--transition);
}

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

.edu-card:hover::before {
    width: 100%;
    opacity: 0.05;
}

.edu-card .year {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50px;
}

.edu-card h3 {
    color: var(--text-primary);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.edu-card p {
    color: #475569;
    font-size: 0.95rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.2);
}

.service-card .icon-box {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    position: relative;
}

.service-card .icon-box::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: var(--gradient-main);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .icon-box::before {
    opacity: 1;
}

.service-card:hover .icon-box {
    transform: rotateY(360deg) scale(1.1);
    color: var(--white);
}

.service-card:hover .icon-box i {
    position: relative;
    z-index: 1;
}

.service-card h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.service-card p {
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}

.skill-tag {
    background: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    border: 2px solid #e2e8f0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.skill-tag:hover::before {
    left: 0;
}

.skill-tag i,
.skill-tag span {
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.skill-tag i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.skill-tag:hover {
    border-color: transparent;
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-glow);
}

.skill-tag:hover i,
.skill-tag:hover span {
    color: var(--white);
}

/* Tech Stack Section */
.tech-categories {
    display: grid;
    gap: 3rem;
}

.tech-category {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tech-category h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--border);
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.2);
}

.tech-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tech-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.tech-item:hover .tech-icon img {
    transform: scale(1.1) rotateY(360deg);
}

.tech-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
}

.tech-item span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
}

.tech-level {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.tech-level::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--level);
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 1s ease;
}

.tech-item:hover .tech-level::after {
    animation: pulse 1.5s infinite;
}

.tech-item[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--dark-text);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 10;
}

.tech-item[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

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

.achievement-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.achievement-card:hover::before {
    transform: scaleX(1);
}

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

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
}

.achievement-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.achievement-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.achievement-card p {
    color: #475569;
    line-height: 1.6;
}

/* Contact Section Enhanced */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.contact-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.contact-card a,
.contact-card p {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: var(--primary);
}

.contact-social {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    text-align: center;
}

.contact-social h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.1);
    border: 2px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.25rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.social-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: white;
}

.social-btn.github:hover {
    background: #333;
    border-color: #333;
    color: white;
}

.social-btn.email:hover {
    background: #ea4335;
    border-color: #ea4335;
    color: white;
}

.social-btn.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.social-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--dark-text);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.social-btn[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

.cta-banner {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn.primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn.primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 30px;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out;
}

[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 80px;
}

.timeline-dot {
    position: absolute;
    left: 21px;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--primary-color);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(79, 70, 229, 0.2);
    }
}

[dir="rtl"] .timeline-dot {
    left: auto;
    right: 21px;
}

.timeline-date {
    color: var(--accent-color);
    font-weight: 800;
    margin-bottom: 0.8rem;
    display: inline-block;
    font-size: 0.95rem;
    padding: 0.4rem 1.2rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50px;
    border: 2px solid rgba(6, 182, 212, 0.2);
}

.timeline-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-main);
    transform: scaleY(0);
    transform-origin: top;
    transition: var(--transition);
}

.timeline-content:hover::before {
    transform: scaleY(1);
}

.timeline-content:hover {
    box-shadow: var(--shadow-xl);
    border-color: rgba(79, 70, 229, 0.2);
    transform: translateX(10px);
}

[dir="rtl"] .timeline-content:hover {
    transform: translateX(-10px);
}

.timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.timeline-content h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.timeline-content p {
    color: #475569;
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.cert-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid #f1f5f9;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent);
    transform: scaleY(0);
    transition: var(--transition);
}

.cert-card:hover::before {
    transform: scaleY(1);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.cert-icon {
    color: var(--secondary-color);
    font-size: 2.5rem;
    transition: var(--transition);
}

.cert-card:hover .cert-icon {
    transform: rotateY(360deg) scale(1.2);
    color: var(--accent-color);
}

.cert-info h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.cert-info span {
    color: #475569;
    font-size: 0.9rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
    position: relative;
    cursor: pointer;
}

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

.portfolio-item:hover::before {
    opacity: 0.05;
}

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

.portfolio-content {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

.portfolio-cat {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 50px;
    letter-spacing: 1px;
}

.portfolio-content h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 800;
}

.portfolio-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    margin-top: 1rem;
}

.portfolio-link:hover {
    background: var(--primary-color);
    color: var(--white);
    gap: 1.2rem;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

/* Recommendations */
.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.rec-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 2px solid #f1f5f9;
    position: relative;
    transition: var(--transition);
    cursor: pointer;
}

.rec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glow);
    opacity: 0;
    transition: var(--transition);
    border-radius: 20px;
}

.rec-card:hover::before {
    opacity: 1;
}

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

.rec-card i {
    color: var(--accent-color);
    font-size: 2.5rem;
    opacity: 0.2;
    margin-bottom: 1.5rem;
    display: block;
}

.rec-text {
    font-style: italic;
    color: #475569;
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.rec-author {
    position: relative;
    z-index: 1;
}

.rec-author h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 800;
}

.rec-author span {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Contact */
.contact-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

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

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

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

.social-btn:hover {
    transform: translateY(-10px) rotate(360deg);
    box-shadow: var(--shadow-glow);
}

.social-btn:hover i {
    color: var(--white);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    background: linear-gradient(180deg, var(--bg-color) 0%, #E0E7FF 100%);
    color: #1E293B;
    font-size: 1rem;
    border-top: 2px solid rgba(79, 70, 229, 0.1);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.6);
}

.back-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-left {
        position: static;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .glitch {
        font-size: 2.5rem;
    }

    .typing-text {
        font-size: 1.5rem;
    }

    .hero-btns {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
        grid-template-columns: 1fr;
    }
    
    .image-wrapper {
        width: 350px;
        height: 350px;
    }
    
    .floating-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .nav-links {
        display: none;
    }
    
    .services-grid,
    .cert-grid,
    .portfolio-grid,
    .recommendations-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .cta-banner {
        padding: 3rem 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
} /* Indigo - Deep Tech */
    --secondary-color: #7C3AED; /* Violet - AI & Creativity */
    --accent-color: #06B6D4; /* Cyan - Future & Innovation */
    --text-primary: #1E293B; /* Slate 800 */
    --text-secondary: #475569; /* Slate 600 */
    --white: #ffffff;
    --bg-color: #F8FAFC; /* Slate 50 */
    --card-bg: #ffffff;
    --section-alt: #F1F5F9; /* Slate 100 */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Cairo', sans-serif;
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-color);
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

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

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

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

#lang-toggle {
    padding: 0.6rem 1.5rem;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-main);
    font-weight: 700;
    transition: var(--transition);
}

#lang-toggle:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    padding-top: 80px;
    max-width: 1400px;
    margin: 0 auto;
    background-image: radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.05) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 20%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.greeting {
    color: var(--secondary-color);
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 50px;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-text h2 {
    font-size: 1.8rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn.primary {
    background: var(--gradient-main);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
}

.btn.secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid #e2e8f0;
}

.btn.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image img {
    max-width: 450px;
    width: 100%;
    border-radius: 20px;
    box-shadow: 20px 20px 60px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 2;
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    border-radius: 20px;
    top: 20px;
    right: -20px;
    opacity: 0.2;
    z-index: 1;
}

[dir="rtl"] .hero-image::before {
    right: auto;
    left: -20px;
}

/* Sections General */
section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-alt {
    background-color: var(--section-alt);
    width: 100%;
    max-width: 100%;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--gradient-main);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* About */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.education-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.edu-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.edu-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.edu-card .year {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.edu-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::before {
    transform: scaleX(1);
}

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

.service-card .icon-box {
    width: 60px;
    height: 60px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-tag {
    background: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    border: 1px solid #e2e8f0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-tag i {
    color: var(--secondary-color);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.skill-tag:hover i {
    color: var(--white);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #e2e8f0;
}

[dir="rtl"] .timeline::before {
    left: auto;
    right: 20px;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

[dir="rtl"] .timeline-item {
    padding-left: 0;
    padding-right: 60px;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--white);
    border: 4px solid var(--primary-color);
    z-index: 1;
}

[dir="rtl"] .timeline-dot {
    left: auto;
    right: 11px;
}

.timeline-content {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.timeline-date {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: inline-block;
    font-size: 0.9rem;
}

.timeline-content h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.portfolio-item {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
}

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

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.portfolio-cat {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.portfolio-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.portfolio-link:hover {
    color: var(--secondary-color);
    gap: 0.8rem;
}

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

.rec-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    position: relative;
}

.rec-card i {
    color: var(--accent-color);
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.rec-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.rec-author h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.rec-author span {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.cert-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.cert-icon {
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.cert-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.cert-info span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Contact */
.contact-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
}

.social-btn:hover {
    background: var(--gradient-main);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    background: var(--white);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}

