/* ----- POPPINS FONT Link ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ----- VARIABLES ----- */
:root{
    --body-color: rgb(250, 250, 250);
    --color-white: rgb(255, 255, 255);

    --text-color-second: rgb(68, 68, 68);
    --text-color-third: rgb(30, 159, 171);

    --first-color: rgb(110, 87, 224);
    --first-color-hover: rgb(40, 91, 212);

    --second-color: rgb(0, 201, 255);
    --third-color: rgb(192, 166, 49);
    --first-shadow-color: rgba(0, 0, 0, 0.1);

}

/* ----- DARK MODE VARIABLES ----- */
:root.dark-mode{
    --body-color: rgb(20, 25, 35);
    --color-white: rgb(30, 40, 55);

    --text-color-second: rgb(220, 220, 220);
    --text-color-third: rgb(100, 200, 210);

    --first-color: rgb(138, 115, 255);
    --first-color-hover: rgb(110, 95, 220);

    --second-color: rgb(50, 220, 255);
    --third-color: rgb(220, 190, 80);
    --first-shadow-color: rgba(0, 0, 0, 0.4);
}

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

/* ----- SMOOTH SCROLL ----- */
html{
    scroll-behavior: smooth;
}

/* ----- CHANGE THE SCROLL BAR DESIGN ----- */
::-webkit-scrollbar{
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background: #f1f1f1;
}
:root.dark-mode ::-webkit-scrollbar-track{
    background: rgb(30, 40, 55);
}
::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 30px;
}
:root.dark-mode ::-webkit-scrollbar-thumb{
    background: rgb(70, 90, 120);
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
    background: #bbb;
}
:root.dark-mode ::-webkit-scrollbar-thumb:hover{
    background: rgb(100, 120, 150);
}


/* ---##-- REUSABLE CSS --##--- */

/* ----- GLOBAL BUTTON DESIGN ----- */
.btn{
    font-weight: 500;
    padding: 12px 20px;
    background: #efefef;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: .4s;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    line-height: 1;
    text-decoration: none !important;
}
.btn:hover {
    text-decoration: none !important;
}
.btn>i{
    margin-left: 0;
}
a .btn {
    text-decoration: none !important;
}
a:has(.btn) {
    text-decoration: none !important;
}
.btn>i{
    margin-left: 10px;
}
.btn:hover{
    background: var(--second-color);
    color: var(--color-white);
}

/* ----- GLOBAL ICONS DESIGN ----- */
i{
    font-size: 16px;
}

/* ------- BASE -------- */
body{
    background: var(--body-color);
}
body.preview-open{
    overflow: hidden;
}
.container{
    width: 100%;
    position: relative;
}

/* ----- NAVIGATION BAR ----- */
nav{
    position: fixed;
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background: var(--body-color);
    padding-inline: 9vw;
    transition: .3s;
    z-index: 100;
}
.nav-logo{
    display: flex;
    align-items: center;
}
.nav-profile{
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    line-height: 1.1;
}
.nav-profile-image{
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}
.previewable-image{
    cursor: zoom-in;
}
.nav-name{
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color-third);
}
.nav-menu, .nav_menu_list{
    display: flex;
}
.nav-menu .nav_list{
    list-style: none;
    position: relative;
}
.nav-link{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    padding-inline: 15px;
    margin-inline: 16px;
}
.nav-menu-btn{
    display: none;
}
.nav-menu-btn i{
    font-size: 28px;
    cursor: pointer;
}
.active-link{
    position: relative;
    color: var(--first-color);
    transition: .3;
}
.active-link::after{
    content: '';
    position: absolute;
    left: 50%;
    bottom: -15px;
    transform: translate(-50%, -50%);
    width: 5px;
    height: 5px;
    background: var(--first-color);
    border-radius: 50%;
}


/* ----- WRAPPER DESIGN ----- */
.wrapper{
    padding-inline: 10vw;
}

/* ----- FEATURED BOX ----- */
.featured-box{
    position: relative;
    display: flex;
    align-items: center;
    height: 100vh;
    min-height: 700px;
    padding-top: 90px;
}

