/* ==============================================
   MODERN PORTFOLIO - KHALED MOHAMED
   Dark/Light Theme | EN/AR Support | GSAP Animations
   ============================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==============================================
   CSS VARIABLES - DARK THEME
   ============================================== */

:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d1;
    --text-muted: #7a7a9d;
    
    /* Accent Colors */
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #ec4899;
    --accent-success: #10b981;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #1a1a2e 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
}

/* Light Theme Variables */
body.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #6a6a8a;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.2);
}

/* Shimmer effect for headings */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.section-title {
    animation: shimmer 3s infinite linear;
    background: var(--gradient-primary);
    background-size: 2000px 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==============================================
   GLOBAL RESET & BASE STYLES
   ============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* RTL Support */
body[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

ul {
    list-style: none;
}

/* ==============================================
   UTILITY CLASSES
   ============================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.6s;
}

.btn-primary:hover::after {
    transform: translate(-50%, -50%) scale(2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(99, 102, 241, 0.5), 0 0 100px rgba(99, 102, 241, 0.3);
    animation: buttonPulse 1s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 0 50px rgba(99, 102, 241, 0.5); }
    50% { box-shadow: 0 0 80px rgba(99, 102, 241, 0.7), 0 0 120px rgba(139, 92, 246, 0.4); }
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* ==============================================
   NAVIGATION
   ============================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.light-theme .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--spacing-md);
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.nav-brand a {
    font-size: var(--font-size-xl);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-base);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-end;
}

/* Social Links in Navbar */
.nav-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.75rem;
    margin-right: 0.75rem;
    border-right: 2px solid rgba(99, 102, 241, 0.3);
}

.nav-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.nav-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.nav-social a i {
    position: relative;
    z-index: 1;
}

.nav-social a:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
    color: white;
}

.nav-social a:hover::before {
    opacity: 1;
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-base);
    position: relative;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--bg-tertiary);
}

.theme-icon {
    position: absolute;
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.dark-theme .theme-icon.sun {
    opacity: 0;
    transform: rotate(180deg);
}

.dark-theme .theme-icon.moon {
    opacity: 1;
    transform: rotate(0deg);
}

.light-theme .theme-icon.sun {
    opacity: 1;
    transform: rotate(0deg);
}

.light-theme .theme-icon.moon {
    opacity: 0;
    transform: rotate(-180deg);
}

/* Language Toggle */
.lang-toggle {
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

.lang-option {
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.lang-option.active {
    background: var(--gradient-primary);
    color: white;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    height: 24px;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ==============================================
   HERO SECTION
   ============================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 60%);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(99, 102, 241, 0.03) 2px, rgba(99, 102, 241, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(139, 92, 246, 0.03) 2px, rgba(139, 92, 246, 0.03) 4px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: 
        radial-gradient(circle at 30% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 70% 60%, rgba(236, 72, 153, 0.08) 0%, transparent 30%);
    animation: heroRotate 30s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes heroRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    100% {
        transform: rotate(360deg) scale(1.2);
    }
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 25s ease-in-out infinite;
    mix-blend-mode: screen;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation: float 25s ease-in-out infinite, pulse 8s ease-in-out infinite;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary) 0%, transparent 70%);
    top: 40%;
    right: -5%;
    animation: float 30s ease-in-out infinite reverse, pulse 10s ease-in-out infinite;
    animation-delay: 2s;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-tertiary) 0%, transparent 70%);
    bottom: -5%;
    left: 40%;
    animation: float 28s ease-in-out infinite, pulse 12s ease-in-out infinite;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(40px, -40px) scale(1.15) rotate(90deg); }
    50% { transform: translate(-30px, 30px) scale(0.85) rotate(180deg); }
    75% { transform: translate(30px, 40px) scale(1.05) rotate(270deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; filter: blur(100px); }
    50% { opacity: 0.6; filter: blur(120px); }
}

/* Particle Canvas */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 900;
    margin-bottom: var(--spacing-md);
    line-height: 1.1;
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        var(--accent-secondary),
        var(--accent-tertiary),
        var(--accent-primary)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.5));
    letter-spacing: -0.02em;
    position: relative;
}

.hero-title::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        var(--accent-primary),
        var(--accent-secondary),
        var(--accent-tertiary)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: blur(20px);
    opacity: 0.7;
    animation: gradientFlow 4s ease-in-out infinite reverse;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-name {
    display: inline-block;
    animation: nameEntrance 1s ease-out;
}

@keyframes nameEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-2xl);
    color: var(--accent-primary);
    font-weight: 700;
    min-height: 45px;
    align-items: center;
}

