/* portfolio.css */

:root {
            --primary-gold: #D4AF37;
            --primary-gold-light: #F4D03F;
            --dark-bg: #0a0a0f;
            --darker-bg: #050508;
            --card-bg: rgba(255, 255, 255, 0.03);
            --border-color: rgba(212, 175, 55, 0.2);
            --text-primary: #ffffff;
            --text-secondary: rgba(255, 255, 255, 0.7);
            --text-muted: rgba(255, 255, 255, 0.5);
        }

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

        html {
            scroll-behavior: smooth;
        }

        html[dir="rtl"] {
            font-family: 'Cairo', 'Inter', sans-serif;
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--dark-bg);
            color: var(--text-primary);
            overflow-x: hidden;
            cursor: none;
            line-height: 1.6;
        }

        html[dir="rtl"] body {
            font-family: 'Cairo', 'Inter', sans-serif;
        }

        /* Custom Cursor */
        .cursor {
            width: 20px;
            height: 20px;
            border: 2px solid var(--primary-gold);
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 9999;
            transition: transform 0.15s ease, width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
            transform: translate(-50%, -50%);
            mix-blend-mode: difference;
        }

        .cursor.hover {
            width: 50px;
            height: 50px;
            background-color: rgba(212, 175, 55, 0.1);
            border-color: var(--primary-gold-light);
        }

        .cursor-dot {
            width: 6px;
            height: 6px;
            background-color: var(--primary-gold);
            border-radius: 50%;
            position: fixed;
            pointer-events: none;
            z-index: 10000;
            transform: translate(-50%, -50%);
        }

        /* RTL Cursor Adjustments */
        html[dir="rtl"] .cursor,
        html[dir="rtl"] .cursor-dot {
            /* No changes needed for cursor in RTL */
        }

        /* Noise Texture Overlay */
        .noise-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 9998;
            opacity: 0.03;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
        }

        /* Progress Bar */
        .progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-gold), var(--primary-gold-light));
            z-index: 10001;
            transform-origin: left;
            transform: scaleX(0);
            box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
        }

        html[dir="rtl"] .progress-bar {
            transform-origin: right;
            left: auto;
            right: 0;
        }

        /* ============================================
           LANGUAGE TOGGLE - FIXED FOR MOBILE
           ============================================ */

        /* Default - Desktop */
        .lang-toggle {
            position: fixed;
            top: 1.5rem;
            right: 1.5rem;
            z-index: 10002;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: rgba(212, 175, 55, 0.1);
            border: 1px solid var(--border-color);
            border-radius: 50px;
            color: var(--primary-gold);
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .lang-toggle:hover {
            background: rgba(212, 175, 55, 0.2);
            border-color: var(--primary-gold);
        }

        /* RTL Desktop */
        html[dir="rtl"] .lang-toggle {
            right: auto;
            left: 1.5rem;
        }

        .lang-current {
            font-size: 0.85rem;
        }

        /* MOBILE: Position translate beside hamburger menu */
        @media (max-width: 767px) {
            .lang-toggle {
                top: 1.2rem;
                right: 3.5rem;
                left: auto;
                padding: 0.35rem 0.7rem;
                font-size: 0.8rem;
                z-index: 10003;
            }
            
            html[dir="rtl"] .lang-toggle {
                right: auto;
                left: 3.5rem;
            }
            
            #mobileMenuBtn {
                position: relative;
                z-index: 10002;
                padding: 0.5rem;
                margin-right: -0.5rem;
            }
            
            html[dir="rtl"] #mobileMenuBtn {
                margin-right: 0;
                margin-left: -0.5rem;
            }
            
            .nav-logo {
                font-size: 1.25rem;
                z-index: 10002;
            }
        }

        /* Small phones - adjust spacing */
        @media (max-width: 380px) {
            .lang-toggle {
                right: 3.2rem;
                padding: 0.3rem 0.6rem;
                font-size: 0.75rem;
            }
            
            html[dir="rtl"] .lang-toggle {
                left: 3.2rem;
            }
            
            .lang-current {
                font-size: 0.75rem;
            }
            
            #mobileMenuBtn {
                padding: 0.4rem;
            }
        }

        /* Tablet and up - back to corner */
        @media (min-width: 768px) {
            .lang-toggle {
                top: 1.5rem;
                right: 1.5rem;
                left: auto;
            }
            
            html[dir="rtl"] .lang-toggle {
                right: auto;
                left: 1.5rem;
            }
        }

        /* ============================================
           GRADIENT FONT EFFECTS
           ============================================ */

        /* 1. Hero Title - Animated Gold Gradient */
        .hero-title .title-line {
            background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 25%, #FFD700 50%, #F4D03F 75%, #D4AF37 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 200% auto;
            animation: gradientShift 5s ease infinite;
        }

        .hero-title .title-line-2 {
            background: linear-gradient(225deg, #FFD700 0%, #D4AF37 25%, #F4D03F 50%, #D4AF37 75%, #FFD700 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 200% auto;
            animation: gradientShift 5s ease infinite reverse;
        }

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

        /* 2. Section Titles - Gold to Rose Gradient */
        .section-title {
            background: linear-gradient(90deg, #D4AF37 0%, #F4D03F 30%, #FFB6C1 60%, #D4AF37 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 200% auto;
            animation: sectionGradient 6s ease infinite;
        }

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

        /* 3. Active Role - Shimmer Effect */
        .role.active {
            background: linear-gradient(90deg, #D4AF37 0%, #FFF8DC 25%, #FFD700 50%, #FFF8DC 75%, #D4AF37 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 200% auto;
            animation: shimmer 3s linear infinite;
        }

        @keyframes shimmer {
            0% { background-position: -200% center; }
            100% { background-position: 200% center; }
        }

        /* 4. Project Titles - Purple to Gold */
        .project-title {
            background: linear-gradient(135deg, #D4AF37 0%, #9B59B6 50%, #D4AF37 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 200% auto;
            animation: projectGradient 4s ease infinite;
        }

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

        /* 5. Skill Titles - Cyan to Gold */
        .skill-title {
            background: linear-gradient(90deg, #00CED1 0%, #D4AF37 50%, #00CED1 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 200% auto;
            animation: skillGradient 4s ease infinite;
        }

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

        /* 6. Timeline Titles - Orange to Gold */
        .timeline-title {
            background: linear-gradient(90deg, #FF8C00 0%, #D4AF37 50%, #FF8C00 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 200% auto;
            animation: timelineGradient 4s ease infinite;
        }

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

        /* 7. Certificate Titles - Green to Gold */
        .certificate-title {
            background: linear-gradient(90deg, #22C55E 0%, #D4AF37 50%, #22C55E 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 200% auto;
            animation: certGradient 4s ease infinite;
        }

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

        /* 8. Contact Title - Rainbow Effect */
        .contact-title {
            background: linear-gradient(90deg, #D4AF37, #FF6B6B, #4ECDC4, #D4AF37);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 300% auto;
            animation: rainbow 5s ease infinite;
        }

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

        /* 9. Nav Logo - Gold Glow */
        .nav-logo {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--text-primary);
            text-decoration: none;
            transition: color 0.3s ease;
            flex-shrink: 0;
            background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 50%, #FFD700 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 200% auto;
            animation: logoGlow 3s ease infinite;
        }

        @keyframes logoGlow {
            0%, 100% { background-position: 0% 50%; filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5)); }
            50% { background-position: 100% 50%; filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8)); }
        }

        html[dir="rtl"] .nav-logo {
            font-family: 'Cairo', 'Space Grotesk', sans-serif;
        }

        .nav-logo:hover {
            color: var(--primary-gold);
            filter: brightness(1.2);
        }

        /* 10. Footer Logo */
        .footer-logo {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--primary-gold);
            background: linear-gradient(135deg, #D4AF37 0%, #F4D03F 50%, #FFD700 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            background-size: 200% auto;
            animation: logoGlow 3s ease infinite;
        }

        /* 11. Stat Numbers - 3D Gold Effect */
        .stat-number {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--primary-gold);
            display: block;
            line-height: 1;
            background: linear-gradient(180deg, #FFD700 0%, #D4AF37 50%, #B8860B 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: none;
            filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.4));
        }

        /* 12. Experience Number - Special Glow */
        .exp-number {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 2rem;
            font-weight: 700;
            display: block;
            line-height: 1;
            background: linear-gradient(135deg, #020202 0%, #000000 50%, #181817 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
            animation: numberPulse 2s ease infinite;
        }

        @keyframes numberPulse {
            0%, 100% { filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.4)); }
            50% { filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.8)); }
        }

        /* 13. Highlight Items - Gold Gradient Text */
        .highlight-item span {
            background: linear-gradient(90deg, #fff 0%, #D4AF37 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 600;
        }

        /* 14. Mobile Menu Links - Gradient on Hover */
        .mobile-link:hover {
            background: linear-gradient(90deg, #D4AF37 0%, #F4D03F 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* 15. Hero Badge Text */
        .hero-badge span:not(.badge-dot) {
            background: linear-gradient(90deg, #D4AF37 0%, #F4D03F 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 600;
        }

        /* 16. Section Labels - Gold Gradient */
        .section-label {
            display: inline-block;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 3px;
            color: var(--primary-gold);
            margin-bottom: 0.75rem;
            font-weight: 600;
            opacity: 0;
            transform: translateX(-30px);
            background: linear-gradient(90deg, #D4AF37 0%, #F4D03F 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        html[dir="rtl"] .section-label {
            font-family: 'Cairo', sans-serif;
            letter-spacing: 0;
            font-size: 0.85rem;
            transform: translateX(30px);
        }

        /* 17. Project Category - Gold Gradient */
        .project-category {
            font-size: 0.8rem;
            color: var(--primary-gold);
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 0.5rem;
            font-weight: 700;
            background: linear-gradient(90deg, #D4AF37 0%, #F4D03F 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        html[dir="rtl"] .project-category {
            font-family: 'Cairo', sans-serif;
            letter-spacing: 0;
            font-size: 0.85rem;
        }

        /* 18. Certificate Progress Badge */
        .certificate-progress {
            display: inline-block;
            margin-top: 0.75rem;
            padding: 0.4rem 0.875rem;
            background: rgba(212, 175, 55, 0.15);
            color: #D4AF37;
            border-radius: 50px;
            font-size: 0.8rem;
            font-weight: 600;
            border: 1px solid var(--border-color);
            background: linear-gradient(90deg, rgba(212, 175, 55, 0.2) 0%, rgba(244, 208, 63, 0.3) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            border-color: #D4AF37;
        }

        html[dir="rtl"] .certificate-progress {
            font-family: 'Cairo', sans-serif;
        }

        /* 19. Nav Links - Gradient on Hover */
        .nav-link:hover {
            background: linear-gradient(90deg, #D4AF37 0%, #F4D03F 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* 20. Contact Badge */
        .contact-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.6rem 1.25rem;
            background: rgba(212, 175, 55, 0.1);
            border: 1px solid var(--border-color);
            border-radius: 50px;
            color: var(--primary-gold);
            margin-bottom: 1.5rem;
            font-weight: 500;
            opacity: 0;
            transform: translateY(30px);
            font-size: 0.9rem;
        }

        html[dir="rtl"] .contact-badge {
            font-family: 'Cairo', sans-serif;
            flex-direction: row-reverse;
        }

        /* 21. Contact "project" word - Special Highlight */
        .contact-title .text-\[\#D4AF37\] {
            background: linear-gradient(90deg, #D4AF37 0%, #FF6B6B 50%, #D4AF37 100%) !important;
            -webkit-background-clip: text !important;
            -webkit-text-fill-color: transparent !important;
            background-clip: text !important;
            background-size: 200% auto !important;
            animation: projectGradient 3s ease infinite !important;
        }

        /* Navigation */
        .nav-container {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 1rem 1.5rem;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            opacity: 0;
            transform: translateY(-100%);
            background: transparent;
        }

        .nav-container.visible {
            opacity: 1;
            transform: translateY(0);
            background: rgba(10, 10, 15, 0.9);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
        }

        .nav-link {
            position: relative;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 500;
            transition: color 0.3s ease;
            padding: 0.5rem 0;
            white-space: nowrap;
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-gold);
            transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        html[dir="rtl"] .nav-link::after {
            left: auto;
            right: 0;
        }

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

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

        /* Mobile Menu */
        .mobile-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: rgba(10, 10, 15, 0.98);
            backdrop-filter: blur(20px);
            padding: 1.5rem;
            flex-direction: column;
            gap: 1rem;
            border-bottom: 1px solid var(--border-color);
            transform: translateY(-10px);
            opacity: 0;
            transition: all 0.3s ease;
            pointer-events: none;
            max-height: calc(100vh - 70px);
            overflow-y: auto;
        }

        .mobile-menu.active {
            display: flex;
            transform: translateY(0);
            opacity: 1;
            pointer-events: all;
        }

        .mobile-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 500;
            padding: 0.75rem 0;
            transition: color 0.3s ease;
            border-bottom: 1px solid var(--border-color);
            text-align: center;
        }

        html[dir="rtl"] .mobile-link {
            font-family: 'Cairo', sans-serif;
        }

        .mobile-link:hover {
            color: var(--primary-gold);
        }

        .mobile-lang-toggle {
            margin-top: 1rem;
            padding: 0.75rem;
            background: rgba(212, 175, 55, 0.1);
            border: 1px solid var(--border-color);
            border-radius: 50px;
            color: var(--primary-gold);
            text-align: center;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        html[dir="rtl"] .mobile-lang-toggle {
            font-family: 'Cairo', sans-serif;
        }

        .mobile-lang-toggle:hover {
            background: rgba(212, 175, 55, 0.2);
        }

        /* Hero Section */
        .hero-section {
            min-height: 100vh;
            min-height: 100dvh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            background: radial-gradient(ellipse at center, #1a1a2e 0%, var(--dark-bg) 70%);
            padding: 1rem;
        }

        /* Animated Grid Background */
        .hero-grid {
            position: absolute;
            inset: 0;
            z-index: 1;
            opacity: 0.1;
        }

        .grid-line {
            position: absolute;
            background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
            opacity: 0.3;
        }

        .grid-line.horizontal {
            width: 100%;
            height: 1px;
            animation: gridMoveH 20s linear infinite;
        }

        .grid-line.vertical {
            width: 1px;
            height: 100%;
            animation: gridMoveV 20s linear infinite;
        }

        @keyframes gridMoveH {
            0% { transform: translateX(-100%); opacity: 0; }
            50% { opacity: 0.5; }
            100% { transform: translateX(100%); opacity: 0; }
        }

        @keyframes gridMoveV {
            0% { transform: translateY(-100%); opacity: 0; }
            50% { opacity: 0.5; }
            100% { transform: translateY(100%); opacity: 0; }
        }

        /* Floating Particles */
        .particles-container {
            position: absolute;
            inset: 0;
            z-index: 2;
            overflow: hidden;
            pointer-events: none;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--primary-gold);
            border-radius: 50%;
            opacity: 0.6;
            animation: floatParticle 15s infinite ease-in-out;
            box-shadow: 0 0 10px var(--primary-gold);
        }

        @keyframes floatParticle {
            0%, 100% { 
                transform: translateY(100vh) rotate(0deg); 
                opacity: 0;
            }
            10% { opacity: 0.6; }
            90% { opacity: 0.6; }
            100% { 
                transform: translateY(-100vh) rotate(720deg); 
                opacity: 0;
            }
        }

        /* Gradient Orbs */
        .gradient-orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.4;
            animation: floatOrb 20s infinite ease-in-out;
            z-index: 3;
            pointer-events: none;
        }

        .orb-1 {
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, transparent 70%);
            top: -200px;
            right: -100px;
            animation-delay: 0s;
        }

        .orb-2 {
            width: 400px;
            height: 400px;
            background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, transparent 70%);
            bottom: -100px;
            left: -100px;
            animation-delay: 5s;
        }

        .orb-3 {
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
            top: 50%;
            left: 50%;
            animation-delay: 10s;
        }

        @keyframes floatOrb {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(30px, -30px) scale(1.1); }
            66% { transform: translate(-20px, 20px) scale(0.9); }
        }

        /* Hero Content */
        .hero-content {
            text-align: center;
            z-index: 10;
            max-width: 1000px;
            width: 100%;
            padding: 0 1rem;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: rgba(212, 175, 55, 0.1);
            border: 1px solid var(--border-color);
            border-radius: 50px;
            font-size: 0.8rem;
            color: var(--primary-gold);
            margin-bottom: 1.5rem;
            opacity: 0;
            transform: translateY(30px);
            backdrop-filter: blur(10px);
            transition: all 0.4s ease;
            flex-wrap: wrap;
            justify-content: center;
        }

        html[dir="rtl"] .hero-badge {
            font-family: 'Cairo', sans-serif;
            font-size: 0.85rem;
        }

        .hero-badge:hover {
            background: rgba(212, 175, 55, 0.2);
            border-color: var(--primary-gold);
            transform: translateY(-2px);
        }

        .badge-dot {
            width: 8px;
            height: 8px;
            background: #22c55e;
            border-radius: 50%;
            animation: pulse 2s infinite;
            box-shadow: 0 0 10px #22c55e;
            flex-shrink: 0;
        }

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

        /* Hero Title */
        .hero-title-container {
            margin-bottom: 1.5rem;
            position: relative;
            width: 100%;
        }

        .hero-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: clamp(2rem, 8vw, 5rem);
            font-weight: 700;
            line-height: 1.1;
            margin-bottom: 0.5rem;
        }

        html[dir="rtl"] .hero-title {
            font-family: 'Cairo', 'Space Grotesk', sans-serif;
        }

        .title-line {
            display: block;
            opacity: 0;
            transform: translateY(100px);
        }

        .title-underline {
            width: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
            margin: 1rem auto 0;
            border-radius: 2px;
        }

        /* Hero Roles */
        .hero-roles {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            opacity: 0;
            transform: translateY(30px);
            max-width: 100%;
        }

        .role {
            font-size: clamp(0.85rem, 2.5vw, 1.1rem);
            color: var(--text-secondary);
            font-weight: 500;
            position: relative;
            padding: 0.4rem 0.8rem;
            transition: all 0.3s ease;
            text-align: center;
            line-height: 1.3;
        }

        html[dir="rtl"] .role {
            font-family: 'Cairo', sans-serif;
        }

        .role-separator {
            color: var(--border-color);
            font-weight: 300;
            flex-shrink: 0;
        }

        /* Hero Subtitle */
        .hero-subtitle {
            font-size: clamp(0.9rem, 2vw, 1.1rem);
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto 2rem;
            line-height: 1.7;
            opacity: 0;
            transform: translateY(30px);
            padding: 0 0.5rem;
        }

        html[dir="rtl"] .hero-subtitle {
            font-family: 'Cairo', sans-serif;
            line-height: 1.8;
        }

        /* Hero Buttons */
        .hero-buttons {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
            opacity: 0;
            transform: translateY(30px);
            width: 100%;
            max-width: 500px;
        }

        .hero-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.875rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.9rem;
            text-decoration: none;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            position: relative;
            overflow: hidden;
            flex: 1;
            min-width: 140px;
            max-width: 200px;
            white-space: nowrap;
        }

        html[dir="rtl"] .hero-btn {
            font-family: 'Cairo', sans-serif;
            font-size: 0.95rem;
        }

        .hero-btn-primary {
            background: var(--primary-gold);
            color: var(--dark-bg);
            box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
        }

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

        .hero-btn-primary:hover::before {
            left: 100%;
        }

        .hero-btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
        }

        .hero-btn-secondary {
            border: 2px solid var(--border-color);
            color: var(--text-primary);
            background: transparent;
        }

        .hero-btn-secondary:hover {
            border-color: var(--primary-gold);
            background: rgba(212, 175, 55, 0.1);
            transform: translateY(-3px);
        }

        /* Scroll Indicator */
        .scroll-indicator {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.75rem;
            cursor: pointer;
            opacity: 0;
            z-index: 10;
        }

        .scroll-mouse {
            width: 26px;
            height: 42px;
            border: 2px solid var(--border-color);
            border-radius: 13px;
            position: relative;
            transition: border-color 0.3s ease;
        }

        .scroll-indicator:hover .scroll-mouse {
            border-color: var(--primary-gold);
        }

        .scroll-wheel {
            width: 4px;
            height: 8px;
            background: var(--primary-gold);
            border-radius: 2px;
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            animation: scrollWheel 2s infinite;
        }

        @keyframes scrollWheel {
            0% { transform: translateX(-50%) translateY(0); opacity: 1; }
            100% { transform: translateX(-50%) translateY(16px); opacity: 0; }
        }

        .scroll-text {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--text-muted);
            white-space: nowrap;
        }

        html[dir="rtl"] .scroll-text {
            font-family: 'Cairo', sans-serif;
            letter-spacing: 0;
            font-size: 0.8rem;
        }

        /* Side Decorations */
        .side-decoration {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            align-items: center;
            gap: 1rem;
            z-index: 5;
            opacity: 0;
            display: none;
        }

        .side-decoration.left {
            left: 1rem;
            writing-mode: vertical-rl;
            text-orientation: mixed;
            transform: translateY(-50%) rotate(180deg);
        }

        .side-decoration.right {
            right: 1rem;
            writing-mode: vertical-rl;
            text-orientation: mixed;
        }

        .side-line {
            width: 1px;
            height: 80px;
            background: linear-gradient(to bottom, transparent, var(--primary-gold), transparent);
        }

        .side-text {
            font-size: 0.7rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: var(--text-muted);
            font-weight: 500;
            white-space: nowrap;
        }

        html[dir="rtl"] .side-text {
            font-family: 'Cairo', sans-serif;
            letter-spacing: 0;
            font-size: 0.8rem;
        }

        /* Magnetic Button Effect */
        .magnetic-btn {
            transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* Section Styles */
        .section {
            min-height: 100vh;
            min-height: 100dvh;
            padding: 6rem 1rem;
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: center;
            overflow: hidden;
        }

        .section-header {
            margin-bottom: 3rem;
            position: relative;
            text-align: center;
        }

        /* About Section */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

        .about-image-container {
            position: relative;
            opacity: 0;
            transform: translateY(30px);
            order: -1;
            max-width: 300px;
            margin: 0 auto;
            width: 100%;
        }

        .image-frame {
            position: relative;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
            width: 100%;
        }

        .image-frame::before {
            content: '';
            position: absolute;
            inset: 0;
            border: 2px solid var(--primary-gold);
            border-radius: 20px;
            z-index: 2;
            opacity: 0.3;
            pointer-events: none;
        }

        .about-image {
            width: 100%;
            display: block;
            filter: grayscale(30%);
            transition: all 0.5s ease;
            transform: scale(1.05);
            aspect-ratio: 1;
            object-fit: cover;
        }

        .image-frame:hover .about-image {
            filter: grayscale(0%);
            transform: scale(1);
        }

        .experience-float {
            position: absolute;
            bottom: -10px;
            right: -10px;
            background: var(--primary-gold);
            color: var(--dark-bg);
            padding: 1rem;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3);
            z-index: 10;
            opacity: 0;
            transform: scale(0.8);
            min-width: 80px;
        }

        html[dir="rtl"] .experience-float {
            right: auto;
            left: -10px;
        }

        .exp-text {
            font-size: 0.7rem;
            font-weight: 600;
            line-height: 1.2;
            display: block;
            margin-top: 0.25rem;
        }

        html[dir="rtl"] .exp-text {
            font-family: 'Cairo', sans-serif;
            font-size: 0.75rem;
        }

        .about-content {
            opacity: 0;
            transform: translateY(30px);
            text-align: center;
        }

        .about-text {
            font-size: 0.95rem;
            line-height: 1.8;
            color: var(--text-secondary);
            margin-bottom: 1rem;
        }

        html[dir="rtl"] .about-text {
            font-family: 'Cairo', sans-serif;
            line-height: 1.9;
            font-size: 1rem;
        }

        .about-highlights {
            margin: 1.5rem 0;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            align-items: center;
        }

        .highlight-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            color: var(--text-primary);
            font-weight: 500;
            font-size: 0.9rem;
            text-align: center;
        }

        html[dir="rtl"] .highlight-item {
            font-family: 'Cairo', sans-serif;
            font-size: 0.95rem;
            flex-direction: row-reverse;
        }

        .about-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
            margin-top: 2rem;
        }

        .stat-item {
            text-align: center;
            padding: 1rem 0.5rem;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 15px;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            opacity: 0;
            transform: translateY(30px);
        }

        .stat-item:hover {
            transform: translateY(-5px);
            border-color: var(--primary-gold);
            background: rgba(212, 175, 55, 0.05);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
        }

        .stat-label {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-top: 0.5rem;
            font-weight: 500;
            line-height: 1.3;
        }

        html[dir="rtl"] .stat-label {
            font-family: 'Cairo', sans-serif;
            font-size: 0.75rem;
        }

        /* Timeline */
        .timeline {
            max-width: 900px;
            margin: 0 auto;
            position: relative;
            padding: 1rem 0;
            width: 100%;
        }

        .timeline-line {
            position: absolute;
            left: 20px;
            top: 0;
            bottom: 0;
            width: 2px;
            background: linear-gradient(to bottom, transparent, var(--primary-gold), transparent);
            opacity: 0.3;
        }

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

        .timeline-item {
            display: flex;
            justify-content: flex-start;
            padding-left: 50px;
            position: relative;
            margin-bottom: 2rem;
            opacity: 0;
            transform: translateX(-30px);
            width: 100%;
        }

        html[dir="rtl"] .timeline-item {
            padding-left: 0;
            padding-right: 50px;
            transform: translateX(30px);
        }

        .timeline-item:nth-child(even) {
            justify-content: flex-start;
            padding-right: 0;
            padding-left: 50px;
            transform: translateX(-30px);
        }

        html[dir="rtl"] .timeline-item:nth-child(even) {
            padding-left: 0;
            padding-right: 50px;
            transform: translateX(30px);
        }

        .timeline-dot {
            position: absolute;
            left: 20px;
            top: 0;
            width: 16px;
            height: 16px;
            background: var(--primary-gold);
            border: 3px solid var(--dark-bg);
            border-radius: 50%;
            transform: translateX(-50%);
            z-index: 10;
            box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        html[dir="rtl"] .timeline-dot {
            left: auto;
            right: 20px;
            transform: translateX(50%);
        }

        .timeline-item:hover .timeline-dot {
            transform: translateX(-50%) scale(1.2);
            box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
        }

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

        .timeline-content {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 1.25rem;
            position: relative;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            backdrop-filter: blur(10px);
            width: 100%;
        }

        .timeline-content:hover {
            transform: translateY(-5px);
            border-color: var(--primary-gold);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .timeline-date {
            font-size: 0.8rem;
            color: var(--primary-gold);
            font-weight: 600;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        html[dir="rtl"] .timeline-date {
            font-family: 'Cairo', sans-serif;
            flex-direction: row-reverse;
        }

        .timeline-company {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 0.75rem;
            font-weight: 500;
            line-height: 1.4;
        }

        html[dir="rtl"] .timeline-company {
            font-family: 'Cairo', sans-serif;
        }

        .timeline-desc {
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.7;
            margin-bottom: 0.75rem;
        }

        html[dir="rtl"] .timeline-desc {
            font-family: 'Cairo', sans-serif;
            line-height: 1.8;
        }

        .timeline-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .t-tag {
            padding: 0.2rem 0.6rem;
            background: rgba(212, 175, 55, 0.1);
            border: 1px solid var(--border-color);
            border-radius: 50px;
            font-size: 0.75rem;
            color: var(--primary-gold);
            font-weight: 500;
        }

        /* Skills */
        .skills-container {
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }

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

        .skill-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 1.5rem;
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            backdrop-filter: blur(10px);
        }

        .skill-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
            opacity: 0;
            transition: opacity 0.5s ease;
        }

        .skill-card:hover {
            transform: translateY(-5px);
            border-color: var(--primary-gold);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

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

        .skill-icon {
            width: 50px;
            height: 50px;
            background: rgba(212, 175, 55, 0.1);
            border-radius: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 1rem;
            color: var(--primary-gold);
            transition: all 0.4s ease;
            border: 1px solid var(--border-color);
        }

        .skill-card:hover .skill-icon {
            background: var(--primary-gold);
            color: var(--dark-bg);
            transform: scale(1.1) rotate(5deg);
            border-color: var(--primary-gold);
        }

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

        .skill-list li {
            padding: 0.6rem 0;
            color: var(--text-secondary);
            font-size: 0.9rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            transition: all 0.3s ease;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            line-height: 1.4;
        }

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

        html[dir="rtl"] .skill-list li {
            font-family: 'Cairo', sans-serif;
            flex-direction: row-reverse;
            text-align: right;
        }

        .skill-dot {
            width: 6px;
            height: 6px;
            background: var(--primary-gold);
            border-radius: 50%;
            opacity: 0.5;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .skill-card:hover .skill-list li {
            color: var(--text-primary);
            transform: translateX(5px);
        }

        html[dir="rtl"] .skill-card:hover .skill-list li {
            transform: translateX(-5px);
        }

        .skill-card:hover .skill-dot {
            opacity: 1;
            transform: scale(1.5);
            box-shadow: 0 0 10px var(--primary-gold);
        }

        /* Projects */
        .projects-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 3rem;
            width: 100%;
        }

        .project-card {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
            align-items: center;
            opacity: 0;
            transform: translateY(30px);
        }

        .project-card.reverse {
            direction: ltr;
        }

        html[dir="rtl"] .project-card.reverse {
            direction: rtl;
        }

        .project-card.reverse > * {
            direction: ltr;
        }

        html[dir="rtl"] .project-card.reverse > * {
            direction: rtl;
        }

        .project-image-wrapper {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            aspect-ratio: 16/10;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
            transition: all 0.4s ease;
            width: 100%;
        }

        .project-image-wrapper:hover {
            transform: translateY(-5px);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
        }

        .project-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .project-image-wrapper:hover .project-image {
            transform: scale(1.1);
        }

        .project-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(10, 10, 15, 0.95), rgba(10, 10, 15, 0.5), transparent);
            opacity: 0;
            transition: opacity 0.4s ease;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            padding: 1.5rem;
        }

        .project-image-wrapper:hover .project-overlay {
            opacity: 1;
        }

        .project-view {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary-gold);
            font-weight: 600;
            transform: translateY(20px);
            transition: transform 0.4s ease;
            font-size: 0.9rem;
        }

        html[dir="rtl"] .project-view {
            font-family: 'Cairo', sans-serif;
            flex-direction: row-reverse;
        }

        .project-image-wrapper:hover .project-view {
            transform: translateY(0);
        }

        .project-content {
            padding: 0;
            text-align: center;
        }

        .project-desc {
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.7;
            margin-bottom: 1.5rem;
        }

        html[dir="rtl"] .project-desc {
            font-family: 'Cairo', sans-serif;
            line-height: 1.8;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 1.5rem;
            justify-content: center;
        }

        .project-tag {
            padding: 0.5rem 1rem;
            background: rgba(212, 175, 55, 0.1);
            border: 1px solid var(--border-color);
            border-radius: 50px;
            font-size: 0.85rem;
            color: var(--text-secondary);
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .project-tag:hover {
            background: var(--primary-gold);
            color: var(--dark-bg);
            border-color: var(--primary-gold);
            transform: translateY(-2px);
        }

        .project-links {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .project-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 0.75rem 1.25rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.9rem;
            text-decoration: none;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            flex: 1;
            min-width: 120px;
            max-width: 160px;
        }

        html[dir="rtl"] .project-btn {
            font-family: 'Cairo', sans-serif;
            flex-direction: row-reverse;
        }

        .project-btn-primary {
            background: var(--primary-gold);
            color: var(--dark-bg);
            box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
        }

        .project-btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
        }

        .project-btn-secondary {
            border: 2px solid var(--border-color);
            color: var(--text-primary);
            background: transparent;
        }

        .project-btn-secondary:hover {
            border-color: var(--primary-gold);
            background: rgba(212, 175, 55, 0.1);
            transform: translateY(-3px);
        }

        /* Certificates */
        .certificates-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1rem;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }

        .certificate-card {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 20px;
            padding: 1.5rem;
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
            backdrop-filter: blur(10px);
        }

        .certificate-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
            transition: left 0.7s ease;
        }

        .certificate-card:hover::before {
            left: 100%;
        }

        .certificate-card:hover {
            transform: translateY(-5px);
            border-color: var(--primary-gold);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .certificate-card.in-progress {
            border-style: dashed;
        }

        .certificate-icon {
            width: 50px;
            height: 50px;
            background: rgba(212, 175, 55, 0.1);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-gold);
            margin-bottom: 1rem;
            border: 1px solid var(--border-color);
            transition: all 0.3s ease;
        }

        .certificate-card:hover .certificate-icon {
            background: var(--primary-gold);
            color: var(--dark-bg);
            transform: scale(1.1);
        }

        .certificate-issuer {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
            line-height: 1.4;
        }

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



