        :root {
            /* Dark Mode Defaults */
            --bg-base: #000000;
            --text-main: #ffffff;
            --text-muted: #888888;
            --accent-red: #ff3333;
            --glow-red: rgba(255, 50, 50, 0.4);
            --glass-bg: rgba(20, 20, 20, 0.6);
            --glass-border: rgba(255, 255, 255, 0.08);
            --glass-highlight: rgba(255, 50, 50, 0.3);
            --shadow-base: rgba(0,0,0,0.6);
            --shadow-heavy: rgba(0,0,0,0.8);
            --hero-glow-bg: rgba(200, 10, 10, 0.25);
            --icon-shadow: rgba(255,255,255,0.2);
            --placeholder-bg: rgba(0,0,0,0.6);
            --footer-grad: rgba(20, 0, 0, 0.5);
            --font-primary: 'Inter', -apple-system, sans-serif;
            --font-title: 'Space Grotesk', sans-serif;
        }
                ::-webkit-scrollbar {
                    width: 8px;
                }
        
                ::-webkit-scrollbar-track {
                    background: transparent;
                }
        
                ::-webkit-scrollbar-thumb {
                    background: rgba(255, 255, 255, 0.15);
                    border-radius: 999px;
                }
        
                ::-webkit-scrollbar-thumb:hover {
                    background: rgba(255, 255, 255, 0.3);
                }
        body.light-mode {
            /* Light Mode Overrides */
            --bg-base: #f2f2f7; 
            --text-main: #111111;
            --text-muted: #666666;
            --accent-red: #d30000;
            --glow-red: rgba(211, 0, 0, 0.3);
            --glass-bg: rgba(255, 255, 255, 0.6);
            --glass-highlight: rgba(211, 0, 0, 0.2);
            --shadow-base: rgba(0,0,0,0.05);
            --shadow-heavy: rgba(0,0,0,0.1);
            --hero-glow-bg: rgba(211, 0, 0, 0.15);
            --icon-shadow: rgba(0,0,0,0.1);
            --placeholder-bg: rgba(0,0,0,0.05);
            --footer-grad: rgba(255, 200, 200, 0.3);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
            font-size: 110%; /* Maintained desktop zoom */
            overflow-x: hidden;
        }

        body {
            background-color: var(--bg-base);
            color: var(--text-main);
            font-family: var(--font-primary);
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            transition: background-color 0.5s ease, color 0.5s ease;
            width: 100vw;
        }

        nav {
            position: fixed;
            top: 24px;
            left: 50%;
            transform: translateX(-50%);
            width: 90%;
            height: 10%;
            max-width: 950px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 24px;
            background: var(--glass-bg);
            backdrop-filter: blur(24px) saturate(150%);
            -webkit-backdrop-filter: blur(24px) saturate(150%);
            border: 1px solid var(--glass-border);
            border-radius: 100px;
            z-index: 100;
            box-shadow: 0 20px 40px var(--shadow-heavy), inset 0 1px 0 rgba(255,255,255,0.05);
            transition: all 0.5s ease;
        }

        .nav-left, .nav-right {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .brand-logo {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 900;
            font-size: 1.2rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--text-main);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 8px;
            position: relative;
            z-index: 101;
        }

        .brand-logo::before {
            content: '';
            display: inline-block;
            width: 12px; height: 12px;
            background: var(--accent-red);
            border-radius: 50%;
            box-shadow: 0 0 15px var(--accent-red);
            transition: all 0.3s ease;
        }

        .brand-logo:hover::before {
            transform: scale(1.2);
            box-shadow: 0 0 25px var(--accent-red);
        }

        .nav-links {
            display: flex;
            gap: 25px;
            list-style: none;
        }

        .nav-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            transition: color 0.3s ease, text-shadow 0.3s ease;
            font-family: var(--font-title);
        }

        .nav-links a:hover {
            color: var(--accent-red);
            text-shadow: 0 0 10px rgba(255, 50, 50, 0.5);
        }

        .control-btn {
            background: transparent;
            border: none;
            color: var(--text-main);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: rgba(128,128,128,0.1);
            transition: all 0.3s ease;
        }
        .control-btn:hover {
            background: rgba(128,128,128,0.2);
            color: var(--accent-red);
            transform: scale(1.05);
        }
        .control-btn svg {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }
        
        .sun-icon { display: none; }
        body.light-mode .sun-icon { display: block; }
        body.light-mode .moon-icon { display: none; }

        /* Hamburger Menu Icon */
        .menu-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            z-index: 101;
            padding: 5px;
        }
        .menu-toggle span {
            width: 24px;
            height: 2px;
            background: var(--text-main);
            border-radius: 2px;
            transition: 0.3s;
        }

        /* Bottom Sheet Menu */
        .mobile-menu-overlay {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100vh;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
            z-index: 998;
        }
        .mobile-menu-overlay.active {
            opacity: 1;
            pointer-events: all;
        }

        .bottom-sheet {
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: var(--glass-bg);
            backdrop-filter: blur(30px);
            -webkit-backdrop-filter: blur(30px);
            border-top: 1px solid var(--glass-border);
            border-radius: 30px 30px 0 0;
            padding: 20px 30px 50px;
            transform: translateY(100%);
            transition: transform 0.5s cubic-bezier(0.3, 1, 0.2, 1);
            z-index: 999;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
        }
        .bottom-sheet.active {
            transform: translateY(0);
        }

        .sheet-handle {
            width: 50px;
            height: 4px;
            background: rgba(128, 128, 128, 0.4);
            border-radius: 4px;
            margin: 0 auto 30px;
        }

        .sheet-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 20px;
            text-align: center;
        }

        .sheet-links a {
            color: var(--text-main);
            text-decoration: none;
            font-size: 1.5rem;
            font-family: var(--font-title);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            transition: color 0.3s;
        }
        .sheet-links a:hover, .sheet-links a:active {
            color: var(--accent-red);
        }

        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 120px 5% 50px;
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
        }

        .hero-container {
            display: flex;
            width: 100%;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            text-align: center;
            position: relative;
            z-index: 10;
        }

        .hero-glow {
            position: absolute;
            width: 50vw;
            height: 50vw;
            max-width: 600px;
            max-height: 600px;
            background: radial-gradient(circle at center, var(--hero-glow-bg) 0%, transparent 60%);
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            filter: blur(60px);
            z-index: -1;
            pointer-events: none;
            transition: background 0.5s ease;
        }

        .hero-text {
            display: flex;
            flex-direction: column;
            align-items: center;
            z-index: 10;
            position: relative;
        }

        .hero-text h1 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: clamp(4.5rem, 10vw, 8.5rem);
            font-weight: 900;
            letter-spacing: -0.05em;
            line-height: 1;
            margin-bottom: 24px;
            background: linear-gradient(180deg, var(--text-main) 0%, var(--text-muted) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0 15px 30px rgba(0,0,0,0.8));
            text-shadow: 0 0 80px rgba(255, 0, 0, 0.3);
            transition: background 0.5s, filter 0.5s;
        }

        body.light-mode .hero-text h1 {
            background: linear-gradient(180deg, #111 0%, #777 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
            text-shadow: 0 0 50px rgba(200, 0, 0, 0.1);
        }

        .hero-text p {
            font-size: clamp(1.1rem, 1.8vw, 1.4rem);
            color: var(--text-muted);
            max-width: 650px;
            line-height: 1.6;
            margin-bottom: 40px;
            font-weight: 300;
        }

        .coffee-badge {
            display: inline-flex;
            align-items: center;
            gap: 12px;
            padding: 12px 28px;
            background: var(--glass-bg);
            border: 1px solid var(--glass-border);
            border-radius: 50px;
            backdrop-filter: blur(10px);
            color: var(--text-main);
            font-size: 0.9rem;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            box-shadow: 0 10px 30px var(--shadow-base);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            cursor: pointer;
            font-family: var(--font-title);
        }

        .coffee-badge:hover {
            background: var(--glow-red);
            border-color: var(--accent-red);
            color: var(--accent-red);
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 40px rgba(255, 50, 50, 0.25);
        }

        .coffee-badge svg {
            width: 20px;
            height: 20px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .hero-visual {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0; left: 0;
            pointer-events: none;
            z-index: 5;
        }

        .glass-icon-wrapper {
            position: absolute;
            width: 130px;
            height: 130px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: var(--glass-bg);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border: 1px solid var(--glass-border);
            border-radius: 35px;
            box-shadow: 0 20px 40px var(--shadow-heavy), inset 0 2px 20px rgba(255,255,255,0.02);
            transition: transform 0.2s cubic-bezier(0.1, 0.8, 0.2, 1), border-color 0.3s, background 0.5s;
            color: var(--text-main);
        }

        .glass-icon-wrapper svg {
            width: 70px;
            height: 70px;
            filter: drop-shadow(0 0 15px var(--icon-shadow));
            transition: transform 0.3s ease;
        }

        .glass-icon-wrapper:hover svg {
            transform: scale(1.1) rotate(5deg);
        }

        /* Desktop specific icon positions */
        .icon-js { top: 12%; left: 16%; animation: floatIcon 8s ease-in-out infinite; }
        
        .icon-py {
            top: 15%; right: 14%;
            width: 145px; height: 145px;
            animation: floatIcon 10s ease-in-out infinite reverse;
        }

        .icon-c {
            bottom: 12%; left: 14%;
            width: 140px; height: 140px;
            animation: floatIconCenter 9s ease-in-out infinite 1s;
        }

        .icon-react {
            bottom: 22%; right: 24%;
            width: 125px; height: 125px;
            animation: floatIconCenter 7s ease-in-out infinite 0.5s;
        }
        
        .icon-node {
            top: 32%; left: 7%;
            width: 115px; height: 115px;
            animation: floatIcon 8s ease-in-out infinite 1.5s reverse;
        }

        .icon-ts {
            bottom: 14%; right: 7%;
            width: 110px; height: 110px;
            animation: floatIcon 6s ease-in-out infinite 0.8s;
        }

        @keyframes floatIcon {
            0%, 100% { transform: translateY(0) rotate(-4deg); }
            50% { transform: translateY(-25px) rotate(4deg); }
        }
        @keyframes floatIconCenter {
            0%, 100% { transform: translateY(25px) rotate(0deg); }
            50% { transform: translateY(-15px) rotate(6deg); }
        }

        .section-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 120px 20px;
            position: relative;
            z-index: 10;
        }

        .section-title {
            font-family: var(--font-title);
            font-size: 3.5rem;
            margin-bottom: 70px;
            text-align: center;
            color: var(--text-main);
            letter-spacing: -1px;
            text-transform: uppercase;
            font-weight: 900;
        }

        .glass-box {
            background: var(--glass-bg);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border: 1px solid var(--glass-border);
            border-radius: 30px;
            box-shadow: 0 25px 50px var(--shadow-base), inset 0 1px 0 rgba(255,255,255,0.03);
            transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
            width: 100%;
        }

        .about-layout {
            display: flex;
            gap: 20px;
            padding: 40px;
            align-items: center;
        }
        
        .about-avatar-placeholder {
            width: 220px;
            height: 220px;
            border-radius: 50%;
            background: linear-gradient(135deg, rgba(128,128,128,0.1), rgba(128,128,128,0.3));
            border: 1px solid var(--glass-border);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 1rem;
            letter-spacing: 1px;
        }

        .about-text h3 {
            font-family: var(--font-title);
            font-size: 2.2rem;
            margin-bottom: 25px;
            font-weight: 700;
        }

        .about-text p {
            color: var(--text-muted);
            line-height: 1.8;
            margin-bottom: 15px;
            font-size: 1.05rem;
            white-space: pre-line;
        }

        .glass-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
            gap: 35px;
            perspective: 1500px;
        }

        .skill-card {
            padding: 55px 45px;
            display: flex;
            flex-direction: column;
            gap: 25px;
            transform-style: preserve-3d;
            transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.4s, background 0.4s, box-shadow 0.4s;
            cursor: pointer;
            height: 100%;
        }

        .skill-card:hover {
            border-color: var(--glass-highlight);
            box-shadow: 0 30px 60px var(--shadow-heavy), 0 0 40px var(--glow-red);
        }

        .card-icon {
            width: 60px;
            height: 60px;
            background: var(--text-main);
            color: var(--bg-base);
            border-radius: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.8rem;
            font-weight: 900;
            transform: translateZ(50px);
            transition: background 0.4s, color 0.4s;
            font-family: var(--font-title);
        }

        .skill-card:hover .card-icon {
            background: var(--accent-red);
            color: #fff;
        }

        .skill-card h3 {
            font-size: 1.7rem;
            font-weight: 700;
            letter-spacing: -0.5px;
            transform: translateZ(40px);
            font-family: var(--font-title);
        }

        .skill-card p {
            color: var(--text-muted);
            line-height: 1.6;
            transform: translateZ(30px);
            font-size: 1.05rem;
        }

        .slider-section {
            overflow: hidden;
            width: 100%;
        }

        .slider-container {
            width: 100vw;
            position: relative;
            left: 50%;
            right: 50%;
            margin-left: -50vw;
            margin-right: -50vw;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            -ms-overflow-style: none;
            scrollbar-width: none;
            cursor: grab;
            user-select: none;
            scroll-behavior: smooth;
            display: flex;
            gap: 30px;
            padding: 25px calc(50vw - 600px + 20px) 60px;
        }

        .slider-container::-webkit-scrollbar {
            display: none;
        }

        .slider-container.active {
            cursor: grabbing;
        }

        @media (max-width: 1240px) {
            .slider-container {
                padding: 25px 24px 60px;
            }
        }

        .slider-item {
            flex: 0 0 380px;
            scroll-snap-align: start;
            height: auto;
            display: flex;
        }

        /* Works Card */
        .work-card {
            display: flex;
            flex-direction: column;
            padding: 25px;
            gap: 25px;
            height: 100%;
        }

        .work-card:hover {
            border-color: var(--glass-highlight);
            box-shadow: 0 30px 60px var(--shadow-heavy), 0 0 40px var(--glow-red);
            transform: translateY(-5px);
        }

        .work-image-placeholder {
            width: 100%;
            height: 220px;
            border-radius: 20px;
            background: var(--placeholder-bg);
            border: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 1rem;
            transition: border-color 0.4s, background 0.4s;
            overflow: hidden;
        }

        .work-image-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.8;
            transition: transform 0.5s ease, opacity 0.5s ease;
        }

        .work-card:hover .work-image-placeholder img {
            transform: scale(1.05);
            opacity: 1;
        }

        .work-card:hover .work-image-placeholder {
            border-color: rgba(255, 50, 50, 0.3);
        }

        .work-info h3 {
            font-size: 1.5rem;
            margin-bottom: 12px;
            font-weight: 700;
            font-family: var(--font-title);
        }

        .work-info p {
            color: var(--text-muted);
            font-size: 1rem;
            line-height: 1.6;
        }

        .article-item {
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 20px;
            cursor: pointer;
            height: 100%;
            min-height: 440px;
            transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
        }

        .article-item:hover {
            border-color: var(--glass-highlight);
            box-shadow: 0 30px 60px var(--shadow-heavy), 0 0 40px var(--glow-red);
            transform: translateY(-5px);
        }

        .article-image-placeholder {
            width: 100%;
            height: 180px;
            border-radius: 15px;
            background: var(--placeholder-bg);
            border: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            margin-bottom: 10px;
            transition: border-color 0.4s, background 0.4s;
            overflow: hidden;
        }

        .article-image-placeholder img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.75;
            transition: transform 0.5s ease, opacity 0.5s ease;
        }

        .article-item:hover .article-image-placeholder img {
            transform: scale(1.05);
            opacity: 1;
        }

        .article-item:hover .article-image-placeholder {
            border-color: rgba(255, 50, 50, 0.3);
        }

        .article-info {
            display: flex;
            flex-direction: column;
            gap: 10px;
            flex-grow: 1;
        }

        .article-info h3 {
            font-size: 1.4rem;
            line-height: 1.4;
            margin-bottom: 0;
            font-family: var(--font-title);
            font-weight: 700;
            transition: color 0.3s;
        }

        .article-item:hover h3 {
            color: var(--accent-red);
        }

        .article-info span {
            color: var(--text-muted);
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 600;
        }

        .article-arrow {
            align-self: flex-end;
            font-size: 1.3rem;
            color: var(--text-muted);
            transition: transform 0.4s, color 0.4s, background 0.4s, border-color 0.4s;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(128,128,128,0.05);
            margin-top: 20px;
        }

        .article-item:hover .article-arrow {
            transform: translateX(8px) scale(1.1);
            color: #fff;
            border-color: var(--accent-red);
            background: var(--accent-red);
            box-shadow: 0 0 20px rgba(255, 50, 50, 0.4);
        }
        
        /* "View More" Slider Card */
        .more-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-family: var(--font-title);
            font-size: 1.6rem;
            font-weight: 700;
            text-align: center;
            color: var(--text-main);
            text-decoration: none;
            width: 100%;
            min-height: 440px;
            background: var(--glass-bg);
            border: 2px dashed var(--glass-border);
            border-radius: 30px;
            transition: border 0.3s, color 0.3s, box-shadow 0.3s;
        }
        .more-card:hover {
            border-style: solid;
            border-color: var(--accent-red);
            color: var(--accent-red);
            box-shadow: 0 0 30px rgba(255, 50, 50, 0.15);
        }
        .more-card span {
            font-size: 2.2rem;
            margin-top: 15px;
            transition: transform 0.3s;
        }
        .more-card:hover span {
            transform: translateX(10px);
        }

        .reveal {
            opacity: 0;
            transform: translateY(40px);
            transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .reveal.active {
            opacity: 1;
            transform: translateY(0);
        }

        .glass-footer {
            margin-top: 100px;
            padding: 100px 20px 50px;
            border-top: 1px solid rgba(255, 50, 50, 0.1);
            background: linear-gradient(to top, var(--footer-grad), transparent);
            position: relative;
            z-index: 10;
        }

        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 60px;
        }

        .footer-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 40px;
        }

        .footer-brand {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .footer-brand h2 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 3rem;
            letter-spacing: -1px;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .footer-brand h2::before {
            content: '';
            display: inline-block;
            width: 16px; height: 16px;
            background: var(--accent-red);
            border-radius: 50%;
            box-shadow: 0 0 20px var(--accent-red);
        }

        .footer-brand p {
            color: var(--text-muted);
            font-size: 1.1rem;
            max-width: 350px;
            line-height: 1.6;
        }

        .footer-socials {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .social-icon {
            width: 55px;
            height: 55px;
            border-radius: 50%;
            border: 1px solid var(--glass-border);
            background: var(--glass-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-main);
            transition: all 0.4s ease;
            text-decoration: none;
        }

        .social-icon svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
            transition: transform 0.4s;
        }

        .social-icon:hover {
            border-color: var(--accent-red);
            background: var(--glow-red);
            color: var(--accent-red);
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(255, 50, 50, 0.2);
        }

        .social-icon:hover svg {
            transform: scale(1.1);
        }

        .footer-bottom {
            text-align: center;
            color: var(--text-muted);
            font-size: 0.9rem;
            letter-spacing: 1.5px;
            padding-top: 40px;
            border-top: 1px solid var(--glass-border);
            text-transform: uppercase;
            font-family: var(--font-title);
        }

        /* --- MOBILE OPTIMIZATIONS --- */
        @media (max-width: 900px) {
            .about-layout { flex-direction: column; text-align: center; padding: 40px; }
            .footer-top { flex-direction: column; text-align: center; align-items: center; }
            .footer-brand h2 { justify-content: center; }
            
        }

        @media (max-width: 768px) {
            html {
                font-size: 90%; /* Removes the cramped, zoomed-in feeling on small screens */
            }

            /* Sleek, appropriately sized mobile nav */
            nav { 
                width: 92%; 
                padding: 12px 20px; 
                border-radius: 50px; 
                top: 15px;
                height: 10vh; /* Enforcing the requested 10% height */
            }
            .nav-links { display: none; } 
            .menu-toggle { display: flex; } 
            .brand-logo { font-size: 1.1rem; }
            .control-btn { width: 32px; height: 32px; }
            .control-btn svg { width: 16px; height: 16px; }

            .hero { padding-top: 130px; padding-bottom: 40px; }
            .hero-text h1 { font-size: 3.2rem; margin-top: 40px;}
            
            .hero-text p { 
                color: var(--text-main); 
                font-weight: 400; 
                text-shadow: 0 2px 6px rgba(0,0,0,0.4); 
                padding: 0 15px; 
            }
            
            /* Compact, stable programming icons on phones */
            .hero {
                min-height: 760px;
                overflow: clip;
            }
            .hero-text {
                z-index: 12;
                width: min(100%, 360px);
            }
            .hero-visual {
                opacity: 0.82;
                position: absolute;
                inset: 0;
                width: 100%;
                height: 100%;
                display: block;
                overflow: hidden;
            }
            .glass-icon-wrapper,
            .icon-py,
            .icon-c,
            .icon-react,
            .icon-node,
            .icon-ts {
                width: 70px;
                height: 70px;
                min-width: 70px;
                min-height: 70px;
                border-radius: 20px;
                margin: 0;
                animation: none;
                transform: none;
                will-change: auto;
                backdrop-filter: blur(16px);
                -webkit-backdrop-filter: blur(16px);
            }
            .glass-icon-wrapper svg {
                width: 38px;
                height: 38px;
            }
            .glass-icon-wrapper:hover svg { transform: none; }
            .icon-js { top: 17%; left: 5%; }
            .icon-py { top: 11%; left: 50%; right: auto; transform: translateX(-50%); }
            .icon-react { top: 17%; right: 5%; left: auto; }
            .icon-c { bottom: 14%; left: 5%; top: auto; }
            .icon-node { bottom: 9%; left: 50%; top: auto; transform: translateX(-50%); }
            .icon-ts { bottom: 14%; right: 5%; left: auto; top: auto; }

            .hero-glow { opacity: 0.4; } 

            .section-container {
                padding: 80px 15px; 
            }
            .section-title { font-size: 2.2rem; margin-bottom: 40px; }
            
            /* Compact Core Arsenal (Skills) Cards for Mobile */
            .glass-grid {
                grid-template-columns: 1fr; /* Force single column to avoid stretching */
                justify-items: center;
                gap: 20px;
            }
            .skill-card {
                width: 100%;
                max-width: 320px;
                padding: 25px 20px; 
                gap: 15px;
            }
            .card-icon {
                width: 45px; height: 45px; font-size: 1.2rem; /* Slightly smaller icon */
            }

            /* Perfectly proportioned mobile slider cards */
            .slider-item { 
                flex: 0 0 85vw; 
                max-width: 320px; 
            }
            .slider-container { 
                padding: 20px 15px 50px; 
                gap: 20px;
            }
            .work-card, .article-item {
                height: 380px; 
                padding: 20px;
            }
            .work-image-placeholder {
                height: 180px;
            }
            .article-image-placeholder {
                height: 150px;
            }
            .more-card {
                min-height: 380px;
            }
        }

@media (max-width: 480px) {
    .hero { min-height: 700px; padding-inline: 14px; }
    .hero-text h1 { font-size: clamp(2.75rem, 15vw, 3.35rem); margin-top: 18px; }
    .hero-text p { font-size: 1rem; }
    .glass-icon-wrapper,
    .icon-py,
    .icon-c,
    .icon-react,
    .icon-node,
    .icon-ts {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        border-radius: 17px;
    }
    .glass-icon-wrapper svg { width: 32px; height: 32px; }
    .icon-js, .icon-c { left: 3%; }
    .icon-react, .icon-ts { right: 3%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   Wrench 1.0.13 — desktop-style hero composition on mobile
   ========================================================= */
@media (max-width: 768px) {
    .hero {
        --mobile-icon-size: clamp(58px, 11vw, 78px);
        min-height: 100svh;
        padding: 112px 16px 36px;
        overflow: clip;
    }

    .hero-container {
        min-height: clamp(430px, 72svh, 620px);
        width: min(100%, 760px);
        margin-inline: auto;
    }

    .hero-text {
        width: min(66%, 470px);
        max-width: 470px;
        z-index: 12;
    }

    .hero-text h1 {
        font-size: clamp(3.75rem, 15vw, 6.2rem);
        line-height: .9;
        letter-spacing: -.065em;
        margin: 0 0 18px;
        white-space: nowrap;
    }

    .hero-text p {
        max-width: 100%;
        margin-bottom: 26px;
        padding-inline: 0;
        font-size: clamp(.95rem, 2.8vw, 1.15rem);
    }

    .coffee-badge {
        padding: 10px 20px;
        gap: 9px;
        font-size: .78rem;
        white-space: nowrap;
    }

    .coffee-badge svg {
        width: 18px;
        height: 18px;
    }

    .hero-visual {
        position: absolute;
        inset: 50% auto auto 50%;
        width: min(100%, 720px);
        height: clamp(420px, 72vw, 520px);
        transform: translate(-50%, -50%);
        overflow: visible;
        opacity: 1;
    }

    .glass-icon-wrapper,
    .icon-py,
    .icon-c,
    .icon-react,
    .icon-node,
    .icon-ts {
        width: var(--mobile-icon-size);
        height: var(--mobile-icon-size);
        min-width: var(--mobile-icon-size);
        min-height: var(--mobile-icon-size);
        border-radius: clamp(17px, 3vw, 23px);
        margin: 0;
        animation: none;
        transform: none;
        will-change: auto;
        opacity: 1;
    }

    .glass-icon-wrapper svg {
        width: 54%;
        height: 54%;
    }

    .icon-js {
        top: 10%;
        left: 7%;
        rotate: -4deg;
    }

    .icon-py {
        top: 11%;
        right: 7%;
        left: auto;
        width: calc(var(--mobile-icon-size) + 6px);
        height: calc(var(--mobile-icon-size) + 6px);
        min-width: calc(var(--mobile-icon-size) + 6px);
        min-height: calc(var(--mobile-icon-size) + 6px);
        rotate: 4deg;
    }

    .icon-node {
        top: 46%;
        left: 1.5%;
        bottom: auto;
        width: calc(var(--mobile-icon-size) - 5px);
        height: calc(var(--mobile-icon-size) - 5px);
        min-width: calc(var(--mobile-icon-size) - 5px);
        min-height: calc(var(--mobile-icon-size) - 5px);
        rotate: -6deg;
    }

    .icon-react {
        top: 46%;
        right: 1.5%;
        bottom: auto;
        left: auto;
        width: calc(var(--mobile-icon-size) - 2px);
        height: calc(var(--mobile-icon-size) - 2px);
        min-width: calc(var(--mobile-icon-size) - 2px);
        min-height: calc(var(--mobile-icon-size) - 2px);
        rotate: 5deg;
    }

    .icon-c {
        top: auto;
        bottom: 7%;
        left: 9%;
        width: calc(var(--mobile-icon-size) + 3px);
        height: calc(var(--mobile-icon-size) + 3px);
        min-width: calc(var(--mobile-icon-size) + 3px);
        min-height: calc(var(--mobile-icon-size) + 3px);
        rotate: 3deg;
    }

    .icon-ts {
        top: auto;
        right: 9%;
        bottom: 7%;
        left: auto;
        width: calc(var(--mobile-icon-size) - 7px);
        height: calc(var(--mobile-icon-size) - 7px);
        min-width: calc(var(--mobile-icon-size) - 7px);
        min-height: calc(var(--mobile-icon-size) - 7px);
        rotate: -3deg;
    }

    .hero-glow {
        width: min(92vw, 650px);
        height: min(92vw, 650px);
        opacity: .7;
    }
}

@media (max-width: 480px) {
    .hero {
        --mobile-icon-size: clamp(50px, 14vw, 60px);
        min-height: 100svh;
        padding: 104px 10px 28px;
    }

    .hero-container {
        min-height: clamp(520px, 72svh, 650px);
    }

    .hero-text {
        width: min(70%, 300px);
    }

    .hero-text h1 {
        font-size: clamp(3.15rem, 16vw, 4.35rem);
        margin-bottom: 14px;
    }

    .hero-text p {
        font-size: .95rem;
        margin-bottom: 22px;
    }

    .coffee-badge {
        padding: 9px 15px;
        font-size: .7rem;
        letter-spacing: .8px;
    }

    .hero-visual {
        width: min(100%, 440px);
        height: clamp(460px, 118vw, 560px);
    }

    .icon-js { top: 11%; left: 2%; }
    .icon-py { top: 12%; right: 2%; }
    .icon-node { top: 45%; left: -1%; }
    .icon-react { top: 45%; right: -1%; }
    .icon-c { bottom: 8%; left: 5%; }
    .icon-ts { bottom: 8%; right: 5%; }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100svh;
        padding-top: 96px;
        padding-bottom: 24px;
    }

    .hero-container {
        min-height: min(500px, calc(100svh - 120px));
    }

    .hero-visual {
        height: min(72vw, 470px);
    }

    .hero-text h1 {
        font-size: clamp(3.6rem, 12vw, 5.6rem);
    }
}

/* =========================================================
   Wrench 1.0.14 — stable mobile navigation and desktop-like
   floating hero composition
   ========================================================= */

/* Keep the mobile menu control neutral and remove browser button chrome. */
.menu-toggle {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-main);
    width: 38px;
    height: 38px;
    padding: 7px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover,
.menu-toggle:focus,
.menu-toggle:active {
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-main);
    transform: none;
}

.menu-toggle:focus-visible {
    outline: 1px solid color-mix(in srgb, var(--text-main) 32%, transparent);
    outline-offset: 2px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    flex: 0 0 2px;
    background: currentColor;
    border-radius: 999px;
    opacity: 1;
}

/* Expandable About copy. */
.about-text {
    min-width: 0;
}

.about-inline-link {
    color: var(--accent-red);
    text-decoration: none;
}

.about-inline-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.about-more-content {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    margin-top: 0;
    transition:
        grid-template-rows .48s cubic-bezier(.22, 1, .36, 1),
        opacity .3s ease,
        visibility 0s linear .48s,
        margin-top .48s cubic-bezier(.22, 1, .36, 1);
}

.about-more-content > div {
    min-height: 0;
    overflow: hidden;
}

.about-text.is-expanded .about-more-content {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
    margin-top: 4px;
    transition-delay: 0s;
}

.about-more-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    margin-top: 8px;
    padding: 9px 16px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--glass-bg) 86%, transparent);
    color: var(--text-main);
    box-shadow: 0 10px 24px var(--shadow-base);
    font: 700 .78rem/1 var(--font-title);
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.about-more-btn:hover {
    border-color: color-mix(in srgb, var(--text-main) 24%, transparent);
    background: color-mix(in srgb, var(--glass-bg) 96%, var(--text-main) 4%);
    transform: translateY(-2px);
}

