*{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    text-decoration: none;
    color: #ffffff;
}

html, body{
    max-width: 100%;
    overflow-x: hidden;
}

body{
    background: linear-gradient(180deg, #051a08 0%, #0d0d0d 100%);
    min-height: 100vh;
}

/* ---------- Header ---------- */
header{
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(0, 0, 0, 0.63);
    backdrop-filter: blur(8px);
    padding: 0.75rem 1.5rem;
    border-radius: 3rem;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.logo{
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    text-wrap: nowrap;
}
.logo:hover{
    color: rgb(94, 224, 94);
    transform: scale(1.05);
}
.nav-links{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
}
li a{
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
}
li a:hover{
    color: rgb(94, 224, 94);
    transform: scale(1.08);
}
.visit-btn{
    background: rgb(5, 84, 5);
    color: white;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}
.visit-btn:hover{
    background: rgb(8, 110, 8);
    transform: scale(1.05);
}

header.scrolled{
    background: rgba(0, 0, 0, 0.85);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nav-links a.active-link{
    color: rgb(94, 224, 94);
}

#menu-icon{
    display: none;
    font-size: 1.8rem;
    color: #ffffff;
    cursor: pointer;
}

/* ---------- Section base ---------- */
section{
    width: 100%;
    padding: 7rem 12% 4rem;
    position: relative;
}

.section-title{
    text-align: center;
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.section-subtitle{
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin-top: -0.5rem;
}

/* ---------- About ---------- */
.about{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 8rem;
}

.about .about-container{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.about img{
    width: 220px;
    height: 220px;
    max-width: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgb(5, 84, 5);
}

.info-box{
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    max-width: 600px;
}
.text h1{
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
}
.text h2{
    font-size: 1.4rem;
    font-weight: 600;
    color: rgb(148, 220, 148);
    margin-top: 0.4rem;
}
.text p{
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.btn-group{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}
.btn{
    background: rgb(5, 84, 5);
    color: white;
    border: 2px solid rgb(5, 84, 5);
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn:hover{
    background: rgb(8, 110, 8);
    transform: scale(1.05);
}
.btn-outline{
    background: transparent;
}
.btn-outline:hover{
    background: rgb(5, 84, 5);
}

.contact-info-row{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1.5rem;
}
.contact-info-item{
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
}
.contact-info-item i{
    color: rgb(94, 224, 94);
    font-size: 0.95rem;
}
a.contact-info-item:hover{
    color: rgb(94, 224, 94);
}

.socials{
    display: flex;
    gap: 1.5rem;
}
.socials i{
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    cursor: pointer;
}
.socials i:hover{
    color: rgb(94, 224, 94);
    transform: scale(1.15);
}

/* ---------- Experience ---------- */
.experience-info{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.grid-card{
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    cursor: pointer;
    transition: all 0.3s ease;
}
.grid-card:hover{
    background: rgba(255, 255, 255, 0.04);
    border-color: rgb(5, 84, 5);
    transform: translateY(-6px);
}

.grid-card i{
    font-size: 2.5rem;
    color: rgb(94, 224, 94);
    margin-bottom: 1rem;
}
.grid-card span{
    font-size: 1.1rem;
    font-weight: 500;
    color: rgb(94, 224, 94);
}
.grid-card h3{
    margin-top: 0.35rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
}
.grid-card .date{
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}
.grid-card p:not(.date){
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    font-size: 0.95rem;
}
.grid-card .see-more,
.education-info .see-more{
    margin-top: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgb(94, 224, 94);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.grid-card .see-more i,
.education-info .see-more i{
    font-size: 0.75rem;
    margin: 0;
    color: rgb(94, 224, 94);
    transition: transform 0.3s ease;
}
.grid-card:hover .see-more i,
.education-card:hover .see-more i{
    transform: translateX(4px);
}

/* ---------- Skills ---------- */
.skills-category{
    max-width: 1100px;
    margin: 0 auto 3rem;
}
.skills-category:first-of-type{
    margin-top: 2.5rem;
}
.skills-category-title{
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.skills-category-title i{
    color: rgb(94, 224, 94);
    font-size: 1.1rem;
}

.skills-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1.25rem;
}

.skill-card{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    cursor: default;
    transition: all 0.3s ease;
}
.skill-card:hover{
    transform: translateY(-6px);
    border-color: var(--icon-color, rgb(94, 224, 94));
    box-shadow: 0 10px 30px -10px var(--icon-color, rgba(94, 224, 94, 0.5));
}

.skill-icon{
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--icon-color, #ffffff);
    transition: all 0.3s ease;
}
.skill-card:hover .skill-icon{
    background: color-mix(in srgb, var(--icon-color, #5ee05e) 18%, transparent);
    transform: scale(1.08);
}

.skill-card span{
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}
.skill-level{
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: -0.5rem;
}

@media (max-width: 500px){
    .skills-grid{
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 1rem;
    }
    .skill-card{
        padding: 1.1rem 0.75rem;
    }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar{
    width: 12px;
}
::-webkit-scrollbar-track{
    background: rgba(0, 0, 0, 0.63);
}
::-webkit-scrollbar-thumb{
    background: linear-gradient(to bottom, rgb(5, 84, 5), rgb(94, 224, 94));
    border-radius: 1rem;
}

/* ---------- Projects ---------- */
.projects-grid{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.project-card{
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.project-card:hover{
    background: rgba(255, 255, 255, 0.04);
    border-color: rgb(5, 84, 5);
    transform: translateY(-4px);
}

.project-card img{
    width: 260px;
    height: 160px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 1rem;
}

.project-card .project-info{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 0.6rem;
}

.project-card h3{
    font-size: 1.4rem;
    font-weight: 700;
    color: rgb(94, 224, 94);
}
.project-card p{
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.55;
}

@media (max-width: 768px){
    .project-card{
        flex-direction: column;
        text-align: center;
    }
    .project-card .project-info{
        align-items: center;
        text-align: center;
    }
    .project-card img{
        width: 100%;
        height: 200px;
    }
}

.tech-icons{
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0.1rem 0 0.3rem;
}
.tech-icon{
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--icon-color, #ffffff);
    font-size: 0.95rem;
    transition: all 0.25s ease;
    cursor: default;
}
.tech-icon:hover{
    background: color-mix(in srgb, var(--icon-color, #5ee05e) 20%, transparent);
    border-color: var(--icon-color, #5ee05e);
    transform: translateY(-3px) scale(1.1);
}
@media (max-width: 768px){
    .tech-icons{
        justify-content: center;
    }
}

/* ---------- Education ---------- */
.education-card{
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.education-card + .education-card{
    margin-top: 1.5rem;
}
.education-card:hover{
    background: rgba(255, 255, 255, 0.04);
    border-color: rgb(5, 84, 5);
    transform: translateY(-4px);
}
.education-card img{
    width: 280px;
    flex-shrink: 0;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.education-info{
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.education-badges{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.education-info h3{
    font-size: 1.3rem;
    font-weight: 700;
    color: rgb(94, 224, 94);
}
.education-school{
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}
.education-location{
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.education-location i{
    color: rgb(94, 224, 94);
    font-size: 0.8rem;
}
.education-date{
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}
.education-info p{
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}
@media (max-width: 768px){
    .education-card{
        flex-direction: column;
        text-align: center;
    }
    .education-card img{
        width: 100%;
    }
    .education-badges{
        justify-content: center;
    }
}

/* ---------- Activities ---------- */
#activities .grid{
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Contact ---------- */
.contact{
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}
.contact-subtitle{
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.contact-details{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 2rem;
    margin-bottom: 2.5rem;
}
.contact-detail-item{
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.6rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}
.contact-detail-item i{
    color: rgb(94, 224, 94);
    font-size: 1rem;
}
a.contact-detail-item:hover{
    border-color: rgb(5, 84, 5);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.contact-form{
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row{
    display: flex;
    gap: 1.25rem;
}

.input{
    position: relative;
    flex: 1;
}
.input input,
.input textarea{
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 0.9rem 3rem 0.9rem 1.1rem;
    font-size: 1rem;
    color: #ffffff;
    transition: border-color 0.3s ease;
}
.input textarea{
    border-radius: 1.25rem;
    resize: vertical;
    min-height: 130px;
}
.input input::placeholder,
.input textarea::placeholder{
    color: rgba(255, 255, 255, 0.45);
}
.input input:focus,
.input textarea:focus{
    outline: none;
    border-color: rgb(94, 224, 94);
    background: rgba(255, 255, 255, 0.08);
}
.input i{
    position: absolute;
    top: 1.05rem;
    right: 1.1rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}
.textarea-input i{
    top: 1.1rem;
}

.submit-btn{
    align-self: center;
    margin-top: 0.5rem;
    padding: 0.75rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 2rem;
}

@media (max-width: 600px){
    .form-row{
        flex-direction: column;
    }
}

/* ---------- Footer ---------- */
footer{
    width: 100%;
    padding: 3rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}
footer ul{
    display: flex;
    flex-wrap: wrap;
    row-gap: 0.75rem;
    column-gap: 2.5rem;
    align-items: center;
    justify-content: center;
    list-style: none;
    text-align: center;
}
footer ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 600;
}
footer ul li a:hover{
    color: rgb(94, 224, 94);
}
.copyright{
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 400;
    text-align: center;
}

.form-status{
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}
.form-status.success{
    color: rgb(94, 224, 94);
}
.form-status.error{
    color: rgb(224, 94, 94);
}

/* ---------- Responsive nav ---------- */
@media (max-width: 900px){
    .nav-links{
        display: none;
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 50%;
        transform: translateX(-50%);
        flex-direction: column;
        gap: 0.5rem;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 1.25rem;
        padding: 1rem 1.75rem;
        width: max-content;
    }
    .nav-links.active{
        display: flex;
    }
    #menu-icon{
        display: block;
    }
    .grid{
        grid-template-columns: 1fr;
    }
}

/* ---------- Modals (education, experience & projects) ---------- */
body.modal-open{
    overflow: hidden;
}

.modal-overlay{
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.modal-overlay.active{
    display: flex;
    opacity: 1;
}

.modal-box{
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    background: #0c1f0f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.75rem;
    padding: 2.5rem;
    transform: scale(0.92);
    transition: transform 0.25s ease;
}
.modal-overlay.active .modal-box{
    transform: scale(1);
}

/* ---------- Live demo video modal ---------- */
.video-modal-box{
    max-width: 900px;
    padding: 1rem;
    background: #000000;
}
#demo-video{
    display: block;
    width: 100%;
    max-height: 80vh;
    border-radius: 1rem;
    background: #000000;
}

.modal-close{
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.modal-close:hover{
    background: rgb(5, 84, 5);
    transform: rotate(90deg);
}

.modal-header{
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}
.modal-header.no-icon{
    margin-top: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}
.modal-header i{
    font-size: 2.2rem;
    color: rgb(94, 224, 94);
}
.modal-header h3{
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
}
.modal-company{
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.modal-image{
    width: 100%;
    max-height: 55vh;
    object-fit: contain;
    background: #ffffff;
    border-radius: 1rem;
    display: block;
}

.modal-desc{
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-list{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.modal-list li{
    position: relative;
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.55;
}
.modal-list li::before{
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: rgb(94, 224, 94);
}

.modal-tools{
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}
.tool-tag{
    background: rgba(94, 224, 94, 0.12);
    border: 1px solid rgba(94, 224, 94, 0.4);
    color: rgb(148, 220, 148);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    border-radius: 2rem;
}

.modal-proof{
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}
.proof-label{
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.modal-proof img{
    width: 100%;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-links{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 600px){
    .modal-box{
        padding: 1.75rem;
    }
}

/* ---------- Small phones: header, footer, sections ---------- */
@media (max-width: 480px){
    header{
        max-width: 92vw;
        flex-wrap: wrap;
        row-gap: 0.6rem;
        column-gap: 1rem;
        gap: 0.6rem 1rem;
        padding: 0.65rem 1.1rem;
    }
    .logo{
        font-size: 1.2rem;
    }
    #menu-icon{
        font-size: 1.5rem;
    }
    .visit-btn{
        padding: 0.4rem 0.9rem;
        font-size: 0.85rem;
    }

    section{
        padding: 8rem 1.25rem 3rem;
    }
    .about{
        padding-top: 9.5rem;
    }

    .modal-overlay{
        padding: 1rem;
    }
    .modal-box{
        padding: 1.25rem;
    }
    .video-modal-box{
        padding: 0.5rem;
    }

    footer{
        padding-left: 1rem;
        padding-right: 1rem;
    }
    footer ul{
        column-gap: 1.25rem;
        row-gap: 0.6rem;
    }
    footer ul li a{
        font-size: 0.85rem;
    }
}