/* ----- FEATURED TEXT BOX ----- */
.featured-text{
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    width: min(100%, 760px);
    min-height: auto;
    padding-left: 0;
}
.featured-text-card span{
    display: inline-flex;
    align-items: center;
    background: rgba(192, 166, 49, 0.14);
    color: #8f7415;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.featured-name{
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block: 20px;
}
.typedText{
    text-transform: capitalize;
    color: var(--text-color-third);
}
.featured-text-info{
    font-size: 16px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}
.featured-text-info p{
    line-height: 1.8;
}
.featured-details{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}
.featured-details span{
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--color-white);
    border: 1px solid rgba(30, 159, 171, 0.18);
    color: var(--text-color-second);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}
.visitor-counter{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    margin-bottom: 28px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(30, 159, 171, 0.08);
    color: var(--text-color-second);
    border: 1px solid rgba(30, 159, 171, 0.16);
}
.visitor-counter i{
    font-size: 18px;
    color: var(--text-color-third);
}
.visitor-counter strong{
    color: var(--text-color-third);
}
.featured-text-btn{
    display: flex;
    gap: 20px;
}
.featured-text-btn>.blue-btn{
    background: var(--first-color);
    color: var(--color-white);
}
.featured-text-btn>.blue-btn:hover{
    background: var(--first-color-hover);
}
.social_icons{
    display: flex;
    margin-top: 5em;
    gap: 30px;
}
.icon{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}
.icon:hover{
    color: var(--first-color);
}
.scroll-btn{
   position: absolute;
   bottom: 0;
   left: 50%;
   translate: -50%;
   display: flex;
   justify-content: center;
   align-items: center;
   width: 150px;
   height: 50px;
   gap: 5px;
   text-decoration: none;
   color: var(--text-color-second);
   background: var(--color-white);
   border-radius: 30px;
   box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
}
.scroll-btn i{
    font-size: 20px;
}

/* ----- MAIN BOX ----- */
.section{
    padding-block: 5em;
}
.row{
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}
.col{
    display: flex;
    width: 50%;
}

/* -- ## --- RESUABLE CSS -- ## -- */
.top-header{
    text-align: center;
    margin-bottom: 5em;
}
.top-header h1{
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}
.top-header span{
    color: #999;
}
h3{
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
}

/* ----- ABOUT INFO ----- */
.about-info{
    position: relative;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 30px 70px;
    padding-inline: 20px;
    width: 100%;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
}
.about-info p{
    text-align: left;
    font-size: 15px;
    color: #777;
    line-height: 1.8;
}
.about-highlights{
    margin-top: 22px;
    padding-left: 18px;
    display: grid;
    gap: 12px;
    color: #666;
}
.about-highlights li{
    line-height: 1.6;
}
.about-btn button{
    position: absolute;
    right: 20px;
    bottom: 20px;
    background: var(--first-color);
    color: var(--color-white);
    border-radius: 30px;
}
.about-btn button:hover{
    background: var(--first-color-hover);
}

/* ----- ABOUT / SKILLS BOX ----- */
.skills-column{
    flex-direction: column;
    gap: 20px;
}
.skills-box{
    margin: 0;
    width: 100%;
    padding: 28px;
    background: var(--color-white);
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    border-radius: 20px;
}
.skills-header{
    margin-bottom: 20px;
}
.skills-list{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.skills-list span{
    font-size: 14px;
    background: var(--first-color);
    color: var(--color-white);
    padding: 6px 12px;
    border-radius: 999px;
}
.credentials-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.credential-card{
    padding: 28px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
}
.credential-card p,
.credential-card li{
    color: #666;
    line-height: 1.7;
    font-size: 15px;
}
.credential-card p + p{
    margin-top: 12px;
}
.credential-card strong{
    color: var(--text-color-second);
}
.credential-card ul{
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
}

/* ----- EXPERIENCE BOX ----- */
.experience-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.experience-card{
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
}
.experience-time{
    font-size: 14px;
    font-weight: 600;
    color: var(--first-color);
}
.experience-company{
    color: #666;
    font-weight: 500;
}
.experience-card p:not(.experience-time){
    color: #666;
    line-height: 1.7;
}
.experience-skills{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}
.experience-skills span{
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(30, 159, 171, 0.12);
    color: var(--text-color-third);
    font-size: 14px;
}

/* ----- PROJECTS BOX ----- */
.project-container {
    display: flex; /* Flexbox layout to align items horizontally */
    justify-content: space-between; /* Distribute space between items */
    flex-wrap: wrap; /* Allow items to wrap to the next line on smaller screens */
    gap: 20px; /* Space between project boxes */
    padding: 20px 0; /* Optional padding around the container */
    margin-bottom: 20px;
}

.project-box {
    flex: 1; /* Makes each item expand to fill available space equally */
    text-align: center;
    padding: 40px; /* Increase padding to increase height of the box */
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
    min-width: 280px; /* Ensures the box doesn't get too small */
    min-height: 230px;
}

.project-box:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.project-box i {
    font-size: 60px; /* Increase icon size here */
    color: #1E9FAB; /* Icon color */
    margin-bottom: 20px; /* Increase space below the icon */
    transition: color 0.3s ease;
}

.project-box:hover i {
    color: #d14836; /* Hover color change */
}

.project-box h3 {
    font-size: 24px;
    color: #333;
    margin: 10px 0;
}

.project-box label {
    display: block;
    font-size: 18px;
    color: #555;
    line-height: 1.6;
}
.detail-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.detail-card{
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
}
.detail-meta{
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color-third);
}
.detail-card p{
    color: #666;
    line-height: 1.7;
}
.detail-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}
.detail-tags span{
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(110, 87, 224, 0.12);
    color: var(--first-color);
    font-size: 14px;
}


