        /* 1. المتغيرات والألوان المحسنة */
        :root {
          --bg-dark: #0b0d10;
          --bg-medium: #11161b; 
          --bg-light: #14181f;
          --text-primary: #e8e8e8;
          --text-secondary: #b0b0b0;
          --accent-color: #00aaff;
          --accent-secondary: #ff6b6b;
          --accent-tertiary: #00ffcc;
          --accent-hover: #66ccff;
          --neon-glow: #00aaff50; 
          --gradient-primary: linear-gradient(135deg, #00aaff 0%, #00ffcc 100%);
          --gradient-secondary: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
          --gradient-dark: linear-gradient(135deg, #0b0d10 0%, #11161b 100%);
          --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
          --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
          --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        /* Light Theme Variables */
        [data-theme="light"] {
          --bg-dark: #f0f2f5;
          --bg-medium: #ffffff;
          --bg-light: #f8f9fa;
          --text-primary: #2d3748;
          --text-secondary: #4a5568;
          --accent-color: #3182ce;
          --accent-secondary: #e53e3e;
          --accent-tertiary: #38a169;
          --accent-hover: #4299e1;
          --neon-glow: #3182ce50;
          --gradient-primary: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
          --gradient-secondary: linear-gradient(135deg, #e53e3e 0%, #dd6b20 100%);
          --gradient-dark: linear-gradient(135deg, #f0f2f5 0%, #ffffff 100%);
          --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        * { 
          margin: 0; 
          padding: 0; 
          box-sizing: border-box; 
        }
        
        html { 
          scroll-behavior: smooth; 
        }

        body {
          background-color: var(--bg-dark);
          color: var(--text-primary);
          line-height: 1.7;
          transition: var(--transition-smooth);
          overflow-x: hidden;
          background-image: 
            radial-gradient(circle at 15% 50%, rgba(0, 170, 255, 0.05) 0%, transparent 25%),
            radial-gradient(circle at 85% 30%, rgba(255, 107, 107, 0.05) 0%, transparent 25%),
            radial-gradient(circle at 50% 80%, rgba(0, 255, 204, 0.05) 0%, transparent 25%);
        }
        
        body.lang-en {
          font-family: 'Poppins', 'Cairo', sans-serif;
        }
        body.lang-ar {
          font-family: 'Cairo', 'Poppins', sans-serif;
        }

        /* Parallax Background */
        .parallax-bg {
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          z-index: -1;
          background-image: 
            radial-gradient(circle at 20% 80%, rgba(0, 170, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.05) 0%, transparent 50%);
          transform: translateZ(0);
          pointer-events: none;
        }

        /* --- Header & Nav --- */
        header {
            background: rgba(17, 22, 27, 0.95);
            color: var(--accent-color);
            padding: 18px 1rem;
            text-align: center;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            border-bottom: 1px solid rgba(20, 24, 31, 0.5);
            backdrop-filter: blur(10px);
            transition: var(--transition-smooth);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        [data-theme="light"] header {
            background: rgba(255, 255, 255, 0.95);
            border-bottom: 1px solid rgba(226, 232, 240, 0.8);
        }

        header.scrolled {
            padding: 12px 1rem;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        }

        .LOGO {
            font-size: 1.8em;
            font-weight: 700;
            text-decoration: none;
            color: var(--accent-color);
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .LOGO::before {
            content: '';
            display: inline-block;
            width: 35px;
            /* تقدر تكبر المقاس شوية لو حابب */
            height: 35px;

            /* إضافة الصورة */
            background-image: url('images/MY LOGO.png');

            /* أهم خواص لضبط ظهور الصورة داخل المربع */
            background-size: cover;
            /* عشان الصورة تملأ المربع بالكامل */
            background-position: center;
            /* عشان يوسطن الصورة */
            background-repeat: no-repeat;

            border-radius: 8px;
            /* لو عايز تحافظ على تأثير الجرادينت كـ Overlay خفيف (اختياري) */
            /* border: 1px solid var(--accent-color); */
        }


        nav.navigation {
            display: flex;
            gap: 20px;
        }

        nav a {
            color: var(--text-primary);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition-smooth);
            position: relative;
            padding-bottom: 5px;
        }

        nav a::after {
            content: '';
            position: absolute;
            width: 0%;
            height: 2px;
            bottom: 0;
            left: 0;
            background: var(--gradient-primary);
            transition: width 0.3s ease-out;
        }

        nav a:hover::after {
            width: 100%;
        }

        nav a:hover {
            color: var(--accent-color);
        }

        /* Hamburger Menu */
        .hamburger {
            display: none;
            flex-direction: column;
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
            z-index: 1001;
        }

        .hamburger .bar {
            width: 25px;
            height: 3px;
            background-color: var(--accent-color);
            margin: 3px 0;
            transition: 0.3s;
            border-radius: 2px;
        }

        .hamburger.is-active .bar:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .hamburger.is-active .bar:nth-child(2) {
            opacity: 0;
        }

        .hamburger.is-active .bar:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

        /* Mobile Navigation */
        .mobile-nav {
            position: fixed;
            top: 0;
            right: -100%;
            width: 70%;
            height: 100vh;
            background: var(--bg-medium);
            backdrop-filter: blur(10px);
            display: flex;
            flex-direction: column;
            padding: 80px 20px 20px;
            transition: 0.5s;
            z-index: 999;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        }

        .mobile-nav.is-active {
            right: 0;
        }

        .mobile-navB {
            padding: 15px;
            text-decoration: none;
            color: var(--text-primary);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: var(--transition-smooth);
            font-weight: 500;
        }

        .mobile-navB:hover {
            color: var(--accent-color);
            background: rgba(0, 170, 255, 0.05);
        }
        
        body.lang-en #lang-switcher { font-family: 'Cairo', sans-serif; }
        body.lang-ar #lang-switcher { font-family: 'Poppins', sans-serif; }
        
        /* --- Sections --- */
        section {
          padding: 80px 1rem; 
          max-width: 1200px;
          margin: auto;
          position: relative;
        }
        
        .first-section {
            padding-top: 100px; 
        }

        .section-title {
          text-align: center;
          margin-bottom: 60px;
          position: relative;
        }
        
        section h2 {
          color: var(--accent-color);
          font-size: 2.5em;
          font-weight: 700;
          text-shadow: 0 0 10px var(--neon-glow);
          transition: text-shadow 0.5s;
          display: inline-block;
          position: relative;
          margin-bottom: 15px;
        }
        
        .section-title::after {
          content: '';
          position: absolute;
          bottom: -10px;
          left: 50%;
          transform: translateX(-50%);
          width: 80px;
          height: 3px;
          background: var(--gradient-primary);
          border-radius: 3px;
        }
        
        section:hover h2 {
           text-shadow: 0 0 15px var(--accent-color), 0 0 30px var(--neon-glow);
        }

        /* --- Project Detail Section (تم إعادة استخدام هذا الكلاس للهيكل الجديد) --- */
        .project-detail {
          background-color: var(--bg-medium); 
          position: relative;
          overflow: hidden;
          border-radius: 20px;
          margin: 20px;
          box-shadow: var(--card-shadow);
        }
        
        .project-detail::before {
          content: '';
          position: absolute;
          top: -50%;
          right: -10%;
          width: 300px;
          height: 300px;
          border-radius: 50%;
          background: radial-gradient(circle, rgba(0, 170, 255, 0.1) 0%, transparent 70%);
          z-index: 0;
        }
        
        .project-container {
          display: flex;
          align-items: center;
          gap: 50px;
          flex-wrap: wrap; 
          position: relative;
          z-index: 1;
          padding: 40px;
        }
        
        .project-image {
          flex: 1;
          text-align: center;
          min-width: 250px;
          position: relative;
        }
        
        .project-image::before {
          content: '';
          position: absolute;
          top: -10px;
          left: -10px;
          right: -10px;
          bottom: -10px;
          background: var(--gradient-primary);
          border-radius: 15px;
          z-index: -1;
          opacity: 0.3;
          filter: blur(10px);
        }
        
        #mainImage {
          width: 100%;
          max-width: 500px;
          border-radius: 15px;
          object-fit: cover;
          border: 4px solid var(--accent-color);
          box-shadow: 0 0 30px var(--neon-glow);
          transition: var(--transition-smooth);
          position: relative;
          z-index: 1;
        }
        
        #mainImage:hover {
            transform: scale(1.02);
            box-shadow: 0 0 40px var(--accent-color);
        }
        
        .thumbnails-container {
          display: flex;
          gap: 15px;
          margin-top: 20px;
          flex-wrap: wrap;
          justify-content: center;
        }
        
        .thumbnail {
          width: 80px;
          height: 80px;
          border-radius: 10px;
          object-fit: cover;
          cursor: pointer;
          transition: var(--transition-smooth);
          border: 2px solid transparent;
        }
        
        .thumbnail:hover, .thumbnail.highlight {
          transform: translateY(-5px);
          border-color: var(--accent-color);
          box-shadow: 0 0 10px var(--neon-glow);
        }
        
        .project-text {
          flex: 2;
          min-width: 300px;
        }
        
        .project-text p {
          font-size: 1.1em;
          margin-bottom: 20px;
          line-height: 1.8;
        }
        
        .j-color {
          color: var(--accent-secondary);
          font-weight: bold;
        }
        
        .dow-tit {
          margin-top: 40px;
          margin-bottom: 20px;
          color: var(--accent-color);
          font-size: 1.8em;
          font-weight: 600; /* تم التعديل من h1 إلى h2/p في الهيكل الجديد */
        }
        
        .download-section {
          margin-top: 30px;
        }
        
        .download-section p {
          margin-bottom: 10px;
          color: var(--text-secondary);
          font-size: 1.1em;
        }
        
        /* --- New Primary Button Style --- */
        .primary-button {
          display: inline-block;
          padding: 12px 30px;
          background: var(--gradient-primary);
          color: var(--bg-dark);
          text-decoration: none;
          font-weight: 700;
          border-radius: 30px;
          border: none;
          transition: var(--transition-smooth);
          box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
          cursor: pointer;
          font-size: 1.1em;
          font-family: inherit; 
          position: relative;
          overflow: hidden;
          z-index: 1;
          margin-right: 15px; /* مسافة بين الأزرار */
        }
        
        .primary-button::before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          background: var(--gradient-secondary);
          opacity: 0;
          transition: opacity 0.3s ease;
          z-index: -1;
        }

        .primary-button:hover {
          transform: translateY(-3px);
          box-shadow: 0 8px 20px rgba(0, 170, 255, 0.6);
        }
        
        .primary-button:hover::before {
          opacity: 1;
        }
        
        /* --- Footer --- */
        footer {
          background: var(--bg-medium);
          color: var(--text-secondary);
          text-align: center;
          padding: 40px 1rem;
          margin-top: 40px;
          border-top: 1px solid var(--bg-light);
          position: relative;
        }
        
        footer::before {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          right: 0;
          height: 1px;
          background: var(--gradient-primary);
        }
        
        /* --- Floating Elements --- */
        .floating-element {
          position: absolute;
          border-radius: 50%;
          background: rgba(0, 170, 255, 0.1);
          filter: blur(40px);
          z-index: 0;
          pointer-events: none;
          transition: transform 0.1s linear;
        }
        
        .floating-1 {
          width: 200px;
          height: 200px;
          top: 10%;
          left: 5%;
        }
        
        .floating-2 {
          width: 150px;
          height: 150px;
          bottom: 20%;
          right: 10%;
          background: rgba(255, 107, 107, 0.1);
        }
        
        .floating-3 {
          width: 100px;
          height: 100px;
          top: 40%;
          right: 20%;
          background: rgba(0, 255, 204, 0.1);
        }

        /* --- Animations & Utilities --- */
        @keyframes fadeInUp {
          from { opacity: 0; transform: translateY(30px); }
          to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes pulse {
          0%, 100% { transform: scale(1); }
          50% { transform: scale(1.05); }
        }
        
        .fade-in { animation: fadeInUp 0.8s ease forwards; }
        .pulse { animation: pulse 2s ease-in-out infinite; }
        .delay-1 { animation-delay: 0.2s; }
        
        /* --- Scroll Progress Bar --- */
        .progress-container {
          position: fixed;
          top: 0;
          left: 0;
          width: 100%;
          height: 4px;
          background: transparent;
          z-index: 1001;
        }
        
        .progress-bar {
          height: 100%;
          background: var(--gradient-primary);
          width: 0%;
          transition: width 0.3s ease;
        }

        /* --- Back to Top Button --- */
        .back-to-top {
          position: fixed;
          bottom: 30px;
          right: 30px;
          width: 50px;
          height: 50px;
          background: var(--gradient-primary);
          color: var(--bg-dark);
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          font-size: 1.2em;
          cursor: pointer;
          transition: var(--transition-smooth);
          opacity: 0;
          visibility: hidden;
          z-index: 999;
          box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
        }
        
        .back-to-top.visible {
          opacity: 1;
          visibility: visible;
        }

        /* --- Theme Toggle --- */
        .theme-toggle {
          position: fixed;
          top: 20px;
          right: 20px;
          width: 50px;
          height: 50px;
          background: var(--bg-light);
          border-radius: 50%;
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
          z-index: 1002;
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
          transition: var(--transition-smooth);
        }
        
        .theme-toggle:hover {
          transform: rotate(30deg);
        }
        
        .theme-toggle i {
          font-size: 1.2em;
          color: var(--accent-color);
        }

        /* --- Notification Toast --- */
        .toast {
          position: fixed;
          bottom: 20px;
          left: 50%;
          transform: translateX(-50%);
          background: var(--bg-light);
          color: var(--text-primary);
          padding: 15px 25px;
          border-radius: 30px;
          box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
          z-index: 1003;
          display: flex;
          align-items: center;
          gap: 10px;
          opacity: 0;
          visibility: hidden;
          transition: var(--transition-smooth);
        }
        
        .toast.visible {
          opacity: 1;
          visibility: visible;
        }
        
        .toast i {
          color: var(--accent-color);
        }

        /* --- Mobile Navigation --- */
        .hamburger {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 5px;
            flex-direction: column;
            justify-content: space-between;
            width: 30px;
            height: 21px;
        }
        
        .hamburger .bar {
            height: 3px;
            width: 100%;
            background-color: var(--text-primary);
            border-radius: 10px;
            transition: var(--transition-smooth);
        }
        
        .hamburger.is-active .bar:nth-child(1) {
            transform: translateY(9px) rotate(45deg);
        }
        
        .hamburger.is-active .bar:nth-child(2) {
            opacity: 0;
        }
        
        .hamburger.is-active .bar:nth-child(3) {
            transform: translateY(-9px) rotate(-45deg);
        }
        
        .mobile-nav {
            position: fixed;
            top: 0;
            right: -100%;
            width: 70%;
            height: 100vh;
            background: var(--bg-medium);
            z-index: 999;
            transition: var(--transition-smooth);
            display: flex;
            flex-direction: column;
            padding: 80px 20px 20px;
            box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        }
        
        .mobile-nav.is-active {
            right: 0;
        }
        
        .mobile-navB {
            padding: 15px;
            text-decoration: none;
            color: var(--text-primary);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: var(--transition-smooth);
        }
        
        .mobile-navB:hover {
            color: var(--accent-color);
            background: rgba(0, 170, 255, 0.1);
        }

        /* --- Responsiveness --- */
        @media (max-width: 768px) {
          header { padding: 12px 1rem; }
          .logo h1 { font-size: 1.2em; }
          .main-title { padding-top: 0; }
          .main-title h1 { font-size: 2em; }
          nav { display: none; }
          .hamburger { display: flex; }
          section { padding: 60px 1rem; }
          .project-container { flex-direction: column; padding: 20px; }
          .project-detail { margin: 10px; }
          .section-title h2 { font-size: 2em; }
          .back-to-top { bottom: 20px; right: 20px; width: 45px; height: 45px; }
          .theme-toggle { top: 15px; right: 15px; width: 45px; height: 45px; }
        }
        
        @media (max-width: 480px) {
          .main-title h1 { font-size: 1.8em; }
          section h2 { font-size: 1.8em; }
          .thumbnail { width: 60px; height: 60px; }
          .primary-button { margin-right: 5px; }
        }