.about-more-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.about-text.is-expanded .about-more-btn svg {
    transform: rotate(180deg);
}

@keyframes mobileFloatLeft {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(4px, -11px, 0); }
}

@keyframes mobileFloatRight {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(-4px, -13px, 0); }
}

@keyframes mobileFloatSoft {
    0%, 100% { transform: translate3d(0, 2px, 0); }
    50% { transform: translate3d(0, -9px, 0); }
}

@media (max-width: 768px) {
    nav {
        min-height: 62px;
        height: auto;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        --mobile-hero-icon: clamp(52px, 12.5vw, 68px);
        min-height: 100svh;
        padding: 104px 10px 32px;
        overflow: clip;
    }

    .hero-container {
        width: min(100%, 560px);
        min-height: clamp(470px, 72svh, 610px);
        margin-inline: auto;
        position: relative;
    }

    .hero-text {
        position: absolute;
        top: 50%;
        left: 50%;
        width: min(58%, 310px);
        max-width: 310px;
        transform: translate(-50%, -48%);
        z-index: 12;
    }

    .hero-text h1 {
        margin: 0 0 15px;
        font-size: clamp(3.2rem, 14vw, 5.25rem);
        line-height: .9;
        letter-spacing: -.065em;
        white-space: nowrap;
    }

    .hero-text p {
        max-width: 100%;
        margin: 0 0 22px;
        padding: 0;
        font-size: clamp(.9rem, 2.8vw, 1.05rem);
        white-space: nowrap;
    }

    .coffee-badge {
        padding: 9px 16px;
        gap: 8px;
        font-size: clamp(.66rem, 2.15vw, .76rem);
        letter-spacing: .8px;
        white-space: nowrap;
    }

    .hero-visual {
        position: absolute;
        inset: 50% auto auto 50%;
        width: min(96vw, 530px);
        height: clamp(290px, 78vw, 370px);
        transform: translate(-50%, -50%);
        overflow: visible;
        opacity: 1;
        z-index: 7;
    }

    .glass-icon-wrapper,
    .icon-py,
    .icon-c,
    .icon-react,
    .icon-node,
    .icon-ts {
        width: var(--mobile-hero-icon);
        height: var(--mobile-hero-icon);
        min-width: var(--mobile-hero-icon);
        min-height: var(--mobile-hero-icon);
        margin: 0;
        border-radius: clamp(16px, 3vw, 22px);
        opacity: 1;
        will-change: transform;
        animation: none;
        transform: translate3d(0, 0, 0);
    }

    .glass-icon-wrapper svg {
        width: 54%;
        height: 54%;
    }

    /* Same visual hierarchy as desktop, scaled around the WRENCH title. */
    .icon-js {
        top: 2%;
        left: 9%;
        right: auto;
        bottom: auto;
        rotate: -4deg;
    }

    .icon-py {
        top: 4%;
        right: 7%;
        left: auto;
        bottom: auto;
        width: calc(var(--mobile-hero-icon) + 6px);
        height: calc(var(--mobile-hero-icon) + 6px);
        min-width: calc(var(--mobile-hero-icon) + 6px);
        min-height: calc(var(--mobile-hero-icon) + 6px);
        rotate: 4deg;
    }

    .icon-node {
        top: 41%;
        left: 0;
        right: auto;
        bottom: auto;
        width: calc(var(--mobile-hero-icon) - 5px);
        height: calc(var(--mobile-hero-icon) - 5px);
        min-width: calc(var(--mobile-hero-icon) - 5px);
        min-height: calc(var(--mobile-hero-icon) - 5px);
        rotate: -6deg;
    }

    .icon-react {
        top: 43%;
        right: 0;
        left: auto;
        bottom: auto;
        width: calc(var(--mobile-hero-icon) - 2px);
        height: calc(var(--mobile-hero-icon) - 2px);
        min-width: calc(var(--mobile-hero-icon) - 2px);
        min-height: calc(var(--mobile-hero-icon) - 2px);
        rotate: 5deg;
    }

    .icon-c {
        top: auto;
        bottom: 1%;
        left: 10%;
        right: auto;
        width: calc(var(--mobile-hero-icon) + 3px);
        height: calc(var(--mobile-hero-icon) + 3px);
        min-width: calc(var(--mobile-hero-icon) + 3px);
        min-height: calc(var(--mobile-hero-icon) + 3px);
        rotate: 3deg;
    }

    .icon-ts {
        top: auto;
        right: 8%;
        bottom: 3%;
        left: auto;
        width: calc(var(--mobile-hero-icon) - 6px);
        height: calc(var(--mobile-hero-icon) - 6px);
        min-width: calc(var(--mobile-hero-icon) - 6px);
        min-height: calc(var(--mobile-hero-icon) - 6px);
        rotate: -3deg;
    }

    .icon-js.reveal.active,
    .icon-node.reveal.active,
    .icon-c.reveal.active {
        animation: mobileFloatLeft 7.6s ease-in-out infinite;
    }

    .icon-py.reveal.active,
    .icon-react.reveal.active,
    .icon-ts.reveal.active {
        animation: mobileFloatRight 8.3s ease-in-out infinite;
    }

    .icon-py.reveal.active { animation-duration: 9.2s; animation-delay: -2.7s; }
    .icon-c.reveal.active { animation-duration: 8.8s; animation-delay: -4.1s; }
    .icon-react.reveal.active { animation-duration: 7.4s; animation-delay: -1.9s; }
    .icon-node.reveal.active { animation-duration: 8.1s; animation-delay: -5.2s; }
    .icon-ts.reveal.active { animation-duration: 6.8s; animation-delay: -3.4s; }

    .about-more-btn {
        margin-inline: auto;
    }
}

