        @font-face {
            font-family: 'Minecraft';
            src: url('resources/minecraft.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
            font-display: swap;
        }

        :root {
            --ghost-white: #F8F8FF;
            --lime-green: #8afa6e;
            --deep-charcoal: #2D2D2D;
            --nav-height: 70px;
        }
        
        * { margin: 0; padding: 0; box-sizing: border-box; user-select: none; }
        
        body {
            font-family: 'Comfortaa', system-ui, -apple-system, sans-serif;
            color: var(--deep-charcoal);
            line-height: 1.6;
            padding: 40px 20px;
            max-width: 900px;
            margin: 0 auto;
            position: relative;
            background-color: #F8F8FF;
            background-image: linear-gradient(rgba(49, 203, 0, 0.035) 1px, transparent 1px);
            background-size: 100% 22px;
            cursor: none;
        }

        #top-bar {
            position: fixed;
            top: -100px;
            left: 0;
            width: 100%;
            height: var(--nav-height);
            background-color: rgba(248, 248, 255, 0.85);
            backdrop-filter: blur(10px);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 40px;
            z-index: 1000;
            box-shadow: 0 2px 20px rgba(0,0,0,0.05);
            transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        #top-bar.active {
            top: 0;
        }

        .nav-logo {
            font-weight: 700;
            font-size: 1.4rem;
            color: var(--deep-charcoal);
        }

        #custom-cursor {
            position: fixed;
            width: 25px;
            height: 25px;
            background: url('resources/cursor.svg') no-repeat center / contain;
            pointer-events: none;
            z-index: 9999;
            display: none;
        }

        #full-background, #full-background2 {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background-size: cover;
            background-position: center;
            transition: opacity 0.85s ease;
        }
        #full-background { z-index: -2; }
        #full-background2 { z-index: -3; }

        #full-overlay {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: -1;
            background-color: rgba(248, 248, 255, 0.78);
            transition: background-color 0.85s ease;
        }

        #particle-canvas {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: -1;
            pointer-events: none;
            opacity: 0;
            transition: opacity 1.4s ease;
        }

        h1, h2 { font-weight: 700; color: var(--deep-charcoal); }
        h1 { font-size: 3.2rem; margin-bottom: 20px; text-align: center; }

        #intro, #profile, #closing {
            min-height: 92vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 0px 20px 0px;
        }
        
        .section { margin-bottom: 110px; position: relative; z-index: 2; }
                #about-me-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            gap: 40px;
        }

        .about-left {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        .interest-row {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 1.3rem;
            font-weight: 500;
        }
        .interest-row span { color: var(--lime-green); font-size: 1.5rem; }

        .about-middle {
            flex: 1;
            text-align: center;
            font-size: 1.5rem;
            line-height: 1.4;
        }
        #local-time {
            display: block;
            font-size: 2.2rem;
            font-weight: 700;
            color: var(--lime-green);
            margin: 10px 0;
        }

        .about-right {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }
        .profile-img {
            width: 240px;
            height: 240px;
            border-radius: 40px;
            object-fit: cover;
            box-shadow: 0 25px 50px rgba(0,0,0,0.15);
        }
        .social-icons {
            display: flex;
            gap: 8px;
        }
        .social-icon-btn {
            width: 30px;
            height: 30px;
            transition: transform 0.2s ease;
            cursor: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
        }
        .social-icon-btn:hover { transform: translateY(-5px); }
        .social-icon-btn img { 
            width: 100%; 
            height: 100%; 
            object-fit: contain; 
            border-radius: 12px;
        }
        .github-link {
            border-radius: 50%;
            background: var(--deep-charcoal);
            color: white;
            font-size: 0.65rem;
            font-weight: 700;
            letter-spacing: -0.04em;
        }

        #minecraft .minecraft-left h1,
        #minecraft .minecraft-list li,
        #minecraft .minecraft-list li span.highlight {
            font-family: 'Minecraft', 'Pixelify Sans', 'Courier New', monospace !important;
            text-transform: none;
            letter-spacing: 0.5px;
            text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        #minecraft {
            display: flex;
            flex-wrap: wrap;
            gap: 50px;
            align-items: flex-start;
            margin-bottom: 110px;
        }
        .minecraft-left { flex: 1; min-width: 320px; }
        .minecraft-right { flex: 1; min-width: 320px; }

        .minecraft-left h1 {
            text-align: left;
            font-size: 2.6rem;
            color: var(--deep-charcoal);
            margin-bottom: 35px;
            text-shadow: 0 20px 8px rgba(0, 0, 0, 0.3);
        }

        .minecraft-list {
            list-style: none;
            padding-left: 10px;
        }
        .minecraft-list li {
            margin: 18px 0;
            font-size: 1.25rem;
            position: relative;
            padding-left: 34px;
        }
        .minecraft-list li:before {
            content: "■";
            color: var(--lime-green);
            position: absolute;
            left: 0;
        }

        .separator {
            text-align: center;
            margin: 60px 0;
            color: var(--deep-charcoal);
            font-size: 1.5rem;
            letter-spacing: 4px;
        }
        
        .interests {
            display: flex; 
            flex-wrap: wrap; 
            gap: 20px; 
            justify-content: center; 
            margin: 30px 0;
            padding: 100px 20px 200px;
        }
        
        .interest-item {
            background-color: white;
            padding: 16px 28px;
            border-radius: 50px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            font-size: 1.15rem;
            display: flex; align-items: center; gap: 12px;
            transition: all 0.3s ease;
        }
        
        .project-card {
            position: relative;
            background-size: cover;
            background-position: center;
            border-radius: 28px;
            padding: 38px 36px;
            margin-bottom: 42px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            cursor: none;
        }
        
        .project-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background-color: rgba(248, 248, 255, var(--card-opacity, 0.84));
            z-index: 1;
            border-radius: 28px;
        }
        
        .project-card > * { position: relative; z-index: 2; }
        
        .project-card .project-image {
            position: absolute;
            right: 36px;
            top: 50%;
            transform: translateY(-50%);
            object-fit: cover;
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
            cursor: pointer;
            transition: transform 0.2s ease;
        }
        
        /* Individual image controls */
        .project-image.i1 {
            width: 300px;
            height: 120px;
            border-radius: 16px;
            right: 36px;
            top: 50%;
            transform: translateY(-50%);
        }
        
        .project-image.i2 {
            width: 510px;
            height: 200px;
            border-radius: 20px;
            right: 36px;
            top: 70%;
            transform: translateY(-50%);
        }
        
        .project-image.i3 {
            width: 110px;
            height: 110px;
            border-radius: 12px;
            right: 36px;
            top: 50%;
            transform: translateY(-50%);
        }
        
        .cert-badge {
            width: 160px;
            height: 160px;
            border-radius: 12px;
            object-fit: cover;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .ach-card {
            position: relative;
            background-size: cover;
            background-position: center;
            border-radius: 28px;
            padding: 38px 36px;
            margin-bottom: 42px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            cursor: none;
            display: flex;
            align-items: flex-start;
            gap: 24px;
        }

        .interactive-card {
            position: relative;
            background-size: cover;
            background-position: center;
            border-radius: 20px;
            padding: 16px 16px 8px;
            margin-bottom: 18px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
            transition: none !important;
            overflow: visible;
            cursor: none !important;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .interactive-card::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background-color: rgba(248, 248, 255, var(--card-opacity, 0.84));
            transform: scale(1);
            transition: transform 0.15s ease;
            z-index: 0;
        }

        .interactive-card > * {
            position: relative;
            z-index: 1;
        }

        .interactive-card, .interactive-card * { transition: none !important; cursor: none !important; }
        .interactive-card::before { transition: none !important; }

        .iframe-wrapper {
            width: 100%;
            overflow: visible;
            border-radius: 16px;
            transform: scale(0.7);
            transform-origin: top center;
            height: 525px;
            margin: 0 auto;
        }

        .iframe-wrapper iframe {
            display: block;
            width: 100%;
            height: 750px;
            border: 0;
            background: white;
            border-radius: 16px;
        }

        .mirror-activate {
            display: block;
            width: 100%;
            min-height: 750px;
            border: 0;
            border-radius: 16px;
            background: white;
            color: var(--deep-charcoal);
            font: inherit;
            cursor: pointer;
        }

        .mirror-activate[hidden] { display: none; }

        .mirror-card .iframe-wrapper iframe:not([src]) { display: none; }

        .mirror-card {
            position: relative;
            width: 100vw;
            margin: 30px 0 42px calc(50% - 50vw);
            padding: 28px 0;
            overflow: hidden;
            background: rgba(248, 248, 255, 0.82);
        }

        .mirror-card > .ach-text-content {
            padding: 0 20px;
        }

        .mirror-card .iframe-wrapper {
            width: 100%;
            height: min(80vh, 750px);
            min-height: 480px;
            transform: none;
        }

        .mirror-card .iframe-wrapper iframe,
        .mirror-card .mirror-activate {
            width: 100%;
            height: 100%;
            min-height: 0;
            border-radius: 12px;
        }
        
        .ach-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background-color: rgba(248, 248, 255, var(--card-opacity, 0.84));
            z-index: 1;
            border-radius: 28px;
        }
        
        .ach-card > * { position: relative; z-index: 2; }
        
        .ach-text-content {
            flex: 1;
            min-width: 0;
            overflow-wrap: anywhere;
            word-wrap: break-word;
        }
        
        .ach-card .cert-badge {
            flex-shrink: 0;
            width: 160px;
            height: 160px;
            margin-top: 8px;
        }

        .ach-card .badge-stack {
            display: flex;
            flex-direction: column;
            gap: 12px;
            flex-shrink: 0;
            align-items: flex-end;
        }

        .ach-card .badge-stack .cert-badge {
            margin-top: 0;
        }

        .ach-card.hksmsa .ach-text-content p {
            line-height: 1.75;
        }

        .ach-card.hksmsa .hksmsa-year {
            font-size: 1.2rem;
            font-weight: 700;
            display: inline-block;
            margin-bottom: 6px;
        }
        
        .smp-card {
            display: flex; 
            align-items: center; 
            gap: 15px;
            padding: 16px 20px;
            margin-bottom: 20px;
            border-radius: 35px;
            background-color: rgba(255, 255, 255, var(--card-opacity, 1));
            box-shadow: 0 10px 30px rgba(0,0,0,0.09);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            max-width: 500px;
            cursor: none;
        }
        
        .smp-text { flex: 1; }

        .smp-image {
            width: 120px;
            height: 120px;
            object-fit: cover;
            border-radius: 20px;
            flex-shrink: 0;
        }

        .project-title { color: var(--deep-charcoal); font-size: 1.7rem; margin-bottom: 16px; }
        .highlight { color: var(--deep-charcoal); font-weight: 600; }

        .flag-card {
            position: relative;
            background-size: cover;
            background-position: center;
            border-radius: 28px;
            padding: 38px 36px;
            margin-bottom: 42px;
            box-shadow: 0 8px 25px rgba(0,0,0,0.18);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            overflow: hidden;
            cursor: none;
            background-color: rgba(248, 248, 255, 0.18);
        }

        .flag-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background-color: rgba(248, 248, 255, var(--card-opacity, 0.84));
            z-index: 1;
            border-radius: 28px;
        }

        .flag-card > * {
            position: relative;
            z-index: 2;
        }

        .flag-card .flag-row {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 30px;
            margin-top: 12px;
            width: 100%;
        }

        .flag-card .flag-item {
            min-width: 56px;
            height: 56px;
            padding: 0 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            font-size: 1.8rem;
            line-height: 1;
            flex: 0 0 auto;
        }
        
        .closing { font-size: 2.5rem; color: var(--deep-charcoal); }
        
        .logo {
            width: 190px;
            margin-bottom: 40px;
            filter: drop-shadow(0 10px 25px rgba(0,0,0,0.12));
        }

        .interest-item,
        .project-card,
        .ach-card,
        .smp-card,
        .flag-card,
        .interactive-card {
            transform-origin: center;
            transition: transform 0.18s ease, box-shadow 0.18s ease;
        }

        .interest-item:hover,
        .project-card:hover,
        .ach-card:hover,
        .smp-card:hover,
        .flag-card:hover,
        .interactive-card:hover {
            transform: scale(1.015);
        }

        .interest-item:hover > *,
        .project-card:hover > *,
        .ach-card:hover > *,
        .smp-card:hover > *,
        .flag-card:hover > *,
        .interactive-card:hover > * {
            transform: scale(0.9852);
        }

        .project-card:hover > .project-image {
            transform: translateY(-50%) scale(0.9852);
        }

        .interactive-card:hover > .iframe-wrapper {
            transform: scale(0.9852) scale(0.7);
        }

        .interactive-card {
            transition: transform 0.18s ease !important;
        }

        .interactive-card,
        .interactive-card * {
            transition: none !important;
        }

        .interactive-card {
            transition: transform 0.18s ease !important;
        }

        .interactive-card:hover > * {
            transition: transform 0.18s ease !important;
        }
