* {
    position: relative;
    border: none;
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
    outline: none;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: "Sour Gummy", serif;
    max-width: 100svw;
    height: 100svh;
    max-height: 100svh;

    background-image: linear-gradient(rgb(92, 198, 230), black);
    color: white;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

:root {
    --main-bg: #5b5b5b;
    --secondary-bg: #eee;
    --pink: #5fd0e1;
}

.pink-text {
    color: var(--pink);
}

::selection {
    color: var(--pink);
    background-color: rgba(128, 128, 128, 0.274);
}

a {
    color: black;
    text-decoration: none;
}

i {
    color: white;
}

header {
    position: fixed;
    z-index: 99;
    left: 1.5%;
    right: 1.5%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5px;
    backdrop-filter: blur(10px);
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0px 0px 7px rgb(147, 133, 135);
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    -ms-border-radius: 10px;
    -o-border-radius: 10px;
}

header h1 {
    font-size: 1.2rem;
    font-weight: bold;
}

main {
    padding: 20px;
    padding-top: 70px;
}

nav ul {
    display: flex;
}

nav ul li {
    margin: 10px;
}

nav ul li a:hover {
    color: #7df7f3;

}

nav ul li a {
    font-size: 0.9em;
    padding: 10px;
    color: white;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
#home {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 90px 24px 60px;
}

/* ---------- Inner grid ---------- */
.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

/* ---------- Text column ---------- */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-greeting {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.65);
    animation: fadeSlideUp 0.6s ease both;
}

.hero-name {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 20%, #62ddf0 55%, #93c8d8 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
}

/* ---------- Role badges ---------- */
.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    animation: fadeSlideUp 0.7s ease 0.2s both;
}
.role-badge {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    padding: 5px 14px;
    border-radius: 50px;
    border: 1px solid rgba(98, 195, 240, 0.45);
    background: rgba(120, 224, 235, 0.1);
    color: #80d7e8;
    transition: background 0.3s, border-color 0.3s;
}
.role-badge:hover {
    background: rgba(133, 203, 234, 0.25);
    border-color: #8ae1fb;
}

/* ---------- Bio ---------- */
.hero-bio {
    font-size: 0.97rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.72);
    max-width: 520px;
    animation: fadeSlideUp 0.7s ease 0.3s both;
}
.hero-bio strong {
    color: #fff;
}


/* ---------- CTA buttons ---------- */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: fadeSlideUp 0.7s ease 0.5s both;
}
.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, #79ccf6, #8fcdec);
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(116, 200, 229, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta-primary i { color: #fff; }
.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(123, 207, 220, 0.65);
}
.cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1.5px solid rgba(111, 226, 230, 0.2);
    color: #fff !important;
    background: rgba(64, 189, 224, 0.06);
    backdrop-filter: blur(8px);
    transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.cta-secondary i { color: #fff; }
.cta-secondary:hover {
    background: rgba(48, 83, 93, 0.12);
    border-color: rgba(52, 95, 117, 0.4);
    transform: translateY(-3px);
}

/* ---------- Social icons ---------- */
.hero-socials {
    display: flex;
    gap: 12px;
    animation: fadeSlideUp 0.7s ease 0.6s both;
}
.social-icon {
    position: relative;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(120, 213, 238, 0.07);
    border: 1px solid rgba(120, 233, 233, 0.14);
    backdrop-filter: blur(6px);
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.social-icon i { color: #fff; font-size: 1rem; }
.social-icon:hover {
    background: rgba(111, 218, 230, 0.25);
    border-color: #51d1eb;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(114, 216, 238, 0.35);
}
.social-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(20,20,20,0.9);
    color: #fff;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.social-icon:hover .social-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ---------- Image column ---------- */
.hero-image-wrap {
    flex: 0 0 auto;
    position: relative;
    width: clamp(220px, 30vw, 380px);
    height: clamp(220px, 30vw, 380px);
    animation: fadeSlideUp 0.8s ease 0.2s both;
}
.hero-img-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: conic-gradient(from 0deg, #62d8f0, #71cadc, transparent 60%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box,
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask: linear-gradient(#fff 0 0) padding-box,
          linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: spinRing 6s linear infinite;
}
@keyframes spinRing {
    to { transform: rotate(360deg); }
}
.hero-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: radial-gradient(circle at 30% 30%, rgba(240,98,146,0.12), rgba(0,0,0,0.5));
    filter: drop-shadow(0 0 30px rgba(98, 219, 240, 0.35));
}

/* ---------- Scroll indicator ---------- */
.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.5) !important;
    animation: bounce 2s ease infinite;
}
.scroll-indicator i { color: rgba(93, 214, 233, 0.5); font-size: 0.9rem; }
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Entry animation ---------- */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

h3 {
    padding: 5px;
}

h3::before {
    content: "";
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--pink);
    bottom: -3px;

}

.skills-text {
    padding: 10px;
}

.skills-container1,
.skills-container2 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    gap: 15px;
    margin-top: 10px;
    padding-bottom: 20px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.skills-container1::-webkit-scrollbar,
.skills-container2::-webkit-scrollbar {
    display: none;

}

.service-card {
    min-width: 320px;
    flex: 0 0 auto;
    background: linear-gradient(145deg, rgba(102, 202, 218, 0.2), rgba(53, 67, 72, 0.4));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    padding: 30px 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    cursor: pointer;
}

.service-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px 0 rgba(98, 221, 240, 0.25);
    border-color: rgba(78, 221, 243, 0.4);
}

