@media screen and (min-width: 1280px) {
    /* #profile-normal{
        display: none;
    }
    #profile-hover{
        display: flex;
    } */
    .absolute {
        top: 50px !important;
    }
    .timeline-item::before {
        font-size: 2rem;
    }
    .second-mile {
        max-width: 300px;
    }
    .fourth-mile {
        max-width: 300px;
    }
    .sixth-mile {
        max-width: 200px;
    }
    .seventh-mile {
        max-width: 500px;
    }
    .third-mile {
        margin-top: 50px;
        max-width: 300px;
    }
    .fifth-mile {
        margin-top: 50px;
        max-width: 200px;
    }

    /* section,
    .section-container {
        height: fit-content;  
    } */

    section {
        margin: 0% 10%;
    }
    .slogan-inline-btn{
        margin-top: 55vh;
    }
}
@media screen and (min-width: 1400px) {
    .profile-section{
        height: 90vh;
        margin-top: 10vh;
    }
}

@media screen and (max-width: 1400px) {
    .about-containers1 {
        flex-wrap: wrap;
    }
    

    /* #profile-normal {
        display: flex;
    }
    #profile-hover {
        display: none;
    } */

    #skills,
    .experience-details-container {
        margin-top: 2rem;
    }

    #profile, 
    .section-container {
        display: block;
    }

    .arrow {
        display: none;
    }

    section,
    .section-container {
        height: fit-content;  
    }

    section {
        margin: 0 10%;
    }
    .section-pic-container {
        height: 275px;
        width: 275px;
        margin: 0 auto 2rem;
    }

    .about-containers1 {
        margin-top: 0;
        flex-direction: row;
    }
    .contact-info-upper-container {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 1280px) {
    .about-containers1 {
        flex-wrap: wrap;
    }

    #desktop-nav {
        display: none;
    }
    #hamburger-nav {
        display: flex;
    }

    .second-mile {
        max-width: 200px;
    }
    .fourth-mile {
        max-width: 200px;
    }
    .sixth-mile {
        max-width: 200px;
    }

    .third-mile {
        margin-top: 0;
        max-width: 200px;
    }
    .fifth-mile {
        margin-top: 0;
        max-width: 200px;
    }
    .seventh-mile {
        margin-top: 0;
        max-width: 200px;
    }
}

