@font-face {
    font-family: 'Tajawal';
    src: url('Tajawal-Regular.ttf') format('truetype');
}

/* *,
*::before,
*::after {
    box-sizing: border-box;
} */

html {
    overflow-x: clip;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: rgb(20, 30, 47);
    color: #fff;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: clip;
}

.header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 100;
    padding: 10px 12px 0;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    pointer-events: none;
}

header {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    position: relative;
    width: 75%;
    max-width: 100%;
    min-height: 60px;
    pointer-events: auto;
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.05);
    backdrop-filter: blur(24px) saturate(180%) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 35px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 -1px 0 rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.container-about {
    margin-top: 110px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

header h1 {
    font-size: clamp(1.35rem, 2.2vw, 2.2rem);
    margin: 0;
    overflow-wrap: anywhere;
}

.apc {
    display: flex;
    gap: 20px;
    margin: 0;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
    flex-wrap: wrap;
}

header a {
    text-decoration: none;
    color: #ffffff;
    font-size: 1.05rem;
    transition: color 0.3s ease;
}

header a:hover {
    color: #9fcdff;
}

section {
    padding: 56px 20px 60px;
    text-align: center;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
}

.container h2 {
    font-size: clamp(1.4rem, 1.8vw, 2rem);
    margin-bottom: 12px;
}

.profile-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin: 20px 0;
    border: 5px solid #fff;
    max-width: 100%;
}

.about-content {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: wrap;
}

.about-img {
    flex-shrink: 0;
}

.about-text {
    flex: 1;
    text-align: center;
    min-width: min(100%, 280px);
}

.about-text p {
    font-size: 1.06rem;
    line-height: 1.9;
    margin: 0 auto;
    max-width: 68ch;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.project {
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.05);
    backdrop-filter: blur(24px) saturate(180%) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 -1px 0 rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    padding: 18px 16px;
}

.project h3 {
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.project p {
    margin: 0;
    font-size: 1rem;
}

.project-img1 {
    width: 200px;
    height: 200px;

    margin-bottom: 10px;
}

.project-img2 {
    width: 300px;
    height: 300px;
    margin-bottom: -48px;
    margin-top: -41px;
}  

.p3{
    position: relative;
    overflow: hidden;
    /* width: 190px;
    height: auto; */
    margin-bottom: 8px;
    margin-top: 10px;
}

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

.social-links a.b11 ,.social-links a.b22 {
    display: inline-block;
    -webkit-backdrop-filter: blur(24px) saturate(180%) brightness(1.05);
    backdrop-filter: blur(24px) saturate(180%) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 35px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 -1px 0 rgba(255, 255, 255, 0.08) inset;
    padding: 11px 24px;
    font-size: 1rem;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-links a.b11:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 -1px 0 rgba(255, 255, 255, 0.16) inset;
    background: #0056b3;
}

.social-links a.b22:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 -1px 0 rgba(255, 255, 255, 0.16) inset;
    background: #2CD46B;
}

.skills-badges {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.skill-badge {
    padding: 14px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-badge img {
    width: 92px;
    height: 92px;
    margin-bottom: -10px;
    margin-top: 5px;
    object-fit: contain;
}

@media (min-width: 1200px) {
    body {
        font-size: 18px;
    }

    header {
        width: min(82%, 1380px);
        padding: 12px 28px;
    }

    .container-about {
        margin-top: 125px;
        max-width: 1320px;
    }

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

    .about-content {
        gap: 56px;
        flex-direction: row;
    }

    .about-text p {
        font-size: 1.12rem;
    }

    .projects-grid {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
        gap: 28px;
    }
}



@media (max-width: 768px) {
    .header-container {
        padding: 10px 12px 0;
    }

    header {
        width: 100%;
        border-radius: 18px;
        padding: 10px 14px;
    }

    .container-about {
        margin-top: 95px;
        padding: 0 14px;
    }

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

    .about-content {
        flex-direction: column;
        gap: 20px;
    }

    .about-text {
        flex: none;
        width: 100%;
    }

    .skill-badge {
        padding: 10px 14px;
    }

    .skill-badge img {
        width: 70px;
        height: 70px;
    }

    .apc {
        width: 100%;
        justify-content: center;
        gap: 14px;
    }

    .social-links a {
        width: 100%;
        max-width: 260px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    section {
        padding: 28px 12px 36px;
    }

    header a {
        font-size: 16px;
    }

    header {
        width: 100%;
        padding: 10px 12px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
        align-items: center;
    }

    .about-text p {
        font-size: 15px;
        line-height: 1.7;
    }

    .projects-grid {
        gap: 14px;
    }
}
