:root {
    --bg: #030712;
    --accent: #38bdf8;
    --text: #f3f4f6;
    --glass: rgba(30, 41, 59, 0.7);
    /* عودة لشفافية تنسيقك القديم */
    --border: rgba(255, 255, 255, 0.1);
}

/* التنسيقات الأساسية والخطوط كما أرسلتها أنت بالضبط */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
    /* نفس الخط بالضبط */
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.accent-text {
    color: var(--accent);
}

/* Navbar - تنسيقك القديم والمنظم */
nav {
    position: fixed;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 10%;
    /* نفس الـ padding القديم */
    background: rgba(2, 6, 23, 0.95);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 30px;
    /* نفس الحجم القديم */
    color: var(--accent) !important;
    /* اللون السماوي بالكامل */
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text);
    font-size: 16px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

/* Home Section - التنسيق الجديد مع تكبير الصورة */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 10% 0 10%;
    background: radial-gradient(circle at 10% 20%, #1e293b 0%, #030712 60%);
}

.home-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    /* توسيع الحاوية قليلاً لملائمة الصورة الأكبر */
    gap: 80px;
    z-index: 5;
}

/* تصميم الصورة الدائرية الكبيرة جداً (الشمال) */
.home-image-frame {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circle-glow {
    position: absolute;
    width: 130%;
    /* الدائرة الخلفية أكبر */
    height: 130%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    filter: blur(60px);
    opacity: 0.15;
    z-index: -1;
}

.profile-img {
    width: 100%;
    max-width: 550px;
    /* تم تكبيرها جداً بناءً على طلبك */
    height: 550px;
    /* يجب أن يكون الطول مساوي للعرض */
    border-radius: 50%;
    /* دائرية تماماً */
    object-fit: cover;
    /* لضمان عدم تمدد الصورة */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 5px solid var(--glass);
    /* إطار أتخن قليلاً */
    transition: 0.5s ease;
}

.profile-img:hover {
    transform: scale(1.02);
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.4);
}

/* تصميم المحتوى (اليمين) */
.home-content {
    flex: 1.1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
    /* محاذاة لليسار بجوار الصورة */
}

.badge {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    border: 1px solid var(--accent);
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.home h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
}

.typewriter-text {
    font-size: 2.2rem;
    color: var(--accent);
    font-weight: 300;
}

.description {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 550px;
    margin: 10px 0 20px 0;
    line-height: 1.8;
}

/* الأزرار القديمة والمنظمة */
.cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    background: var(--accent);
    color: #000;
    padding: 12px 30px;
    border-radius: 5px;
    /* عودة للشكل المربع القديم */
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    white-space: nowrap;
}

.btn:hover {
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1.5px solid var(--accent);
    color: var(--accent);
    padding: 12px 30px;
    border-radius: 5px;
    /* عودة للشكل المربع القديم */
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    white-space: nowrap;
}

.btn-outline:hover {
    background: rgba(56, 189, 248, 0.1);
}

/* تأثير التفاعل مع النصوص */
.interactive-text {
    cursor: pointer;
    transition: 0.3s ease;
}

.interactive-text:hover {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent);
}

/* Waves */
.ocean {
    height: 5%;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: #030712;
}

.wave {
    background: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/85486/wave.svg) repeat-x;
    position: absolute;
    top: -198px;
    width: 6400px;
    height: 198px;
    animation: wave 12s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
    opacity: 0.2;
}

@keyframes wave {
    0% {
        margin-left: 0;
    }

    100% {
        margin-left: -1600px;
    }
}

/* عودة تنسيقات السكاشن القديمة والمنظمة بالضبط */
section {
    padding: 120px 10%;
    /* نفس تنسيقك القديم */
    width: 100%;
    position: relative;
}

.section-header {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
}

/* نفس الحجم القديم */

.glass-card {
    background: var(--glass);
    padding: 40px;
    border-radius: 15px;
    /* عودة للشكل القديم */
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.edu-info i {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.icon-glow {
    filter: drop-shadow(0 0 10px var(--accent));
}

/* السكاشن الشبكية القديمة (Skills, Projects, Services) */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-pill {
    background: var(--glass);
    padding: 10px 25px;
    /* نفس التنسيق القديم */
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.skill-pill:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.1);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* نفس التنسيق القديم */
    gap: 20px;
}

.project-box {
    background: var(--glass);
    padding: 30px;
    border-radius: 15px;
    /* عودة للشكل القديم */
    border: 1px solid var(--border);
    transition: 0.4s;
    text-align: center;
}

.project-box:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--glass);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: 0.3s;
    text-align: center;
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* إصلاح الفورم القديمة والمنظمة */
.glass-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    gap: 10px;
}

