/* ----- POPPINS FONT LINK ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&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(40, 91, 212);


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


    --second-color: rgb(40, 91, 212) ;
    --third-color: rgb(40, 91, 212) ;
    --first-shadow-color: rgb(0, 0, 0, 0.1) ;


}


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


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


/* --------- CHANGE SCROLL BAR DESIGN  ---------- */
::-webkit-scrollbar{
    width: 10px;
    border-radius: 25px;
}
::-webkit-scrollbar-track{
    background-color: #f1f1f1;
}
::-webkit-scrollbar-thumb{
    background: #ccc;
    border-radius: 30px;
}
::-webkit-scrollbar-thumb:hover{
    background: #bbb
}


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


/* --------- GLOBAL BUTTON DESIGN  ---------- */
.btn {
    font-weight: 150;
    font-size: 14px;
    padding: 10px 20px;
    background: var(--first-color);
    color: var(--color-white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    opacity: 1;
    white-space: nowrap;
}


.btn:hover {
    background: var(--second-color);
    color: var(--color-white);
    opacity: 0.8;
}


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


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


/* --------- 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{
    position: relative;
}
-nav-name{
    font-size: 30px;
    font-weight: 600;
    color: var(--text-color-third);
}
.nav-logo span{
    position: absolute;
    top: -15px;
    right: -20px;
    font-size: 5em;
    color: var(--text-color-second);
}
.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: 20px;
}
.nav-menu-btn{
    display: none;
}
.nav-menu-btn i{
    font-size: 28px;
    cursor: pointer;
}
.active-link{
    position: relative;
    color: var(--first-color);
    transform: .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;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    padding-inline: 10vw;
    text-align: center;
    overflow: visible; 
}


/* --------- FEATURED TEXT BOX  ---------- */
.featured-text{
    position: relative;
    display: flex;
    justify-content: center;
    align-content: center;
    min-height: 80vh;
    flex-direction: column;
    width: 50%;
    padding-left: 20px;
}
.featured-text-card span{
    background: var(--third-color);
    color: var(--color-white);
    padding: 3px 8px;
    font-size: 18px;
    border-radius: 5px;
}
.featured-name{
    font-size: 50px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-block-start: 20px;
}
.typedText{
    text-transform: capitalize;
    color: var(--text-color-third);
}
.featured-text-info{
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--text-color-second);
}
.featured-text-btn{
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 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  ---------- */
.social_icons {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 0em;
}


.icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}


.icon i {
    font-size: 25px;
    color: var(--text-color-second);
    transition: color 0.3s ease;
}


.icon:hover {
    transform: translateY(-5px);
}


.icon:hover i {
    color: var(--first-color);
}


/* --------- SCROLL ICON BOX  ---------- */
.scroll-icon-box {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--color-white);
    background: var(--first-color);
    border-radius: 20px;
    padding: 8px 20px;
    box-shadow: none;
    transition: background 0.3s ease;
    font-size: 14px;
    margin-left: 10px;
}

.scroll-icon-box:hover {
    background: var(--first-color-hover);
}

.scroll-icon-box i {
    font-size: 16px;
    color: var(--color-white);
}


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


}


/* ------## --- REUSABLE 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: center;
    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: center;
    font-size: 15px;
    color: #777;
}
.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);
}

/* New About Container Styles */
.about-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    gap: 50px;
}

.about-intro {
    width: 50%;
}

.about-skills {
    width: 50%;
}

/* --------- ABOUT / SKILLS INFO ---------- */
.skills-box{
    margin: 10px;
}
.skills-header{
    margin-bottom: 20px;
}
.skills-list{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.skills-list span{
    font-size: 14px;
    background: var(--first-color);
    color: var(--color-white);
    padding: 2px 10px;
    border-radius: 5px;
}
.skills-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 15px;
    white-space: nowrap;
}


/* --------- PROJECTS SECTION  ---------- */
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}


.project-box {
    background: var(--color-white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}


.project-box:hover {
    transform: translateY(-10px);
}


.project-box h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color-second);
    margin-bottom: 10px;
}


.project-box p {
    font-size: 16px;
    color: var(--text-color-second);
    margin-bottom: 20px;
}


/* --------- LANGUAGES USED SECTION  ---------- */
.languages-used {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}


