/* Responsive CSS for screens less than 476px */
@media only screen and (max-width: 476px) {
    /* General adjustments */
    body {
        overflow-x: hidden;
    }
    
    * {
        font-size: 14px;
        margin: 0;
    }
    
    /* Header adjustments */
    header {
        min-height: 60px;
        max-height: 60px;
        padding: 0 5px;
        width: 100%;
    }
    
    .logo {
        font-size: 20px;
        margin-left: 15px;
    }
    
    
    .nav-opt a {
        height: 40px;
        width: 40px;
        font-size: 16px;
        border-width: 2px;
    }
    
    .spl-btn {
        width: auto;
    }
    
    .hr-me button {
        height: 40px;
        width: 80px;
        font-size: 12px;
    }
    
    /* Social links adjustments */
    .socio-links{
        height: 160px;
        width: 50px;
        background-color: #ffffff00;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        top: 50%;
        left: -5px;
        transform: translateY(-50%);
        border-radius: 10px;
        border: 0px solid #ffffff00;
        position: fixed;
        z-index: 1000;
    }
    
    .socio-links a{
        height: 40px;
        width: 40px;
        font-size: 50px;
        border: 1px solid rgba(0, 0, 0, 0);
        display: flex;
        place-items: center;
        justify-content: center;
        background-color: #fff;
        border-radius: 4px;
    }
    
    .fa-linkedin, .fa-square-facebook{
        color: #24449e;
        font-size: 40px;
    }
    
    .fa-square-whatsapp{
        color: #08ff00;
        font-size: 40px;
    
    }
    
    .fa-square-github{
        color: black;
        font-size: 40px;
    }
    
    
    /* Hero section adjustments */
    .hero-sec {
        flex-direction: column-reverse;
        height: auto;
        width: 100%;
    }
    
    .hero-left, .hero-right {
        width: 100%;
        padding: 20px;
    }
    
    .hero-left {
        height: 370px;
        font-size: 16px;
        text-align: center;
        padding-top: 30px;
    }
    

    .hero-left h1, h1 span{
        font-size: 20px;
    }

    /* .hero-left{
        height: 98%;
        width: 69%;
        background: #ffffff00;
        padding-top: 10vh;
        padding-left: 7vh;
        color: white;
        font-size: 1.8vw;
    } */
    
    .auto-write {
        font-size: 14px;
        height: 170px;
        width: 80%;
        white-space: pre-line; /* Yeh multiline type hone dega */
        border-right: 3px solid rgba(0, 0, 0, 0);
        text-align: justify;
        display: inline-block;
        overflow: hidden;
        outline: 1px solid rgba(255, 255, 255, 0);
    }
    
    @keyframes blink {
        50% { border-color: transparent; }
    }








    .hero-right {
        height: 350px;
        padding-top: 0;
        display:flex;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0);
    }
    
    .divv {
        height: 200px;
        width: 200px;
    }
    
    .divv{
        height: 40vh;
        width: 40vh;
        height: 250px;
        width: 250px;
        /* background-color: #ffd500; */
        background-color: #56b6ff;
        /* top: 50%;
        left: 50%;
        border-radius: 50%;
        transform: translate(-50%, -50%); */
        outline-offset: 1vh;
        outline-offset: 10px;
        /* outline: 1vw dotted rgb(255, 145, 0); */
        outline: 1vw dotted #4969f9;
        outline: 10px dotted #4969f9;
        animation-name: rotateb;
        animation-duration: 20s;
        animation-iteration-count: infinite;
        /* animation-direction: alternate-reverse; */
        /* animation-timing-function: ease; */
        animation-fill-mode:backwards;
    }


    .imgs{
        z-index: 2;
        height: 250px;
        width: 250px;
        display: flex;
        border-radius: 50%;
        justify-content: center;
        filter: drop-shadow(0 4px 2px rgb(0, 0, 0));
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0);
    }

    /* .imgs img{
        height: 90px;
        width: 90px;
    } */


    .imgs img{
        height: 100%;
        width: 100%;
    }