.glass-form input,
.glass-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
}

.btn-primary {
    background: var(--accent);
    padding: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    width: 100%;
}

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}

/* أنيميشن الظهور التدريجي */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s all ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* التجاوب لباقي الموقع */
@media (max-width: 1024px) {
    .home-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 50px;
        padding-top: 50px;
    }

    .home-content {
        text-align: center;
    }

    .home h1 {
        font-size: 3.5rem;
    }

    .description {
        margin: auto;
    }

    .cta-group {
        justify-content: center;
    }

    .profile-img {
        width: 350px;
        height: 350px;
    }

    .input-group {
        flex-direction: column;
    }

    nav ul {
        display: none;
    }

    /* إخفاء القائمة في الموبايل لتبسيط التصميم */
}



/* تنسيق أيقونات التواصل في قسم الـ Home */
.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.social-links a {
    color: var(--text);
    font-size: 1.5rem;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: var(--glass);
    border-radius: 50%;
    border: 1px solid var(--border);
    text-decoration: none;
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

/* تنسيق أيقونات التواصل في الـ Footer */
.footer-socials {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-socials a {
    color: #94a3b8;
    font-size: 1.3rem;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: var(--accent);
    transform: scale(1.2);
}

/* تعديل بسيط للموبايل لضمان تناسق الأيقونات */
@media (max-width: 1024px) {
    .social-links {
        justify-content: center;
    }
}




/* تنسيق الـ Navbar ليتسع للأيقونات */
.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-socials {
    display: flex;
    gap: 15px;
    border-left: 1px solid var(--border);
    padding-left: 20px;
}

.nav-socials a {
    color: var(--text);
    font-size: 14px;
    /* حجم صغير وناعم */
    transition: 0.3s;
}

.nav-socials a:hover {
    color: var(--accent);
    transform: scale(1.2);
}

/* تنسيق أيقونات الـ Home */
.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* تنسيق الـ Footer */
.footer-socials {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-socials a {
    color: #94a3b8;
    font-size: 1.2rem;
    transition: 0.3s;
}

.footer-socials a:hover {
    color: var(--accent);
}

/* إخفاء أيقونات الناف بار في الموبايل لعدم الزحام */
@media (max-width: 1024px) {
    .nav-socials {
        display: none;
    }
}








/* 1. تأثير الانسياب العام - يجعل الحركة مثل الحرير */
* {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. عناوين السكشنات - حركة مع خط سفلي ذكي */
.section-header {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    transition: 0.5s;
    letter-spacing: 1px;
}

.section-header:hover {
    letter-spacing: 4px;
    /* العنوان يتنفس عند الوقوف عليه */
    color: var(--accent);
    text-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
}

/* 3. تأثير السكاشن بالكامل (Section Hover) */
section {
    transition: background 0.6s ease;
}

section:hover {
    background: rgba(56, 189, 248, 0.02);
    /* توهج خفيف جداً خلف السكشن بالكامل */
}

/* 4. تطوير كروت الخدمات والمشاريع (The Ultimate Card Hover) */
.glass-card,
.project-box,
.service-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glass-card::before,
.project-box::before,
.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
    transition: 0.6s;
    opacity: 0;
    z-index: -1;
}

.glass-card:hover,
.project-box:hover,
.service-card:hover {
    transform: translateY(-15px) scale(1.03);
    border-color: var(--accent);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.2);
}

.glass-card:hover::before,
.project-box:hover::before,
.service-card:hover::before {
    opacity: 1;
    transform: scale(0.6);
    /* تأثير ضوء يتبع الماوس داخلياً */
}

/* 5. مهارات (Skill Pills) - تأثير مغناطيسي */
.skill-pill {
    cursor: default;
    font-weight: 500;
}

.skill-pill:hover {
    background: linear-gradient(45deg, var(--accent), #0ea5e9);
    color: #000;
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.4);
}

/* 6. تأثير المحتوى النصي داخل السكاشن */
section p,
section h3 {
    transition: 0.4s;
}

.glass-card:hover p {
    color: #fff;
    /* النص يصبح أوضح عند التفاعل */
}

.glass-card:hover i {
    transform: scale(1.3) rotate(360deg);
    /* الأيقونات تدور دورة كاملة بنعومة */
    color: var(--accent);
}

/* 7. أزرار الـ CTA - تأثير البرق */
.btn {
    position: relative;
    overflow: hidden;
}

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

.btn:hover::after {
    left: 100%;
    /* وميض يمر عبر الزر عند الوقوف عليه */
}

/* 8. صورة البروفايل - تأثير التحديق (Focus) */
.profile-img {
    filter: grayscale(30%);
    /* رمادي خفيف في العادي */
}

.home:hover .profile-img {
    filter: grayscale(0%);
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(56, 189, 248, 0.3);
}









/* --- تطوير سكشن التواصل بالكامل --- */

/* تأثير عند الوقوف على سكشن التواصل */
#contact:hover .section-header {
    text-shadow: 0 0 20px var(--accent);
    transform: scale(1.05);
}

/* تحسين شكل الفورم الزجاجي */
.glass-form {
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* تأثير التوهج عند كتابة أي نص داخل الحقول */
.glass-form:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* تحسين حقول الإدخال (Inputs & Textarea) */
.glass-form input,
.glass-form textarea {
    border: 1px solid var(--border);
    transition: 0.4s;
    background: rgba(255, 255, 255, 0.03);
}

.glass-form input:focus,
.glass-form textarea:focus {
    background: rgba(56, 189, 248, 0.05);
    border-color: var(--accent);
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.1), 0 0 15px rgba(56, 189, 248, 0.2);
    transform: translateX(5px);
    /* حركة بسيطة لليمين عند التركيز */
}

/* --- زر Send Message الاحترافي --- */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: 0.5s !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
    transform: translateY(-3px) scale(1.02);
}

