@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

*{
    padding: 0;
    margin: 0;
    outline: none;
    border: none;
    box-sizing: border-box;
}

img{
    width: 100%;
    display: flex;
}

a{
    text-decoration: none;
}

body{
    font-family: 'Poppins', sans-serif;
    background-color: #18181B;
    color: #fff;
}

html{
    scroll-behavior: smooth;
}
.nav-cta{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .8rem;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}
.corner-flag{
    position: fixed;
    top: 12px;
    right: 12px;
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 10px;
    border: none;
    background: rgba(24, 24, 27, 0.7);
    padding: 4px;
    z-index: 200;
    box-shadow: 0 8px 20px -12px rgba(0,0,0,0.8);
}
nav{
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    min-height: 72px;
    background: rgba(24, 24, 27, 0.32);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.nav-links{
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8rem;
}

.link a{
    position: relative;
    padding-bottom: 0.3rem;
    color: #fff;
    font-weight: 500;
}
.link a::after{
    content: "";
    position: absolute;
    height: 2px;
    width: 0;
    bottom: 0;
    left: 0;
    background-color: #1d4ed8;
    transition: all 0.3s ease;
}

.link a:hover::after{
    width: 100%;
}

.btn{
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
    color: #fff;
    background-color: #1d4ed8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn:hover{
    background-color: #1e40af;
}

.container{
    max-width: 1200px;
    margin: auto;
    padding: 4.5rem 2rem;
}

.blur{
    position: absolute;
    box-shadow: 0 0 1000px 50px #1d4ed8;
    z-index: -100;
}

header{
    position: relative;
    padding-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 2rem;
}

header .content{
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

header .content h4{
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 1rem;
    font-weight: 600;
}

header .content h1{
    color: #fff;
    margin-bottom: 1rem;
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
}

header .content h1 span{
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #fff;
}

header .content p{
    margin-bottom: 2rem;
    color: #ccc;
}

.hero-intro{
    max-width: 780px;
    margin: 0 auto 1.2rem auto;
    color: #d4d4d8;
    font-size: 1.05rem;
    line-height: 1.75;
}

.hero-skills{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
}

.hero-skill{
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.28), rgba(30, 64, 175, 0.18));
    border: 1px solid rgba(147, 197, 253, 0.35);
    color: #dbeafe;
    padding: .45rem .8rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
}

.hero-skill:hover{
    transform: translateY(-2px);
    border-color: rgba(191, 219, 254, 0.65);
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.4), rgba(30, 64, 175, 0.25));
}

section .header{
    margin-bottom: 1rem;
    color: #fff;
    text-align: center;
    font-size: 2.25rem;
    font-weight: 600;
}

/* New section titles */
.section-title{
    margin-bottom: .5rem;
    color: #fff;
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
}

.section-subtitle{
    max-width: 700px;
    margin: 0.25rem auto 2.5rem auto;
    text-align: center;
    color: #ccc;
}

/* Projects */
.projects-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card{
    background-color: #27272a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(0);
    transition: transform .35s ease, border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
    position: relative;
    will-change: transform;
    perspective: 1000px;
}

.project-card:hover{
    transform: translateY(-8px) scale(1.05);
    border-color: rgba(255,255,255,0.25);
    background-color: #1f1f22;
    box-shadow: 0 12px 32px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
}

.project-image img{
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.5s ease;
    will-change: transform;
}

.project-card:hover .project-image img{
    transform: scale(1.08);
    filter: brightness(1.15) saturate(1.1);
}

.project-content{
    padding: 1rem 1.1rem 1.25rem;
}

.project-title{
    color: #fff;
    font-size: 1.15rem;
    margin-bottom: .25rem;
}

.project-desc{
    color: #ccc;
    font-size: .95rem;
    margin-bottom: .75rem;
}

.project-tags{
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .85rem;
}

.project-tags span{
    font-size: .76rem;
    padding: .24rem .62rem;
    border-radius: 999px;
    background: rgba(29, 78, 216, 0.2);
    border: 1px solid rgba(147, 197, 253, 0.35);
    color: #dbeafe;
}

.project-actions{
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
}

.project-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .52rem .85rem;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    background: #1d4ed8;
    border: 1px solid transparent;
    transition: background-color .25s ease, transform .25s ease, border-color .25s ease;
}

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