@media (max-width: 390px) {
    .hero {
        --mobile-hero-icon: clamp(48px, 13.6vw, 56px);
    }

    .hero-container {
        min-height: clamp(450px, 69svh, 560px);
    }

    .hero-text {
        width: min(60%, 230px);
    }

    .hero-text h1 {
        font-size: clamp(2.9rem, 14.4vw, 3.65rem);
    }

    .hero-visual {
        width: calc(100vw - 18px);
        height: clamp(270px, 82vw, 315px);
    }

    .icon-js { left: 5%; }
    .icon-py { right: 4%; }
    .icon-node { left: -1%; }
    .icon-react { right: -1%; }
    .icon-c { left: 6%; }
    .icon-ts { right: 5%; }
}

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        --mobile-hero-icon: clamp(50px, 8vw, 64px);
        min-height: 100svh;
        padding-top: 88px;
        padding-bottom: 18px;
    }

    .hero-container {
        min-height: max(330px, calc(100svh - 108px));
        width: min(92vw, 660px);
    }

    .hero-visual {
        width: min(86vw, 620px);
        height: min(52vw, 330px);
    }

    .hero-text {
        width: min(54%, 330px);
    }

    .hero-text h1 {
        font-size: clamp(3.4rem, 10vw, 5rem);
    }
}


