@media (max-width: 1024px) {
    #mode{
        z-index:1000;
    }
    button.cvbtn{
        z-index: 1000;
    }
    #header {
        width: 100%;
        height: 100vh;
        background-image: url("mainimageimproved.PNG");
        background-size: cover;
        background-position: center; 
        background-repeat: no-repeat; 
        position: relative; 
        overflow: hidden; 
    }

    #header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: inherit;
        background-size: cover;
        background-position: center;
        filter: drop-shadow(5px 5px 10px rgba(255, 0, 79, 0.5)); 
        animation: glowRed 2s infinite alternate; 
        z-index:-1;
    }

    @keyframes glowRed {
        0% {
            filter: drop-shadow(5px 5px 10px rgba(255, 0, 79, 0.5));
        }
        100% {
            filter: drop-shadow(5px 5px 20px rgba(255, 0, 79, 0.8));
        }
    }

    #open-menu {
        display: block;
    }
    #close-menu {
        display: block;
    }
}

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: portrait) {
    #header {
        width: 100%;
        height: 100vh;
        background-image: url("mainimageimproved.PNG");
        background-size: cover;
        background-position: center; 
        background-attachment: fixed;
        background-repeat: no-repeat; 
        position: relative; 
        overflow: hidden; 
    }

    #header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: inherit;
        background-size: cover;
        background-position: center;
        filter: drop-shadow(5px 5px 10px rgba(255, 0, 79, 0.5));
      
        animation: glowRed 2s infinite alternate;
    }

    @keyframes glowRed {
        0% {
            filter: drop-shadow(5px 5px 10px rgba(255, 0, 79, 0.5));
        }
        100% {
            filter: drop-shadow(5px 5px 20px rgba(255, 0, 79, 0.8));
        }
    }
}

@media (min-width: 1025px) {
    #mode{
        z-index:1000;
    }
    button.cvbtn{
        z-index: 1000;
        cursor: pointer;
    }
    #header {
        width: 100%;
        height: 100vh;
        background-image: url("mainimageimproved.PNG");
        background-size: cover;
        background-position: center; 
        background-repeat: no-repeat;
        background-attachment: fixed; 
        display: inline-block;
        background-attachment: fixed;
        position: relative;
        overflow: hidden; 
    }

    #header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-attachment: fixed;
        background-image: inherit;
        background-size: cover;
        background-position: center;
        filter: drop-shadow(5px 5px 10px rgba(255, 0, 79, 0.5));
        z-index:-1;
        animation: glowRed 2s infinite alternate; 
    }
    #mode{
        z-index:1000;
    }

    @keyframes glowRed {
        0% {
            filter: drop-shadow(5px 5px 10px rgba(255, 0, 79, 0.5));
        }
        100% {
            filter: drop-shadow(5px 5px 20px rgba(255, 0, 79, 0.8));
        }
    }

    #open-menu {
        display: none;
    }

    #close-menu {
        display: none;
    }

    button .cvbtn {
        margin-left: 5%;
    }
}


