      /* CSS Custom Properties for Theme Consistency */
      :root {
        --primary-color: #4f46e5;
        --primary-hover: #4338ca;
        --secondary-color: #6366f1;
        --accent-color: #8b5cf6;
        --bg-primary: #f8fafc;
        --bg-secondary: #ffffff;
        --bg-card: #f8fafc;
        --text-primary: #0f172a;
        --text-secondary: #64748b;
        --text-muted: #94a3b8;
        --border-color: #e2e8f0;
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
        --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        --gradient-secondary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
      }

      /* Dark mode */
      [data-theme="dark"] {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-card: #334155;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-muted: #94a3b8;
        --border-color: #334155;
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
      }

      body {
        font-family: "Inter", sans-serif;
        background-color: var(--bg-primary);
        color: var(--text-primary);
        transition: background-color 0.3s ease, color 0.3s ease;
      }

      /* Scroll Progress Indicator */
      .scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        width: 0%;
        height: 3px;
        background: var(--gradient-secondary);
        z-index: 9999;
        transition: width 0.3s ease;
      }

      /* Custom scrollbar for a cleaner look */
      ::-webkit-scrollbar {
        width: 8px;
      }
      ::-webkit-scrollbar-track {
        background: var(--border-color);
        border-radius: 10px;
      }
      ::-webkit-scrollbar-thumb {
        background: var(--text-muted);
        border-radius: 10px;
      }
      ::-webkit-scrollbar-thumb:hover {
        background: var(--text-secondary);
      }

      /* Loading Screen Styles */
      .loading-screen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 9999;
        transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
      }

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

      .arabic-text {
        font-size: 3rem;
        font-weight: bold;
        color: white;
        margin-bottom: 1rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        animation: fadeInUp 1s ease-out;
      }

      .translation-text {
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 2rem;
        animation: fadeInUp 1s ease-out 0.3s both;
      }

      .loading-spinner {
        width: 50px;
        height: 50px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top: 3px solid white;
        border-radius: 50%;
        animation: spin 1s linear infinite, fadeInUp 1s ease-out 0.6s both;
      }

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

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

      /* Enhanced Skill Cards */
      .skill-card {
        transition: all 0.3s ease;
        cursor: pointer;
      }

      .skill-card:hover {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1),
          0 10px 10px -5px rgb(0 0 0 / 0.04);
      }

      .skill-card:hover .skill-icon {
        animation: skillBounce 0.6s ease;
      }

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

      .skill-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--gradient-secondary);
        opacity: 0;
        border-radius: inherit;
        transition: opacity 0.3s ease;
        z-index: -1;
      }

      .skill-card:hover .skill-title {
        color: white;
      }

      @keyframes skillBounce {
        0%,
        20%,
        60%,
        100% {
          transform: translateY(0);
        }
        40% {
          transform: translateY(-10px);
        }
        80% {
          transform: translateY(-5px);
        }
      }

      /* Enhanced Project Cards */
      .project-card {
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
      }

      .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
      }

      .project-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.1),
          transparent
        );
        transition: left 0.5s ease;
        z-index: 1;
      }

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

      .project-tag {
        display: inline-block;
        background: var(--gradient-secondary);
        color: white;
        padding: 0.25rem 0.75rem;
        border-radius: 9999px;
        font-size: 0.75rem;
        font-weight: 600;
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
      }

      /* Dark Mode Toggle */
      .theme-toggle {
        position: relative;
        width: 60px;
        height: 30px;
        border-radius: 15px;
        background: var(--border-color);
        cursor: pointer;
        transition: background 0.3s ease;
      }

      .theme-toggle::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--bg-secondary);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-sm);
      }

      [data-theme="dark"] .theme-toggle::before {
        transform: translateX(30px);
      }

      /* Section Animations */
      .section-animate {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease, transform 0.6s ease;
      }

      .section-animate.visible {
        opacity: 1;
        transform: translateY(0);
      }

      /* Enhanced Typography */
      h1,
      h2,
      h3 {
        line-height: 1.2;
        letter-spacing: -0.025em;
      }

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

      /* Mobile Menu Enhancements */
      .mobile-menu {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
      }

      .mobile-menu.open {
        transform: translateX(0);
      }

      /* Header Navigation Styles */
      .nav-link {
        color: var(--text-secondary);
        transition: all 0.3s ease;
      }

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

      .logo-link {
        color: var(--primary-color);
        transition: all 0.3s ease;
      }

      .logo-link:hover {
        background-color: var(--border-color);
      }

      .mobile-button {
        color: var(--text-secondary);
        transition: all 0.3s ease;
      }

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

      .mobile-button:focus {
        box-shadow: 0 0 0 2px var(--primary-color);
      }