.service-card h4 {
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    z-index: 2;
}

.service-card h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--pink);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.service-card:hover h4::after {
    width: 60px;
}
.skill-container {
    flex: 0 0 auto;
    height: 120px;
    width: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 15px;
    border-radius: 15px;
    -webkit-border-radius: 15px;
    -moz-border-radius: 15px;
    -ms-border-radius: 15px;
    -o-border-radius: 15px;
    background-color: rgba(128, 128, 128, 0.274);
}

.skill-container:hover {
    box-shadow: 0px 0px 5px gray;
}

.skill-container img {
    width: 100%;
    height: 50px;
}

.skill-container strong {
    font-size: 0.8em;
}

.white-bg {
    background-color: #eeeeee;
    padding: 5px;
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
}

.service-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 20px;
    z-index: 2;
}

.service-icon {
    position: absolute;
    bottom: -15px;
    right: -15px;
    height: 120px;
    width: 120px;
    opacity: 0.15;
    transition: all 0.5s ease;
    filter: drop-shadow(0px 0px 5px rgba(108, 211, 235, 0.5));
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(-10deg);
    opacity: 0.3;
}



.project-card img {
    height: 200px;
}

.languages {
    padding-left: 10px;
    font-size: 0.9em;
}

.description {
    padding-left: 0px;
    font-size: 0.9em;
}

.languages::before {
    content: " ";
    position: absolute;
    height: 20px;
    width: 3px;
    background-color: var(--pink);
    left: 0px;

}

.link,
.code {
    border: 1px solid var(--pink);
}

.link:hover,
.code:hover {
    border: 1px solid white;
}

.logo{
    padding-left: 5px;
    font-weight: bold;
    color: #fff;
    font-size: 20px;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #fff;
    width: 0;
    animation: typing 3s steps(25, end) forwards;
}

@keyframes typing {
    from { width: 0; }
    to   { width: 40%; }
}



@media(max-width:768px) {
    nav {
        display: none;
    }

    /* Hero responsive */
    .hero-inner {
        flex-direction: column-reverse;
        gap: 32px;
        text-align: center;
    }
    .hero-roles { justify-content: center; }
    .hero-cta   { justify-content: center; }
    .hero-socials { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-bio   { margin: 0 auto; }

    .hero-image-wrap {
        width: clamp(160px, 50vw, 260px);
        height: clamp(160px, 50vw, 260px);
    }
}

@media(max-width:500px) {

    .hero-name { font-size: 2rem; }


    .skill-container {
        height: 70px;
        width: 70px;
        font-size: 0.5rem;
    }

    .skill-container img {
        height: 30px;
        width: 30px;
        object-fit: contain;
    }
}

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

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Project Card */
.project-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    border-radius: 20px;
    padding: 18px;
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0,0,0,0.4), 0 0 20px rgba(0,255,255,0.2);
    transition: all 0.3s ease;
    width: calc(33.333% - 2rem);
    min-width: 280px;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 30px rgba(0,255,255,0.4);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.project-card h5 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 8px 0 0 0;
}