.languages-used span {
    background: var(--color-white);
    color: var(--first-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid var(--first-color);
    transition: background 0.3s ease, color 0.3s ease;
}


.languages-used span:hover {
    background: var(--first-color);
    color: var(--color-white);
}


/* --------- GITHUB BUTTON  ---------- */
.project-box .btn {
    display: inline-block;
    margin-top: auto;
    background: var(--first-color);
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    width: 100%;
    text-align: center;
}


.project-box .btn:hover {
    background: var(--first-color-hover);
}


.project-box .btn i {
    margin-right: 5px;
}


.languages-used span {
    background: var(--color-white);
    color: var(--first-color);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid var(--first-color);
    transition: background 0.3s ease, color 0.3s ease;
}


.languages-used span:hover {
    background: var(--first-color);
    color: var(--color-white);
}






/* --------- CONTACT BOX ---------- */
.contact-info{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    width: 90%;
    height: auto;
    border-radius: 10px;
    box-shadow: 1px 8px 10px 2px var(--first-shadow-color);
}


.row {
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 50px;
}
.col {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
}
.email-link {
    color: var(--first-color);
    text-decoration: none;
    transition: color 0.3s ease;
}


.email-link:hover {
    color: var(--second-color);
    text-decoration: underline;
}



/* --------- 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;
}
.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: 13px;
}


/* --------- MEDIA QUERY == 1024px / RESPONSIVE ---------- */
@media only screen and (max-width: 1024px) {
    .featured-text {
        padding: 0;
    }
    .image, .image img {
        width: 320px;
        height: 320px;
    }
    .nav-button .btn {
        font-size: 13px;
        padding: 8px 15px;
    }
}


/* --------- 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: 0;
        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;
    }
    .nav_menu_list {
        flex-direction: column;
    }
    .nav-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .featured-box {
        flex-direction: column;
        justify-content: center;
        min-height: 100vh; 
    }
    .featured-text {
        width: 100%;
        order: 2;
        justify-content: center;
        align-content: flex-start;
        min-height: 60vh;
    }
    .social_icons {
        margin-top: 2em;
    }
}


/* --------- MEDIA QUERY == 768px / RESPONSIVE ---------- */
@media only screen and (max-width: 768px) {
    .nav-button .btn {
        font-size: 12px;
        padding: 6px 12px;
    }
}


/* --------- MEDIA QUERY == 540px / RESPONSIVE ---------- */
@media only screen and (max-width: 540px) {
    .featured-name {
        font-size: 40px;
    }
    .form-inputs {
        flex-direction: column;
    }
    .input-field {
        width: 100%;
    }
    .nav-button .btn {
        font-size: 11px;
        padding: 5px 10px;
    }
}
/* --------- MEDIA QUERY == 430px / RESPONSIVE ---------- */
@media only screen and (max-width: 430px) {
    .nav-button {
        display: none;
    }
    .nav-button .btn {
        font-size: 12px;
        padding: 8px 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    .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.95);
        backdrop-filter: blur(20px);
        width: 100%;
        min-height: 450px;
        height: auto;
        transition: .3s;
        padding: 20px 0;
    }
    .nav_menu_list {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .nav-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .featured-box {
        flex-direction: column;
        justify-content: flex-start;
        min-height: 100vh;
        padding-top: 100px;
    }
    .featured-text {
        width: 100%;
        order: 2;
        justify-content: flex-start;
        align-content: flex-start;
        min-height: auto;
        padding: 20px;
    }
    .featured-name {
        font-size: 32px;
        line-height: 1.2;
    }
    .featured-text-info {
        font-size: 14px;
        padding: 0 10px;
    }
    .social_icons {
        margin-top: 2em;
        gap: 20px;
    }
    .icon {
        width: 40px;
        height: 40px;
    }
    .project-container {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    .project-box {
        min-height: auto;
        padding: 15px;
    }
    .contact-info {
        width: 95%;
        padding: 15px;
    }
}

/* Add iPhone 15 Pro Max specific styles */
@media only screen and (min-width: 430px) and (max-width: 932px) {
    .nav-button {
        display: none;
    }
    .nav-button .btn {
        font-size: 13px;
        padding: 10px 18px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }
    .featured-box {
        padding-top: 120px;
    }
    .featured-text {
        width: 100%;
        padding: 0 20px;
    }
    .featured-name {
        font-size: 36px;
    }
    .project-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 20px;
    }
    .nav-menu {
        width: 100%;
    }
}

/* iOS-specific media query */
@media only screen and (max-width: 932px) and (-webkit-min-device-pixel-ratio: 2) {
    .section {
        padding-block: 4em;
    }
    .about-container {
        flex-direction: column;
        gap: 40px;
    }
    .about-intro, .about-skills {
        width: 100%;
    }
    .about-info {
        padding: 25px;
        margin-bottom: 30px;
    }
    .skills-box {
        margin-bottom: 25px;
    }
    .skills-list {
        gap: 10px;
    }
    .skills-list span {
        font-size: 14px;
        padding: 5px 15px;
    }
}

/* Additional mobile media query for non-iOS devices */
@media only screen and (max-width: 932px) {
    .about-container {
        flex-direction: column;
        gap: 40px;
    }
    .about-intro, .about-skills {
        width: 100%;
    }
}

/* Add viewport height fix for mobile browsers */
@supports (-webkit-touch-callout: none) {
    .featured-box {
        min-height: -webkit-fill-available;
    }
}

/* Mobile resume button styles */
.nav_list_button {
    margin-top: 20px;
}

.mobile-resume-btn {
    display: none;
}

@media only screen and (max-width: 932px) {
    .nav_list_button {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 20px;
    }

    .mobile-resume-btn {
        display: inline-block;
        width: auto;
        min-width: 200px;
    }

    .nav-menu.responsive .mobile-resume-btn {
        display: inline-block;
    }

    /* Hide fixed button when menu is open */
    .nav-menu.responsive ~ .nav-button {
        display: none;
    }
}

/* Mobile adjustments for scroll button */
@media only screen and (max-width: 932px) {
    .scroll-icon-box {
        padding: 6px 16px;
        font-size: 12px;
        border-radius: 16px;
        margin-left: 8px;
    }
    
    .scroll-icon-box i {
        font-size: 14px;
    }
}