@media screen and (max-width: 600px) {
    #contact,
    footer {
        height: 40vh;
    }
    #profile {
        height: 86vh;
        margin-bottom: 0;
    }

    /* Add a dark overlay above the video background for mobile to improve text contrast */
    .background-video::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 2;
        pointer-events: none;
    }

    /* Profile section responsive adjustments */
    #profile {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        height: 66vh;
        margin: 0;
        padding: 0 1rem;
        margin-top: 17vh;
    }
    .section-text.profile-text {
        position: static;
        margin: 0;
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .name {
        font-size: 4rem !important;
        word-break: break-word;
        margin-bottom: 0.5rem;
    }
    .section-pic-container {
        width: 160px;
        height: 160px;
        margin: 0 auto 1rem auto;
    }
    .profile-photo {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .inline-container, .inline-2 {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    .uni-logo {
        height: 28px;
    }
    .slogan-inline-btn {
        margin-top: 2rem;
        gap: 1rem;
    }
    .inline-btn-social-container {
        gap: 1rem;
    }
    .section-text-p2, .section-text-p3 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        color: rgb(67, 66, 66);
    }
    .section-text-p4 {
        font-size: 0.8rem;
        color: rgb(67, 66, 66);
    }
    .title {
        font-size: 2rem;
    }
    .quote {
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
    }
    .imagine {
        font-size: 1.2rem;
    }
    .achieve {
        font-size: 1.5rem;
    }
    /* Ensure overlay is above video but below content */
    .background-video {
        z-index: -9999;
    }

    .mobile-bg {
        display: block;
    }
    .desktop-bg {
        display: none;
    }
    
    /* Add a stronger gradient for the mobile video */
    .background-video::after {
        background: linear-gradient(
            to bottom,
            rgba(255,255,255,0) 30%,
            rgba(255,255,255,0.5) 70%,
            rgba(255,255,255,0.9) 90%,
            #fff 100%
        );
    }

    .loading-content h2 {
        font-size: 2rem;
    }
    
    .loading-content p {
        font-size: 1rem;
    }
    
    .loading-spinner {
        width: 30px;
        height: 30px;
    }
}

/* ...existing code... */

@media screen and (min-width: 601px) {
    /* Remove overlay for larger screens */
    .background-video::before {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    article {
        font-size: 1rem;
    }
    
    footer nav {
        height: fit-content;
        margin-bottom: 2rem;
    }
    .about-containers1,
    .contact-info-upper-container,
    .btn-container {
        flex-wrap: wrap;
    }

    .contact-info-container {
        margin: 0;
    }

    .contact-info-container p,
    .nav-links li a {
        font-size: 1rem;
        line-height: 3rem;
    }
    .experience-subtitle {
        font-size: 1.5rem;
    }
    .logo {
        font-size: 2rem;

        img{
            width: 50px;
        }
    }
    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    .section-pic-container {
        width: auto;
        height: 46vw;
        justify-content: center;
    }
    .forward-icon {
        display: none;
    }
    .title {
        font-size: 2rem;
    }
    .details-container {
        padding: 0.7rem;
    }
    .project-img {
        width: 200px;
    }
    .text-container {
        text-align: justify;
    }
    .rightbtn, .leftbtn {
        display: none;
    }
    .about-containers2 {
        margin-left: 0rem;
        margin-right: 0rem;
        padding: 2rem 1rem;
    }

    .about-containers1 {
        margin-top: 0;
        flex-direction: column;
    }
    .section-text-p3 {
        font-size: 1rem;
    }
    .nav {
        height: 14vh;
    }
    .name {
        white-space: nowrap;
        font-size: 2.3rem;
    }

    .achv-photo {
        width: 250px;
    }

    .achv-member {
        /* height: 2rem; */
    }
    .achievement-container {
        flex-direction: column;
        gap: 0rem;
        padding: 1rem;
    }
    .achv-title {
        text-wrap: wrap;
        font-size: 1.2rem;
    }

    .absolute {
        overflow-x: hidden;
    }
    .opacity-50 {
        opacity: 0.1;
    }
    .achv-photo-container {
        margin-top: 0rem;
        gap: 0.5rem;
    }
    .place-container {
        margin-top: 0.7rem;
        margin-bottom: 0.7rem;
    }
    
    .section-text-p2 {
        font-size: 1.2rem;
    }
    .imagine {
        font-size: 1.5rem;
    }
    .achieve {
        font-size: 2rem;
    }
    .timeline-upper {
        flex-direction: column;
    }
}

@media screen and (max-width: 500px) {
    /* .quote {
        flex-direction: column;
    } */
    .imagine {
        font-size: 1.5rem;
    }
    .achieve {
        font-size: 2rem;
    }
    
    /* Slider buttons responsive styles */
    .btn2.leftbtn,
    .btn2.rightbtn {
        width: 50px;
        height: 50px;
    }
    
    .btn2.leftbtn .icon,
    .btn2.rightbtn .icon {
        width: 24px;
        height: 24px;
    }
    
    .experience-details-container-project {
        padding: 0 0.5rem;
        gap: 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    .btn2.leftbtn,
    .btn2.rightbtn {
        width: 48px;
        height: 48px;
    }
    
    .btn2.leftbtn .icon,
    .btn2.rightbtn .icon {
        width: 22px;
        height: 22px;
    }
    
    .experience-details-container-project {
        padding: 0 0.25rem;
        gap: 0.5rem;
    }
}

.logo-img-mobile {
    width: 35px;
    height: 35px;
    margin-right: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Swipe hint adjustments for smaller mobile screens */
@media screen and (max-width: 480px) {
    .swipe-hint {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        bottom: 0.5rem;
        gap: 0.35rem;
    }
    
    .swipe-hint svg {
        width: 16px;
        height: 16px;
    }
}

/* Footer Links Media Queries */
@media screen and (max-width: 1200px) {
    footer .nav-links {
        font-size: 1rem;
        gap: 1.2rem;
    }
}

@media screen and (max-width: 900px) {
    footer .nav-links {
        font-size: 0.95rem;
        gap: 1rem;
    }
    
    footer nav {
        margin-bottom: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    footer .nav-links {
        font-size: 0.9rem;
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    footer .nav-links li a {
        line-height: 2.5rem;
    }
}

@media screen and (max-width: 600px) {
    footer .nav-links {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
    
    footer .nav-links li a {
        line-height: 2.2rem;
    }
}

@media screen and (max-width: 480px) {
    footer .nav-links {
        font-size: 0.8rem;
        gap: 0.3rem;
        padding: 0 0.5rem;
    }
    
    footer .nav-links li a {
        line-height: 2rem;
        padding: 0.3rem 0.5rem;
    }
    
    footer {
        height: auto;
        padding: 1rem 0.5rem;
    }
}

@media screen and (max-width: 380px) {
    footer .nav-links {
        font-size: 0.75rem;
        gap: 0.2rem;
    }
    
    footer .nav-links li a {
        line-height: 1.8rem;
        padding: 0.2rem 0.4rem;
    }
}

/* Scroll to Top Button Responsive */
@media screen and (max-width: 768px) {
    .scroll-to-top {
        width: 55px;
        height: 55px;
        bottom: 20px;
        left: 20px;
    }
    
    .progress-ring {
        width: 55px;
        height: 55px;
    }
    
    .arrow-icon {
        width: 22px;
        height: 22px;
    }
}

@media screen and (max-width: 480px) {
    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 15px;
        left: 15px;
    }
    
    .progress-ring {
        width: 50px;
        height: 50px;
    }
    
    .progress-ring-circle,
    .progress-ring-bar {
        r: 22;
        cx: 25;
        cy: 25;
    }
    
    .arrow-icon {
        width: 20px;
        height: 20px;
    }
}

