:root {
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --primary: #38bdf8;
    --text-main: #f8fafc;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    scroll-behavior: smooth;
}/* خلفية الموقع المتدرجة */
body {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    background-attachment: fixed;
}

/* تأثير زجاجي للكروت */
.project-card, .service-item {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px); /* تنعيم الخلفية خلف الكارت */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* تأثير عند المرور على كروت المشاريع */
.project-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* تحسين شكل النصوص */
h2 {
    font-size: 2.5rem;
    background: linear-gradient(to right, #fff, var(--primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: rgba(2, 6, 23, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo { font-size: 24px; font-weight: bold; }
.logo span { color: var(--primary); }

nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}

nav a:hover { color: var(--primary); }

/* Hero */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 10px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 10%;
}.project-card ul {
    text-align: left;
    padding-left: 20px;
    font-size: 14px;
    margin-top: 10px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover { transform: translateY(-10px); }

.project-card img { width: 100%; height: 200px; object-fit: cover; }

.card-content { padding: 20px; }

.tag {
    font-size: 12px;
    background: #334155;
    padding: 5px 10px;
    border-radius: 20px;
    margin-right: 5px;
}

/* Services */
.services-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px;
}

.service-item {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    min-width: 200px;
}

.service-item i { font-size: 30px; color: var(--primary); margin-bottom: 15px; display: block; }
/* Contact Styling */
footer {
    padding: 60px 10% 20px;
    background: #020617;
    text-align: center;
}

footer h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: 0.3s;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.contact-item i {
    color: var(--primary);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-links img {
    width: 45px;
    transition: 0.3s;
}

.social-links img:hover {
    transform: translateY(-5px);
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* تحسين شكل القوائم في الكروت */
.project-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.project-card ul li {
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #cbd5e1;
}

/* لجعل الصور في الكروت تملأ المساحة بشكل صحيح */
.project-card img {
    width: 100%;
    height: 220px;
    object-fit: contain; /* جرب "cover" لو الصور مقاساتها واحدة، و "contain" لو مختلفة */
    background: #0f172a;
}/* تحسين صورة البروفايل */
.about-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* شكل هندسي مميز */
    border: 5px solid var(--primary);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5);
    animation: morphing 8s infinite ease-in-out, glow 4s infinite alternate;
    transition: 0.5s;
}

.about-img img:hover {
    transform: scale(1.05) rotate(2deg);
    border-radius: 50%; /* تتحول لدائرة كاملة عند الوقوف عليها */
}

/* أنيميشن لتغيير شكل الصورة انسيابياً */
@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(56, 189, 248, 0.3); }
    to { box-shadow: 0 0 30px rgba(56, 189, 248, 0.7); }
}
/* About Section Styling */
.about-container {
    display: flex;
    flex-direction: column; /* يجعل العناصر تحت بعضها */
    align-items: center;
    text-align: center;
    padding: 60px 15%;
}

.about-img {
    margin-bottom: 40px; /* مسافة تحت الصورة */
}

.about-text-center {
    max-width: 800px; /* عرض مناسب للقراءة */
}

.bio-paragraphs p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 20px; /* مسافة بين كل فقرة والثانية */
    text-align: justify; /* يجعل شكل الفقرة متساوي من الجوانب */
    text-align-last: center; /* يخلي آخر سطر في الفقرة في النص */
}

/* التنسيق الجديد للصورة مع "الروح" اللي طلبناها */
.about-img img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%; /* دائرية بالكامل لشكل احترافي */
    border: 4px solid var(--primary);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
    transition: 0.5s ease-in-out;
}

.about-img img:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.7);
}

.tech-stack {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
}.hidden-element {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}.contact-item {
    position: relative;
    overflow: hidden;
}

.contact-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-item:hover::after {
    width: 300px;
    height: 300px;
}/* تخصيص شريط التمرير */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary), #1e293b);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    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;
}.hero-img img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary);
    margin-bottom: 20px;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.5);
    transition: 0.4s;.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hero p {
    color: #cbd5e1;
    font-size: 1.1rem;
}
}

.hero-img img:hover {
    transform: scale(1.1);
}

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