/* إضافة تأثير "الموجة" الضوئية داخل الزر */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
    z-index: -1;
}

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

/* تأثير عند الضغط على الزر (Click Effect) */
.btn-primary:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px var(--accent);
}





nav ul li a.active {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}






.typewriter-text {
    display: inline-block;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.typewriter-text:hover {
    transform: translateY(-3px) scale(1.03);
    text-shadow: 0 0 10px var(--accent);
}






.edu-info {
    line-height: 1.6;
    text-align: center;
    /* محاذاة النص في الوسط */
}

.edu-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.edu-institution {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 5px;
}

.edu-specialization {
    font-size: 1rem;
    color: #94a3b8;
    margin-bottom: 5px;
}

.edu-duration {
    font-size: 0.95rem;
    color: #94a3b8;
    font-style: italic;
}





/* Skills Advanced */

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--glass);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: 0.4s;
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.skill-category h3 {
    margin-bottom: 20px;
    color: var(--accent);
}

.skill {
    margin-bottom: 18px;
}

.skill span {
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

.progress {
    width: 100%;
    height: 8px;
    background: #1e293b;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), #0ea5e9);
    border-radius: 20px;
    transition: 1.6s cubic-bezier(.4, 0, .2, 1);
}





/* Experience Timeline */

.timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    width: 50%;
    padding: 20px 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: var(--glass);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: 0.4s;
}

.timeline-content:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.timeline-date {
    display: block;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 8px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 30px;
    width: 14px;
    height: 14px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.timeline-item:nth-child(odd)::after {
    right: -7px;
}

.timeline-item:nth-child(even)::after {
    left: -7px;
}

/* Mobile */

@media (max-width:768px) {

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
        text-align: left;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
    }

    .timeline-item::after {
        left: 13px;
    }

}








.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
    /* كل الكروت بنفس الطول */
}

.project-box {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 480px;
    /* ثابت لكل مشروع */
}

.project-box:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.2);
    border-color: var(--accent);
}

/* الصورة في الأعلى */
.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

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

