/* Large Desktop */

@media (max-width:1600px) {
    .section {
        padding: 90px 40px;
    }

    .grid-4 {
        grid-template-columns: repeat(3,1fr);
    }
}

/* Desktop */

@media (max-width:1200px) {
    .section {
        padding: 80px 32px;
    }

    .section-center,
    .split {
        gap: 40px;
    }

    .grid-4 {
        grid-template-columns: repeat(2,1fr);
    }

    .hero {
        height: 420px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }
}

/* Tablet */

@media (max-width:992px) {
    .section-center,
    .split {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }

    .grid-3 {
        grid-template-columns: repeat(2,1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2,1fr);
    }

    .navbar {
        padding: 0 24px;
    }

    .navbar-links {
        gap: 24px;
    }

    .profile-image {
        width: 190px;
        height: 190px;
    }

    .hero {
        height: 360px;
    }
}

/* Mobile */

@media (max-width:768px) {
    :root {
        --navbar-height: 70px;
    }

    .navbar {
        padding: 0 20px;
    }

    .navbar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        background: transparent;
        border: none;
        color: var(--text);
        font-size: 1.6rem;
        cursor: pointer;
    }

    .navbar-links {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background: var(--background);
        border-top: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition);
    }

    .navbar-links.open {
        max-height: 600px;
    }

    .navbar-links li {
        width: 100%;
    }

    .navbar-links a {
        display: block;
        width: 100%;
        padding: 18px;
        text-align: center;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 300px;
    }

    .hero-overlay {
        padding: 20px;
    }

    .hero-overlay h1 {
        font-size: 2.4rem;
    }

    .hero-overlay p {
        font-size: 1rem;
    }

    .section {
        padding: 70px 24px;
    }

    .profile-image {
        width: 160px;
        height: 160px;
    }

    h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .card {
        padding: 22px;
    }
}

/* Small Mobile */

@media (max-width:480px) {
    .hero {
        height: 240px;
    }

    .section {
        padding: 60px 18px;
    }

    .profile-image {
        width: 130px;
        height: 130px;
    }

    .hero-overlay h1 {
        font-size: 2rem;
    }

    .hero-overlay p {
        font-size: .9rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    p {
        font-size: .95rem;
    }

    .button,
    .button-outline,
    .button-danger {
        width: 100%;
    }
}

.update-header {
    flex-direction: column;
    text-align: center;
}

.update-header img {
    width: 100%;
    max-width: 320px;
    height: auto;
}

@media(max-width:700px){


    .footer-profile {

        flex-direction:column;

        text-align:center;

    }


    .footer-profile img {

        width:80px;

        height:80px;

    }


    .footer-links {

        flex-direction:column;

        gap:12px;

    }


}