/* .................................................... */
    .res-down {
        width: 150px;
        height: 45px;
        font-size: 14px;
        margin: 0 auto;
        background-color: #0048ff;
    }
    
    /* Education section adjustments */
    .b1 {
        height: auto;
        width: 100%;
        padding: 20px 0;
    }
    
    .edu-grid {
        flex-direction: column;
        height: auto;
    }
    
    .strd {
        width: 90%;
        height: auto;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .std-head {
        height: 120px;
        width: 120px;
        margin: 0 auto;
    }
    
    .dnfrm, .edu-title h1 {
        font-size: 18px;
    }
    
    .strd button {
        width: 60%;
        font-size: 14px;
    }
    

    .strd a{
        height: auto;
        width: auto;
        border: none;
    }
    
    .strd button{
        height: 40px;
        width: 200px;
        border-radius: 0.5vh;
        background-color: #0073ff;
        font-size: 2.5vh;
        color: white;
        border: transparent;
        position: relative;
        z-index: 10;
    }




    /* Experience section adjustments */
    .b2 {
        height: auto;
        width: 100%;
        padding: 20px 0;
    }
    
    .exp-hold {
        flex-direction: column;
        height: auto;
        width: 95%;
    }
    
    .exps {
        width: 95%;
        height: 540px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 20px;
    }
    
  


    .jb-logo {
        height: 200px;
    }
    
    .job-role {
        height: auto;
        padding: 15px;
    }


    .jbr2{
        height: 320px;
    }
    
    /* Projects section adjustments */
    .b3 {
        height: auto;
        width: 100%;
        padding: 20px 0;
    }
    

    .project-holder{
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: space-around;
        scrollbar-width: thin; /* For modern browsers */
        padding: 10px;
        height: 102vh;
        height: auto;
        width: 87vw;
        gap: 50px; /* Spacing between frames */
        border: 1px solid rgba(0, 0, 0, 0);
    }


    .projects {
        width: 95%;
        height: auto;
    }
    
    .arowbtn{
        display: none;
    }


    .projects iframe {
        height: 300px;
        width: 100%;
    }
    

    
.projects iframe{
    margin: 1vh auto;
    height: 70vh;
    width: 83vw;
    border-radius: 1vh;
    border: transparent;
}

.amzn iframe{
    margin: 1vh auto;
    height: 70vh;
    width: 1200px;
    border-radius: 1vh;
    border: transparent;
}


    .projects h3, .projects p, .projects ul, .projects p a {
        font-size: 16px;
    }
    





    /* Excel projects section adjustments */
    .b4 {
        height: auto;
        width: 100%;
        padding: 20px 0;
    }
    
    .exl-wrks {
        height: auto;
        flex-direction: column;
        overflow-x: hidden;
        padding: 10px 0;
    }
    
    .exl-frame {
        flex: 0 0 auto;
        width: 95%;
        height: auto;
        margin-bottom: 20px;
    }
    
    .exl-title {
        height: 20px;
        font-size: 16px;
    }
    
    .exl-frame iframe, .exl-frame video {
        height: 300px;
        height: fit-content;
        background-color: #00d9ff;
    }
    
    /* ......................................... */

/* .......................................... */
.b4{
    background-color: rgb(255, 255, 255);
    height: 110vh;
    display: flex;
    flex-direction: column;
}

.exl-wrks {
    display: flex;
    flex-direction: row;
    /* overflow-y: hidden; */
    overflow-y: hidden;
    overflow-x: scroll;
    scrollbar-width: thin; /* For modern browsers */
    gap: 10px; /* Spacing between frames */
    height: 96vh;
    width: 94%;
    height: 240px;
    gap: 20px;
    background-color: #c7c5c55f;
    background: #ffffff;
    vertical-align: middle;
    padding: 0 2px;
    margin: 0 auto;
}



.exl-frame {
    /* flex: 0 0 92vw; 
    flex: 0 0 500px; */
    /* Ensures each frame has a fixed width */
    height: 220px; /* Adjust as needed */
    border: 0px solid #0051ff; /* Optional: Frame border styling */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.5); /* Optional: Add shadow for visual appeal */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    border: 1px solid rgba(0, 0, 0, 0);
    background-color: #ffffff;
    border-radius: 1vh;
    width: 100%;
    height: fit-content;
}

.exl-title {
    font-weight: bold;
    text-align: center;
    height: 5vh;
    height: 30px;
    display: flex;
    background-color: #057c3f;
    justify-content: center;
    color: white;
    font-size: 2vh;
    border-top-right-radius: 1vh;
    border-top-left-radius: 1vh;
}


/* 
.exl-frame iframe{
    height: 85vh;
    height: 250px;
    width: 100%;
    background-color: #ffffff;
    border-bottom-right-radius: 1vh;
    border-bottom-left-radius: 1vh;
} */

.exl-frame video{
    height: 85vh;
    height: 200px;
    height: max-content;
    width: 100%;
    background-color: #ffffff;
    border-bottom-right-radius: 1vh;
    border-bottom-left-radius: 1vh;
}



.scroll-btns{
    display: none;
}



/* ................................................. */
    /* Skills section adjustments */
    .myskill {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        width: 95%;
    }
    
    .skil-box {
        width: 100%;
        height: auto;
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .skill-head {
        grid-column: span 1;
        font-size: 18px;
    }
    
    .skill-img {
        height: 80px;
        width: 80px;
        margin: 0 auto;
    }
    
    .skil-box button {
        width: 70%;
        font-size: 14px;
    }
    

    
.skil-box a{
    height: auto;
    width: 70%;
    border: 1px solid rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    text-decoration: none;
}

.skil-box button{
    height: 7vh;
    width: 100%;
    border-radius: 0.5vh;
    background-color: #0073ff;
    font-size: 1.5vw;
    color: white;
    border: transparent;
    position: relative;
    z-index: 10;
}





    /* Footer adjustments */
    .footer {
        height: auto;
        width: 100%;
        padding: 20px 0;
    }
    
    .parent {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 20px;
        padding: 20px 0;
    }
    
    .copyright {
        padding: 20px 0;
    }
    
    /* Hide some elements on mobile */
    .abutme {
        display: none;
    }
    
    /* Adjust all section titles */
    .edu-title h1, .exp-title h1, .proj-title h1, .skill-head h1 {
        font-size: 24px;
        text-align: center;
        margin-bottom: 20px;
    }
    
    /* Make sure all boxes have proper spacing */
    .box {
        padding: 20px 0;
        height: auto;
    }
}




/* Original grid layout */
.myskill {
    display: grid;
    grid-template-columns: repeat(3, 25vw);
    grid-template-rows: repeat(4, auto);
    gap: 25px;
    margin: 2vw auto;
}

/* Responsive grid layout for screens < 476px */
@media only screen and (max-width: 476px) {
    .myskill {
        display: grid;
        grid-template-columns: 1fr; /* Single column */
        grid-template-rows: auto; /* Automatic rows */
        gap: 20px;
        width: 90%;
        margin: 20px auto;
    }

    .skill-head {
        grid-column: span 1; /* Only span 1 column now */
        height: auto;
        padding: 15px 0;
        font-size: 24px; /* Larger font for mobile */
    }

    /* Reset all box positions to flow naturally in single column */
    .box1, .box2, .box3, 
    .box4, .box5, .box6,
    .box7, .box8, .box9 {
        grid-row-start: auto; /* Let grid auto-place items */
        grid-column-start: auto;
    }

    .skil-box {
        width: 100%;
        height: auto;
        padding: 20px;
        margin-bottom: 15px;
    }

    .skill-img {
        height: 80px;
        width: 80px;
        margin: 0 auto;
    }

    .about-skill {
        height: auto;
        padding: 10px 0;
    }

    .skil-box button {
        width: 100%;
        font-size: 16px;
        margin: 10px auto;
    }
}



/* ..................................................... */

@media only screen and (max-width: 476px) {

    

    /* Hide nav-opt by default on mobile */
    .nav-opt {
        display: none;
        position: absolute;
        top: 60px; /* Height of header */
        right: 0px;
        background-color: #031f4f;
        background-color: #747373a4;
        backdrop-filter: blur(10px);
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0,0,0,0.2);
        flex-direction: column;
        width: 210px;
        padding: 0 1px;
        z-index: 1000;       
    }

    /* Show nav-opt when active class is added */
    .nav-opt.active {
        display: flex;
        justify-content: center;
        border: 1px solid white;
        backdrop-filter: blur(10px);
    }

    /* Style hamburger icon */
    .hamburger {
        display: block;
        font-size: 30px;
        color: #0048ff;
        cursor: pointer;
        padding: 10px;
        margin-right: 10px;
    }

    /* Style nav-opt links for mobile */
    .nav-opt a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        height: auto;
        padding: 5px;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        text-align: left;
    }

    .nav-opt a:hover{
        background: #302f2f90;
    }

    /* Add text next to icons */
    .nav-opt a::after {
        content: attr(title);
        border: 1px solid rgba(255, 255, 255, 0);
        margin-left: 10px;
        font-weight: 700;
        color: #ffffff;
    }

    .nav-opt a i{
        height: 50px;
        width: 50px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        font-size: 27px;
        border: 4px solid rgb(0, 135, 254);
        z-index: 100;
        background: linear-gradient(to top right, #030365, #00d9ff);
    background-size: 300%; /* Makes gradient larger for smooth animation */
    background-clip: text;
    -webkit-background-clip: text; /* For Safari */
    color: transparent; /* Makes the text itself transparent */
    }


    /* Style the HIRE ME button */
    .spl-btn {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #00000000;
    }

    .hr-me button {
        width: 100%;
        height: 40px;
        font-size: 20px;
        font-weight: 700;
    }

    .gear-bg{
        background-color: #fff;
        border-radius: 50%;
    }

.edu-title span,
.exp-title span,
.proj-title span,
.skill-head span{
    font-size: 30px;
    letter-spacing: 2px;
}




    /* Hide hamburger on larger screens */
    @media only screen and (min-width: 477px) {
        .hamburger {
            display: none;
        }
    }




    .footer{
        height: 100vh;
        width: 100%;
        background-color: #ffffff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        background-color: #08113e;
    }
    
    .footer-content{
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 90%;
        width: 95%;
        background-color: #e60d0d00;
        border-bottom: 2px solid white;
    }
        
    .footer-brand{
        display: flex;
        flex-direction: column;
        align-items: center;;
        height: 45%;
        width: 100%;
        background-color: rgba(255, 255, 0, 0);
        padding: 2vh 0;
    }
    
    .footer-brand .logo {
        font-size: 2.2rem;
        font-weight: bold;
        background: linear-gradient(to right, #5b3295, #1ee0ce);
        background-clip: text;
        -webkit-background-clip: text;
        color: rgba(255, 255, 255, 0);
        margin-bottom: 1rem;
      }
    
    
    
    
    .footer-links{
        /* display: flex;
        flex-direction: column;
        justify-content: space-evenly; */
        height: 50%;
        width: 100%;
        background-color: rgba(181, 216, 110, 0);
    }
    
    .links-column{
        background-color: #e9818100;
        height: 95%;
        width: 33%;
    }
    
    
    .links-column h3 {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        position: relative;
        padding-bottom: 0.5rem;
        text-align: center;
        color: #fff;
      }
      
      .links-column h3::after {
        content: '';
        position: absolute;
        left: 50%;
        transform: translate(-50%);
        bottom: 0;
        width: 70px;
        height: 3px;
        background: linear-gradient(to right, #5b3295, #1ee0ce);
      }
    
    
    .links-column ul li{
        display: block;
        margin: 20px auto;
        width: 90%;
        text-align: left;
        list-style: none;
        background-color: #00d9ff00;
        text-decoration: none;
    }
    .links-column ul {
        list-style: none;
      }
      
      .links-column ul li {
        margin-bottom: 0.8rem;
        display: flex;
        align-items: center;
      }
      
      .links-column ul li a,
      .links-column ul li {
        color: rgba(255, 255, 255, 0.7);
        text-decoration: none;
        transition: all 0.3s ease;
        font-size: 0.8rem;
      }
      
      .links-column ul li a:hover {
        color: #fff;
        transform: translateX(5px);
      }
      
      .links-column ul li i {
        margin-right: 0.5rem;
        font-size: 1.7vw;
        color: #1ee0ce;
      }
    
    
    
    .footer-bottom{
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 10%;
        width: 85%;
        background-color: #00aaff00;
    }
    
    .tagline {
        color: rgba(255, 255, 255, 0.8);
        margin-bottom: 1.5rem;
        font-size: 1rem;
      }
      
      .footer-social {
        display: flex;
        gap: 1rem;
      }
      
      .footer-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        width: 50px;
        height: 50px;
        border: 2px solid #ffffff;
        background: rgb(255, 255, 255);
        border-radius: 10%;
        color: #ffffff00;
        font-size: 2vw;
        transition: all 0.3s ease;
      }
      
      .footer-social a:hover {
        background: linear-gradient(to right, #5b3295, #1ee0ce);
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(91, 50, 149, 0.3);
      }
    
    
    
    
    
      .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        gap: 2px;
        align-items: center;
        position: relative;
        z-index: 1;
      }
      
      .footer-bottom p {
        color: rgb(255, 255, 255);
        font-size: 1vw;
      }
      
      .legal-links {
        display: flex;
        gap: 1vw;
        align-items: center;
      }
      
      .legal-links a {
        color: rgb(255, 255, 255);
        text-decoration: none;
        font-size: 0.9rem;
        transition: all 0.3s ease;
      }
      
      .legal-links a:hover {
        color: #fff;
      }
      
      .legal-links span {
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.8rem;
      }
    
    
    



}