.project-image a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.project-image i {
    font-size: 26px;
    color: #000;
    background: var(--accent);
    border-radius: 50%;
    padding: 12px;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-image:hover i {
    opacity: 1;
    transform: scale(1.2) rotate(10deg);
}

/* معلومات المشروع */
.project-info {
    padding: 15px 20px 20px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

/* اسم المشروع: subtle hover */
.project-info h3 {
    margin: 10px 0;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
    cursor: default;
}

.project-info h3:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* وصف المشروع */
.project-info p {
    color: #94a3b8;
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* skills */
.project-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.project-skills span {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.project-skills span:hover {
    background: var(--accent);
    color: #000;
}






/* إخفاء زر الموبايل في الشاشات الكبيرة */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #00bcd4;
    /* اللون الـ Cyan المفضل لديك */
}

@media screen and (max-width: 768px) {

    /* إظهار زر الموبايل */
    .menu-toggle {
        display: block;
        margin-right: 15px;
    }

    /* تحويل القائمة لتكون رأسية ومخفية */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 31, 0.98);
        /* Indigo غامق */
        backdrop-filter: blur(10px);
        text-align: center;
        padding: 20px 0;
        border-bottom: 2px solid #00bcd4;
        z-index: 1000;
    }

    /* الكلاس الذي سيتم إضافته بواسطة الجافاسكريبت */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-socials {
        display: none;
        /* إخفائها في الموبايل لتقليل الازدحام */
    }

    /* جعل السكاشن متجاوبة */
    .home-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .home-image-frame {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }

    .services-grid,
    .project-grid {
        display: grid;
        grid-template-columns: 1fr;
        /* صف واحد فقط */
        gap: 20px;
        padding: 10px;
    }

    .service-card {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
}






.exp-points-container {
    max-width: 850px;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 15px;
}

.exp-point-item {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: default;
}

/* حركة الـ Glow الخلفية */
.point-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.1), transparent);
    transition: 0.5s;
}

.exp-point-item:hover .point-glow {
    left: 100%;
}

.exp-point-item:hover {
    transform: translateX(10px);
    border-color: #00bcd4;
    background: rgba(0, 188, 212, 0.04);
    box-shadow: -5px 0 15px rgba(0, 188, 212, 0.2);
}

.point-content {
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 1;
}

.point-content i {
    font-size: 24px;
    color: #00bcd4;
    background: rgba(0, 188, 212, 0.1);
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.4s;
}

.exp-point-item:hover i {
    transform: rotate(360deg) scale(1.1);
    background: #00bcd4;
    color: #fff;
    box-shadow: 0 0 15px #00bcd4;
}

.point-text h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #fff;
    transition: 0.3s;
}

.exp-point-item:hover h3 {
    color: #00bcd4;
}

.point-text p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
}

/* Responsiveness */
@media (max-width: 600px) {
    .point-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .exp-point-item:hover {
        transform: translateY(-5px);
    }
}




