/* ======================== Page Resppnsive ======================== */
@media (max-width: 1300px) {
    .experience__bar{
        right: 70%;
    }

    .erroser{
        height: 530px;
        width: 40px;
    }
}

@media (max-width: 1206px) {
    .about{
        margin: 40px 60px;
        justify-content: space-between;
    }
    .about_content .content{
        margin: 0px 100px 0px -100px;
    }
    .about_content .content .outfit-font{
        width: 450px;
    }
}

@media (max-width: 1131px) {
    .projects_tools{
        margin-top: 10px;
    }
}

@media (max-width: 1103px) {
    .hero_header{
        font-size: 45px;
    }
    .line1{
        font-size: 25px;
    }

    .about_content .content{
        margin: 0px 50px 0px -50px;
    }

    .project_img{
        height: 450px;
    }
    .project_img img{
        position: relative;
        padding: 40px;
        border-radius: 60px;
        top: 50px;
    }

    .projects_tools{
        margin-top: 20px;
    }
    .projects_tools li{
        border: none;
        /* background-color: white; */
        width: auto;
        height: auto;
        /* border-radius: 5px; */
        padding: 0px;
    }
    .projects_tools li img{
        width: 40px;
    }
    .projects_tools span{
        display: none;
    }

    .erroser{
        /* height: 500px; */
        width: 40px;
    }

    .skill_toole{
        margin-top: -120px;
    }
    
}


@media (max-width: 1044px) {
    .waving__hand{
        width: 30px;
        left: 39%;
    }

    .about_content{
        flex-direction: column;
        align-items: center;
    }

    .about_content{
        width: 70%;
    }

    .about_content h2{
        width: 100%;
    }

    .about_content .content .outfit-font{
        width: 180%;
    }
}


@media (max-width: 1000px) {
    .project_des li{
        font-size: 13px;
    }

    .projects_tools{
        margin-top: 20px;
    }

    .projects_tools li img{
        width: 30px;
    }

    .education_detels{
        gap: 50px;
    }

    .detels1,
    .detels2,
    .detels3{
        align-self: flex-start;
        margin-left: 0vw;
        width: 70vw;
    }

    .education_bar{
        left: 10vw;
    }

    .col1,
    .col2 {
        width: 48%;
    }

    /* Education section style adjystment */
}

@media (max-width: 940px) {
    .hero_header{
        font-size: 40px;
        text-align: center;
        padding: 0px 30px;
    }

    footer{
        width: 99vw;
    }

    .footer_content{
        padding: 0px 40px 20px 40px;
    }

    .arrow_up{
        margin-left: 10px;
    }
}

/* Add this to your responsive.css file */

@media (max-width: 870px) {
    .experience__bar{
        right: 67%;
    }

    .erroser{
        height: 450px;
    }

    /* Hide the project number counter and descriptions on mobile */
    .project_counting,
    .project_des_div {
        display: none;
    }

    /* Container for the circular carousel */
    .projects {
        position: relative;
        width: 100vw;
        height: 600px;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .project {
        position: relative;
        width: 99vw;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        perspective: 1500px;
        transform-style: preserve-3d;
        overflow-x: hidden;
    }

    /* Individual project items */
    .proj {
        position: absolute;
        width: 300px;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: grab;
        transform-style: preserve-3d;
    }

    .proj:active {
        cursor: grabbing;
    }

    .project_div {
        width: 100%;
        height: 400px;
        border-radius: 20px;
        transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .project_div_inner {
        width: 100%;
        height: 100%;
    }

    .project_img {
        height: 100%;
    }

    .project_img img {
        padding: 20px;
        top: 0;
        border-radius: 30px;
    }

    .msg {
        font-size: 14px;
        top: 20px;
        width: 90%;
        margin-left: 5%;
    }

    /* Carousel navigation buttons */
    .carousel-nav {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 20px;
        z-index: 200;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border: 2px solid rgba(255, 255, 255, 0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: white;
        font-size: 20px;
    }

    .carousel-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.1);
    }

    .carousel-btn:active {
        transform: scale(0.95);
    }

    /* Progress indicator dots */
    .carousel-dots {
        position: absolute;
        bottom: 80px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 200;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .carousel-dot.active {
        width: 24px;
        border-radius: 4px;
        background: rgba(255, 255, 255, 0.8);
    }

    /* Touch indicator */
    .touch-indicator {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255, 255, 255, 0.6);
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        animation: fadeInOut 3s ease-in-out infinite;
    }

    @keyframes fadeInOut {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 0.8; }
    }

    .footer_logo{
        width: 250px;
    }
}