.role-item {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.role-divider {
    color: var(--text-muted);
}

.hero-bio {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 4px solid var(--accent-primary);
    box-shadow: var(--shadow-glow), 0 0 100px rgba(99, 102, 241, 0.3);
    animation: imageFloat 6s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.hero-image img:hover {
    transform: scale(1.15);
    box-shadow: var(--shadow-glow), 0 0 150px rgba(99, 102, 241, 0.6), 0 0 200px rgba(139, 92, 246, 0.4);
    animation: none;
}

@keyframes imageFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.image-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: var(--gradient-primary);
    filter: blur(60px);
    opacity: 0.4;
    animation: pulse 3s ease-in-out infinite, rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* Floating Skill Icons */
.floating-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
    border: 2px solid var(--accent-primary);
    z-index: 3;
    transition: all var(--transition-base);
}

.floating-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
}

.floating-icon-1 {
    top: 10%;
    right: 10%;
    animation: floatIcon1 4s ease-in-out infinite;
}

.floating-icon-2 {
    bottom: 15%;
    left: 5%;
    animation: floatIcon2 5s ease-in-out infinite;
}

.floating-icon-3 {
    bottom: 40%;
    right: 0%;
    animation: floatIcon3 4.5s ease-in-out infinite;
}

@keyframes floatIcon1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(10deg); }
}

@keyframes floatIcon2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(-10deg); }
}

@keyframes floatIcon3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(8deg); }
}

/* ==============================================
   ABOUT SECTION
   ============================================== */

.about {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        linear-gradient(-135deg, transparent 50%, rgba(139, 92, 246, 0.08) 100%);
    animation: aboutWave 10s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.about::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(99, 102, 241, 0.02) 100px, rgba(99, 102, 241, 0.02) 101px),
        url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAxMCAwIEwgMCAwIDAgMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0icmdiYSg5OSwgMTAyLCAyNDEsIDAuMDUpIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=');
    animation: diagonalSlide 15s linear infinite;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}

@keyframes aboutWave {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) scale(1.05);
        opacity: 0.8;
    }
}

@keyframes diagonalSlide {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(100px) translateY(100px);
    }
}

/* About Canvas Background */
.about-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-text p {
    font-size: var(--font-size-lg);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.education {
    margin-top: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-primary);
}

.education h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--accent-primary);
}

/* ==============================================
   SKILLS SECTION
   ============================================== */

.skills {
    padding: var(--spacing-xl) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: skillsGlow 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.skills::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(30deg, rgba(99, 102, 241, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(99, 102, 241, 0.02) 87.5%, rgba(99, 102, 241, 0.02)),
        linear-gradient(150deg, rgba(139, 92, 246, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(139, 92, 246, 0.02) 87.5%, rgba(139, 92, 246, 0.02)),
        linear-gradient(30deg, rgba(99, 102, 241, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(99, 102, 241, 0.02) 87.5%, rgba(99, 102, 241, 0.02)),
        linear-gradient(150deg, rgba(139, 92, 246, 0.02) 12%, transparent 12.5%, transparent 87%, rgba(139, 92, 246, 0.02) 87.5%, rgba(139, 92, 246, 0.02));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    animation: hexMove 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes skillsGlow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes hexMove {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(80px) translateY(140px);
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.skill-chip {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-chip::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.skill-chip:hover::before {
    width: 300px;
    height: 300px;
}

.skill-chip:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-glow), 0 10px 40px rgba(99, 102, 241, 0.2);
}

.skill-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.skill-content {
    flex: 1;
}

.skill-content h4 {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.skill-subtext {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.skill-chip span:last-child {
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==============================================
   EXPERIENCE SECTION
   ============================================== */

.experience {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 1px),
        url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMTM5LCA5MiwgMjQ2LCAwLjEpIi8+PC9zdmc+');
    background-size: 40px 40px, 20px 20px;
    animation: dotPulse 3s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.experience::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.05) 50%, transparent 100%);
    animation: experienceBeam 5s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes dotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.02);
    }
}

@keyframes experienceBeam {
    0%, 100% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(200%);
        opacity: 0;
    }
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    animation: timelineGlow 3s ease-in-out infinite;
}

@keyframes timelineGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
        filter: brightness(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.8), 0 0 30px rgba(139, 92, 246, 0.5);
        filter: brightness(1.3);
    }
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: var(--spacing-lg);
}

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 4px solid var(--bg-secondary);
    z-index: 1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 0 30px rgba(99, 102, 241, 0.9), 0 0 40px rgba(139, 92, 246, 0.5);
    }
}

.timeline-content {
    background: var(--bg-tertiary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.timeline-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.timeline-content h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
}

.timeline-company {
    color: var(--text-muted);
    font-style: italic;
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-sm);
}

.timeline-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-sm) 0 0 0;
}

.timeline-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: var(--font-size-base);
}

.timeline-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
    font-size: 1.2em;
}

.timeline-list li:last-child {
    margin-bottom: 0;
}

/* ==============================================
   PROJECTS SECTION
   ============================================== */

.projects {
    padding: var(--spacing-xl) 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Project Notice */
.project-notice {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
    padding: 1.25rem 1.75rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
    animation: noticeGlow 3s ease-in-out infinite;
}

.project-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    border-radius: var(--radius-lg);
    transition: opacity var(--transition-base);
    z-index: -1;
}