/* ----- CONTACT BOX ----- */
.contact-info{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 30px;
    width: 100%;
    min-height: 315px;
    height: auto;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
    overflow: visible;
}
.contact-info>h2{
    color: var(--text-color-second);
    margin-bottom: 20px;
}
.contact-info>p{
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #555;
    margin-block: 5px;
}
.contact-info p>i{
    font-size: 18px;
}
.contact-info::after{
    content: none;
}
.contact-info:hover.contact-info h2,
.contact-info:hover.contact-info p,
.contact-info:hover.contact-info i{
    color: #777;
    z-index: 2;
}

/* ----- CONTACT FORM ----- */
.form-control{
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.form-inputs{
    display: flex;
    gap: 10px;
    width: 100%;
}
.input-field{
    width: 50%;
    height: 55px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding-inline: 20px;
    outline: none;
}
textarea{
    width: 100%;
    height: 250px;
    background: transparent;
    border: 2px solid #AAA;
    border-radius: 10px;
    padding: 15px 20px;
    outline: none;
    resize: none;
}
.form-button>.btn{
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--second-color);
    color: var(--color-white);
}
.form-button>.btn:hover{
    background: #00B5E7;
}
.form-button i{
    font-size: 18px;
    rotate: -45deg;
}

/* ----- FOOTER BOX ----- */
footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    row-gap: 30px;
    background: #F8F8F8;
    padding-block: 40px 60px;
}
.top-footer p{
    font-size: 25px;
    font-weight: 600;
}
.middle-footer .footer-menu{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.footer_menu_list{
    list-style: none;
}
.footer_menu_list a{
    text-decoration: none;
    color: var(--text-color-second);
    font-weight: 500;
    margin-inline: 20px;
}
.footer-social-icons{
    display: flex;
    gap: 30px;   
}
.bottom-footer{
    font-size: 14px;
    margin-top: 10px;
}

/* ----- IMAGE MODAL ----- */
.image-modal{
    position: fixed;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background: rgba(7, 11, 19, 0.82);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
}
.image-modal.active{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.image-modal-backdrop{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}
.image-modal-content{
    max-width: min(90vw, 560px);
    max-height: 82vh;
    width: auto;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    background: var(--color-white);
}
.image-modal-close{
    position: absolute;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}
.image-modal-close:hover{
    background: rgba(255, 255, 255, 0.26);
    transform: scale(1.05);
}
.image-modal-close i{
    font-size: 22px;
}


/* ----- MEDIA QUERY == 1024px / RESPONSIVE ----- */
@media only screen and (max-width: 1024px){
    .featured-text{
        padding: 0;
    }
    .nav-profile-image{
        width: 52px;
        height: 52px;
    }
    .project-box label{
        font-size: 16px;
    }
}

/* ----- MEDIA QUERY == 900px / RESPONSIVE ----- */
@media only screen and (max-width: 900px) {
    .nav-button{
        display: none;
    }
    .nav-menu.responsive{
        left: 0;
    }
    .nav-menu{
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(20px);
        width: 100%;
        min-height: 450px;
        height: 90vh;
        transition: .3s;
    }
    :root.dark-mode .nav-menu{
        background: rgba(30, 40, 55, 0.9);
    }
    .nav_menu_list{
        flex-direction: column;
    }
    .nav-menu-btn{
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .featured-box{
        justify-content: center;
        height: auto;
        min-height: 100vh;
        padding-bottom: 100px;
    }
    .featured-text{
        width: 100%;
        justify-content: center;
        align-content: flex-start;
        min-height: auto;
    }
    .featured-details{
        gap: 10px;
    }
    .visitor-counter{
        margin-bottom: 24px;
    }
    .social_icons{
        margin-top: 2em;
    }
    .row{
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 50px;
    }
    .col{
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .about-info, .contact-info{
        width: 100%;
    }
    .project-container{
        justify-content: center;
    }
    .project-box{
        width: 80%;
    }
    .detail-grid,
    .experience-grid,
    .credentials-grid{
        grid-template-columns: 1fr;
    }

}

/* ----- MEDIA QUERY == 540px / RESPONSIVE ----- */

@media only screen and (max-width: 540px){
    nav{
        padding-inline: 5vw;
    }
    .nav-profile{
        gap: 10px;
    }
    .nav-profile-image{
        width: 44px;
        height: 44px;
    }
    .nav-name{
        font-size: 20px;
    }
    .nav-button{
        display: flex;
        align-items: center;
    }
    .theme-toggle{
        padding: 0 10px;
    }
    .featured-name{
        font-size: 40px;
    }
    .featured-details span{
        width: 100%;
    }
    .visitor-counter{
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    .featured-text-btn{
        flex-direction: column;
        align-items: flex-start;
    }
    .social_icons{
        flex-wrap: wrap;
        gap: 16px;
    }
    .project-box{
        width: 100%;
    }
    .form-inputs{
        flex-direction: column;
    }
    .input-field{
        width: 100%;
    }
    .image-modal{
        padding: 18px;
    }
    .image-modal-content{
        max-width: 92vw;
        border-radius: 22px;
    }
}

/* ----- DARK MODE TOGGLE BUTTON ----- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    line-height: 90px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 20px;
}

.theme-toggle:hover {
    background: rgba(110, 87, 224, 0.08);
}

.theme-toggle i {
    font-size: 20px;
    color: var(--text-color-second);
    transition: color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover i {
    color: var(--first-color);
    transform: rotate(20deg);
}

.theme-toggle:focus {
    outline: none;
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--first-color);
    outline-offset: 4px;
}

/* ----- DARK MODE SPECIFIC STYLES ----- */
:root.dark-mode .theme-toggle {
    background: none;
}

:root.dark-mode .theme-toggle:hover {
    background: rgba(100, 200, 210, 0.1);
}

:root.dark-mode .theme-toggle i {
    color: var(--text-color-third);
}

:root.dark-mode .theme-toggle:hover i {
    color: var(--second-color);
}

@media (hover: none) and (pointer: coarse) {
    .theme-toggle:hover,
    :root.dark-mode .theme-toggle:hover {
        background: none;
    }

    .theme-toggle:hover i,
    :root.dark-mode .theme-toggle:hover i {
        color: inherit;
        transform: none;
    }

    .theme-toggle {
        -webkit-tap-highlight-color: transparent;
    }
}

:root.dark-mode .input-field,
:root.dark-mode textarea {
    background: rgb(40, 50, 65);
    border-color: rgb(70, 90, 120);
    color: rgb(220, 220, 220);
}

:root.dark-mode .input-field::placeholder,
:root.dark-mode textarea::placeholder {
    color: rgb(150, 160, 180);
}

:root.dark-mode .project-box {
    background-color: rgb(35, 45, 60);
}

:root.dark-mode .project-box h3 {
    color: rgb(220, 220, 220);
}

:root.dark-mode .project-box label {
    color: rgb(180, 180, 200);
}

:root.dark-mode footer {
    background: rgb(30, 40, 55);
}

:root.dark-mode .footer_menu_list a {
    color: rgb(200, 200, 220);
}

:root.dark-mode .bottom-footer {
    color: rgb(150, 160, 180);
}

:root.dark-mode .bottom-footer a {
    color: rgb(180, 200, 220);
}