/* ======================== Mobile Menu Animations (Width <= 840px) ======================== */

/* Base styles for mobile menu */
@media (max-width: 840px) {
    /* Quick Access Button Styles */
    .quick_access {
        opacity: 1 !important;
        /* position: fixed; */
        right: 50px;
        top: 25px;
        z-index: 300;
        cursor: pointer;
        transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        transform: rotate(0deg);
        transform-origin: bottom;
    }
    
    .quick_access img {
        width: 50px;
        filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
        transition: filter 0.3s ease;
    }
    
    .quick_access:hover img {
        filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
    }
    
    /* Mobile Menu Container */
    .menu_bar .menu {
        position: absolute;
        flex-direction: column;
        justify-content: flex-start;
        position: fixed;
        right: 0;
        top: 0;
        padding-top: 120px;
        width: 70vw;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(10, 10, 35, 0.95) 100%);
        border-radius: 0;
        gap: 0;
        backdrop-filter: blur(20px);
        border-left: 2px solid rgba(0, 212, 255, 0.3);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 200;
        overflow-y: auto;
        /* display: none; */
    }
    
    /* Closed state - menu off-screen */
    .menu_bar .menu.mobile-menu-closed {
        transform: translateX(100%);
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    
    /* Open state - menu visible */
    .menu_bar .menu.mobile-menu-open {
        transform: translateX(0);
        transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        pointer-events: auto;
    }
    
    /* Menu Items Styling */
    .menu_bar .menu li {
        backdrop-filter: blur(10px);
        width: 100%;
        /* height: 70px; */
        border-radius: 0;
        padding: 20px 40px;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
        position: relative;
        overflow: hidden;
        opacity: 1;
        transform: translateX(0);
    }
    
    .menu_bar .menu li::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 4px;
        height: 100%;
        background: linear-gradient(180deg, #00d5ff, #00b4d8);
        transform: scaleY(0);
        transition: transform 0.3s ease;
        transform-origin: bottom;
    }
    
    .menu_bar .menu li:hover::before {
        transform: scaleY(1);
        transform-origin: top;
    }
    
    .menu_bar .menu li a {
        color: white;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        letter-spacing: 1px;
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center;
        width: 100%;
    }
    
    .menu_bar .menu li a::after {
        content: '→';
        position: absolute;
        right: 20px;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
        color: #00d5ff;
    }
    
    .menu_bar .menu li:hover a::after {
        opacity: 1;
        transform: translateX(0);
    }
    
    .menu_bar .menu li:hover {
        background: rgba(0, 212, 255, 0.1);
        padding-left: 50px;
        transition: all 0.3s ease;
    }
    
    /* Main Page Blur Effect */
    .main__page {
        transition: filter 0.5s ease;
        /* will-change: filter; */
    }
    
    /* Scrollbar Styling for Menu */
    .menu_bar .menu::-webkit-scrollbar {
        width: 6px;
    }
    
    .menu_bar .menu::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .menu_bar .menu::-webkit-scrollbar-thumb {
        background: rgba(0, 212, 255, 0.3);
        border-radius: 3px;
    }
    
    .menu_bar .menu::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 212, 255, 0.5);
    }
    
    /* Menu Header (Optional decorative element) */
    .menu_bar .menu::before {
        content: 'MENU';
        position: absolute;
        top: 40px;
        left: 40px;
        font-size: 14px;
        letter-spacing: 3px;
        color: rgba(255, 255, 255, 0.5);
        font-weight: 600;
    }
    
    /* First menu item special styling */
    .menu_bar .menu li:first-child {
        margin-top: 0;
    }
    
    /* Last menu item special styling */
    .menu_bar .menu li:last-child {
        border-bottom: none;
    }
    
    /* Active menu item indicator */
    .menu_bar .menu li.active {
        background: rgba(0, 212, 255, 0.15);
        border-left: 4px solid #00d5ff;
    }
    
    /* Overlay effect when menu is open (optional) */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0);
        pointer-events: none;
        transition: background 0.5s ease;
        z-index: 150;
    }
    
    /* Show overlay when menu is open */
    body.menu-open::after {
        background: rgba(0, 0, 0, 0.5);
        pointer-events: auto;
    }

    .hero_context{
        margin-top: -50px;
    }

    .git_des{
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 40px;
    }

    .work{
        margin-top: 50px;
    }

    .project_img{
        height: 300px;
    }
}

/* ======================== Animation Keyframes ======================== */

