*{
    user-select: none;
    -webkit-user-select: none; /* For Safari */
    -ms-user-select: none;
    -moz-user-select: none; 
    -webkit-tap-highlight-color: transparent; 
}
body{
    font-family: "Product Sans";
    margin: 0;
    background: linear-gradient(to right, rgb(184, 213, 185), rgb(133, 216, 151));
    padding-top: 100px;
}
html{
    scroll-behavior: smooth;
}
#home,
#about,
#skills,
#projects,
#services,
#contact {
  scroll-margin-top: 110px; /* Height of fixed navbar + extra spacing */
}
.nav-container{
    position: fixed;
    top: 5px;
    left: 5px;
    right: 5px;
    z-index: 1000;
    margin-bottom: 50px;
    align-items: center;
    display: flex;
    justify-content: space-around;
    background-color: darkgreen;
    color: white;
    padding: 20px 30px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 40, 7, 0.5);
    transition: all 0.3s ease;
}
.nav-item{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    align-items: center;
}
.tab{
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
.tab:hover{
    background-color: white;
    color: darkgreen;
    border-radius: 5px;
    padding: 7px;
}
.contact{
    background-color: black;
    color: white;
    border-radius: 15px;
    padding: 7px;
}
span{
    color: rgb(188, 225, 188);
    font-size: larger;
    font-weight: bold;
}
.menu{
    background-color: darkgreen;
    color: white;
    border: none;
    cursor: pointer;
    font-size: larger;
    font-weight: bold;
    display: none;
    -webkit-tap-highlight-color: transparent;
}

.main{
    display: flex;
    margin-top: 85px;
    gap: 50px;
    justify-content: center;
    align-items: center;
}
.logo{
    border: solid darkgreen 5px;
    border-radius: 50%;
    width: 27=px;
}
.name{
    color: darkgreen;
    font-size: xx-large;
    font-weight: bolder;
    text-shadow: 1px 1px 15px lightgreen;
    margin-bottom: 10px;
}
.details{
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
    text-align: center;
}
.intro{
    color: rgb(255, 255, 255);
    font-size: larger;
    font-weight: bold;
    text-shadow: 1px 1px 15px rgb(9, 77, 9);
}
.skill-card{
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.skill{
    background: linear-gradient(to right, rgb(107, 142, 107),  rgb(122, 188, 122));
    padding: 20px;
    border-radius: 15px;
    font-weight: bold;
    color: rgb(0, 39, 0);
    cursor: pointer;
    width: 200px;
    margin: auto;
    transition: all 0.3s ease;
}
.contact-card{
    text-align: center;
    margin-top: 25px;
}
.contdisp{
    font-size: x-large;
    font-weight: bold;
    margin-bottom: 10px;
    color: green;
}
.conticon{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.icon{
    font-size: 30px;
    cursor: pointer;
    color: darkgreen;
    transition: all 0.3s ease;
}
.icon:hover{
    color: rgb(0, 61, 0);
    background-color: rgb(139, 195, 166);
    padding: 10px;
    border-radius: 30px;
}

.scroll{
    padding: 15px;
    text-align: center;
    font-size: large;
    background-color: darkgreen;
    color: white;
    width: 150px;
    border-radius: 20px;
    margin: auto;
    margin-top: 30px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.scroll:hover{
    background-color: rgb(0, 51, 0);
    padding: 18px;
}
.about{
    display: grid;
    grid-template-areas: "intro education"
                        "other other";
    column-gap: 20px;
    row-gap:20px ;
    justify-content: center;
    align-items: start;
}
.aboutdisp{
    text-align: center;
    margin-top: 50px;
    color: rgb(27, 90, 46);
}

.card{
    background-color: rgb(69, 166, 69);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 310px;
}
.Score{
    background-color: darkgreen;
    padding: 5px;
    border-radius: 5px;
    font-weight: bold;
    color: rgb(182, 232, 182);
    transition: all 0.3s ease;
    cursor: pointer;
}
.Score:hover{
    padding: 8px;
    border-radius: 10px;
}
.edu{
    background-color: lightgreen;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 15px;
}
.edu-journey{
    height: 646px;
    grid-area: education;
}
.about-journey{
    height: 646px;
    grid-area: intro;
}
.other-journey{
    width: 680px;
    grid-area: other;
}
.option{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.skill-page{
    display: grid;
    grid-template-areas: "codeskill techskill"
                         "devtools devtools";
    gap: 20px;
    justify-content: center;
    align-items: center;
}
.card1{
    text-align: center;
    background-color: rgb(69, 166, 69);
    border-radius: 15px;
    width: 310px;
    padding: 20px;
}
.ski{
    background-color: lightgreen;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}
.skill-journey{
    height: 350px;
    grid-area: codeskill;
}
.tech-journey{
    height: 350px;
    grid-area: techskill;
}
.devtools-journey{
    width: 680px;
    grid-area: devtools;
}
.uiss{
    width: 310px;
    border-radius: 15px;
}
.uiss1{
    width: 310px;
    height: 300px;
}
.project-section{
    display: flex;
    justify-content: center;
    gap: 20px;
}
.view{
    padding: 5px;
    border-radius: 10px;
    background-color: lightgreen;
    border: none;
    font-family: "Product Sans";
    font-size: medium;
    font-weight: bold;
    color: darkgreen;
    cursor: pointer;
    height: 35px;
    transition: all 0.3s ease;
}
.view:hover{
    background-color: darkgreen;
    color: lightgreen;
    padding: 8px;
    border-radius: 15px;
}
.project-ui{
    display: flex;
    flex-direction: column;
    background-color: rgb(69, 166, 69);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 310px;
    grid-area: picture;
}
.project-des{
    border-radius: 15px;
    background-color: rgb(69, 166, 69);
    width: 310px;
    padding: 20px;
    grid-area: description;
}
.ui{
    color: rgb(208, 248, 208);
    text-align: center;
}
.des{
    background-color: lightgreen;
    padding: 15px;
    border-radius: 15px;
    color: rgb(0, 53, 0);
    text-align: justify;
}
.project-features{
    background-color: rgb(69, 166, 69);
    border-radius: 15px;
    grid-area: features;
    padding-top: 10px;
}
.project-feat{
    display: grid;
    grid-template-areas: "feature bugs";
    justify-content: center;
    gap: 10px;
    padding: 15px;
}
.features{
    grid-area: feature;
}
.bugs{
    grid-area: bugs;
}
.pcard{
    background-color: lightgreen;
    width: 300px;
    text-align: center;
    border-radius: 15px;
    padding: 15px;
}
.release{
    padding: 10px;
    background-color: rgb(0, 92, 0);
    border-radius: 15px;
    text-align: center;
    color: rgb(178, 231, 178);
}
.documentation-card{
    display: flex;
    flex-direction: column;
    background-color: rgb(69, 166, 69);
    text-align: center;
    border-radius: 15px;
    padding-bottom: 25px;
}
.link{
    text-decoration: none;
    background-color: white;
    color: darkgreen;
    font-weight: bold;
    border-radius: 20px;
    padding: 10px;
    transition: all 0.3s ease-in-out;
}
.link:hover{
    background-color: darkgreen;
    color: white;
    padding: 13px;
    border-radius: 10px;
}
.service-disp{
    display: grid;
    grid-template-areas: "program frontend uiser projectser";
    gap: 25px;
    justify-content: center;
    align-items: center;
}
.ser-card{
    background-color: rgb(69, 166, 69);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    width: 280px;
    height: 220px;
    box-shadow: 1px 1px 15px 1px darkgreen;
    line-height: 20px;
    transition: transform 0.3s ease;
}
.ser-card:hover{
    transform: scale(1.05);
}
program-ser{
    grid-area: program;
}
frontend-ser{
    grid-area: frontend;
}
ui-ser{
    grid-area: uiser;
}
project-ser{
    grid-area: projectser;
}
.describe{
    background-color: lightgreen;
    padding: 10px;
    border-radius: 10px;
    color: rgb(0, 48, 0);
}
.contact-page{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: rgb(69, 166, 69);
    padding: 40px;
    border-radius: 15px;
    margin-left: 10px;
    margin-right: 10px;
}
.logo1{
    border: solid darkgreen 5px;
    border-radius: 300px;
    width: 150px;
}
.profile-name{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.contdisp1{
    font-size: x-large;
    font-weight: bold;
    color: rgb(0, 40, 0);
    background-color: rgb(184, 229, 181);
    text-align: center;
    padding: 8px;
    border-radius: 15px;
    margin-bottom: 15px;
}
.conticon1{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.nameico{
    text-decoration: none;
    background-color: darkgreen;
    color: lightgreen;
    font-size: x-large;
    padding: 10px;
    width: 175px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease-in-out;
}
.nameico:hover{
    background-color: palegreen;
    color: darkgreen;
    padding: 15px;
    border-radius: 10px;
}
.icon1{
    background-color: palegreen;
    color: darkgreen;
    padding: 5px;
    border-radius: 15px;
}
.icon1:hover{
    background-color: darkgreen;
    color: palegreen;
    padding: 7px;
    border-radius: 10px;
}
.name1{
    font-weight: bold;
    font-size: larger;
    color: rgb(0, 46, 0);
    text-shadow: 1px 1px 15px palegreen;
}
.contactfor{
    background-color: rgb(5, 39, 0);
    color: rgb(166, 229, 166);
    padding: 10px;
    border-radius: 10px;
    font-size: medium;
    font-weight: bold;
    text-align: center;
}
@media(max-width: 768px){
    .nav-container{
        padding: 20px;
    }
    .nav-item{
        flex-direction: column;
        position: absolute;
        background-color: darkgreen;
        color: green;
        top: 80px;
        right: 10px;
        padding: 15px;
        border-radius: 20px;
        z-index: 9999;
        
        /* Animation properties */
        transform: translateX(100%) scale(0.8);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        transform-origin: top right;
        
        /* Add backdrop blur effect */
        backdrop-filter: blur(10px);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .nav-item.show{
        transform: translateX(0) scale(1);
        opacity: 1;
        visibility: visible;
    }
    
    /* Individual menu item animations */
    .nav-item .tab {
        transform: translateX(20px);
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .nav-item.show .tab {
        transform: translateX(0);
        opacity: 1;
    }
    
    /* Staggered animation for menu items */
    .nav-item.show .tab:nth-child(1) { transition-delay: 0.1s; }
    .nav-item.show .tab:nth-child(2) { transition-delay: 0.15s; }
    .nav-item.show .tab:nth-child(3) { transition-delay: 0.2s; }
    .nav-item.show .tab:nth-child(4) { transition-delay: 0.25s; }
    .nav-item.show .tab:nth-child(5) { transition-delay: 0.3s; }
    .nav-item.show .tab:nth-child(6) { transition-delay: 0.35s; }
    
    .menu{
        margin-left: auto;
        display: flex;
        transition: transform 0.3s ease;
        position: relative;
        z-index: 10000;
    }
    
    .menu.active {
    transform: rotate(90deg);
    }

    .menu .fa-bars {
    display: inline-block;
    }

    .menu .fa-xmark {
        display: none;
    }
    
    .menu.active .fa-bars {
        display: none;
    }

    .menu.active .fa-xmark {
        display: inline-block;
    }
    
    /* Add overlay for better UX */
    .menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .menu-overlay.show {
        opacity: 1;
        visibility: visible;
    }
}
@media(max-width: 768px){
    .main{
        margin-top: 50px;
        flex-direction: column;
        justify-content: center;
    }
    .logo{
        width: 200px;
    }
    .name{
        font-size: x-large;
    }
    .about{
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .other-journey{
        width: 310px;
    }
    .skill-page{
        display: flex;
        flex-direction: column;
    }
    .devtools-journey{
        width: 310px;
    }
    .project-section{
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .project-features{
        width: 350px;
    }
    .project-feat{
        display: flex;
        flex-direction: column;
        gap: 20px;
        justify-content: center;
        align-items: center;
    }
    .service-disp{
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    .ser-card{
        width: 310px;
    }
    .contact-page{
        display: flex;
        flex-direction: column;
    }
}

@media (min-width: 768px) and (max-width: 1350px){
    .service-disp{
        display: grid;
        grid-template-areas: "program frontend" "uiser projectser";
        gap: 20px;
    }
    .ser-card{
        width: 310px;
    }
}