        /* === Global Variables === */
        :root {
            --bg-color: #050510;       
            --card-bg: #101020;        
            --primary-color: #00d2ff;  
            --secondary-color: #3a86ff;
            --text-color: #e0e0e0; 
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-color);
            overflow-x: hidden;
        }

        h1, h2, h3, h4 { color: #fff; font-weight: 700; }
        p { line-height: 1.7; color: #d0d0d0; } 
        .text-muted { color: #b0b0b0 !important; }

        /* === Custom Navbar Styling === */
        .navbar {
            background-color: rgba(5, 5, 16, 0.85);
            backdrop-filter: blur(15px);
            padding: 10px 0;
            border-bottom: 1px solid rgba(58, 134, 255, 0.05);
            transition: 0.3s;
        }

        .navbar-brand img { height: 100px; transition: 0.3s; object-fit: contain; }
        .navbar-brand:hover img { transform: scale(1.05); }
        
        .nav-center-bar {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 50px;
            padding: 4px 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 15px auto; 
        }

        .nav-link { 
            color: #e0e0e0 !important; 
            margin: 0 2px;
            transition: 0.3s; 
            font-size: 0.8rem;
            text-transform: uppercase; 
            letter-spacing: 0.5px; 
            padding: 6px 12px !important;
            border-radius: 20px;
            white-space: nowrap;
        }

        .nav-link:hover, .nav-link.active { 
            color: #fff !important; 
            background: rgba(0, 210, 255, 0.15); 
            text-shadow: 0 0 5px rgba(0, 210, 255, 0.5);
        }

        .nav-btn-contact {
            background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
            color: #fff !important;
            padding: 8px 20px !important;
            border-radius: 50px;
            font-weight: 600;
            box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
            transition: 0.3s;
            font-size: 0.85rem;
            text-transform: none;
            white-space: nowrap;
        }

        .nav-btn-contact:hover {
            box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
            transform: translateY(-2px);
            color: #fff !important;
        }

        .navbar-toggler { border: none; }
        .navbar-toggler:focus { box-shadow: none; }

        @media (min-width: 992px) {
            .nav-center-bar {
                position: absolute;
                left: 50%;
                top: 50%;
                transform: translate(-50%, -50%);
                margin: 0;
            }
        }

        /* === Hero Section === */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            padding-top: 100px;
        }

        .hero-name { font-size: 4rem; margin-bottom: 10px; line-height: 1.1; }
        .hero-role { font-size: 2rem; margin-bottom: 20px; color: var(--primary-color); }
        .hero-desc { font-size: 1.1rem; color: #d0d0d0; max-width: 500px; margin-bottom: 30px; }

        /* Buttons */
        .btn-glow {
            background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
            border: none;
            color: #fff;
            padding: 12px 30px;
            border-radius: 50px;
            font-weight: 600;
            box-shadow: 0 5px 15px rgba(0, 210, 255, 0.3);
            transition: 0.3s;
            text-decoration: none;
            display: inline-block;
        }
        .btn-glow:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5); color: #fff; }

        .btn-outline-glow {
            background: transparent;
            border: 2px solid var(--secondary-color);
            color: #fff;
            padding: 10px 28px;
            border-radius: 50px;
            font-weight: 600;
            margin-left: 10px;
            transition: 0.3s;
            text-decoration: none;
            display: inline-block;
        }
        .btn-outline-glow:hover { background: rgba(58, 134, 255, 0.1); color: var(--primary-color); border-color: var(--primary-color); }

        /* Logo Buttons for Education & Experience */
        .logo-btn {
            width: 55px;
            height: 55px;
            border-radius: 50%;
            background: transparent; 
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid rgba(0, 210, 255, 0.4); 
            transition: 0.3s;
            overflow: hidden;
            text-decoration: none;
            flex-shrink: 0;
        }
        .logo-btn:hover {
            transform: scale(1.1);
            border-color: var(--primary-color);
            box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
        }
        .logo-btn img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 5px;
        }

        /* Blob & Image */
        .hero-img-container {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .blob-bg {
            position: absolute;
            width: 450px;
            height: 450px;
            background: linear-gradient(45deg, rgba(58, 134, 255, 0.2), rgba(0, 210, 255, 0.1));
            border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
            animation: blob-bounce 5s infinite ease-in-out;
            z-index: -1;
            filter: blur(40px);
        }
        .profile-img {
            width: 380px;
            height: 380px;
            object-fit: cover;
            border-radius: 50%;
            border: 4px solid rgba(0, 210, 255, 0.5);
            box-shadow: 0 0 30px rgba(0, 210, 255, 0.2);
        }
        @keyframes blob-bounce {
            0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
            50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
        }

        /* === Section Styles === */
        .section-padding { padding: 80px 0; }
        .section-title {
            text-align: center;
            margin-bottom: 60px;
            font-size: 2.5rem;
            position: relative;
        }
        .section-title::after {
            content: '';
            display: block;
            width: 60px;
            height: 4px;
            background: var(--primary-color);
            margin: 10px auto 0;
            border-radius: 2px;
        }

        /* === Reveal Animation === */
        .reveal {
            opacity: 0;
            transform: translateY(50px);
            transition: all 0.8s ease-out;
        }
        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        /* === Scroll To Top Button === */
        #scrollTopBtn {
            display: none; 
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 9999;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
            color: white;
            border: none;
            font-size: 1.2rem;
            box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
            cursor: pointer;
            transition: all 0.3s ease;
            align-items: center;
            justify-content: center;
        }
        #scrollTopBtn:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
        }

        /* === Cards Common Style === */
        .common-card {
            background: var(--card-bg);
            border-radius: 15px;
            padding: 30px;
            transition: 0.3s;
            border: 1px solid rgba(255,255,255,0.05);
            height: 100%;
        }
        .common-card:hover {
            transform: translateY(-5px);
            border-color: var(--primary-color);
            box-shadow: 0 10px 30px rgba(0, 210, 255, 0.1);
        }

        .about-text {
            font-size: 1.1rem;
            color: #e0e0e0; 
            border-left: 4px solid var(--secondary-color);
            padding-left: 20px;
            background: rgba(255,255,255,0.02);
            padding: 20px;
            border-radius: 0 10px 10px 0;
        }

        /* === Timeline === */
        .timeline {
            position: relative;
            padding-left: 30px;
            border-left: 2px solid rgba(255,255,255,0.1);
        }
        .timeline-item { position: relative; margin-bottom: 40px; }
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -39px;
            top: 5px;
            width: 20px;
            height: 20px;
            background: var(--bg-color);
            border: 4px solid var(--primary-color);
            border-radius: 50%;
        }
        .date-badge {
            background: rgba(58, 134, 255, 0.15);
            color: var(--primary-color);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            display: inline-block;
            margin-bottom: 10px;
            border: 1px solid rgba(58, 134, 255, 0.3);
        }

        .car-text strong { color: var(--primary-color); }
        .car-text { margin-bottom: 5px; font-size: 0.95rem; }

        /* === Skills === */
        .skill-box {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            padding: 20px;
            background: var(--card-bg);
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,0.05);
            transition: 0.3s;
            height: 100%;
            justify-content: center;
        }
        .skill-box:hover { border-color: var(--secondary-color); transform: scale(1.05); }
        .skill-icon-img {
            width: 45px;
            height: 45px;
            margin-bottom: 15px;
            object-fit: contain;
        }

        /* =========================================
           حل مشكلة الفاصل (Divider) نهائياً باستخدام Border رفيع
           =========================================
        */
        @media (min-width: 768px) {
            .thin-divider-right {
                border-right: 1px solid rgba(0, 210, 255, 0.2); /* خط رفيع 1px فقط */
            }
        }
        @media (max-width: 767px) {
            .thin-divider-bottom {
                border-bottom: 1px solid rgba(0, 210, 255, 0.2); /* خط رفيع 1px للموبايل */
                padding-bottom: 40px;
                margin-bottom: 40px !important;
            }
        }

        .tool-box { padding: 15px 10px; }
        
        .service-list li { margin-bottom: 8px; font-size: 0.9rem; color: #bbb; }
        .service-list li i { color: var(--primary-color); margin-right: 8px; font-size: 0.7rem; }

        .project-img { height: 200px; object-fit: cover; width: 100%; background: #222; }
        .tech-badge {
            font-size: 0.75rem;
            background: rgba(255,255,255,0.1);
            padding: 4px 10px;
            border-radius: 5px;
            margin-right: 5px;
            color: #e0e0e0;
            display: inline-block;
        }

        /* =========================================
           Infinite Marquee For Testimonials
           =========================================
        */
        .marquee-wrapper {
            position: relative;
            width: 100%;
            overflow: hidden;
            padding: 20px 0;
            -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
            mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
        }
        .marquee-track {
            display: flex;
            gap: 30px;
            width: max-content;
            animation: marquee-scroll 25s linear infinite;
        }
        .marquee-track:hover {
            animation-play-state: paused;
        }
        .marquee-group {
            display: flex;
            gap: 30px;
        }
 
        .social-circle-small {
            width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,0.05);
            display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; transition: 0.3s;
            flex-shrink: 0;
        }
        .social-circle-small:hover { background: var(--primary-color); color: #000; }
        
        /* === Achievements & Services Icons === */
        .achievement-card {
            text-align: center;
            padding: 30px;
            background: rgba(58, 134, 255, 0.05);
            border-radius: 15px;
            border: 1px solid rgba(58, 134, 255, 0.2);
            transition: 0.3s;
            height: 100%;
        }
        .achievement-card:hover { background: rgba(58, 134, 255, 0.1); }
        
        .achievement-icon { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 15px; }
        /* كلاس جديد للصور الـ SVG عشان تاخد نفس مساحة الأيقونات */
        .achievement-icon-img {
            width: 60px;
            height: 60px;
            margin-bottom: 15px;
            object-fit: contain;
        }

        /* === Contact Form === */
        .contact-form input, .contact-form textarea {
            background: #16162a;
            border: 1px solid rgba(255,255,255,0.1);
            color: #fff;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
        }
        .contact-form input::placeholder, .contact-form textarea::placeholder { color: #a0a0b0; opacity: 1; }
        .contact-form input:focus, .contact-form textarea:focus { background: #16162a; border-color: var(--primary-color); box-shadow: none; color: #fff; }
        
        .social-circle {
            width: 45px; height: 45px; border-radius: 50%; background: rgba(255,255,255,0.05);
            display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem;
            transition: 0.3s; border: 1px solid rgba(255,255,255,0.1); margin-right: 15px; text-decoration: none;
        }
        .social-circle:hover { background: var(--primary-color); color: #000; border-color: var(--primary-color); }

        /* === Fancy Footer === */
        .fancy-footer { background-color: #020205; padding-top: 60px; border-top: 1px solid rgba(255,255,255,0.05); }
        .footer-logo img { max-width: 250px; height: auto; transition: 0.3s; object-fit: contain; margin-bottom: 15px; }
        .footer-logo:hover img { transform: scale(1.05); }
        .footer-links { list-style: none; padding: 0; }
        .footer-links li { margin-bottom: 10px; }
        .footer-links a { color: #aaa; text-decoration: none; transition: 0.3s; }
        .footer-links a:hover { color: var(--primary-color); padding-left: 5px; }
        .footer-bottom { background-color: #000; padding: 20px 0; margin-top: 40px; border-top: 1px solid #111; }

        /* Responsive */
        @media (max-width: 991px) {
            .navbar-collapse { background: var(--bg-color); padding: 20px; margin-top: 10px; border-radius: 15px; border: 1px solid rgba(255,255,255,0.1); }
            .nav-center-bar { flex-direction: column; background: transparent; border: none; width: 100%; border-radius: 0; padding: 0; }
            .nav-link { margin-bottom: 10px; width: 100%; text-align: center; white-space: normal; }
            .hero { flex-direction: column-reverse; text-align: center; padding-top: 100px; }
            .hero-img-container { margin-bottom: 30px; }
            .hero-name { font-size: 2.5rem; }
            .blob-bg { width: 300px; height: 300px; }
            .profile-img { width: 250px; height: 250px; }
        }