* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;

}

html {
    scroll-behavior: smooth;
}


body {
    background: linear-gradient(135deg, #020617, #0f172a);
    color: #e5e7eb;
    line-height: 1.6;
    padding-top: 70px;
    /* space for fixed nav */
}

header {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem 3rem;
    background:
        linear-gradient(rgba(2, 6, 23, 0.85), rgba(2, 6, 23, 0.95)),
        url("images/image_5.jpeg");
    background-size: cover;
    background-position: 40% 40%;
    background-repeat: no-repeat;
    animation: fadeIn 1.5s ease-in-out;
}


/*------------------------------- Navigation ---------------------------------*/
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 3rem;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(16px);
    /* border-bottom: 1px solid rgba(148, 163, 184, 0.35); */
}

.nav-left .nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    color: #e5e7eb;
    text-decoration: none;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-right a {
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
}

.nav-right a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    transition: width 0.25s ease;
}

.nav-right a:hover::after {
    width: 100%;
}

.nav-resume {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid #38bdf8;
    font-size: 0.9rem;
}

.nav-resume:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
}

.nav-resume::after {
    display: none;

}




/*------------------------------- Hero--------------------------------------- */


.hero {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
    gap: 3rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-eyebrow {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a5b4fc;
    margin-bottom: 0.5rem;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 1rem;
    color: #cbd5f5;
    max-width: 32rem;
}

.hero-actions {
    margin-top: 1.8rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: 0.18s ease;
}

.primary-btn {
    background: #4f46e5;
    color: #fff;
}

.primary-btn:hover {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.secondary-btn {
    border: 1px solid #64748b;
    color: #e5e7eb;
    background: transparent;
}

.secondary-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.hero-highlights {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.hero-highlights span {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Hero photo */
.hero-photo {
    display: flex;
    justify-content: center;
}

.hero-photo img {
    width: 270px;
    height: 270px;
    object-fit: cover;
    border-radius: 999px;
    border: 4px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

/* Mobile */
@media (max-width: 768px) {
    .top-nav {
        padding: 0.6rem 1.2rem;
        gap: 0.75rem;
    }

    .nav-right {
        display: none;
        /* quick option: hide links on small screens */
    }

    header {
        padding: 5rem 1.5rem 3rem;
        background-position: 70% 40%;
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-photo {
        order: -1;
        margin-bottom: 1rem;
    }

    .hero-photo img {
        width: 210px;
        height: 210px;
    }
}


/*-------------------------------- SECTIONS ----------------------------------*/
section {
    max-width: 1100px;
    margin: 5rem auto;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    scroll-margin-top: 120px;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-size: 2.3rem;
    margin-bottom: 2rem;
    border-left: 5px solid;
    border-image: linear-gradient(#38bdf8, #818cf8) 1;
    padding-left: 1rem;
}

/*------------------------------ About ---------------------------------------*/
#about {
    padding: 20px 20px;
    padding-bottom: 130px;
}

.about-grid {
    padding-top: 40px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    align-items: center;
}


.about-photo {
    display: flex;
    justify-content: center;
}

.about-photo img {
    width: 340px;
    height: 370px;
    object-fit: cover;
    border-radius: 18%;
    border: 3px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.about-text ul {
    text-align: start;
    margin-left: 30px;
}

/* Mobile */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-photo {
        order: -1;
        margin-bottom: 1rem;
    }

    .about-text ul {
        text-align: start;
        margin-left: 40px;
    }
}

/* ---------------------------- SKILLS -------------------------------------- */


#skills {
    padding-bottom: 30px;
}

.skill-card.show {
    opacity: 1;
    transform: translateY(0);
}


.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.skill-card {
    background: linear-gradient(145deg, #020617, #0f172a);
    border-radius: 16px;
    padding: 24px;
    width: 280px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.skill-card h3 {
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(56, 189, 248, 0.25);
}


.skill-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 16px;
}

/* Skill Tags */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    background: #020617;
    color: #c7d2fe;
    font-size: 0.85rem;
    transition: transform 0.2s ease, background 0.2s ease;
}

.skill-tags span:hover {
    transform: translateY(-2px);
    background: #4338ca;
}

/* Highlight strong skills */
.skill-tags .strong {
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    color: #020617;
    font-weight: 600;
}




/*----------------------------- Current learning -----------------------------*/

#coursework {
    padding: 20px 20px;
    padding-bottom: 80px;
}

.course-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #94a3b8;
}

.course-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.course-card {
    background: #020617;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: 0.3s;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(56, 189, 248, 0.25);
}

.course-card h3 {
    margin-bottom: 10px;
    color: #38bdf8;
}

.course-card ul {
    padding-left: 18px;
    color: #94a3b8;
    font-size: 0.9rem;
}


/*------------------------- Projects -----------------------------------------*/

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.card {
    background: #020617;
    padding: 1.8rem 1.6rem;
    border-radius: 1.2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 25px 50px rgba(56, 189, 248, 0.25);
}

.project-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.8rem;
    margin: 1rem 0 0.9rem 0;
    border: 1px solid rgb(190, 173, 173);
}

.card h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.card ul {
    color: #94a3b8;
    font-size: 0.9rem;
    padding-left: 1.1rem;
    margin-bottom: 1rem;
}

.card ul li {
    margin-bottom: 0.4rem;
}

.project-links {
    margin-top: 0.8rem;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.project-links a {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: #0f172a;
    color: #38bdf8;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #38bdf8;
    transition: 0.2s ease;
}

.project-links a:hover {
    background: #38bdf8;
    color: #020617;
    transform: translateY(-1px);
}

/* Mobile */
@media (max-width: 768px) {
    .projects {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/*-------------------------------Resume -------------------------------------*/
.resume-btn {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    padding: 12px 28px;
    background: #4f46e5;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.resume-btn:hover {
    background: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/*------------------------ Contact -------------------------------------------*/

.contact-main {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    text-align: center;
    color: #cbd5f5;
    margin-bottom: 2.5rem;
}

.contact-links {
    display: grid;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.contact-link {
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.6rem;
    background: linear-gradient(145deg, #020617, #0f172a);
    border-radius: 1rem;
    text-decoration: none;
    color: #e5e7eb;
    border: 1px solid rgba(148, 163, 184, 0.3);
    transition: all 0.2s ease;
}

.contact-links a {
    text-decoration: none;
    padding: 10px 18px;
    background: #020617;
    border-radius: 25px;
    color: #38bdf8;
    transition: 0.3s;
}


.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.2);
    border-color: #38bdf8;
}

.contact-link span:first-child {
    font-weight: 600;
    font-size: 0.85rem;
    color: #91a3fc;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-link span:last-child {
    font-size: 1rem;
    margin-top: 0.2rem;
}

/* Mobile */
@media (max-width: 768px) {
    .contact-link {
        padding: 1.1rem 1.3rem;
    }
}


#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    width: 0%;
    z-index: 999;
}


.social-icons {
    margin-top: 1.8rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-icons a {
    width: 28px;
    height: 28px;
    display: inline-flex;
}

.social-icons svg {
    fill: #94a3b8;
    width: 100%;
    height: 100%;
    transition: fill 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover svg {
    fill: #38bdf8;
    transform: translateY(-3px);
}




/* ------------------------- FOOTER ----------------------------------------- */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

footer a {
    margin: 0 10px;
}