@media only screen and (max-width: 600px) {

    .back-to-top {
        right: 10px; /* Adjust position to better fit smaller screens */
        bottom: 10px;
    }

    body {
        background-image: url('/static/images/mobile-background.jpeg');
        background-size: cover;
        background-position: center;
        background-repeat: repeat;
        background-attachment: inherit; /* Optional for a parallax effect */
        position: relative; 
        background-color: black;
        min-height: 100vh;
        background-size: 100% auto;
    }
}

/* Medium devices (tablets, 768px and up) */

@media (max-width: 768px) {

    body {
        background-image: url('/static/images/mobile-background.jpeg');
        background-size: cover;
        background-position: center;
        background-repeat: repeat;
        background-attachment: inherit; /* Optional for a parallax effect */
        position: relative;
        background-color: black;
        min-height: 100vh;
        background-size: 100% auto;
        font-size: 16px;
    }

    .hero {
        flex-direction: column;
        padding-left: 4%; 
        padding-right: 4%;
    }

    .privacy-policy-container {
        padding-left: 4%; 
        padding-right: 4%;
    }

    .hero-image-container {
        justify-content: center; 
        align-items: center;   
    }

    .hero-image {
        max-width: 60%;
    }

    .hamburger {
        display: flex; 
        justify-content: center;
        align-items: center;
        background: var(--secondary-bg-color); 
        border: none;
        color: var(--support-text-color);
        border-radius: 5px;
        width: 40px; 
        height: 40px; 
    }
  
    .hamburger[aria-expanded="true"] {
        background-color: var(--gradient-start-hero);
        right: 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%; 
        height: 100vh; 
        background: transparent; 
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.5s ease, visibility 0s linear 0.5s;
    }

    .nav-links.active {
        display: flex; 
        opacity: 1;
        transition: opacity 0.5s ease;
        background-color: transparent;
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%; 
    }

    .main-nav ul li {
        width: 100%; 
    }

    .manav ul li a {
        display: block; 
        width: 100%;
        padding: 15px;
        text-align: center; 
        font-size: 18px;
        border: none;
    }

    .logo-container {
        display: flex; 
        justify-content: center;
        align-items: center;
    }

    .logo-container p {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .download-btn, .download-btn-nav, .hero-button {
        padding: 12px 24px; 
        font-size: 16px;
        margin: 10px 0;
    }

    .back-to-top {
        right: 20px; 
        bottom: 20px;
    }

    .about {
        flex-direction: column;
        padding-left: 4%; 
        padding-right: 4%;
      }

    .featured-projects {
        padding-left: 4%; 
        padding-right: 4%;
    }

    .nav-btn .btn-text {
        display: none; /* Hide text on small screens */
    }

    .nav-btn .btn-icon {
        display: inline-block; /* Show icon as list item */
    }
    .project-nav {
        flex-direction: row; /* Stack buttons vertically on small screens */
        align-items: center; /* Stretch buttons to fill the container */
    }

    .project-content {
        flex-direction: column; /* Stack elements vertically on small screens */
        gap: 20px; 
        max-height: none;
        min-height: none;
        
    }

    .project-structure {
        flex-direction: column; /* Stack elements vertically on small screens */
    
    }

    .project-details {
        padding-left: 0; /* Remove padding on the left */
    }

    .project-details ul {
        text-align: left;
    }

    .project-media {
        width: 100%;
    }

    .experience-education-container {
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-left: 4%; 
        padding-right: 4%;
    }

    .experience-flag {
        align-items: center;
        justify-content: center;
    }

    .experience-flag::before {
        display: none; /* Hide flag icon */
    
    }

    .education-flag::before {
        display: none; /* Hide flag icon */
    
    }

    .experience-flag, .education-flag {
        width: 350px;
        text-wrap: wrap;
    }

    .education-details.active {
        max-height: 1200px;
    }

    .experience-details.active p{
        text-align: justify;
    }

    .experience-details.active li, .education-details.active li {
        text-align: left;
        margin-bottom: 10px;
    }

    .hero, .about, .featured-projects, .experience-education-container {
        max-height: none;
    }

    .fade-in-section {
        transition: opacity 0.2s ease-out, transform 0.2s ease-out;
      }

    .contact-header {
        flex-direction: column;
        gap: 20px;
    }

    .contact-image {
        max-width: 300px;
    }

    .contact-form form {
        min-width: 340px;
        margin-right: 0;
      }

    .form-group {
        display: inline-block;
      }


}

/* Large devices (desktops, 992px and up) */

@media (max-width: 992px) {
    .download-btn, .download-btn-nav, .hero-button {
        padding: 12px 24px; 
        font-size: 16px;
        margin: 10px 0;
    }

    .back-to-top {
        right: 20px; 
        bottom: 20px;
    }

    .about {
        flex-direction: column;
      }
}

@media (max-width: 481px) {

    body {
        background-image: url('/static/images/mobile-background.jpeg');
        background-size: cover;
        background-position: center;
        background-repeat: repeat;
        background-attachment: inherit; /* Optional for a parallax effect */
        position: relative; 
        background-color: black;
        min-height: 100vh;
        background-size: 100% auto;
    }
}

@media only screen and (max-width: 360px) {

    body {
        background-image: url('/static/images/mobile-background.jpeg');
        background-size: cover;
        background-position: center;
        background-repeat: repeat;
        background-attachment: inherit; /* Optional for a parallax effect */
        position: relative; 
        background-color: black;
        min-height: 100vh;
        background-size: 100% auto;
    }
}

@media only screen and (min-width: 361px) and (max-width: 600px) {

    body {
        background-image: url('/static/images/mobile-background.jpeg');
        background-size: cover;
        background-position: center;
        background-repeat: repeat;
        background-attachment: inherit; /* Optional for a parallax effect */
        position: relative; 
        background-color: black;
        min-height: 100vh;
        background-size: 100% auto;
    }
}

/* END of responsive.css anthonyem.com */