.project-notice:hover::before {
    opacity: 0.05;
}

.project-notice i {
    font-size: 1.5rem;
    color: var(--accent-primary);
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
}

.project-notice p {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    font-weight: 500;
}

@keyframes noticeGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
        border-color: rgba(99, 102, 241, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(99, 102, 241, 0.4), 0 0 35px rgba(139, 92, 246, 0.2);
        border-color: rgba(99, 102, 241, 0.5);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse at 50% 100%, rgba(236, 72, 153, 0.12) 0%, transparent 70%);
    animation: projectsWave 12s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.projects::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(139, 92, 246, 0.03) 50px,
            rgba(139, 92, 246, 0.03) 100px
        );
    animation: projectsSlide 15s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes projectsWave {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-15px);
        opacity: 0.7;
    }
}

@keyframes projectsSlide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Project Tabs */
.project-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    position: relative;
}

.tab-btn {
    padding: 1rem 2rem;
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-indicator {
    position: absolute;
    bottom: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
}

/* Drive Links */
.drive-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.drive-btn {
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-primary);
    border: 2px solid var(--accent-primary);
    transition: all var(--transition-base);
}

.drive-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Project Filters */
.project-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-secondary);
    border: 2px solid transparent;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 200%;
    height: 200%;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

/* Project Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.project-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(99, 102, 241, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-glow), 0 0 60px rgba(99, 102, 241, 0.3);
    border-color: var(--accent-primary);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card.hidden {
    display: none;
}

.project-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--bg-tertiary);
}

.project-info {
    padding: var(--spacing-md);
}

.project-info h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
}

.project-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
}

/* ==============================================
   CONTACT SECTION
   ============================================== */

.contact {
    padding: var(--spacing-xl) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    background: 
        radial-gradient(circle at center, rgba(99, 102, 241, 0.15) 0%, transparent 30%),
        radial-gradient(circle at center, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at center, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
    animation: ripple 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

.contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(0deg, transparent 24%, rgba(99, 102, 241, 0.02) 25%, rgba(99, 102, 241, 0.02) 26%, transparent 27%, transparent 74%, rgba(139, 92, 246, 0.02) 75%, rgba(139, 92, 246, 0.02) 76%, transparent 77%, transparent);
    background-size: 100px 100px;
    animation: contactGrid 20s linear infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes ripple {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
}

@keyframes contactGrid {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100px);
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-item {
    padding: var(--spacing-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glow);
    margin: 0 auto var(--spacing-sm);
}

.contact-icon i {
    color: #ffffff;
    font-size: 1.5rem;
}

.contact-item h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-xs);
    color: var(--accent-primary);
}

.contact-item a {
    color: var(--text-primary);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--accent-primary);
}

/* Fix phone number direction in Arabic */
.phone-number {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all var(--transition-base);
    color: var(--text-primary);
}

.social-link i {
    font-size: 1.3rem;
}

.social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-glow);
    color: #ffffff;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Toast Notification */
/* Hidden field for spam protection */
.hidden {
    display: none;
}

.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--accent-success);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    z-index: 2000;
}

.toast.show {
    bottom: 30px;
}

/* ==============================================
   FOOTER
   ============================================== */

.footer {
    padding: var(--spacing-lg) 0 var(--spacing-md) 0;
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-brand h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-xs);
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: var(--spacing-sm);
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    font-size: 1.25rem;
    transition: all var(--transition-base);
    color: var(--text-primary);
}

.footer-social a i {
    font-size: 1.1rem;
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

/* ==============================================
   LIGHTBOX MODAL
   ============================================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--accent-primary);
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content iframe {
    width: 90vw;
    height: 70vh;
    border-radius: var(--radius-lg);
    display: none;
}

.lightbox-content iframe.active {
    display: block;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    display: none;
}

.lightbox-content img.active {
    display: block;
}

.lightbox-info {
    text-align: center;
    margin-top: var(--spacing-md);
    color: white;
}

.lightbox-info h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xs);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.lightbox-nav:hover {
    background: var(--accent-primary);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .navbar .container {
        grid-template-columns: auto auto;
    }
    
    .nav-social {
        display: none;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--spacing-lg);
        transition: left var(--transition-base);
        box-shadow: var(--shadow-lg);
        grid-column: 1 / -1;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-image img {
        width: 300px;
        height: 300px;
    }
    
    .image-glow {
        width: 350px;
        height: 350px;
    }
    
    .floating-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .floating-icon-1 {
        top: 5%;
        right: 5%;
    }
    
    .floating-icon-2 {
        bottom: 10%;
        left: 2%;
    }
    
    .floating-icon-3 {
        bottom: 35%;
        right: -5%;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .project-tabs {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-dot {
        left: 5px;
    }
    
    .lightbox-content iframe,
    .lightbox-content img {
        width: 95vw;
        height: 60vh;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-image img {
        width: 250px;
        height: 250px;
    }
    
    .image-glow {
        width: 300px;
        height: 300px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}