.languages {
    color: #7fe7f3;
    border-left: 3px solid #7fe7f3;
    padding-left: 10px;
    font-size: 0.85rem;
}

.role {
    color: #6ee7ff;
    font-weight: 500;
    font-size: 0.85rem;
}

.description {
    font-size: 0.85rem;
    color: #d1f7ff;
    line-height: 1.6;
}

.project-card .btn {
    border-radius: 30px;
    padding: 8px 20px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.4);
    color: #fff;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.project-card .btn:hover {
    background: #00e5ff;
    color: #000;
    box-shadow: 0 0 10px #00e5ff;
}

h3 {
    text-align: center;
    font-size: 2rem;
    padding: 10px;
    display: inline-block;
    width: auto;
    margin: 0 auto;
    position: relative;
}

h3::before {
    content: "";
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--pink);
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
}

.text-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* ========== MEDIA QUERIES ========== */

/* للتابلت (عرض أقل من 992px) */
@media (max-width: 992px) {
    .project-card {
        width: calc(50% - 1.5rem);
    }
    .project-card img {
        height: 160px;
    }
}

/* للموبايل الكبير (عرض أقل من 768px) */
@media (max-width: 768px) {
    .projects-grid {
        gap: 1.5rem;
    }
    .project-card {
        width: calc(50% - 1rem);
        min-width: 260px;
    }
    .project-card img {
        height: 150px;
    }
    .project-card h5 {
        font-size: 1.2rem;
    }
    h3 {
        font-size: 1.6rem;
    }
}

/* للموبايل المتوسط (عرض أقل من 576px) */
@media (max-width: 576px) {
    .projects-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .project-card {
        width: 100%;
        max-width: 400px;
    }
    .project-card img {
        height: 170px;
    }
}

/* للموبايل الصغير (عرض أقل من 480px) */
@media (max-width: 480px) {
    .project-card {
        padding: 14px;
    }
    .project-card img {
        height: 140px;
    }
    .project-card h5 {
        font-size: 1.1rem;
    }
    .languages, 
    .role, 
    .description {
        font-size: 0.75rem;
    }
    .project-card .btn {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    h3 {
        font-size: 1.4rem;
    }
}

/* للموبايل صغير جدًا (عرض أقل من 400px) */
@media (max-width: 400px) {
    .project-card img {
        height: 120px;
    }
    .project-card h5 {
        font-size: 1rem;
    }
    .description {
        line-height: 1.4;
    }
}

.footer{
    background-color: #0a0a0a;
    color: #fff;
    text-align: center;
    padding: 40px;
    position: relative;
}
.contact-container{
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px;
}

.contact-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 2rem;
}
.contact-card{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-card label{
    font-size: 1.2rem;
    font-weight: bold;
}
.contact-card input{
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #1c0606;
}
.contact-card textarea{
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #0f0101;
    height: 100px;
}
.contact-grid .btn{
    border-radius: 30px;
    padding: 8px 20px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.4);
    color: #fff;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.text-center{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    
}
.certificates-container{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 2rem;
}
.certificates-card{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 10px;
    padding: 10px;
    border: 1px solid #1cb0da;
}
.certificates-card img{
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}
.certificates-card h4{
    font-size: 1.3rem;
    font-weight: 600;
    margin: 8px 0 0 0;
}
.certificates-card p{
    font-size: 0.85rem;
    color: #d1f7ff;
    line-height: 1.6;
}
.certificates-container .btn{
   border-radius: 30px;
    padding: 8px 20px;
    width: fit-content;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.4);
    color: #fff;
    transition: 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    
}


@media (max-width: 768px) {
    .certificates-container{
        grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    }
    .certificates-card img{
        height: 150px;
    }
    .certificates-card h4{
        font-size: 1.2rem;
    }
    .certificates-card p{
        font-size: 0.8rem;
    }
    .certificates-card .btn{
        padding: 8px;
        font-size: 0.8rem;
    }
}
@media (max-width: 576px) {
    .certificates-container{
        grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    }
    .certificates-card img{
        height: 150px;
    }
    .certificates-card h4{
        font-size: 1.2rem;
    }
    .certificates-card p{
        font-size: 0.8rem;
    }
    .certificates-card .btn{
        padding: 8px;
        font-size: 0.8rem;
    }
}