* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #0a0a0a;
    color: #fff;
    line-height: 1.7;
}

/* الهيدر */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    padding: 1rem 2rem;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1a1a1a;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
}

.logo span {
    color: #00d4ff;
}

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

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
}

nav a:hover {
    color: #00d4ff;
}

/* الأقسام */
section {
    padding: 100px 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #00d4ff;
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* الرئيسية */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.greeting {
    color: #00d4ff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero h2 span {
    color: #00d4ff;
}

.title {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.desc {
    max-width: 650px;
    margin: 0 auto 2.5rem;
    color: #888;
    font-size: 1.1rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #00d4ff;
    color: #0a0a0a;
}

.btn-primary:hover {
    background: #00b8e0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-outline {
    border: 2px solid #00d4ff;
    color: #00d4ff;
}

.btn-outline:hover {
    background: #00d4ff;
    color: #0a0a0a;
    transform: translateY(-3px);
}

/* عني */
#about {
    background: #0f0f0f;
    border-radius: 20px;
    margin: 2rem auto;
    padding: 80px 3rem;
}

.about-block {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #1f1f1f;
}

.about-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.about-block h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #00d4ff;
}

.about-block p {
    color: #aaa;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

/* المهارات */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: #141414;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid #1f1f1f;
    transition: all 0.3s;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #00d4ff;
}

.skill-card p {
    color: #888;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.progress {
    height: 6px;
    background: #1f1f1f;
    border-radius: 3px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #0088cc);
    border-radius: 3px;
}

/* المشاريع - Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #1f1f1f;
}

.gallery img:hover {
    transform: scale(1.03);
    border-color: #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

/* الشهادات - Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.certificates-grid img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #1f1f1f;
    background: #141414;
}

.certificates-grid img:hover {
    transform: scale(1.02);
    border-color: #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.25);
}

/* تواصل */
#contact {
    text-align: center;
    background: #0f0f0f;
    border-radius: 20px;
    margin: 2rem auto;
    padding: 80px 3rem;
}

.contact-desc {
    color: #aaa;
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.email-btn {
    font-size: 1.1rem;
    padding: 1.1rem 2.5rem;
}

/* الفوتر */
footer {
    text-align: center;
    padding: 2rem;
    color: #555;
    font-size: 0.9rem;
    border-top: 1px solid #1a1a1a;
    margin-top: 3rem;
}

/* نافذة عرض الصور */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s;
    font-weight: 300;
}

.lightbox .close:hover {
    color: #00d4ff;
}

/* الموبايل */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0.8rem;
    }
    nav ul {
        gap: 0.8rem;
        font-size: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    .logo {
        font-size: 1.3rem;
    }
    .hero h2 {
        font-size: 2.2rem;
    }
    .title {
        font-size: 1.15rem;
    }
    .section-title {
        font-size: 2rem;
    }
    #about, #contact {
        padding: 50px 1.5rem;
    }
    section {
        padding: 60px 1.2rem;
    }
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.6rem;
    }
    .gallery img {
        height: 140px;
    }
    .certificates-grid {
        grid-template-columns: 1fr;
    }
  }