/* =========================================================
   Wrench 1.0.15 — mobile hero uses the exact desktop stage,
   uniformly scaled down instead of a separate mobile layout.
   ========================================================= */
@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
        max-width: none;
        padding: 92px 0 28px;
        overflow: hidden;
    }

    .hero-container {
        --mobile-hero-scale: .4;
        display: flex;
        flex: 0 0 auto;
        width: 900px;
        height: 360px;
        min-height: 360px;
        align-items: center;
        justify-content: center;
        margin: 0;
        transform: scale(var(--mobile-hero-scale));
        transform-origin: center center;
    }

    .hero-text {
        position: relative;
        inset: auto;
        width: auto;
        max-width: none;
        transform: none;
        z-index: 10;
    }

    .hero-text h1 {
        margin: 0 0 24px;
        font-size: 8.5rem;
        line-height: 1;
        letter-spacing: -.05em;
        white-space: nowrap;
    }

    .hero-text p {
        max-width: 650px;
        margin: 0 0 40px;
        padding: 0;
        font-size: 1.4rem;
        line-height: 1.6;
        white-space: nowrap;
    }

    .coffee-badge {
        gap: 12px;
        padding: 12px 28px;
        font-size: .9rem;
        letter-spacing: 1px;
    }

    .coffee-badge svg {
        width: 20px;
        height: 20px;
    }

    .hero-visual {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        transform: none;
        overflow: visible;
    }

    .glass-icon-wrapper,
    .icon-py,
    .icon-c,
    .icon-react,
    .icon-node,
    .icon-ts {
        width: 130px;
        height: 130px;
        min-width: 130px;
        min-height: 130px;
        margin: 0;
        border-radius: 35px;
        rotate: 0deg;
        transform: none;
        opacity: 1;
    }

    .glass-icon-wrapper svg {
        width: 70px;
        height: 70px;
    }

    /* Desktop positions copied exactly. */
    .icon-js {
        top: 12%;
        left: 7%;
        right: auto;
        bottom: auto;
    }

    .icon-py {
        top: 15%;
        right: 5%;
        left: auto;
        bottom: auto;
        width: 145px;
        height: 145px;
        min-width: 145px;
        min-height: 145px;
    }

    .icon-c {
        top: auto;
        right: auto;
        bottom: 12%;
        left: 8%;
        width: 140px;
        height: 140px;
        min-width: 140px;
        min-height: 140px;
    }

    .icon-react {
        top: auto;
        right: 10%;
        bottom: 22%;
        left: auto;
        width: 125px;
        height: 125px;
        min-width: 125px;
        min-height: 125px;
    }

    .icon-node {
        top: 32%;
        right: auto;
        bottom: auto;
        left: 0;
        width: 115px;
        height: 115px;
        min-width: 115px;
        min-height: 115px;
    }

    .icon-ts {
        top: auto;
        right: 0;
        bottom: 14%;
        left: auto;
        width: 110px;
        height: 110px;
        min-width: 110px;
        min-height: 110px;
    }

    /* Reuse the desktop floating animations without mobile replacements. */
    .icon-js.reveal.active {
        animation: floatIcon 8s ease-in-out infinite;
    }

    .icon-py.reveal.active {
        animation: floatIcon 10s ease-in-out infinite reverse;
    }

    .icon-c.reveal.active {
        animation: floatIconCenter 9s ease-in-out infinite 1s;
    }

    .icon-react.reveal.active {
        animation: floatIconCenter 7s ease-in-out infinite .5s;
    }

    .icon-node.reveal.active {
        animation: floatIcon 8s ease-in-out infinite 1.5s reverse;
    }

    .icon-ts.reveal.active {
        animation: floatIcon 6s ease-in-out infinite .8s;
    }

    .hero-glow {
        width: 600px;
        height: 600px;
        max-width: 600px;
        max-height: 600px;
        opacity: 1;
    }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .icon-js.reveal.active,
    .icon-py.reveal.active,
    .icon-c.reveal.active,
    .icon-react.reveal.active,
    .icon-node.reveal.active,
    .icon-ts.reveal.active {
        animation: none;
    }
}