@keyframes menuSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes menuSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes menuItemFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes menuItemFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}



@media (max-width: 780px) {
    .hero_context .line1{
        font-size: 20px;
    }

    .experience{
        width: 90vw;
    }

    .footer_content{
        flex-direction: column-reverse;
        gap: 20px;
        align-items: flex-start;
    }

    .footer_logo{
        width: 100%;
    }

    .footer_socials{
        width: 90vw;
        justify-content: space-between;
    }
}

@media (max-width: 740px) {
    .skill .content{
        flex-direction: column;
        gap: 40px;
        padding: 48px 100px;
    }

    .col1,
    .col2{
        width: 100%;
    }

    .erroser{
        display: none;
    }
}

@media (max-width: 740px) {
    .loading__text{
        font-size: 200px;
    }

    .menu_bar{
        width: 99vw;
    }

    .experience__column2 h2{
        font-size: 25px;
    }

    .experience__column2 .outfit-font{
        font-size: 14px;
    }

    .experience__column .tools ul li{
        font-size: 14px
    }

    .footer_socials {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .loading__text{
        font-size: 150px;
    }

    .line1{
        /* left: 0px; */
        right: 0px;
    }

    .hero_btn {
        flex-direction: column;
        left: 0px;
        right: 0px;
        gap: 20px;
        margin-top: 20px;
    }

    .about{
        margin: 40px 30px;
    }

    .about_content .content h2{
        /* width: 80vw; */
    }

    .experience__column .row1,
    .experience__column .row2{
        flex-direction: column;
        gap: 20px;
    }

    .experience__column1,
    .experience__column2{
        width: 90%;
        margin-left: 10%;
    }

    .experience__column1{
        border-bottom: 1px solid white;
        border-top: 1px solid white;
        padding: 10px 0px;
    }

    .experience__bar{
        right: 98%;
    }
    
    .projects {
        height: 500px;
    }

    .work .color__change,
    .education .color__change,
    .skill .heading,
    .tool_heading_text .color__change   {
        font-size: 30px;
    }

    .proj {
        width: 280px;
    }

    .project_div {
        height: 350px;
    }

    .msg {
        font-size: 12px;
    }

    .motion_bar{
        display: none;
    }

    .tools_line{
        gap: 10px;
    }

    .tools_line img{
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 550px) {
    .hero_context .line1{
        width:85%;
        background-color: rgba(0, 0, 0, 0.339);
        padding: 10px 20px;
        border-radius: 10px;
        /* backdrop-filter: blur(10px); */
    }

    .detels{
        width: 80vw;
        padding: 50px 20px;
    }

    .detels3{
        padding: 30px 30px 100px 30px;
    }

    .detels_heading h3{
        width: 60%;
    }

    .detels_heading span{
        margin: 0px;
        width: 90px;
        position: relative;
        left: 15px;
    }

    .education_bar{
        left: 15px;
    }

    .education_point{
        width: 30px;
        height: 30px;
        left: -14px;
    }

    .tools_line img{
        width: 30px;
        height: 30px;
    }

}

@media (max-width: 500px) {
    .loading__text{
        font-size: 100px;
    }

    .letest{
        width: auto;
        gap: 5px;
        font-size: 12px;
    }

    .hero_new{
        margin-right: 5px;
        font-size: 10px;
    }

    .hero_header{
        font-size: 30px;
    }

    .hero_context .line1{
        font-size: 16px;
    }

    .img_div img{
        width: 40px;
        border-radius: 10px;
    }

    .about_content{
        width: 100%;
    }

    .about h1{
        font-size: 30px;
    }

    .about_content .content{
        width: 100%;
        margin: 0px;
    }

    .about h2{
        font-size: 40px;
        width: 100%;
        text-align: center;
    }

    .about_content .content .outfit-font{
        width: 100%;
        text-align: center;
        font-size: 16px;
    }

    .experience__column .tools ul li{
        font-size: 11px;
    }

    .experience__bar img{
        width: 35px;
        height: 35px;
    }

    .git_des {
        gap: 20px;
    }

    .git_des .des{
        width: 120px;
    }

    .git_content p{
        font-size: 12px;
        width: 50px;
    }
    
    .project_img{
        width: 80%;
    }

    .project_img img{
        top: 50px;
    }

    .row1 p,
    .row2 p{
        font-size: 10px;
        display: flex;
        justify-content: center;
    }

    .row1 h2,
    .row2 h2{
        font-size: 25px;
    }

    .skill .content{
        padding: 30px;
    }
}