.contact-subtitle {
            font-size: 1rem;
            color: var(--text-secondary);
            margin-bottom: 2.5rem;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            opacity: 0;
            transform: translateY(30px);
            line-height: 1.8;
            padding: 0 0.5rem;
        }

        html[dir="rtl"] .contact-subtitle {
            font-family: 'Cairo', sans-serif;
            line-height: 1.9;
        }

        .contact-links {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1rem;
            margin-bottom: 2rem;
            opacity: 0;
            transform: translateY(30px);
            width: 100%;
        }

        .contact-link {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem 1.25rem;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            text-decoration: none;
            color: var(--text-primary);
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            width: 100%;
            max-width: 320px;
            text-align: left;
            backdrop-filter: blur(10px);
        }

        html[dir="rtl"] .contact-link {
            font-family: 'Cairo', sans-serif;
            flex-direction: row-reverse;
            text-align: right;
        }

        .contact-link:hover {
            border-color: var(--primary-gold);
            background: rgba(212, 175, 55, 0.05);
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }

        .contact-icon {
            width: 45px;
            height: 45px;
            background: rgba(212, 175, 55, 0.1);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-gold);
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .contact-link:hover .contact-icon {
            background: var(--primary-gold);
            color: var(--dark-bg);
            transform: scale(1.1);
        }

        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
            min-width: 0;
        }

        .contact-label {
            font-size: 0.8rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        .contact-value {
            font-size: 1rem;
            font-weight: 600;
            color: var(--text-primary);
            word-break: break-word;
        }

        .contact-cta {
            opacity: 0;
            transform: translateY(30px);
        }

        .resume-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 1rem 2rem;
            background: transparent;
            border: 2px solid var(--primary-gold);
            color: var(--primary-gold);
            border-radius: 50px;
            font-weight: 600;
            font-size: 0.95rem;
            text-decoration: none;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            width: 100%;
            max-width: 280px;
        }

        html[dir="rtl"] .resume-btn {
            font-family: 'Cairo', sans-serif;
            flex-direction: row-reverse;
        }

        .resume-btn:hover {
            background: var(--primary-gold);
            color: var(--dark-bg);
            transform: translateY(-3px);
            box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
        }

        /* Footer */
        footer {
            padding: 2.5rem 1rem;
            background: var(--darker-bg);
            border-top: 1px solid var(--border-color);
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 1.5rem;
            text-align: center;
        }

        .footer-text {
            color: var(--text-muted);
            font-size: 0.9rem;
            line-height: 1.6;
            padding: 0 1rem;
        }

        html[dir="rtl"] .footer-text {
            font-family: 'Cairo', sans-serif;
        }

        .footer-social {
            display: flex;
            gap: 0.75rem;
        }

        .social-link {
            width: 42px;
            height: 42px;
            border: 1px solid var(--border-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            transition: all 0.3s ease;
            text-decoration: none;
        }

        .social-link:hover {
            border-color: var(--primary-gold);
            background: rgba(212, 175, 55, 0.1);
            color: var(--primary-gold);
            transform: translateY(-3px);
        }

        /* Tablet and up */
        @media (min-width: 640px) {
            .nav-container {
                padding: 1.25rem 2rem;
            }

            .nav-logo {
                font-size: 1.75rem;
            }

            .section {
                padding: 7rem 2rem;
            }

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

            .section-title {
                font-size: clamp(2.25rem, 5vw, 3.5rem);
            }

            .hero-section {
                padding: 2rem;
            }

            .hero-title {
                font-size: clamp(2.5rem, 8vw, 5.5rem);
            }

            .hero-badge {
                padding: 0.625rem 1.25rem;
                font-size: 0.85rem;
                margin-bottom: 2rem;
            }

            .hero-roles {
                gap: 0.75rem;
                margin-bottom: 2rem;
            }

            .role {
                padding: 0.5rem 1rem;
                font-size: clamp(0.9rem, 2vw, 1.25rem);
            }

            .hero-subtitle {
                font-size: clamp(0.95rem, 2vw, 1.15rem);
                margin-bottom: 2.5rem;
            }

            .hero-buttons {
                gap: 1.25rem;
            }

            .hero-btn {
                padding: 1rem 2rem;
                font-size: 0.95rem;
                flex: 0 1 auto;
                min-width: 160px;
            }

            .about-grid {
                gap: 3rem;
            }

            .about-image-container {
                max-width: 350px;
            }

            .experience-float {
                padding: 1.25rem;
                bottom: -15px;
                right: -15px;
            }

            html[dir="rtl"] .experience-float {
                right: auto;
                left: -15px;
            }

            .exp-number {
                font-size: 2.25rem;
            }

            .exp-text {
                font-size: 0.75rem;
            }

            .about-text {
                font-size: 1rem;
            }

            .about-stats {
                gap: 1rem;
            }

            .stat-item {
                padding: 1.25rem 1rem;
            }

            .stat-number {
                font-size: 2rem;
            }

            .stat-label {
                font-size: 0.75rem;
            }

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

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

            .timeline-content {
                padding: 1.5rem;
            }

            .timeline-title {
                font-size: 1.25rem;
            }

            .skills-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.25rem;
            }

            .skill-card {
                padding: 1.75rem;
            }

            .skill-icon {
                width: 55px;
                height: 55px;
            }

            .skill-title {
                font-size: 1.35rem;
            }

            .projects-container {
                gap: 4rem;
            }

            .project-content {
                text-align: left;
            }

            html[dir="rtl"] .project-content {
                text-align: right;
            }

            .project-tags {
                justify-content: flex-start;
            }

            html[dir="rtl"] .project-tags {
                justify-content: flex-end;
            }

            .project-links {
                justify-content: flex-start;
            }

            html[dir="rtl"] .project-links {
                justify-content: flex-end;
            }

            .project-btn {
                padding: 0.875rem 1.5rem;
                flex: 0 1 auto;
                min-width: 140px;
                max-width: none;
            }

            .certificates-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 1.25rem;
            }

            .certificate-card {
                padding: 1.75rem;
            }

            .certificate-title {
                font-size: 1.2rem;
            }

            .contact-links {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                gap: 1.25rem;
            }

            .contact-link {
                width: auto;
                min-width: 260px;
                padding: 1.25rem 1.5rem;
            }

            .resume-btn {
                width: auto;
                min-width: 240px;
            }

            .side-decoration {
                display: flex;
            }
        }

        /* MOBILE: Move to opposite corner of SHT logo */
        @media (max-width: 767px) {
            .lang-toggle {
                top: 1.2rem;
                right: 4.5rem;
                left: auto;
                padding: 0.35rem 0.75rem;
                font-size: 0.8rem;
                z-index: 10003;
            }
            
            html[dir="rtl"] .lang-toggle {
                right: auto;
                left: 4.5rem;
            }
            
            .nav-logo {
                font-size: 1.25rem;
                z-index: 10002;
            }
            
            #mobileMenuBtn {
                position: relative;
                z-index: 10002;
                padding: 0.5rem;
            }
        }

        /* Small phones - even more adjustment */
        @media (max-width: 380px) {
            .lang-toggle {
                right: 4rem;
                padding: 0.3rem 0.6rem;
                font-size: 0.75rem;
            }
            
            html[dir="rtl"] .lang-toggle {
                left: 4rem;
            }
            
            .lang-current {
                font-size: 0.75rem;
            }
        }

        /* Desktop */
        @media (min-width: 1024px) {
            .nav-container {
                padding: 1.5rem 3rem;
            }

            .nav-logo {
                font-size: 1.8rem;
            }

            .nav-link {
                font-size: 0.9rem;
            }

            .lang-toggle {
                top: 1.5rem;
                right: 1.5rem;
                padding: 0.625rem 1.25rem;
            }

            html[dir="rtl"] .lang-toggle {
                right: auto;
                left: 1.5rem;
            }

            .section {
                padding: 8rem 2rem;
            }

            .section-header {
                margin-bottom: 5rem;
            }

            .section-label {
                font-size: 0.8rem;
                margin-bottom: 1rem;
            }

            .hero-section {
                padding: 0;
            }

            .hero-content {
                padding: 0 2rem;
            }

            .hero-badge {
                padding: 0.75rem 1.5rem;
                font-size: 0.9rem;
                margin-bottom: 2.5rem;
            }

            .hero-title {
                font-size: clamp(3rem, 10vw, 7rem);
                margin-bottom: 1rem;
            }

            .title-underline {
                height: 4px;
                margin: 1.5rem auto 0;
            }

            .hero-roles {
                gap: 1rem;
                margin-bottom: 2rem;
            }

            .role {
                padding: 0.5rem 1rem;
                font-size: clamp(1rem, 2.5vw, 1.5rem);
            }

            .hero-subtitle {
                font-size: clamp(1rem, 2vw, 1.25rem);
                margin-bottom: 3rem;
            }

            .hero-buttons {
                gap: 1.5rem;
            }

            .hero-btn {
                padding: 1rem 2.5rem;
                font-size: 1rem;
            }

            .scroll-indicator {
                bottom: 3rem;
            }

            .scroll-mouse {
                width: 30px;
                height: 50px;
            }

            .scroll-wheel {
                height: 10px;
            }

            .scroll-text {
                font-size: 0.75rem;
                letter-spacing: 3px;
            }

            .side-decoration {
                gap: 1rem;
            }

            .side-decoration.left {
                left: 2rem;
            }

            .side-decoration.right {
                right: 2rem;
            }

            .side-line {
                height: 100px;
            }

            .side-text {
                font-size: 0.75rem;
                letter-spacing: 3px;
            }

            .about-grid {
                grid-template-columns: 1fr 1.5fr;
                gap: 5rem;
                text-align: left;
            }

            html[dir="rtl"] .about-grid {
                text-align: right;
            }

            .about-image-container {
                order: 0;
                max-width: none;
                margin: 0;
                transform: translateX(-50px);
            }

            html[dir="rtl"] .about-image-container {
                transform: translateX(50px);
            }

            .about-content {
                text-align: left;
                transform: translateX(50px);
            }

            html[dir="rtl"] .about-content {
                text-align: right;
                transform: translateX(-50px);
            }

            .about-highlights {
                align-items: flex-start;
            }

            html[dir="rtl"] .about-highlights {
                align-items: flex-end;
            }

            .highlight-item {
                text-align: left;
            }

            html[dir="rtl"] .highlight-item {
                text-align: right;
                flex-direction: row-reverse;
            }

            .about-stats {
                gap: 1.5rem;
            }

            .stat-item {
                padding: 1.5rem;
            }

            .stat-number {
                font-size: 2.5rem;
            }

            .stat-label {
                font-size: 0.85rem;
            }

            .timeline-line {
                left: 50%;
            }

            html[dir="rtl"] .timeline-line {
                right: 50%;
                left: auto;
            }

            .timeline-item {
                padding-right: calc(50% + 3rem);
                padding-left: 0;
                justify-content: flex-end;
                transform: translateX(-50px);
            }

            html[dir="rtl"] .timeline-item {
                padding-left: calc(50% + 3rem);
                padding-right: 0;
                justify-content: flex-start;
                transform: translateX(50px);
            }

            .timeline-item:nth-child(even) {
                justify-content: flex-start;
                padding-right: 0;
                padding-left: calc(50% + 3rem);
                transform: translateX(50px);
            }

            html[dir="rtl"] .timeline-item:nth-child(even) {
                justify-content: flex-end;
                padding-left: 0;
                padding-right: calc(50% + 3rem);
                transform: translateX(-50px);
            }

            .timeline-dot {
                left: 50%;
                width: 20px;
                height: 20px;
                border-width: 4px;
            }

            html[dir="rtl"] .timeline-dot {
                right: 50%;
                left: auto;
            }

            .timeline-item:hover .timeline-dot {
                transform: translateX(-50%) scale(1.3);
            }

            html[dir="rtl"] .timeline-item:hover .timeline-dot {
                transform: translateX(50%) scale(1.3);
            }

            .timeline-content {
                padding: 2rem;
                max-width: 450px;
            }

            .timeline-date {
                font-size: 0.85rem;
            }

            .timeline-title {
                font-size: 1.4rem;
            }

            .skills-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 2rem;
            }

            .skill-card {
                padding: 2.5rem;
                transform: translateY(50px) rotateX(15deg);
            }

            .skill-card:hover {
                transform: translateY(-10px) rotateX(0deg);
            }

            .skill-icon {
                width: 70px;
                height: 70px;
                margin-bottom: 1.5rem;
            }

            .skill-title {
                font-size: 1.5rem;
            }

            .skill-list li {
                padding: 0.75rem 0;
            }

            .project-card {
                grid-template-columns: 1fr 1fr;
                gap: 4rem;
            }

            .project-card.reverse {
                direction: rtl;
            }

            html[dir="rtl"] .project-card.reverse {
                direction: ltr;
            }

            .project-card.reverse > * {
                direction: ltr;
            }

            html[dir="rtl"] .project-card.reverse > * {
                direction: rtl;
            }

            .project-image-wrapper {
                border-radius: 24px;
            }

            .project-content {
                padding: 2rem;
            }

            .project-category {
                font-size: 0.85rem;
            }

            .project-title {
                font-size: clamp(2rem, 4vw, 3rem);
            }

            .project-desc {
                font-size: 1.1rem;
            }

            .project-tags {
                margin-bottom: 2.5rem;
            }

            .project-btn {
                padding: 1rem 2rem;
            }

            .certificates-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 2rem;
            }

            .certificate-card {
                padding: 2rem;
            }

            .certificate-icon {
                width: 60px;
                height: 60px;
                margin-bottom: 1.5rem;
            }

            .certificate-title {
                font-size: 1.3rem;
            }

            .contact-badge {
                padding: 0.75rem 1.5rem;
                margin-bottom: 2rem;
            }

            .contact-title {
                font-size: clamp(2.5rem, 5vw, 4rem);
                margin-bottom: 1.5rem;
            }

            .contact-subtitle {
                font-size: 1.2rem;
                margin-bottom: 4rem;
            }

            .contact-links {
                gap: 2rem;
                margin-bottom: 3rem;
            }

            .contact-link {
                min-width: 280px;
                padding: 1.5rem 2rem;
            }

            .contact-icon {
                width: 50px;
                height: 50px;
            }

            .contact-label {
                font-size: 0.85rem;
            }

            .contact-value {
                font-size: 1.1rem;
            }

            .resume-btn {
                padding: 1.25rem 2.5rem;
                font-size: 1rem;
            }

            footer {
                padding: 4rem 2rem;
            }

            .footer-logo {
                font-size: 2rem;
            }

            .footer-social {
                gap: 1rem;
            }

            .social-link {
                width: 45px;
                height: 45px;
            }
        }

        /* Reduced Motion */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
            
            .hero-title .title-line,
            .hero-title .title-line-2,
            .section-title,
            .role.active,
            .project-title,
            .skill-title,
            .timeline-title,
            .certificate-title,
            .contact-title,
            .nav-logo,
            .footer-logo,
            .exp-number,
            .stat-number {
                animation: none;
                background-size: 100% 100%;
            }
        }

        /* Hide cursor on touch devices */
        @media (pointer: coarse) {
            body {
                cursor: auto;
            }

            .cursor,
            .cursor-dot {
                display: none !important;
            }

            .magnetic-btn {
                transform: none !important;
            }
        }