/* مكان الزرار */
.project-action {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

/* الزرار */
.btn-view-project {

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 14px 34px;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    color: #fff;

    background: linear-gradient(135deg, #2563eb, #06b6d4);

    border: none;

    border-radius: 999px;

    cursor: pointer;

    transition: all .35s ease;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.25);

    position: relative;

    overflow: hidden;
}

/* السهم */
.btn-view-project i {
    transition: transform .35s ease;
}

/* عند الـ hover */
.btn-view-project:hover {

    background: linear-gradient(135deg, #1d4ed8, #0891b2);

    transform: translateY(-4px) scale(1.03);

    box-shadow:
        0 14px 35px rgba(0, 0, 0, 0.35),
        0 0 20px rgba(37, 99, 235, 0.4);
}

/* حركة السهم */
.btn-view-project:hover i {
    transform: translateX(6px);
}

/* تأثير اللمعة */
.btn-view-project::after {

    content: "";

    position: absolute;

    width: 120%;
    height: 100%;

    top: 0;
    left: -120%;

    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);

    transition: .6s;
}

.btn-view-project:hover::after {
    left: 120%;
}

/* عند الضغط */
.btn-view-project:active {
    transform: scale(.95);
}







/* --- CTA Premium Section --- */
.cta-premium-section {
    padding: 120px 20px;
    background: radial-gradient(circle at center, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
    text-align: center;
    overflow: hidden;
}

.cta-header {
    margin-bottom: 60px;
}

.cta-badge {
    background: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.cta-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.title-line {
    width: 80px;
    height: 4px;
    background: #00bcd4;
    margin: 0 auto 30px;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.6);
}

.cta-description {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

.cta-description .highlight {
    color: #fff;
    display: block;
    margin-top: 10px;
    font-weight: 600;
}

/* --- Social Interactive Cards --- */
.social-interactive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.social-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 20px;
    border-radius: 24px;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.social-card i {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 15px;
    z-index: 2;
    transition: transform 0.5s ease;
}

.social-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
}

.action-text {
    font-size: 0.8rem;
    color: #888;
    margin-top: 5px;
    z-index: 2;
    transition: color 0.3s;
}

.card-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--brand-color);
    box-shadow: 0 0 60px 40px var(--brand-color);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Brand Colors Setup */
.linkedin {
    --brand-color: #0077b5;
}

.whatsapp {
    --brand-color: #25D366;
}

.github {
    --brand-color: #333;
}

.facebook {
    --brand-color: #1877F2;
}

.instagram {
    --brand-color: #E1306C;
}

/* Hover Animations */
.social-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--brand-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.social-card:hover .card-glow {
    opacity: 0.2;
    width: 100px;
    height: 100px;
}

.social-card:hover i {
    transform: rotateY(360deg) scale(1.2);
    color: var(--brand-color);
}

.social-card:hover .action-text {
    color: #fff;
}

@media (max-width: 768px) {
    .cta-main-title {
        font-size: 2.5rem;
    }

    .social-interactive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}




/* --- الأساسيات --- */
.contact {
    padding: 120px 20px;
    text-align: center;
}

.section-header {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 20px;
}

/* --- تنسيق الـ CTA الجديد --- */
.cta-highlight-container {
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out forwards;
}

.cta-hint {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.cta-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 15px;
    animation: pulseTitle 3s ease-in-out infinite;
}

.gradient-text {
    background: linear-gradient(90deg, #00bcd4, #a252ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-subtitle {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
}

/* --- فورم التواصل (بدون تغيير في الزرار) --- */
.glass-form {
    max-width: 700px;
    margin: 0 auto 80px;
}

.input-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group input,
textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
}

textarea {
    margin-bottom: 20px;
    height: 150px;
}

/* زرار Send Message (الأصلي الخاص بك) */
.btn-primary {
    /* ضع هنا خصائص كلاس btn-primary الأصلية الموجودة في ملفك الأساسي */
}

/* --- الأيقونات (ملونة افتراضياً وتتغير عند الـ Hover) --- */
.creative-social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
}

.social-box {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: 0.4s;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: 0.4s;
}

.social-box span {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* الألوان الافتراضية */
.facebook .icon-circle {
    background: #1877f2;
    color: #fff;
}

.instagram .icon-circle {
    background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
    color: #fff;
}

.github .icon-circle {
    background: #333;
    color: #fff;
}

.linkedin .icon-circle {
    background: #0077b5;
    color: #fff;
}

.whatsapp .icon-circle {
    background: #25D366;
    color: #fff;
}

/* تأثير الـ Hover */
.social-box:hover .icon-circle {
    background: #fff !important;
    transform: scale(1.2) rotate(-10deg);
}

.facebook:hover .icon-circle {
    color: #1877f2;
}

.instagram:hover .icon-circle {
    color: #dc2743;
}

.github:hover .icon-circle {
    color: #333;
}

.linkedin:hover .icon-circle {
    color: #0077b5;
}

.whatsapp:hover .icon-circle {
    color: #25D366;
}

/* --- الأنيميشن --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseTitle {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.98);
    }
}

.reveal {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}







/* --- إعدادات الحاوية الكبرى للـ CTA --- */
.cta-highlight-container {
    max-width: 850px;
    margin: 0 auto 60px;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* تأثير عند مرور الماوس على السيكشن بالكامل */
.cta-highlight-container:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(0, 188, 212, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(0, 188, 212, 0.1);
}

/* --- أنيميشن الـ Hint (Call to Action) --- */
.cta-hint {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(0, 188, 212, 0.1);
    color: #00bcd4;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 188, 212, 0.2);
    transition: 0.3s;
}

/* حركة عائمة للـ Hint */
.animated-hint {
    animation: floatHint 3s ease-in-out infinite;
}

@keyframes floatHint {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
        background: rgba(0, 188, 212, 0.2);
    }
}

/* --- أنيميشن العنوان الرئيسي --- */
.cta-main-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 25px;
    transition: 0.4s;
}

/* تأثير الوهج المتدرج على النص */
.glow-animation {
    background: linear-gradient(90deg, #00bcd4, #a252ee, #00bcd4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineText 4s linear infinite;
}

@keyframes shineText {
    to {
        background-position: 200% center;
    }
}

/* --- أنيميشن الوصف الصغير --- */
.contact-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
    transition: 0.5s;
}