@media (min-width: 600px) and (max-width: 1024px) { /*----ipad pro------*/
    #open-menu {
        display: none;
    }
    #close-menu {
        display: none;
    }

    #header {
      
        background-size: 1px;
        background-position: 100% 0;
        background-repeat: no-repeat;
        width: 100%;
        height: 600px;
        padding: 10px 0;
        margin: 0;
        position: relative; /* For the pseudo-element */
        overflow: hidden; /* Prevents overflow during animation */
    }

    #header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: inherit;
        background-size: cover;
        background-position: center;
        filter: drop-shadow(5px 5px 10px rgba(255, 0, 79, 0.5));
        z-index: -1; 
        animation: glowRed 2s infinite alternate;
    }

    @keyframes glowRed {
        0% {
            filter: drop-shadow(5px 5px 10px rgba(255, 0, 79, 0.5));
        }
        100% {
            filter: drop-shadow(5px 5px 20px rgba(255, 0, 79, 0.8));
        }
    }
}
@media (min-width: 601px) and (max-width: 820px) { /* iPad Air, iPad Mini, and similar devices */
    body {
  
    #header {
        background-image: url("mainimageimprovedmobile.PNG");
        background-size: 1px;
        background-position:100% 70%;
        background-repeat: no-repeat;
        height: 750px;
        padding: 10px 0;
        margin: 0;
        position: relative; 
        overflow: hidden;
    }

    #header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: inherit;
        background-attachment: fixed;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center 10px;
        filter: drop-shadow(5px 10px 10px rgba(190, 30, 30, 0.5));
        z-index: -1; 
        animation: glowEffect 1s infinite alternate; 
    }

    
    @keyframes glowEffect {
        0% {
            filter: drop-shadow(5px 5px 10px rgba(227, 24, 24, 0.5));
        }
        100% {
            filter: drop-shadow(5px 5px 20px rgba(255, 0, 79, 0.8));
        }
    }
}

    .body {
        padding: 1px;
    }

    nav {
        width: auto;
        
    }

    nav ul {
        display: flex;
        width:fit-content;
        gap: 1px;
      
        
    }

    nav img .logo {
        height: 20px;
    }

    .about-col-1 img { 
        top: -50px; 
        left: -30px; 
        width: auto; 
        height: auto; 
        min-width: 100%; 
        min-height: 100%;
    }
}


/* -------------------for small scren---------------------------------*/

@media only screen and (max-width: 600px) {
    body {
        margin: 0;
        padding: 0;
    }
    #header {
        position: relative; /* Positioning context for pseudo-element */
        background-image: url("mainimageimprovedmobile.PNG");
        height: 40%;
        background-attachment: absolute;
    }
    #header::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: inherit;
        background-size: cover;
        background-position: center;
        filter: drop-shadow(5px 10px 10px rgba(190, 30, 30, 0.5));
        z-index: -1;
        animation: glowEffect 1s infinite alternate; /* Add animation */
     
    }

    @keyframes glowEffect {
        0% {
            filter: drop-shadow(5px 5px 10px rgba(227, 24, 24, 0.5));
        }
        100% {
            filter: drop-shadow(5px 5px 20px rgba(255, 0, 79, 0.8));
        }
    }
    .tab-links{
        margin-right:16px;
    }
    .scroll {
        padding: 8px;
        right: 10px;
        bottom: 10px;
    }

    .scroll i {
        font-size: 20px;
    }

    .header-text {
        margin-top: 75%;
        font-size: 17px;
        margin-bottom: 105px;
        line-height: 17px;
        transform: translateY(5px);
    }

    .header-text h1 {
        font-size: 25px;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 99px;
        width: 100%;
        z-index: 1000;
        backdrop-filter: blur(30px);
        transition: none;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    nav #menu {
        display: block;
        font-size: 25px;
    }

    nav ul {
        display: flex;
        flex-direction: column;
        background: #ff004f;
        position: fixed;
        top: 0;
        z-index: 500;
        right: -200px;
        width: 30%;
        height: 100vh;
        padding-top: 50px;
        overflow-y: auto;
        transition: right 0.3s ease;
    }

    nav ul li {
        display: inline-block;
        margin: 30px;
        height: auto;
    }

    nav ul #menu {
        position: relative;
        top: 40px;
        cursor: pointer;
        left: 25px;
        z-index: 100;
    }

    nav ul button {
        width: 70px;
    }

    #close-menu {
        transform: translateY(-550px);
        margin-left: 10px;
        font-size: 30px;
        display: block;
    }

    #open-menu {
        font-size: 35px;
        z-index: 100;
        margin-right: 30px;
    }

    .work-list .work img {
        z-index: -600;
    }
    button.cvbtn {
        overflow: hidden;
        position: relative; /* Enable positioning */
        top: -100px; 
        left:-13px;
    }
    

}

/* iPad media query */
@media (max-width: 896px) {
    .about {
        padding: 40px;
        height: auto;
    }

    .row {
        flex-direction: column;
        height: auto;
    }

    .about-col-1 {
        flex-basis: 20%;
        height: auto;
    }

    .about-col-1 img {
        width: 100%;
        height: auto;
        object-fit: contain;
        display:block;
    }

    .about-col-2 {
        flex-basis: 100%;
        height:auto;
    }
}
