        :root {
            --primary: #0ea5e9;
            --primary-dark: #0284c7;
            --primary-light: #38bdf8;
            --secondary: #8b5cf6;
            --accent: #f59e0b;
            --dark: #0f172a;
            --dark-light: #1e293b;
            --gray-50: #f8fafc;
            --gray-100: #f1f5f9;
            --gray-200: #e2e8f0;
            --gray-300: #cbd5e1;
            --gray-400: #94a3b8;
            --gray-500: #64748b;
            --gray-600: #475569;
            --text-primary: #0f172a;
            --text-secondary: #475569;
            --text-muted: #64748b;
            --bg-primary: #ffffff;
            --bg-secondary: #f8fafc;
            --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            --gradient-primary-hover: linear-gradient(135deg, #0284c7 0%, #7c3aed 100%);
            --gradient-dark: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
            --gradient-soft: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
            --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
            --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
            --shadow-md: 0 6px 12px -2px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.1);
            --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
            --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
            --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
            --shadow-colored: 0 10px 30px rgba(14, 165, 233, 0.2);
            --radius-sm: 0.375rem;
            --radius: 0.5rem;
            --radius-lg: 0.75rem;
            --radius-xl: 1rem;
            --radius-2xl: 1.5rem;
            --radius-3xl: 2rem;
            --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
            --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', sans-serif;
            color: var(--text-primary);
            background: var(--bg-secondary);
            line-height: 1.6;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }
        
        h1, h2, h3, h4, h5, h6 {
            font-family: 'Outfit', sans-serif;
            font-weight: 700;
            line-height: 1.2;
            letter-spacing: -0.02em;
        }
        
        /* Animated Background */
        .portfolio-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background: var(--bg-secondary);
            overflow: hidden;
        }

        .portfolio-bg::before {
            content: '';
            position: absolute;
            width: 800px;
            height: 800px;
            background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
            top: -300px;
            right: -300px;
            animation: float 25s ease-in-out infinite;
            filter: blur(60px);
        }
        
        .portfolio-bg::after {
            content: '';
            position: absolute;
            width: 700px;
            height: 700px;
            background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
            bottom: -250px;
            left: -250px;
            animation: float 30s ease-in-out infinite reverse;
            filter: blur(60px);
        }
        
        @keyframes float {
            0%, 100% { 
                transform: translate(0, 0) rotate(0deg) scale(1); 
                opacity: 0.8;
            }
            33% { 
                transform: translate(40px, -40px) rotate(8deg) scale(1.05); 
                opacity: 1;
            }
            66% { 
                transform: translate(-30px, 30px) rotate(-8deg) scale(0.95); 
                opacity: 0.9;
            }
        }
        
        /* Navigation */
        .portfolio-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            padding: 1.25rem 0;
            transition: all var(--transition-base);
            background: transparent;
        }
        
        .portfolio-nav.scrolled {
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            box-shadow: var(--shadow-md);
            padding: 0.875rem 0;
            border-bottom: 1px solid rgba(226, 232, 240, 0.5);
        }
        
        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .nav-brand {
            font-family: 'Outfit', sans-serif;
            font-weight: 800;
            font-size: 1.5rem;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-decoration: none;
            transition: transform var(--transition-fast);
        }
        
        .nav-brand:hover {
            transform: scale(1.05);
        }
        
        .nav-links {
            display: flex;
            gap: 0.25rem;
            list-style: none;
            margin: 0;
            padding: 0;
        }
        
        .nav-links a {
            padding: 0.625rem 1.125rem;
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.875rem;
            border-radius: var(--radius-lg);
            transition: all var(--transition-fast);
            position: relative;
        }
        
        .nav-links a::before {
            content: '';
            position: absolute;
            bottom: 0.25rem;
            left: 50%;
            transform: translateX(-50%) scaleX(0);
            width: 60%;
            height: 2px;
            background: var(--gradient-primary);
            border-radius: 2px;
            transition: transform var(--transition-fast);
        }
        
        .nav-links a:hover,
        .nav-links a.active {
            color: var(--primary);
            background: rgba(14, 165, 233, 0.08);
        }
        
        .nav-links a.active::before,
        .nav-links a:hover::before {
            transform: translateX(-50%) scaleX(1);
        }
        
        .nav-actions {
            display: flex;
            gap: 0.75rem;
            align-items: center;
        }
        
        .mobile-menu-toggle {
            display: none;
            width: 44px;
            height: 44px;
            padding: 0;
            background: var(--bg-primary);
            border: 2px solid var(--gray-200);
            border-radius: var(--radius-lg);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all var(--transition-fast);
            align-items: center;
            justify-content: center;
        }
        
        .mobile-menu-toggle:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: rgba(14, 165, 233, 0.05);
        }
        
        .mobile-menu {
            display: none;
            position: fixed;
            top: 70px;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.98);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: var(--shadow-xl);
            border-bottom: 1px solid var(--gray-200);
            padding: 1.5rem;
            transform: translateY(-100%);
            opacity: 0;
            transition: all var(--transition-base);
            z-index: 1001;
            pointer-events: none;
        }
        
        .mobile-menu.active {
            display: block;
            transform: translateY(0);
            opacity: 1;
            pointer-events: auto;
        }
        
        .mobile-menu .nav-links {
            flex-direction: column;
            gap: 0.5rem;
        }
        
        .mobile-menu .nav-links a {
            padding: 0.875rem 1rem;
            width: 100%;
            border-radius: var(--radius-lg);
        }
        
        /* Hero Section */
        .hero-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding: 7rem 1.5rem 5rem;
            position: relative;
        }
        
        .hero-container {
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
        }
        
        .hero-content {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 5rem;
            align-items: center;
        }
        
        .hero-profile {
            text-align: center;
            animation: fadeInUp 0.8s ease-out;
        }
        
        .profile-image-wrapper {
            position: relative;
            display: inline-block;
            margin-bottom: 2.5rem;
        }

        .profile-image {
            width: 300px;
            height: 300px;
            border-radius: 50%;
            object-fit: cover;
            border: 8px solid var(--bg-primary);
            box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(14, 165, 233, 0.1);
            position: relative;
            z-index: 2;
            transition: transform var(--transition-base);
        }
        
        .profile-image-wrapper:hover .profile-image {
            transform: scale(1.02);
        }
        
        .profile-ring {
            position: absolute;
            top: -12px;
            left: -12px;
            right: -12px;
            bottom: -12px;
            border-radius: 50%;
            background: var(--gradient-primary);
            opacity: 0.4;
            animation: pulse-ring 3s ease-in-out infinite;
            z-index: 1;
        }
        
        .profile-ring::after {
            content: '';
            position: absolute;
            top: -4px;
            left: -4px;
            right: -4px;
            bottom: -4px;
            border-radius: 50%;
            background: var(--gradient-primary);
            opacity: 0.2;
            animation: pulse-ring 3s ease-in-out infinite 0.5s;
        }
        
        @keyframes pulse-ring {
            0%, 100% { 
                transform: scale(1); 
                opacity: 0.4; 
            }
            50% { 
                transform: scale(1.05); 
                opacity: 0.6; 
            }
        }
        
        .profile-badge {
            position: absolute;
            bottom: 20px;
            right: 20px;
            width: 64px;
            height: 64px;
            background: var(--gradient-primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            box-shadow: var(--shadow-xl), 0 0 20px rgba(14, 165, 233, 0.4);
            z-index: 3;
            animation: bounce 2s ease-in-out infinite;
            border: 3px solid var(--bg-primary);
        }
        
        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 0.875rem;
            margin-top: 2rem;
            flex-wrap: wrap;
        }
        
        .social-link {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            background: var(--bg-primary);
            box-shadow: var(--shadow);
            text-decoration: none;
            transition: all var(--transition-base);
            font-size: 1.125rem;
            position: relative;
            overflow: hidden;
        }
        
        .social-link::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 ease, height 0.4s ease;
            z-index: 0;
        }
        
        .social-link i {
            position: relative;
            z-index: 1;
            transition: color var(--transition-fast);
        }
        
        .social-link:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: var(--shadow-lg), var(--shadow-colored);
        }
        
        .social-link:hover::before {
            width: 100%;
            height: 100%;
        }
        
        .social-link:hover i {
            color: white;
        }
        
        .hero-info {
            padding-left: 2rem;
            animation: fadeInUp 0.8s ease-out 0.2s both;
        }
        
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .hero-greeting {
            font-size: 0.875rem;
            font-weight: 600;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: 3px;
            margin-bottom: 1rem;
            display: inline-block;
            padding: 0.5rem 1rem;
            background: rgba(14, 165, 233, 0.1);
            border-radius: var(--radius-2xl);
        }
        
        .hero-name-wrapper {
            margin-bottom: 0.75rem;
            line-height: 1.1;
            display: flex;
            align-items: baseline;
            gap: 0.5rem;
            flex-wrap: nowrap;
        }
        
        .hero-title-prefix {
            font-size: 1.5rem;
            font-weight: 500;
            color: var(--text-secondary);
            opacity: 0.85;
            display: inline-block;
            white-space: nowrap;
            flex-shrink: 0;
        }
        
        [dir="rtl"] .hero-title-prefix {
            font-family: 'Cairo', sans-serif;
            text-align: right;
        }
        
        [dir="rtl"] .hero-name-wrapper {
            direction: rtl;
            text-align: right;
        }
        
        [dir="rtl"] .hero-name {
            direction: rtl;
            font-family: 'Cairo', sans-serif;
            text-align: right;
            padding-bottom: 18px;
        }
        
        .hero-name {
            font-size: 4rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--dark) 0%, var(--text-secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.03em;
            display: inline-block;
            white-space: nowrap;
            flex-shrink: 1;
            min-width: 0;
        }
        
        .hero-name-arabic {
            font-size: 2.25rem;
            font-weight: 600;
            color: var(--gray-500);
            margin-bottom: 1.25rem;
            font-family: 'Cairo', sans-serif;
            direction: rtl;
        }
        
        .hero-title {
            font-size: 1.625rem;
            font-weight: 500;
            color: var(--text-secondary);
            margin-bottom: 1.75rem;
            line-height: 1.4;
        }
        
        /* Birth date or age, shown only when the member opted in. Sits between the
           role and the bio as a quiet meta line rather than a hero stat: a full
           date at .stat-number's 2.5rem would dominate the header. */
        .hero-born {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1rem;
            color: var(--text-muted);
            margin-top: -1rem;
            margin-bottom: 1.75rem;
        }

        .hero-born i {
            color: var(--primary);
        }

        .hero-born strong {
            font-weight: 600;
            color: var(--text-secondary);
        }

        .hero-bio {
            font-size: 1.125rem;
            color: var(--text-muted);
            margin-bottom: 2.5rem;
            line-height: 1.8;
            max-width: 90%;
        }
        
        .hero-stats {
            display: flex;
            gap: 2.5rem;
            margin-bottom: 2.5rem;
            padding: 2rem;
            background: var(--bg-primary);
            border-radius: var(--radius-2xl);
            box-shadow: var(--shadow-md);
            border: 1px solid var(--gray-100);
            position: relative;
            overflow: hidden;
        }
        
        .hero-stats::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-primary);
        }
        
        .stat-item {
            text-align: center;
            flex: 1;
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: 800;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            line-height: 1;
            margin-bottom: 0.5rem;
        }
        
        .stat-label {
            font-size: 0.875rem;
            color: var(--text-muted);
            font-weight: 500;
        }
        
        .hero-actions {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }
        
        /* Buttons */
        .btn-primary-gradient {
            padding: 1rem 2rem;
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: var(--radius-xl);
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all var(--transition-base);
            display: inline-flex;
            align-items: center;
            gap: 0.625rem;
            text-decoration: none;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-md);
        }
        
        .btn-primary-gradient::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--gradient-primary-hover);
            transition: left var(--transition-base);
            z-index: 0;
        }
        
        .btn-primary-gradient span,
        .btn-primary-gradient i {
            position: relative;
            z-index: 1;
        }
        
        .btn-primary-gradient:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-xl), var(--shadow-colored);
        }
        
        .btn-primary-gradient:hover::before {
            left: 0;
        }
        
        .btn-primary-gradient:active {
            transform: translateY(-1px);
        }
        
        .btn-primary-gradient:focus {
            outline: 3px solid rgba(14, 165, 233, 0.5);
            outline-offset: 2px;
        }
        
        .btn-outline {
            padding: 1rem 2rem;
            background: transparent;
            color: var(--text-primary);
            border: 2px solid var(--gray-200);
            border-radius: var(--radius-xl);
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all var(--transition-base);
            display: inline-flex;
            align-items: center;
            gap: 0.625rem;
            text-decoration: none;
            position: relative;
            overflow: hidden;
        }
        
        .btn-outline::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 0;
            height: 100%;
            background: var(--gradient-soft);
            transition: width var(--transition-base);
            z-index: 0;
        }
        
        .btn-outline span,
        .btn-outline i {
            position: relative;
            z-index: 1;
        }
        
        .btn-outline:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }
        
        .btn-outline:hover::before {
            width: 100%;
        }
        
        .btn-outline:focus {
            outline: 3px solid rgba(14, 165, 233, 0.5);
            outline-offset: 2px;
        }
        
        .btn-icon:focus {
            outline: 3px solid rgba(14, 165, 233, 0.5);
            outline-offset: 2px;
        }
        
        .back-to-top:focus {
            outline: 3px solid rgba(255, 255, 255, 0.5);
            outline-offset: 2px;
        }
        
        .btn-icon {
            width: 48px;
            height: 48px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: var(--radius-lg);
            background: var(--bg-primary);
            border: 2px solid var(--gray-200);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all var(--transition-base);
            position: relative;
        }
        
        .btn-icon::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            border-radius: var(--radius-lg);
            background: rgba(14, 165, 233, 0.1);
            transform: translate(-50%, -50%);
            transition: width 0.3s ease, height 0.3s ease;
        }
        
        .btn-icon i {
            position: relative;
            z-index: 1;
        }
        
        .btn-icon:hover {
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }
        
        .btn-icon:hover::before {
            width: 100%;
            height: 100%;
        }
        
        /* Section Styles */
        .section {
            padding: 6rem 1.5rem;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
        }
        
        .section-header {
            text-align: center;
            margin-bottom: 5rem;
        }
        
        .section-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.625rem;
            padding: 0.625rem 1.25rem;
            background: var(--gradient-soft);
            color: var(--primary);
            font-weight: 600;
            font-size: 0.875rem;
            border-radius: var(--radius-2xl);
            margin-bottom: 1.25rem;
            border: 1px solid rgba(14, 165, 233, 0.2);
            box-shadow: var(--shadow-sm);
            animation: subtlePulse 3s ease-in-out infinite;
        }
        
        @keyframes subtlePulse {
            0%, 100% {
                box-shadow: var(--shadow-sm);
            }
            50% {
                box-shadow: 0 4px 12px rgba(14, 165, 233, 0.2);
            }
        }
        
        .section-title {
            font-size: 3rem;
            font-weight: 800;
            background: linear-gradient(135deg, var(--dark) 0%, var(--text-secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1.25rem;
            letter-spacing: -0.02em;
        }
        
        .section-subtitle {
            font-size: 1.125rem;
            color: var(--text-muted);
            line-height: 1.7;
        }
        
        /* Cards */
        .card-modern {
            background: var(--bg-primary);
            border-radius: var(--radius-2xl);
            padding: 2.5rem;
            box-shadow: var(--shadow-md);
            transition: all var(--transition-base);
            height: 100%;
            border: 1px solid var(--gray-100);
            position: relative;
            overflow: hidden;
        }
        
        .card-modern::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-primary);
            transform: scaleX(0);
            transition: transform var(--transition-base);
        }
        
        .card-modern:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-xl);
            border-color: var(--gray-200);
        }
        
        .card-modern:hover::before {
            transform: scaleX(1);
        }
        
        /* Timeline */
        .timeline {
            position: relative;
            padding-left: 3.5rem;
        }
        
        .timeline::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(to bottom, var(--primary), var(--secondary));
            border-radius: 2px;
            box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
        }
        
        .timeline-item {
            position: relative;
            margin-bottom: 3rem;
            padding: 2rem;
            padding-left: 2rem;
            background: var(--bg-primary);
            border-radius: var(--radius-2xl);
            box-shadow: var(--shadow-md);
            border: 1px solid var(--gray-100);
            transition: all var(--transition-base);
            overflow: hidden;
        }
        
        .timeline-item::after {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--gradient-primary);
            transform: scaleY(0);
            transition: transform var(--transition-base);
        }
        
        .timeline-item:hover {
            transform: translateX(10px);
            box-shadow: var(--shadow-xl);
            border-color: var(--gray-200);
        }
        
        .timeline-item:hover::after {
            transform: scaleY(1);
        }
        
        .timeline-item:last-child {
            margin-bottom: 0;
            padding-bottom: 2rem;
        }

        .timeline-item::before {
            content: '';
            position: absolute;
            left: -3.5rem;
            top: 2rem;
            width: 18px;
            height: 18px;
            background: var(--bg-primary);
            border: 4px solid var(--primary);
            border-radius: 50%;
            transform: translateX(-7.5px);
            box-shadow: 0 0 0 4px var(--bg-secondary), 0 0 15px rgba(14, 165, 233, 0.4);
            z-index: 2;
        }
        
        .timeline-date {
            display: inline-flex;
            align-items: center;
            gap: 0.625rem;
            padding: 0.5rem 1rem;
            background: var(--gradient-soft);
            color: var(--primary);
            font-weight: 600;
            font-size: 0.8125rem;
            border-radius: var(--radius-2xl);
            margin-bottom: 1rem;
            border: 1px solid rgba(14, 165, 233, 0.2);
        }
        
        .timeline-title {
            font-size: 1.375rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 0.5rem;
            line-height: 1.3;
        }

        .timeline-company {
            font-size: 1.0625rem;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 1rem;
        }
        
        .timeline-description {
            font-size: 1rem;
            color: var(--text-muted);
            line-height: 1.75;
        }
        
        /* Skills Grid - Modern Badge Design */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2.5rem;
        }
        
        .skill-category {
            position: relative;
            background: var(--bg-primary);
            border-radius: var(--radius-2xl);
            padding: 2rem;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
            border: 1px solid var(--gray-100);
            transition: all 0.3s ease;
        }
        
        [data-theme="dark"] .skill-category {
            background: var(--dark-light);
            border-color: rgba(148, 163, 184, 0.2);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.2);
        }
        
        .skill-category::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            border-radius: var(--radius-2xl) 0 0 var(--radius-2xl);
        }
        
        .skill-category-header {
            position: relative;
            margin-bottom: 1.5rem;
            padding-left: 1.5rem;
        }
        
        .category-divider {
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 1;
        }
        
        .divider-line {
            width: 3px;
            flex: 1;
            background: linear-gradient(180deg, #14b8a6, #0d9488);
            border-radius: 2px;
            min-height: 40px;
        }
        
        .divider-circle {
            width: 12px;
            height: 12px;
            background: #14b8a6;
            border-radius: 50%;
            border: 2px solid var(--bg-primary);
            margin-top: -6px;
            box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.3);
        }
        
        [data-theme="dark"] .divider-circle {
            border-color: var(--dark-light);
        }
        
        .skill-category-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.4;
            margin: 0;
        }
        
        .category-title-first {
            color: var(--primary);
            text-decoration: underline;
            text-decoration-color: var(--primary);
            text-underline-offset: 4px;
            text-decoration-thickness: 2px;
        }
        
        .category-title-rest {
            color: var(--text-primary);
            font-weight: 600;
        }
        
        .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            padding-left: 1.5rem;
        }
        
        .skill-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.625rem 1rem;
            background: rgba(148, 163, 184, 0.1);
            border: 1px solid rgba(148, 163, 184, 0.2);
            border-radius: 2rem;
            font-size: 0.9375rem;
            font-weight: 500;
            color: var(--text-primary);
            transition: all 0.2s ease;
            cursor: default;
            position: relative;
            opacity: 1;
            transform: translateY(0);
            white-space: nowrap;
            flex-shrink: 0;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }
        
        [data-theme="dark"] .skill-badge {
            background: rgba(148, 163, 184, 0.15);
            border-color: rgba(148, 163, 184, 0.3);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }
        
        .skill-badge:hover {
            background: rgba(99, 102, 241, 0.1);
            border-color: rgba(99, 102, 241, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        [data-theme="dark"] .skill-badge:hover {
            background: rgba(99, 102, 241, 0.2);
            border-color: rgba(99, 102, 241, 0.4);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25), 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        .skill-icon {
            font-size: 0.75rem;
            color: #f97316;
            opacity: 0.9;
        }
        
        .skill-name {
            font-weight: 500;
            color: var(--text-primary);
        }
        
        .skill-proficiency-badge {
            margin-left: auto;
            padding: 0.25rem 0.5rem;
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            color: white;
            border-radius: 1rem;
            font-size: 0.75rem;
            font-weight: 600;
            min-width: 2.5rem;
            text-align: center;
        }
        
        /* RTL Support for Skills */
        [dir="rtl"] .skill-category::before {
            left: auto;
            right: 0;
            border-radius: 0 var(--radius-2xl) var(--radius-2xl) 0;
        }
        
        [dir="rtl"] .category-divider {
            left: auto;
            right: 0;
        }
        
        [dir="rtl"] .skill-category-header {
            padding-left: 0;
            padding-right: 1.5rem;
        }
        
        [dir="rtl"] .skill-category-title {
            margin-left: 0;
            margin-right: 0;
        }
        
        [dir="rtl"] .skills-list {
            padding-left: 0;
            padding-right: 1.5rem;
        }
        
        [dir="rtl"] .skill-proficiency-badge {
            margin-left: 0;
            margin-right: auto;
        }
        
        /* Remove old skill styles */
        .skill-item,
        .skill-header,
        .skill-level,
        .skill-bar,
        .skill-progress {
            display: none;
        }
        
        /* Projects Grid */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
            gap: 2rem;
        }
        
        .project-card {
            background: var(--bg-primary);
            border-radius: var(--radius-2xl);
            overflow: hidden;
            box-shadow: var(--shadow-md);
            transition: all var(--transition-base);
            border: 1px solid var(--gray-100);
            position: relative;
        }

        .project-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-primary);
            transform: scaleX(0);
            transition: transform var(--transition-base);
            z-index: 1;
        }

        .project-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-2xl);
            border-color: var(--gray-200);
        }
        
        .project-card:hover::before {
            transform: scaleX(1);
        }

        .project-image {
            width: 100%;
            height: 220px;
            object-fit: cover;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3.5rem;
            transition: transform var(--transition-slow);
            position: relative;
            overflow: hidden;
        }
        
        .project-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
            opacity: 0;
            transition: opacity var(--transition-base);
        }
        
        .project-card:hover .project-image::before {
            opacity: 1;
        }
        
        .project-image i {
            position: relative;
            z-index: 1;
            transition: transform var(--transition-base);
        }
        
        .project-card:hover .project-image {
            transform: scale(1.08);
        }
        
        .project-card:hover .project-image i {
            transform: scale(1.2) rotate(5deg);
        }
        
        .project-content {
            padding: 2rem;
        }

        .project-title {
            font-size: 1.375rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 0.75rem;
            line-height: 1.3;
        }

        .project-description {
            font-size: 1rem;
            color: var(--text-muted);
            margin-bottom: 1.25rem;
            line-height: 1.7;
        }

        .project-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 0.625rem;
            margin-bottom: 1.25rem;
        }
        
        .tech-tag {
            padding: 0.375rem 0.875rem;
            background: var(--gray-100);
            color: var(--text-secondary);
            font-size: 0.8125rem;
            font-weight: 500;
            border-radius: var(--radius-2xl);
            border: 1px solid var(--gray-200);
            transition: all var(--transition-fast);
        }
        
        .tech-tag:hover {
            background: var(--gradient-soft);
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-2px);
        }
        
        .project-link {
            display: inline-flex;
            align-items: center;
            gap: 0.625rem;
            color: var(--primary);
            font-weight: 600;
            font-size: 0.9375rem;
            text-decoration: none;
            transition: all var(--transition-base);
            padding: 0.5rem 0;
        }
        
        .project-link:hover {
            gap: 0.875rem;
            color: var(--primary-dark);
        }
        
        .project-link i {
            transition: transform var(--transition-fast);
        }
        
        .project-link:hover i {
            transform: translateX(4px);
        }
        
        /* Certificates */
        .certificates-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
            gap: 1.5rem;
        }
        
        .certificate-card {
            background: var(--bg-primary);
            border-radius: var(--radius-2xl);
            padding: 1.75rem;
            box-shadow: var(--shadow-md);
            display: flex;
            gap: 1.5rem;
            align-items: flex-start;
            transition: all var(--transition-base);
            border: 1px solid var(--gray-100);
            position: relative;
            overflow: hidden;
        }
        
        .certificate-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-primary);
            transform: scaleX(0);
            transition: transform var(--transition-base);
        }
        
        .certificate-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-xl);
            border-color: var(--gray-200);
        }
        
        .certificate-card:hover::before {
            transform: scaleX(1);
        }
        
        .certificate-icon {
            width: 64px;
            height: 64px;
            background: var(--gradient-soft);
            border-radius: var(--radius-xl);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-size: 1.75rem;
            flex-shrink: 0;
            border: 2px solid rgba(14, 165, 233, 0.2);
            transition: all var(--transition-base);
        }
        
        .certificate-card:hover .certificate-icon {
            transform: scale(1.1) rotate(5deg);
            background: var(--gradient-primary);
            color: white;
            border-color: transparent;
        }

        /* Certificate with image */
        .certificate-card.has-image {
            flex-direction: column;
            padding: 0;
            overflow: hidden;
        }

        .certificate-card.has-image .certificate-info {
            padding: 1.25rem;
        }

        .certificate-image {
            position: relative;
            width: 100%;
            cursor: pointer;
            overflow: hidden;
        }

        .certificate-image img {
            width: 100%;
            height: 180px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

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

        .certificate-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .certificate-overlay i {
            color: white;
            font-size: 2rem;
        }

        .certificate-image:hover .certificate-overlay {
            opacity: 1;
        }

        /* Certificate Modal */
        .certificate-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 3rem;
            opacity: 0;
            transition: opacity 0.3s ease;
            cursor: pointer; /* Indicate clicking backdrop closes */
        }

        .certificate-modal.active {
            display: flex;
            opacity: 1;
            animation: certModalFadeIn 0.3s ease;
        }
        
        @keyframes certModalFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        /* Fixed close button - always visible in top-right corner */
        .certificate-modal-close {
            position: fixed;
            top: 1.25rem;
            right: 1.25rem;
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 50%;
            color: #1e293b;
            font-size: 1.5rem;
            cursor: pointer;
            width: 48px;
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            transition: all 0.2s ease;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
            z-index: 10001;
        }

        .certificate-modal-close:hover {
            transform: scale(1.1);
            background: #fff;
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
        }
        
        .certificate-modal-close:focus {
            outline: 3px solid rgba(255, 255, 255, 0.5);
            outline-offset: 2px;
        }

        [dir="rtl"] .certificate-modal-close {
            right: auto;
            left: 1.25rem;
        }

        .certificate-modal-content {
            position: relative;
            max-width: min(800px, 85vw);
            max-height: 85vh;
            text-align: center;
            transform: scale(0.92);
            transition: transform 0.3s ease;
            cursor: default; /* Don't close when clicking content */
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .certificate-modal.active .certificate-modal-content {
            transform: scale(1);
        }

        .certificate-modal-content img {
            max-width: 100%;
            max-height: 75vh;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
            background: #fff;
            padding: 0.5rem;
        }

        .certificate-modal-title {
            color: white;
            margin-top: 1rem;
            font-size: 1.1rem;
            font-weight: 600;
            letter-spacing: 0.02em;
        }

        /* Hint text to close */
        .certificate-modal-hint {
            color: rgba(255, 255, 255, 0.5);
            font-size: 0.8rem;
            margin-top: 0.5rem;
        }
        
        @media (max-width: 768px) {
            .certificate-modal {
                padding: 1.5rem;
            }
            
            .certificate-modal-content {
                max-width: 95vw;
            }
            
            .certificate-modal-content img {
                max-height: 70vh;
            }
            
            .certificate-modal-close {
                top: 0.75rem;
                right: 0.75rem;
                width: 40px;
                height: 40px;
                font-size: 1.25rem;
            }

            [dir="rtl"] .certificate-modal-close {
                right: auto;
                left: 0.75rem;
            }
        }
        
        .certificate-info h4 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 0.25rem;
        }
        
        .certificate-info p {
            font-size: 0.875rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }
        
        .certificate-date {
            font-size: 0.8rem;
            color: var(--primary);
            font-weight: 600;
        }
        
        /* Certificates section RTL (Arabic) */
        [dir="rtl"] #certificates .section-header {
            text-align: right;
        }
        
        [dir="rtl"] .certificate-card {
            text-align: right;
            direction: rtl;
        }
        
        [dir="rtl"] .certificate-info {
            text-align: right;
            overflow: hidden;
        }
        
        [dir="rtl"] .certificate-info h4,
        [dir="rtl"] .certificate-info p {
            text-align: right;
            word-wrap: break-word;
            overflow-wrap: break-word;
        }
        
        [dir="rtl"] .certificate-date {
            display: inline-flex;
            align-items: center;
            flex-direction: row-reverse;
        }
        
        [dir="rtl"] .certificate-date .me-1 {
            margin-right: 0;
            margin-left: 0.25rem;
        }
        
        [dir="rtl"] .certificate-info a[href] {
            display: inline-flex;
            align-items: center;
            flex-direction: row-reverse;
        }
        
        [dir="rtl"] .certificate-info a[href] .me-1 {
            margin-right: 0;
            margin-left: 0.25rem;
        }
        
        /* Publications */
        .publications-list {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .publication-card {
            background: var(--bg-primary);
            border-radius: var(--radius-2xl);
            padding: 2rem;
            box-shadow: var(--shadow-md);
            transition: all var(--transition-base);
            border: 1px solid var(--gray-100);
            position: relative;
            overflow: hidden;
        }
        
        .publication-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--gradient-primary);
            transform: scaleY(0);
            transition: transform var(--transition-base);
        }
        
        .publication-card:hover {
            transform: translateX(8px);
            box-shadow: var(--shadow-xl);
            border-color: var(--gray-200);
        }
        
        .publication-card:hover::before {
            transform: scaleY(1);
        }
        
        .publication-type {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            background: rgba(139, 92, 246, 0.1);
            color: var(--secondary);
            font-size: 0.75rem;
            font-weight: 600;
            border-radius: var(--radius-2xl);
            margin-bottom: 0.75rem;
        }
        
        .publication-title {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 0.5rem;
        }
        
        .publication-authors {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }
        
        .publication-journal {
            font-size: 0.875rem;
            color: var(--text-secondary);
            font-style: italic;
        }
        
        /* Recommendations */
        .recommendations-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            gap: 2rem;
        }
        
        .recommendation-card {
            background: var(--bg-primary);
            border-radius: var(--radius-2xl);
            padding: 2.5rem;
            box-shadow: var(--shadow-md);
            position: relative;
            border: 1px solid var(--gray-100);
            transition: all var(--transition-base);
            overflow: hidden;
        }
        
        .recommendation-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-primary);
            transform: scaleX(0);
            transition: transform var(--transition-base);
        }
        
        .recommendation-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-xl);
            border-color: var(--gray-200);
        }
        
        .recommendation-card:hover::before {
            transform: scaleX(1);
        }
        
        .recommendation-quote {
            font-size: 4rem;
            color: var(--gray-200);
            position: absolute;
            top: 1rem;
            left: 1.5rem;
            line-height: 1;
            font-family: Georgia, serif;
        }
        
        .recommendation-text {
            font-size: 1rem;
            color: var(--text-secondary);
            line-height: 1.8;
            margin-bottom: 1.5rem;
            padding-left: 0.5rem;
            position: relative;
            z-index: 1;
        }

        .recommendation-text-preview {
            display: -webkit-box;
            -webkit-line-clamp: 4;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }

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

        .recommendation-show-more-btn {
            margin-top: 0.25rem;
            margin-bottom: 1rem;
            background: none;
            border: none;
            color: var(--primary-color, #696cff);
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            padding: 0.25rem 0;
            transition: color 0.2s ease;
            text-decoration: none;
        }

        .recommendation-show-more-btn:hover {
            color: var(--primary-hover-color, #5a5fcf);
            text-decoration: underline;
        }

        .recommendation-show-more-btn:focus {
            outline: 2px solid var(--primary-color, #696cff);
            outline-offset: 2px;
            border-radius: 2px;
        }

        /* Body scroll lock when recommendation modal is open (overflow only = no scroll jump on close) */
        body.recommendation-modal-open {
            overflow: hidden !important;
        }

        /* Recommendation full text modal - at body level so it overlays viewport */
        .recommendation-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.98) 0%, rgba(0, 0, 0, 0.95) 100%);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            z-index: 10000;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            opacity: 0;
            transition: opacity var(--transition-base);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

        .recommendation-modal.active {
            display: flex;
            opacity: 1;
            animation: fadeIn 0.3s ease;
        }

        .recommendation-modal-content {
            position: relative;
            max-width: 92%;
            width: 720px;
            max-height: 85vh;
            overflow: auto;
            background: var(--bg-primary);
            border-radius: var(--radius-2xl);
            padding: 2.5rem;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
            transform: scale(0.95);
            transition: transform var(--transition-base);
        }

        .recommendation-modal.active .recommendation-modal-content {
            transform: scale(1);
        }

        .recommendation-modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(0, 0, 0, 0.1);
            border: none;
            border-radius: 50%;
            color: var(--text-secondary);
            font-size: 1.5rem;
            line-height: 1;
            width: 36px;
            height: 36px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s, color 0.2s;
        }

        .recommendation-modal-close:hover {
            background: rgba(0, 0, 0, 0.15);
            color: var(--text-primary);
        }

        .recommendation-modal-quote {
            display: block;
            font-size: 3rem;
            color: var(--primary-color, #696cff);
            opacity: 0.5;
            line-height: 1;
            margin-bottom: 0.5rem;
        }

        .recommendation-modal-body {
            font-size: 1rem;
            color: var(--text-secondary);
            line-height: 1.8;
            margin-bottom: 1.5rem;
            white-space: pre-wrap;
            word-wrap: break-word;
        }

        .recommendation-modal-author {
            font-size: 0.875rem;
            color: var(--text-muted);
            padding-top: 1rem;
            border-top: 1px solid var(--gray-200, rgba(0, 0, 0, 0.08));
        }

        .recommendation-modal-author strong {
            color: var(--dark);
            font-size: 1rem;
        }

        .recommendation-modal-file {
            padding-top: 0.75rem;
            border-top: 1px solid var(--gray-200, rgba(0, 0, 0, 0.08));
        }

        .recommendation-file-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--primary-color, #696cff);
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease;
        }

        .recommendation-file-link:hover {
            color: var(--primary-hover-color, #5a5fcf);
            text-decoration: underline;
        }
        
        .recommendation-author {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .recommendation-avatar {
            width: 64px;
            height: 64px;
            border-radius: 50%;
            object-fit: cover;
            background: var(--gradient-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            font-weight: 700;
            border: 3px solid var(--bg-primary);
            box-shadow: var(--shadow-md);
            transition: all var(--transition-base);
            flex-shrink: 0;
        }
        
        .recommendation-card:hover .recommendation-avatar {
            transform: scale(1.1);
            box-shadow: var(--shadow-lg), 0 0 0 4px rgba(14, 165, 233, 0.1);
        }
        
        .recommendation-author-info h4 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 0.125rem;
        }
        
        .recommendation-author-info p {
            font-size: 0.875rem;
            color: var(--text-muted);
            margin: 0;
        }
        
        /* Contact Section */
        .contact-section {
            background: var(--gradient-dark);
            padding: 5rem 1.5rem;
            margin-top: 3rem;
        }
        
        .contact-container {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
        }
        
        .contact-info h2 {
            font-size: 3rem;
            font-weight: 800;
            background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 1.25rem;
            letter-spacing: -0.02em;
        }
        
        .contact-info p {
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.125rem;
            margin-bottom: 2.5rem;
            line-height: 1.7;
        }
        
        .contact-details {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }
        
        .contact-item {
            display: flex;
            align-items: center;
            gap: 1.25rem;
            color: white;
            text-decoration: none;
            transition: all var(--transition-base);
            padding: 1rem;
            border-radius: var(--radius-lg);
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .contact-item:hover {
            color: white;
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.2);
            transform: translateX(8px);
        }
        
        .contact-icon {
            width: 56px;
            height: 56px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: var(--radius-xl);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.375rem;
            transition: all var(--transition-base);
            flex-shrink: 0;
        }
        
        .contact-item:hover .contact-icon {
            background: var(--gradient-primary);
            transform: scale(1.1) rotate(5deg);
            box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
        }
        
        .contact-item span {
            font-size: 1.0625rem;
            font-weight: 500;
        }
        
        .qr-card {
            background: rgba(255, 255, 255, 0.08);
            border-radius: var(--radius-2xl);
            padding: 2.5rem;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: all var(--transition-base);
        }
        
        .qr-card:hover {
            background: rgba(255, 255, 255, 0.12);
            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
        }
        
        .qr-code {
            background: white;
            padding: 1.25rem;
            border-radius: var(--radius-xl);
            display: inline-block;
            margin-bottom: 1.25rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            transition: transform var(--transition-base);
        }
        
        .qr-card:hover .qr-code {
            transform: scale(1.05);
        }
        
        .qr-code canvas {
            display: block;
        }
        
        .qr-label {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9375rem;
            font-weight: 500;
            margin-bottom: 1.5rem;
        }
        
        /* Modals */
        .modal-modern .modal-content {
            border: none;
            border-radius: var(--radius-xl);
            overflow: hidden;
        }
        
        .modal-modern .modal-header {
            background: var(--gradient-primary);
            color: white;
            padding: 1.25rem 1.5rem;
        }
        
        .modal-modern .modal-title {
            font-weight: 700;
        }
        
        .modal-modern .btn-close {
            filter: invert(1);
        }
        
        .modal-modern .modal-body {
            padding: 2rem;
        }
        
        /* Share Modal QR Code */
        .share-modal-qr-wrapper {
            text-align: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1.5rem;
            border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        }
        
        .share-modal-qr {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            background: #fff;
            padding: 1rem;
            border-radius: var(--radius-xl);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            margin-bottom: 0.75rem;
        }
        
        .share-modal-qr canvas {
            display: block;
        }
        
        .share-modal-qr-label {
            margin: 0;
            font-size: 0.875rem;
            font-weight: 500;
            color: var(--text-muted, #64748b);
        }
        
        /* Share Section */
        .share-options-label {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-muted, #64748b);
        }
        
        .share-options {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-bottom: 1.5rem;
        }
        
        .share-btn {
            padding: 1.25rem 1rem;
            border: none;
            border-radius: var(--radius-xl);
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition-base);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.625rem;
            position: relative;
            overflow: hidden;
            box-shadow: var(--shadow-md);
        }
        
        .share-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.4s ease, height 0.4s ease;
        }
        
        .share-btn:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: var(--shadow-xl);
        }
        
        .share-btn:hover::before {
            width: 300px;
            height: 300px;
        }
        
        .share-btn:active {
            transform: translateY(-2px) scale(1);
        }
        
        .share-btn:focus {
            outline: 3px solid rgba(14, 165, 233, 0.5);
            outline-offset: 2px;
        }
        
        .share-btn i,
        .share-btn span {
            position: relative;
            z-index: 1;
        }
        
        .share-btn.linkedin { background: #0077b5; color: white; }
        .share-btn.twitter { background: #1da1f2; color: white; }
        .share-btn.facebook { background: #4267b2; color: white; }
        .share-btn.whatsapp { background: #25d366; color: white; }
        .share-btn.email { background: var(--gray-600); color: white; }
        .share-btn.copy { background: var(--gray-100); color: var(--dark); }
        .share-btn.native-share { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: white; }
        
        .copy-link-container {
            display: flex;
            gap: 0.5rem;
        }
        
        .copy-link-input {
            flex: 1;
            padding: 0.75rem 1rem;
            border: 2px solid var(--gray-200);
            border-radius: var(--radius-lg);
            font-size: 0.9rem;
        }
        
        /* Footer */
        .portfolio-footer {
            text-align: center;
            padding: 3rem 2rem;
            color: rgba(255, 255, 255, 0.6);
            background: var(--dark);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .portfolio-footer a {
            color: var(--primary-light);
            text-decoration: none;
            transition: all var(--transition-fast);
            font-weight: 600;
        }
        
        .portfolio-footer a:hover {
            color: var(--primary);
            text-decoration: underline;
        }
        
        .portfolio-footer p {
            margin: 0;
            font-size: 0.9375rem;
        }
        
        /* Responsive */
        @media (max-width: 992px) {
            .hero-content {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 3rem;
            }
            
            .hero-info {
                padding-left: 0;
            }
            
            .hero-name {
                font-size: 3rem;
            }
            
            .hero-title-prefix {
                font-size: 1.25rem;
            }
            
            .hero-bio {
                max-width: 100%;
            }
            
            .hero-stats {
                justify-content: center;
                gap: 2rem;
            }
            
            .hero-actions {
                justify-content: center;
            }
            
            .contact-grid {
                grid-template-columns: 1fr;
                text-align: center;
                gap: 3rem;
            }
            
            .contact-details {
                align-items: center;
            }
            
            .contact-info h2 {
                font-size: 2.5rem;
            }
            
            .nav-links {
                display: none;
            }
            
            .mobile-menu-toggle {
                display: flex;
            }
            
            .recommendations-grid {
                grid-template-columns: 1fr;
            }
            
            .section {
                padding: 4rem 1.5rem;
            }
            
            .section-title {
                font-size: 2.5rem;
            }
            
            .timeline {
                padding-left: 2.5rem;
            }
            
            .timeline-item::before {
                left: -2.5rem;
                transform: translateX(-5px);
            }
        }
        
        @media (max-width: 768px) {
            .hero-section {
                padding: 6rem 1.5rem 4rem;
            }
            
            .hero-name {
                font-size: 2.5rem;
            }
            
            .hero-title-prefix {
                font-size: 1.125rem;
            }
            
            .section-title {
                font-size: 2.25rem;
            }
            
            .projects-grid,
            .certificates-grid,
            .skills-grid {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 576px) {
            .hero-name {
                font-size: 2rem;
            }
            
            .hero-title-prefix {
                font-size: 1rem;
            }

            .profile-image {
                width: 220px;
                height: 220px;
            }
            
            .section-title {
                font-size: 1.875rem;
            }
            
            .section {
                padding: 3rem 1rem;
            }
            
            .share-options {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .hero-stats {
                flex-direction: column;
                gap: 1.5rem;
            }
            
            .hero-actions {
                flex-direction: column;
                width: 100%;
            }
            
            .hero-actions .btn-primary-gradient,
            .hero-actions .btn-outline {
                width: 100%;
                justify-content: center;
            }
            
            .timeline-item {
                padding-left: 1.5rem;
            }
        }
        
        /* Animations */
        .fade-in-up {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }
        
        .fade-in-up.visible {
            opacity: 1;
            transform: translateY(0);
        }
        
        /* Back to top */
        .back-to-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 50px;
            height: 50px;
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: 50%;
            font-size: 1.25rem;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 999;
            box-shadow: var(--shadow-lg);
        }
        
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            transform: translateY(-3px);
        }
        
        /* Dark Mode Styles */
        [data-theme="dark"] {
            --text-primary: #f1f5f9;
            --text-secondary: #cbd5e1;
            --text-muted: #94a3b8;
            --bg-primary: #1e293b;
            --bg-secondary: #0f172a;
            --gray-50: #1e293b;
            --gray-100: #334155;
            --gray-200: #475569;
            --gray-300: #64748b;
            --gray-400: #94a3b8;
            --gray-500: #cbd5e1;
            --gray-600: #e2e8f0;
        }
        
        [data-theme="dark"] .portfolio-nav.scrolled {
            background: rgba(30, 41, 59, 0.8);
            border-bottom: 1px solid rgba(71, 85, 105, 0.5);
        }
        
        [data-theme="dark"] .mobile-menu {
            background: rgba(30, 41, 59, 0.98);
            border-bottom: 1px solid rgba(71, 85, 105, 0.5);
        }
        
        [data-theme="dark"] .mobile-menu-toggle {
            background: var(--bg-primary);
            border-color: var(--gray-200);
            color: var(--text-secondary);
        }
        
        [data-theme="dark"] .btn-icon {
            background: var(--bg-primary);
            border-color: var(--gray-200);
            color: var(--text-secondary);
        }
        
        [data-theme="dark"] .nav-links a {
            color: var(--text-secondary);
        }
        
        [data-theme="dark"] .nav-links a:hover,
        [data-theme="dark"] .nav-links a.active {
            color: var(--primary);
            background: rgba(14, 165, 233, 0.15);
        }
        
        [data-theme="dark"] .hero-title-prefix {
            color: rgba(255, 255, 255, 0.85);
        }
        
        [data-theme="dark"] .hero-name {
            background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        [data-theme="dark"] .section-title {
            background: linear-gradient(135deg, #ffffff 0%, var(--text-secondary) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        [data-theme="dark"] .timeline-title {
            color: var(--text-primary);
        }
        
        [data-theme="dark"] .skill-category-title {
            color: var(--text-primary);
            border-bottom-color: var(--gray-200);
        }
        
        [data-theme="dark"] .skill-name {
            color: var(--text-primary);
        }
        
        [data-theme="dark"] .project-title {
            color: var(--text-primary);
        }
        
        [data-theme="dark"] .certificate-info h4 {
            color: var(--text-primary);
        }
        
        [data-theme="dark"] .publication-title {
            color: var(--text-primary);
        }
        
        [data-theme="dark"] .recommendation-author-info h4 {
            color: var(--text-primary);
        }
        
        [data-theme="dark"] .recommendation-quote {
            color: var(--gray-300);
        }
        
        [data-theme="dark"] .copy-link-input {
            background: var(--bg-primary);
            border-color: var(--gray-200);
            color: var(--text-primary);
        }
        
        [data-theme="dark"] .share-btn.copy {
            background: var(--gray-100);
            color: var(--text-primary);
        }
        
        [data-theme="dark"] .portfolio-bg::before {
            background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 70%);
        }
        
        [data-theme="dark"] .portfolio-bg::after {
            background: radial-gradient(circle, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
        }
        
        [data-theme="dark"] .modal-modern .modal-content {
            background: var(--bg-primary);
            color: var(--text-primary);
        }
        
        [data-theme="dark"] .modal-modern .modal-body {
            background: var(--bg-primary);
        }
        
        [data-theme="dark"] .modal-modern .btn-close {
            filter: invert(1);
        }
        
        /* Mobile menu theme switcher */
        .mobile-lang-switcher a[data-theme].active {
            background: rgba(99, 102, 241, 0.3);
            border: 1px solid rgba(99, 102, 241, 0.5);
        }
        
        [data-theme="dark"] .mobile-lang-switcher {
            border-top-color: rgba(255, 255, 255, 0.1);
        }