/* تفاعل النصوص عند الـ Hover */
.cta-highlight-container:hover .cta-main-title {
    transform: scale(1.05);
    letter-spacing: 1px;
}

.cta-highlight-container:hover .contact-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* --- ظهور تدريجي للعناصر ورا بعض (Stagger) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.cta-highlight-container.reveal {
    animation-delay: 0.2s;
}

.glass-form.reveal {
    animation-delay: 0.4s;
}

.creative-social-grid.reveal {
    animation-delay: 0.6s;
}

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

/* --- تنسيقات إضافية للحفاظ على الهوية --- */
.gradient-text {
    font-style: italic;
}

/* زرار Send Message - نتركه كما هو في ملفك الأصلي */
.btn-primary {
    /* سيعمل الستايل الأصلي الخاص بك تلقائياً */
}





/* تنسيق الفقرة الأساسي */
.contact-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #ffffff;
    /* لون النص الأساسي */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* حركة ناعمة جداً */
    cursor: default;
    display: block;
    padding: 10px;
}

/* التفاعل عند تمرير الماوس على النص بالكامل */
.contact-subtitle:hover {
    transform: scale(1.02) translateX(10px);
    /* تكبير بسيط وحركة لليمين */
    color: #f0f0f0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* توحيد ألوان الكلمات المحددة (Accent & Glow) */
.text-accent,
.text-glow {
    color: #00d2ff;
    /* اللون الأزرق الموحد */
    font-weight: 700;
    transition: all 0.4s ease;
    display: inline-block;
}

/* حركة خاصة للكلمات المحددة عند الـ Hover على الفقرة */
.contact-subtitle:hover .text-accent,
.contact-subtitle:hover .text-glow {
    color: #0077ff;
    /* درجة أزرق أعمق عند التفاعل */
    text-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
    transform: translateY(-2px);
    /* حركة بسيطة للأعلى للكلمات */
}

/* أنيميشن الظهور التدريجي (Animate on Scroll) */
.animate-on-scroll {
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}








/* تأثير الخط المضيء للرابط النشط */
nav ul li a.active {
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
    position: relative;
}

nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: 0.3s;
}







/* --- Responsive Fixes (Add to the end of style.css) --- */

/* 1. إظهار القائمة دائماً ومنع اختفائها */
@media (max-width: 1024px) {
    nav {
        flex-direction: column;
        /* ترتيب اللوجو فوق القائمة */
        padding: 10px;
        height: auto;
    }

    .logo {
        margin-bottom: 10px;
        font-size: 24px;
    }

    nav ul {
        display: flex !important;
        /* إجبار القائمة على الظهور */
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    nav ul li {
        margin-left: 10px;
        margin-right: 10px;
    }

    nav ul li a {
        font-size: 14px;
    }

    .nav-right {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    /* إظهار أيقونات السوشيال ميديا في الناف بار لو حابب */
    .nav-socials {
        display: flex !important;
        border-left: none;
        padding-left: 0;
        gap: 20px;
    }
}

/* 2. ضبط الهوم سيكشن والصورة الكبيرة في الموبايل */
@media (max-width: 768px) {
    .home {
        padding-top: 160px;
        /* مساحة إضافية عشان الناف بار بقت أكبر */
    }

    .home-container {
        flex-direction: column-reverse !important;
        /* الصورة فوق والكلام تحت */
        gap: 30px;
    }

    .profile-img {
        width: 280px !important;
        /* تصغير الصورة لتناسب شاشة الموبايل */
        height: 280px !important;
    }

    .home h1 {
        font-size: 2.5rem;
        /* تصغير الخط في الموبايل */
    }

    .typewriter-text {
        font-size: 1.5rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn,
    .btn-outline {
        width: 100%;
        text-align: center;
    }
}

/* 3. ضبط الجريد (الشبكة) للمشاريع والخدمات */
@media (max-width: 600px) {
    section {
        padding: 60px 5%;
        /* تقليل المسافات الجانبية */
    }

    .project-grid,
    .service-grid {
        grid-template-columns: 1fr;
        /* عنصر واحد في كل صف */
    }

    .input-group {
        flex-direction: column;
    }
}

/* تأكد إن مفيش حاجة تخرج بره الشاشة بالعرض */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}