/* =========================
   HERO
   ========================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero::before {
    content: \"\";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(0, 183, 255, 0.15);
    filter: blur(120px);
    -webkit-filter: blur(120px);
    top: -100px;
    right: -100px;
    z-index: 0;
}

.hero::after {
    content: \"\";
    position: absolute;
    width: 450px;
    height: 450px;
    background: rgba(0, 183, 255, 0.10);
    filter: blur(130px);
    -webkit-filter: blur(130px);
    bottom: -120px;
    left: -120px;
    z-index: 0;
}

.hero>div {
    position: relative;
    z-index: 1;
    max-width: 780px;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 30px;
    border: 4px solid var(--primary);
    padding: 5px;
    background: var(--dark-light);
    box-shadow: 0 0 40px rgba(0, 183, 255, 0.4);
    transition: 0.4s ease;
}

.profile-img:hover {
    transform: scale(1.05) rotate(-3deg);
}

#name {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--white);
}

#name::after {
    /* content: \".\"; */
    color: var(--primary);
}

#about {
    color: var(--gray);
    line-height: 2;
    margin-bottom: 35px;
    font-size: 17px;
    max-width: 620px;
    margin-right: auto;
    margin-left: auto;
}

.cv-btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(0, 183, 255, 0.25);
    transition: 0.3s ease;
}

.cv-btn:hover {
    transform: translateY(-4px);
    background: var(--primary-dark);
    color: #fff;
}

/* =========================
   SECTIONS
   ========================= */
section {
    padding: 90px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 60px;
    position: relative;
    color: var(--white);
}

.section-title::after {
    content: \"\";
    display: block;
    width: 70px;
    height: 4px;
    background: var(--primary);
    border-radius: 50px;
    margin: 15px auto 0;
}

/* =========================
   SKILLS
   ========================= */
.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill {
    background: var(--dark-light);
    border: 1px solid var(--border);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    transition: 0.35s ease;
    cursor: default;
}

.skill:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(0, 183, 255, 0.25);
}

/* =========================
   GRID & CARDS
   ========================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: var(--dark-light);
    padding: 40px 30px;
    border-radius: 22px;
    border: 1px solid var(--border);
    color: var(--white);
    transition: 0.35s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 183, 255, 0.15);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
}

.card p {
    color: var(--gray);
    line-height: 1.9;
    font-size: 15px;
}

/* بطاقة القسم الجامعي (مفردة) */
section .container>.card {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    padding: 35px;
}

/* =========================
   PROJECTS
   ========================= */
.project {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.project img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.5s ease;
}

.project:hover img {
    transform: scale(1.08);
}

.project h3,
.project p {
    padding-right: 28px;
    padding-left: 28px;
}

.project h3 {
    padding-top: 24px;
}

.project p {
    padding-bottom: 28px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 950px) {
    .profile-img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 600px) {
    section {
        padding: 70px 0;
    }

    .card {
        padding: 30px 25px;
    }

    .skill {
        padding: 12px 22px;
        font-size: 14px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .project img {
        height: 200px;
    }

    .section-title {
        margin-bottom: 40px;
    }
}