/*
 * Mobile-only Hero enlargement.
 * Only the Hero inside this index.php is affected.
 */
@media (max-width: 768px) {

    /*
     * The original mobile stage was 900px wide and then scaled down.
     * Making the stage narrower keeps the desktop composition intact,
     * while making the title and icons visibly larger on the phone.
     */
    .hero-container {
        --mobile-hero-scale: 0.66;
        width: 720px;
        height: 390px;
        min-height: 390px;
    }

    .hero-text h1 {
        font-size: 11.8rem;
    }

    .hero-text p {
        font-size: 1.85rem;
        margin-bottom: 42px;
    }

    .coffee-badge {
        padding: 15px 34px;
        font-size: 1.08rem;
    }

    .coffee-badge svg {
        width: 23px;
        height: 23px;
    }

    .glass-icon-wrapper {
        width: 165px;
        height: 165px;
        min-width: 165px;
        min-height: 165px;
    }

    .glass-icon-wrapper svg {
        width: 88px;
        height: 88px;
    }

    .icon-py {
        width: 184px;
        height: 184px;
        min-width: 184px;
        min-height: 184px;
    }

    .icon-c {
        width: 178px;
        height: 178px;
        min-width: 178px;
        min-height: 178px;
    }

    .icon-react {
        width: 162px;
        height: 162px;
        min-width: 162px;
        min-height: 162px;
    }

    .icon-node {
        width: 152px;
        height: 152px;
        min-width: 152px;
        min-height: 152px;
    }

    .icon-ts {
        width: 146px;
        height: 146px;
        min-width: 146px;
        min-height: 146px;
    }

    /*
     * Spread mobile icons into three clear rows.
     * Position only changes; size and floating animations stay untouched.
     */
    .icon-js {
        left: -10%;
        right: auto;
        top: 2%;
        bottom: auto;
    }

    .icon-node {
        left: -16%;
        right: auto;
        top: 37%;
        bottom: auto;
    }

    .icon-c {
        left: -9%;
        right: auto;
        top: auto;
        bottom: -4%;
    }

    .icon-py {
        right: -10%;
        left: auto;
        top: 2%;
        bottom: auto;
    }

    .icon-react {
        right: -16%;
        left: auto;
        top: 37%;
        bottom: auto;
    }

    .icon-ts {
        right: -9%;
        left: auto;
        top: auto;
        bottom: -4%;
    }
}

@media (max-width: 520px) {
    .hero-container {
        --mobile-hero-scale: 0.62;
    }
}

@media (max-width: 460px) {
    .hero-container {
        --mobile-hero-scale: 0.58;
    }
}

@media (max-width: 430px) {
    .hero-container {
        --mobile-hero-scale: 0.555;
    }
}

@media (max-width: 390px) {
    .hero-container {
        --mobile-hero-scale: 0.505;
    }
}

@media (max-width: 360px) {
    .hero-container {
        --mobile-hero-scale: 0.465;
    }
}