/* RESPONSIVE DESIGN */

@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 5%;
        grid-template-columns: 1fr auto auto;
        justify-content: space-between;
        gap: 2rem;
    }

    .logo {
        justify-self: start;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: rgba(10, 14, 26, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0, 217, 255, 0.1);
        border-bottom: 1px solid rgba(0, 217, 255, 0.1);
        display: none;
        flex-direction: column;
        text-align: center;
        transition: 0.3s ease;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        display: block;
        padding: 1rem;
        font-size: 2rem;
        margin: 0.5rem 0;
    }

    .header-actions {
        display: none;
    }

    section {
        padding: 10rem 5% 2rem;
    }

    .home {
        flex-direction: column-reverse;
        gap: 4rem;
    }

    .home-content {
        text-align: center;
    }

    .home-content h1 {
        font-size: 4.5rem;
    }

    .home-img {
        width: 50vw;
        height: 50vw;
        max-width: 350px;
        max-height: 350px;
    }

    .social-media {
        display: flex;
        justify-content: center;
    }

    .project-card {
        flex-direction: column;
    }

    .project-img {
        width: 100%;
        height: 35rem;
        border-radius: 2rem 2rem 0 0;
        margin: 0;
        padding: 1.5rem;
    }

    .project-info {
        padding: 2.5rem;
        text-align: left;
    }

    .project-links {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .heading {
        font-size: 3.5rem;
    }

    .home-content h1 {
        font-size: 3.5rem;
    }

    .home-content h3 {
        font-size: 2.5rem;
    }

    .skills-categories {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact form .input-box {
        flex-direction: column;
    }

    .contact form .input-box input {
        width: 100%;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .project-img {
        height: 30rem;
        padding: 1.5rem;
    }

    .project-info {
        padding: 2rem;
    }
}

@media (max-width: 640px) {
    .education-scroll {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    .edu-card {
        padding: 1.9rem;
    }
}

@media (max-width: 520px) {
    html {
        font-size: 50%;
    }

    .home-img {
        width: 70vw;
        height: 70vw;
    }

    .header {
        padding: 1.5rem 3%;
    }

    section {
        padding: 8rem 3% 2rem;
    }

    .footer {
        padding: 3rem 3%;
    }

    .footer-nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .project-img {
        height: 25rem;
        padding: 1rem;
    }
}

/* PRINT STYLES */
@media print {

    .header,
    .social-media,
    .btn,
    .footer {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }
}