.project-btn-secondary{
    background: transparent;
    border-color: rgba(255,255,255,0.25);
}

.project-btn-secondary:hover{
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.45);
}

    /* Experience feature */
    .experience-section{
        padding-top: 2.5rem;
    }

    .experience-head{
        display: flex;
        align-items: center;
        gap: .8rem;
        margin-bottom: 2rem;
    }

    .experience-head span{
        width: 42px;
        height: 2px;
        background: #f5c06a;
    }

    .experience-head p{
        color: #e7c38a;
        letter-spacing: .14em;
        font-size: .85rem;
    }

    .experience-layout{
        display: grid;
        grid-template-columns: 270px 1fr;
        gap: 2.2rem;
    }

    .experience-list{
        border-left: 1px solid rgba(255,255,255,0.08);
    }

    .experience-item{
        padding: 1.25rem 1.3rem;
        border-left: 2px solid transparent;
        transition: background-color .3s ease, border-color .3s ease;
        cursor: pointer;
    }

    .experience-item:hover{
        background: rgba(255,255,255,0.03);
    }

    .experience-item + .experience-item{
        margin-top: .5rem;
    }

    .experience-item h4{
        color: #d7d7da;
        font-size: 1.05rem;
        margin-bottom: .35rem;
    }

    .experience-item p{
        color: #94949a;
        font-size: .98rem;
    }

    .experience-item.active{
        border-left-color: #f5c06a;
        background: linear-gradient(90deg, rgba(245, 192, 106, 0.12), rgba(245, 192, 106, 0.03));
    }

    .experience-item.active h4,
    .experience-item.active p{
        color: #f4d49d;
    }

    .experience-detail{
        background: rgba(24, 24, 27, 0.35);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 14px;
        padding: 1.8rem 2rem;
    }

    .experience-detail h3{
        font-size: clamp(1.8rem, 4vw, 2.9rem);
        margin-bottom: .75rem;
        color: #f2f2f3;
    }

    .experience-role{
        color: #e7c38a;
        font-size: 1.06rem;
        letter-spacing: .06em;
        margin-bottom: 1.2rem;
        padding-bottom: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .experience-summary{
        color: #b4b4bb;
        font-size: 1.15rem;
        line-height: 1.75;
    }

/* Resume */
.resume-grid{
    margin-top: 1.5rem;
    display: grid;
        grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.resume-actions{
    display: flex;
    justify-content: center;
    gap: .9rem;
    flex-wrap: wrap;
    margin-bottom: 1.4rem;
}

.btn-secondary{
    background: transparent;
    border-color: rgba(255,255,255,0.22);
}

.btn-secondary:hover{
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.35);
}

.resume-embed{
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.6rem;
    background: #202024;
}

.resume-embed iframe{
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

.resume-card{
    background-color: #27272a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.resume-card h3{
    color: #fff;
    margin-bottom: .75rem;
}

.resume-card p, .resume-card li{
    color: #ccc;
}

.skills{
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.skills li{
    list-style: none;
    background: #1e40af;
    color: #fff;
    border-radius: 999px;
    padding: .25rem .6rem;
    font-size: .8rem;
}

/* About */
.about-wrap{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.about-text p{
    color: #ccc;
    font-size: 1rem;
}

/* Reveal on scroll */
.reveal{
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.in-view{
    opacity: 1;
    transform: translateY(0);
}

.features{
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.features .card{
    background-color: #27272a;
    padding: 1rem;
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.features .card:hover{
    background-color: #323232;
    border-color: #fff;
}

.features .card span{
    display: inline-block;
    background-color: #1e40af;
    padding: 2px 9px;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    color: #fff;
    border-radius: 5px;
}

.features .card h4{
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

.features .card p{
    color: #ccc;
    margin-bottom: 1rem;
}

.features .card a{
    color: #fff;
    transition: all 0.3s ease;
}

.features .card a:hover{
    color: #1e40af;
}

.sub-header{
    max-width: 600px;
    margin: auto;
    text-align: center;
    color: #ccc;
}

.pricing{
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pricing .card{
    padding: 3rem 2rem;
    background-color: #27272a;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.pricing .card:hover{
    background-color: #323232;
    border-color: #fff;
}

.pricing .card .content{
    flex: 1;
    margin-bottom: 2rem;
}

.pricing .card h4{
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
}

.pricing .card h3{
    color: #fff;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
    border-bottom: 2px dashed #fff;
}

.pricing .card p{
    color: #fff;
    margin-bottom: 0.75rem;
}

.pricing .card p i{
    color: #ccc;
    font-size: 1.2rem;
    margin-right: 0.3rem;
}

.pricing .card button{
    color: #fff;
    background-color: transparent;
    border: 2px solid #fff;
}

.pricing .card button:hover{
    background-color: #1e40af;
    border-color: #1e40af;
}

footer{
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

footer .column .logo{
    max-width: 100px;
    margin-bottom: 2rem;
}

footer .column p{
    color: #ccc;
    margin-bottom: 2rem;
}

footer .column .socials{
    display: flex;
    align-items: center;
    gap: 1rem;
}

footer .column .socials a{
    color: #ccc;
    border: 1px solid #ccc;
    padding: 5px 10px;
    font-size: 1.25rem;
    border-radius: 100%;
    transition: all 0.3s ease;
}

footer .column .socials a:hover{
    color: #fff;
    background-color: #1d4ed8;
    border-color: #1d4ed8;
}

footer .column h4{
    color: #fff;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
}

footer .column > a{
    display: block;
    color: #ccc;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

footer .column > a:hover{
    color: #1d4ed8;
}

.copyright{
    max-width: 1200px;
    margin: auto;
    padding: 1rem;
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
}

.popup-overlay{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 999;
}

.popup-overlay.show{
    display: flex;
}

.popup-modal{
    width: min(420px, 100%);
    background: #1f1f22;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    padding: 1.2rem 1.25rem;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.7);
}

.popup-modal h3{
    margin-bottom: .6rem;
    color: #fff;
    font-size: 1.2rem;
}

.popup-modal p{
    color: #d4d4d8;
    margin-bottom: .5rem;
}

.popup-modal a{
    color: #93c5fd;
}

.popup-modal a:hover{
    color: #bfdbfe;
}

.popup-close-btn{
    margin-top: .7rem;
    padding: .55rem .95rem;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    color: #fff;
    background: #1d4ed8;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .25s ease;
}

.popup-close-btn:hover{
    background: #1e40af;
}

@media (width < 900px){
    nav{
        margin-top: 10px;
        gap: 1rem;
        padding: .8rem 1rem;
        min-height: auto;
        justify-content: space-between;
    }
    .nav-links{
        gap: 1rem;
        flex-wrap: wrap;
    }
    .nav-cta{
        position: static;
        transform: none;
    }
    header{
        grid-template-columns: repeat(1, 1fr);
    }
    .features{
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing{
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .experience-layout{
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    .experience-list{
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.08);
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
    .experience-item{
        border-left: none;
        border-top: 2px solid transparent;
    }
    .experience-item.active{
        border-top-color: #f5c06a;
    }
    .resume-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .project-card:hover{transform: translateY(-6px) scale(1.04);}
    .project-card:hover .project-image img{transform: scale(1.12);}
}

@media (width < 600px){
    .corner-flag{
        top: 8px;
        right: 8px;
        width: 44px;
        height: 44px;
    }

    nav{
        margin-top: 8px;
        flex-direction: column;
        align-items: stretch;
    }
    .nav-links{
        justify-content: center;
    }
    .nav-cta{
        justify-content: space-between;
    }

    .features{
        grid-template-columns: repeat(1, 1fr);
    }

    .pricing{
        grid-template-columns: repeat(1, 1fr);
    }
    .projects-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    .experience-list{
        grid-template-columns: 1fr;
        border-top: none;
        border-left: 1px solid rgba(255,255,255,0.08);
    }
    .experience-item{
        border-top: none;
        border-left: 2px solid transparent;
    }
    .experience-item.active{
        border-left-color: #f5c06a;
    }
    .experience-summary{
        font-size: 1rem;
    }
    .resume-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    .project-card:hover{transform: translateY(-4px) scale(1.03);}    
    .project-card:hover .project-image img{transform: scale(1.07);}    

    .resume-embed iframe{
        height: 320px;
    }
}

