/* المتغيرات الأساسية */
:root {
    --primary-color: #f7fafc;
    --secondary-color: #e2e8f0;
    --accent-color: #63b3ed;
    --bg-color: #1a202c;
    --card-bg: #2d3748;
    --text-color: #f7fafc;
    --border-color: #4a5568;
}

/* إعادة تعيين الأنماط */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* أنماط عامة */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* شريط التقدم المطور */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        var(--accent-color) 0%,
        #4299e1 50%,
        var(--accent-color) 100%
    );
    z-index: 1001;
    box-shadow: 0 0 10px rgba(66, 153, 225, 0.5);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 2px 2px 0;
}

/* تأثير التوهج */
.scroll-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%
    );
    animation: shimmer 2s infinite;
}

/* حركة التوهج */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* تأثير النبض عند التمرير السريع */
.scroll-progress.fast-scroll {
    height: 5px;
    transition: all 0.2s ease;
    animation: pulse 0.5s ease infinite;
}

/* حركة النبض */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* تحسين الأداء */
@media (prefers-reduced-motion: reduce) {
    .scroll-progress {
        transition: none;
    }
    .scroll-progress::after {
        animation: none;
    }
    .scroll-progress.fast-scroll {
        animation: none;
    }
}

/* شريط القائمة */
nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: rgba(45, 55, 72, 0.95);
    padding: 1rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* المحتوى الرئيسي */
.container {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 2rem;
    min-height: calc(100vh - 60px);
}

/* الأقسام */
.section {
    display: none;
    background: transparent;
    margin-bottom: 2rem;
}

.section.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تنسيقات قسم الملف الشخصي المطور */

