    footer {
        padding: 0.7rem 5% !important;
        font-size: 0.95rem;
    }


    .hamburger-menu,
    .nav-menu-controls {
        display: none;
    }

    body.menu-is-open {
        overflow: hidden;
    }


    @media (max-width: 992px) {

        .navbar .logo {
            flex: 1 0 auto;
        }

        .navbar .logo a.signature-name {
            white-space: nowrap;
            font-size: clamp(1.4rem, 5vw, 2rem);
        }

        .desktop-controls {
            display: none;
        }

        .hamburger-menu {
            display: block;
        }

        .nav-links {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            padding: 0;
            margin: 0;
            background-color: var(--secondary-bg-light);
            z-index: 1001;
            transform: translateX(-100%);
            transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        }

        body.dark-mode .nav-links {
            background-color: var(--secondary-bg-dark);
        }

        .nav-links.active {
            transform: translateX(0);
        }

        .nav-links>li>a {
            display: block;
            font-size: 2rem;
            margin: 1.5rem 0;
            color: var(--text-light);
        }

        body.dark-mode .nav-links>li>a {
            color: var(--text-dark);
        }

        .nav-menu-controls {
            display: flex;
            gap: 10px;
            position: absolute;
            top: 16px;
            left: 0;
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            z-index: 1100;
        }

        .nav-menu-controls .toggle {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .nav-menu-controls .toggle {
            width: 46px;
            height: 46px;
            min-width: 46px;
            min-height: 46px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
        }

        .nav-menu-controls .icon {
            font-size: 1.35rem;
            width: 26px;
            height: 26px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hamburger-menu {
            z-index: 1002;
            cursor: pointer;
            width: 28px;
            height: 22px;
            position: relative;
        }

        .hamburger-menu span {
            display: block;
            width: 100%;
            height: 3px;
            background-color: var(--text-light);
            border-radius: 3px;
            position: absolute;
            transition: all 0.3s ease-in-out;
        }

        body.dark-mode .hamburger-menu span {
            background-color: var(--text-dark);
        }

        .hamburger-menu span:nth-child(1) {
            top: 0;
        }

        .hamburger-menu span:nth-child(2) {
            top: 9px;
        }

        .hamburger-menu span:nth-child(3) {
            bottom: 0;
        }

        .hamburger-menu.active span:nth-child(1) {
            transform: rotate(45deg) translate(6px, 6px);
        }

        .hamburger-menu.active span:nth-child(2) {
            opacity: 0;
        }

        .hamburger-menu.active span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

        .hero-section {
            height: 100vh;
            max-height: 100svh;
            padding: 70px 5% 5vh 5%;
            box-sizing: border-box;
        }

        .hero-section-inner {
            display: flex;
            flex-direction: column-reverse;
            justify-content: center;
            align-items: center;
            height: 100%;
            max-height: 100%;
            gap: 2vh;
        }

        .hero-image {
            margin: 0;
            flex-shrink: 1;
            min-height: 0;
        }

        .hero-image img {
            width: clamp(400px, 75vw, 400px);
            height: auto;
            max-height: 50vh;
            object-fit: contain;
            animation: none;
        }

        .hero-content {
            align-items: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            flex-shrink: 0;
            text-align: center;
        }

        .hero-content h1 {
            font-size: clamp(2rem, 7vw, 2.2rem);
            line-height: 1.2;
            margin: 0;
        }

        .section h2,
        h2 {
            font-size: clamp(1.8rem, 6vw, 2rem);
        }

        .hero-content p,
        .hero-content .subtitle {
            font-size: clamp(1.1rem, 3.5vw, 1.1rem);
            margin: 0.5vh 0;
        }

        .hero-actions {
            flex-direction: column;
            align-items: center;
            gap: 2vh;
            margin-top: 2vh;
        }

        .social-links {
            margin-left: 0;
        }

        .button {
            transform: scale(0.9);
        }

        .project-grid {
            display: grid;
            grid-template-columns: 1fr;
            justify-items: center;
        }

        .card {
            width: 90%;
            max-width: 320px;
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.18);
            transition: box-shadow 0.2s;
            cursor: pointer;
        }

        .card:active,
        .card:hover {
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38), 0 6px 16px rgba(0, 0, 0, 0.22);
        }

        .contact-layout {
            flex-direction: column;
        }

        .contact-details {
            order: 1;
            text-align: center;
        }

        .contact-info {
            align-items: center;
        }

        .contact-image {
            order: 2;
            margin-top: 1rem;
        }

        .contact-image img {
            content: url('img/kennycima.png');
            max-width: 340px;
        }

        .contact-link {
            white-space: nowrap;
            font-size: clamp(0.9rem, 4vw, 1.2rem);
        }
    }
