/*=============== RESPONSIVE STYLES ===============*/

/* For larger devices (1024px and above) */
@media screen and (max-width: 1024px) {
    :root {
        --biggest-font-size: 2.25rem;
        --h1-font-size: 1.75rem;
        --h2-font-size: 1.25rem;
        --h3-font-size: 1.125rem;
        --normal-font-size: 0.938rem;
        --small-font-size: 0.813rem;
        --smaller-font-size: 0.75rem;
    }
    
    .container {
        max-width: 900px;
    }
    
    .section {
        padding: 5rem 0;
    }
    
    .home {
        padding-top: calc(var(--header-height) + 4rem);
    }
    
    .home-content {
        gap: 2rem;
    }
    
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For medium devices (768px and above) */
@media screen and (max-width: 768px) {
    .container {
        max-width: 700px;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--body-color);
        padding: 2rem 1.5rem;
        box-shadow: -1px 0 10px rgba(0, 0, 0, 0.1);
        transition: all 0.4s;
    }
    
    .show-menu {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        row-gap: 2rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .home-content,
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .home-text {
        order: 1;
    }
    
    .home-img {
        order: 0;
        margin-bottom: 1.5rem;
    }
    
    .profession::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .home-buttons {
        justify-content: center;
    }
    
    .about-info {
        grid-template-columns: repeat(3, 1fr);
        justify-content: center;
    }
    
    .skills-container {
        padding: 0;
    }
    
    .projects-filters {
        flex-wrap: wrap;
        row-gap: 0.7rem;
        justify-content: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        order: 0;
        margin-bottom: 2rem;
    }
    
    .contact-info {
        order: 1;
    }
    
    .footer-container {
        flex-direction: column;
        row-gap: 1.5rem;
        text-align: center;
    }
}

/* For small devices (576px and above) */
@media screen and (max-width: 576px) {
    .container {
        width: calc(100% - 2rem);
    }
    
    .home-content {
        gap: 1rem;
    }
    
    .home-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .home-buttons .btn {
        width: 100%;
    }
    
    .about-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .skills-content,
    .projects-container,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .project-img {
        height: 250px;
    }
}

/* For extra small devices (375px and above) */
@media screen and (max-width: 375px) {
    :root {
        --biggest-font-size: 1.75rem;
        --h1-font-size: 1.5rem;
        --h2-font-size: 1.15rem;
        --h3-font-size: 1rem;
        --normal-font-size: 0.875rem;
        --small-font-size: 0.813rem;
        --smaller-font-size: 0.75rem;
    }
    
    .container {
        width: calc(100% - 1.5rem);
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 1rem;
    }
}

/* For landscape orientation */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .home {
        height: auto;
    }
    
    .home-content {
        padding: 3rem 0;
    }
    
    .mouse-wrapper {
        display: none;
    }
}