/* بطاقة الملف الشخصي */
.profile-card {
    background: rgba(45, 55, 72, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-header {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

/* صورة الملف الشخصي */
.profile-image-container {
    position: relative;
    flex-shrink: 0;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid var(--accent-color);
    transition: all 0.5s ease;
    filter: brightness(0.9);
}

.profile-image-container:hover .profile-img {
    transform: translateZ(20px);
    filter: brightness(1);
}

.profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-container:hover .profile-image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.profile-image-container:hover .overlay-content {
    transform: translateY(0);
}

/* شارة الحالة */
.status-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: rgba(72, 187, 120, 0.9);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: badgePulse 2s infinite;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: dotPulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes dotPulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* معلومات الملف الشخصي */
.name-section {
    margin-bottom: 1rem;
}

.typing-effect {
    height: 24px;
    line-height: 24px;
    position: relative;
    overflow: hidden;
}

.typing-text {
    position: relative;
    color: var(--accent-color);
    font-size: 1.1rem;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -4px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* التاجات */
.profile-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.profile-tag {
    background: rgba(99, 179, 237, 0.1);
    color: var(--accent-color);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    border: 1px solid rgba(99, 179, 237, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-tag:hover {
    background: rgba(99, 179, 237, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* معلومات التواصل */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(99, 179, 237, 0.1);
    padding: 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--text-color);
}

.contact-item:hover {
    background: rgba(99, 179, 237, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 179, 237, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: rotate(360deg);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.contact-value {
    font-size: 1rem;
    font-weight: 500;
}

/* النبذة الشخصية */
/* تتمة تنسيقات النبذة الشخصية */
.bio-card {
    background: rgba(45, 55, 72, 0.7);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bio-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bio-header i {
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.7;
}

.bio-text {
    line-height: 1.8;
    text-align: justify;
    position: relative;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.bio-text::before,
.bio-text::after {
    content: '"';
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
}

.bio-text::before {
    right: -1rem;
    top: -1rem;
}

.bio-text::after {
    left: -1rem;
    bottom: -1rem;
}

/* الإحصائيات والمميزات */
.bio-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    background: rgba(99, 179, 237, 0.1);
    padding: 1.2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-item:hover {
    transform: translateY(-5px);
    background: rgba(99, 179, 237, 0.15);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    width: 45px;
    height: 45px;
    background: rgba(99, 179, 237, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.highlight-item:hover .highlight-icon {
    transform: scale(1.1) rotate(10deg);
}

.highlight-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.highlight-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.2rem;
}

.highlight-value {
    font-size: 1.1rem;
    font-weight: 500;
}

/* شبكة الإحصائيات */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(45, 55, 72, 0.7);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.stat-card:hover::before {
    transform: translateX(100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 179, 237, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(10deg);
}

.stat-info {
    flex: 1;
}

.stat-counter {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* التجاوب مع الشاشات */
@media (max-width: 992px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-tags {
        justify-content: center;
    }

    .bio-highlights {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bio-highlights,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* تحريك العداد */
@keyframes countUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stat-counter {
    animation: countUp 1s ease forwards;
}
/* قسم المهارات */
.skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.skill-item {
    background: linear-gradient(145deg, var(--card-bg), var(--bg-color));
    padding: 1.8rem;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    border-color: var(--accent-color);
}

.skill-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(99, 179, 237, 0.3));
}

.skill-item:hover .skill-icon {
    transform: scale(1.1);
    color: var(--text-color);
    filter: drop-shadow(0 0 12px rgba(99, 179, 237, 0.6));
}

.skill-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.8rem;
    position: relative;
}

.skill-description {
    height: 0;
    opacity: 0;
    margin-top: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

.skill-item.active .skill-description {
    height: auto;
    opacity: 1;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* قسم المشاريع */
.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.title-icon {
    width: 40px;
    height: 40px;
    background: rgba(99, 179, 237, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(45, 55, 72, 0.7);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(26, 32, 44, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-icon {
    width: 50px;
    height: 50px;
    background: rgba(99, 179, 237, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.project-status {
    background: rgba(72, 187, 120, 0.1);
    color: rgb(72, 187, 120);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.project-card:nth-child(2) .project-status {
    background: rgba(237, 137, 54, 0.1);
    color: rgb(237, 137, 54);
    border-color: rgba(237, 137, 54, 0.2);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.project-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-features {
    margin-bottom: 1.5rem;
}

.project-features h4 {
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.project-features ul {
    list-style: none;
    padding: 0;
}

.project-features li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-features li::before {
    content: '•';
    position: absolute;
    right: 0;
    color: var(--accent-color);
}

.project-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.tech-stack h4 {
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 179, 237, 0.1);
    color: var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid rgba(99, 179, 237, 0.2);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(99, 179, 237, 0.2);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    background: rgba(99, 179, 237, 0.1);
    border: 1px solid rgba(99, 179, 237, 0.2);
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.project-progress {
    margin-top: 1.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.new-project {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    cursor: pointer;
    border: 2px dashed rgba(99, 179, 237, 0.3);
    background: rgba(45, 55, 72, 0.4);
}

.new-project-content {
    text-align: center;
}

.new-project-content i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.new-project-content h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.new-project-content p {
    color: rgba(255, 255, 255, 0.6);
}

/* قسم الخبرات */
.timeline {
    position: relative;
    padding: 2rem 0;
    margin-top: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 30px;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, 
        transparent, 
        var(--accent-color) 5%,
        var(--accent-color) 95%,
        transparent
    );
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-right: 60px;
}

.timeline-dot {
    position: absolute;
    right: 23px;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--card-bg);
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 5px rgba(99, 179, 237, 0.4);
}

.timeline-date {
    position: absolute;
    right: 60px;
    top: -10px;
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 0.3rem 1rem;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-date {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.timeline-content {
    background: rgba(45, 55, 72, 0.7);
    border-radius: 15px;
    padding: 1.8rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.timeline-content h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.timeline-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.timeline-info span {
    background: rgba(99, 179, 237, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.timeline-info span:hover {
    background: rgba(99, 179, 237, 0.2);
    transform: translateY(-2px);
}

.achievements-list {
    list-style-type: none;
    padding-right: 1.2rem;
    margin: 1.2rem 0;
}

.achievements-list li {
    position: relative;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    padding-right: 1rem;
}

.achievements-list li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    right: -1.2rem;
    font-size: 1.2rem;
}

.skills-used {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.skills-used .skill-tag {
    background: rgba(99, 179, 237, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    border: 1px solid rgba(99, 179, 237, 0.2);
    transition: all 0.3s ease;
}

.skills-used .skill-tag:hover {
    background: rgba(99, 179, 237, 0.2);
    transform: translateY(-2px);
    border-color: var(--accent-color);
}
/* تنسيقات قسم الاتصال */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-card {
    background: rgba(45, 55, 72, 0.7);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.contact-icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-detail {
    color: rgba(255, 255, 255, 0.8);
    direction: ltr;
    text-align: center;
}

.contact-form {
    background: rgba(45, 55, 72, 0.7);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    right: 1rem;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.input-with-icon input,
.input-with-icon textarea {
    width: 100%;
    padding: 1rem;
    padding-right: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.textarea-container {
    align-items: flex-start;
}

.textarea-container i {
    top: 1rem;
}

.input-with-icon textarea {
    height: 150px;
    resize: vertical;
    padding-top: 1rem;
}

.input-with-icon input:focus,
.input-with-icon textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.alert-container {
    margin-bottom: 1.5rem;
}

.alert {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.alert-error {
    background: rgba(245, 101, 101, 0.2);
    color: #f56565;
    border: 1px solid rgba(245, 101, 101, 0.3);
}

/* التجاوب مع الشاشات */
@media (max-width: 768px) {
    .contact-info-section {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .input-with-icon input,
    .input-with-icon textarea {
        font-size: 16px; /* لتجنب التكبير التلقائي في iOS */
    }
}

/* التجاوب مع الشاشات */
/* التنسيقات العامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* التجاوب للشاشات الكبيرة */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
        margin: 0 auto;
    }
}

/* التجاوب للشاشات المتوسطة والكبيرة */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 1rem;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* التجاوب للأجهزة اللوحية */
@media (max-width: 992px) {
    /* القائمة العلوية */
    nav {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        background: rgba(45, 55, 72, 0.95);
        padding: 1rem;
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    .menu-btn {
        display: block;
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--text-color);
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1002;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        background: var(--card-bg);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-links.show {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 0.8rem;
    }

    /* محتوى الصفحة */
    .container {
        margin-top: 80px;
    }

    .profile-card {
        flex-direction: column;
        align-items: center;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .skills {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* التجاوب للموبايل */
@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
        margin-top: 70px;
    }

    /* الملف الشخصي */
    .profile-card {
        padding: 1rem;
        margin: 0.5rem;
        text-align: center;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .profile-image-container {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        position: relative;
    }

    .profile-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 15px;
    }

    .status-badge {
        position: absolute;
        bottom: -10px;
        right: 50%;
        transform: translateX(50%);
        white-space: nowrap;
        z-index: 2;
    }

    .profile-info {
        width: 100%;
        padding: 0 0.5rem;
    }

    .profile-info h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .profile-info h2 {
        font-size: 1rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }

    /* التاجات */
    .profile-tags {
        justify-content: center;
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .profile-tag {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    /* معلومات التواصل */
    .contact-info {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.8rem;
        width: 100%;
        margin-top: 1rem;
    }

    .contact-item {
        width: 100%;
        padding: 0.8rem;
        justify-content: center;
    }

    /* النبذة الشخصية */
    .bio-card {
        margin: 1rem 0.5rem;
        padding: 1rem;
    }

    .bio-highlights {
        flex-direction: column;
        gap: 0.8rem;
    }

    .highlight-item {
        width: 100%;
        justify-content: center;
    }

    /* المهارات */
    .skills {
        grid-template-columns: 1fr;
    }

    .skill-item {
        padding: 1.2rem;
    }

    /* المشاريع */
    .project-card {
        margin-bottom: 1rem;
    }

    .project-header {
        flex-direction: column;
        text-align: center;
    }

    .project-meta {
        flex-direction: column;
    }

    .tech-badges {
        justify-content: center;
    }

    .project-links {
        flex-direction: column;
        align-items: stretch;
    }
}

/* التجاوب للشاشات الصغيرة جداً */
@media (max-width: 480px) {
    .profile-img {
        width: 120px;
        height: 120px;
    }

    .profile-info h1 {
        font-size: 1.3rem;
    }

    .profile-info h2 {
        font-size: 0.9rem;
    }

    .status-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .contact-item {
        font-size: 0.9rem;
    }
}

/* تحسينات إضافية */
@media (hover: none) {
    /* تعطيل تأثيرات التحويم على الأجهزة التي لا تدعمها */
    .skill-item:hover,
    .project-card:hover,
    .contact-item:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    /* تقليل الحركات للمستخدمين الذين يفضلون ذلك */
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* تحسينات للشاشات عالية الدقة */
@media (min-resolution: 192dpi) {
    .profile-img {
        border-width: 3px;
    }
    
    .container {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}
