        /* ========================================
           Modern Portfolio CSS
           Design: Information-First with Advanced Animations
           ======================================== */

        /* ========================================
           Font Imports
           ======================================== */

        /* Chinese Pixel Font - Zpix */
        @import url('https://cdn.jsdelivr.net/npm/zpix-pixel-font@latest/dist/zpix.css');

        /* ========================================
           CSS Variables & Reset
           ======================================== */

        :root {
            /* Monochrome Colors */
            --black: #050505;
            --dark-grey: #0a0a0a;
            --medium-grey: #121212;
            --light-grey: #1f1f1f;
            --lighter-grey: #3a3a3a;
            --text-white: #ffffff;
            --text-grey: #888888;
            --text-light-grey: #bbbbbb;

            /* Accent - Minimal White */
            --accent: #ffffff;
            --accent-dim: rgba(255, 255, 255, 0.6);
            --accent-subtle: rgba(255, 255, 255, 0.1);

            /* Borders & Effects */
            --border-color: rgba(255, 255, 255, 0.08);
            --border-hover: rgba(255, 255, 255, 0.2);
            --glow: 0 0 30px rgba(255, 255, 255, 0.15);
            --glow-strong: 0 0 40px rgba(255, 255, 255, 0.3);

            /* Timing */
            --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
            --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

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

        html {
            scroll-behavior: auto; /* Let GSAP handle smoothing */
            overflow-x: hidden;
        }

        body {
            background: #000000;
            color: var(--text-white);
            font-family: 'Montserrat', 'Futura', 'Trebuchet MS', sans-serif;
            overflow-x: hidden;
            position: relative;
            cursor: none;
            font-weight: 300;
        }

        /* ========================================
           Animated Background
           ======================================== */

        #particles-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        .grid-background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
            background-size: 50px 50px;
            z-index: 0;
            pointer-events: none;
            opacity: 0.3;
        }

        /* ========================================
           Custom Cursor - High Contrast Monochrome
           ======================================== */

        .cursor {
            width: 22px;
            height: 22px;
            border: 2px solid rgba(255, 255, 255, 0.95);
            background: rgba(240, 240, 240, 0.3);
            backdrop-filter: blur(6px);
            position: fixed;
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: 10000;
            transition: all 0.12s ease-out;
            clip-path: polygon(
                0% 0%,
                calc(100% - 5px) 0%,
                100% 5px,
                100% 100%,
                5px 100%,
                0% calc(100% - 5px)
            );
            box-shadow:
                0 0 0 1px rgba(0, 0, 0, 0.85),
                0 2px 10px rgba(0, 0, 0, 0.5),
                inset 0 0 0 1px rgba(255, 255, 255, 0.4);
        }

        .cursor::before {
            content: '';
            position: absolute;
            inset: -12px;
            border: 1px solid rgba(255, 255, 255, 0.5);
            clip-path: polygon(
                0% 0%,
                calc(100% - 6px) 0%,
                100% 6px,
                100% 100%,
                6px 100%,
                0% calc(100% - 6px)
            );
            opacity: 0;
            transition: opacity 0.15s ease;
            box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
        }

        .cursor-glow {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 50px;
            height: 50px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.15s ease;
            filter: blur(6px);
        }

        .cursor.hover {
            width: 18px;
            height: 18px;
            border-color: rgba(255, 255, 255, 1);
            background: rgba(230, 230, 230, 0.4);
            box-shadow:
                0 0 0 1px rgba(0, 0, 0, 0.9),
                0 3px 15px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(255, 255, 255, 0.4),
                inset 0 0 8px rgba(255, 255, 255, 0.3);
        }

        .cursor.hover::before {
            opacity: 1;
        }

        .cursor.hover .cursor-glow {
            opacity: 1;
        }

        .cursor-dot {
            width: 5px;
            height: 5px;
            background: rgb(255, 255, 255);
            position: fixed;
            transform: translate(-50%, -50%);
            pointer-events: none;
            z-index: 10001;
            box-shadow:
                0 0 0 1.5px rgba(0, 0, 0, 0.9),
                0 2px 6px rgba(0, 0, 0, 0.7),
                0 0 8px rgba(255, 255, 255, 0.8);
            clip-path: polygon(
                30% 0%,
                70% 0%,
                100% 30%,
                100% 70%,
                70% 100%,
                30% 100%,
                0% 70%,
                0% 30%
            );
        }

        /* ========================================
           Scroll Progress Indicator
           ======================================== */

        .scroll-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: rgba(255, 255, 255, 0.05);
            z-index: 9999;
        }

        .scroll-progress-bar {
            height: 100%;
            background: var(--accent);
            width: 0%;
            box-shadow: var(--glow);
        }

        /* ========================================
           Page Navigation Dots
           ======================================== */

        .page-nav {
            position: fixed;
            right: 40px;
            top: 50%;
            transform: translateY(-50%);
            z-index: 1000;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .page-nav-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: 2px solid var(--text-grey);
            background: transparent;
            transition: all 0.3s var(--ease-smooth);
            position: relative;
            cursor: pointer;
        }

        .page-nav-dot::before {
            content: attr(data-label);
            position: absolute;
            right: 25px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.75rem;
            color: var(--text-grey);
            opacity: 0;
            transition: opacity 0.3s ease;
            white-space: nowrap;
        }

        .page-nav-dot:hover::before,
        .page-nav-dot.active::before {
            opacity: 1;
        }

        .page-nav-dot.active {
            background: var(--accent);
            border-color: var(--accent);
            box-shadow: var(--glow);
        }

        /* ========================================
           Loading Screen
           ======================================== */

        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: var(--black);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
        }

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

        .loader-text {
            font-size: 3rem;
            font-weight: 900;
            letter-spacing: 0.2em;
            margin-bottom: 2rem;
        }

        .loader-letter {
            display: inline-block;
            animation: letterFloat 1.5s ease-in-out infinite;
            color: var(--text-white);
        }

        .loader-letter:nth-child(1) { animation-delay: 0s; }
        .loader-letter:nth-child(2) { animation-delay: 0.1s; }
        .loader-letter:nth-child(3) { animation-delay: 0.2s; }
        .loader-letter:nth-child(4) { animation-delay: 0.3s; }
        .loader-letter:nth-child(5) { animation-delay: 0.4s; }

        @keyframes letterFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-20px); }
        }

        .loader-bar {
            width: 300px;
            height: 3px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
            margin: 0 auto;
        }

        .loader-progress {
            height: 100%;
            background: var(--accent);
            width: 0%;
            border-radius: 10px;
            transition: width 0.3s ease;
        }

        .loader-percent {
            margin-top: 1rem;
            color: var(--text-grey);
            font-size: 0.9rem;
            letter-spacing: 0.1em;
        }

        /* ========================================
           Main Navigation
           ======================================== */

        .main-nav {
            position: fixed;
            top: 0;
            width: 100%;
            padding: 2rem 4rem;
            z-index: 1000;
            background: rgba(5, 5, 5, 0.85); /* Slightly darker */
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--border-color);
            opacity: 0;
            transform: translateY(-100%);
        }

        .nav-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1600px;
            margin: 0 auto;
        }

        .nav-logo {
            display: flex;
            align-items: center;
            font-size: 2rem;
            font-weight: 900;
            letter-spacing: -0.05em;
        }

        .logo-text {
            color: var(--text-white);
            transition: color 0.3s ease;
        }

        .logo-text:hover {
            color: var(--accent);
        }

        .nav-links {
            display: flex;
            gap: 3rem;
        }

        .nav-link {
            color: var(--text-grey);
            text-decoration: none;
            font-size: 0.9rem;
            letter-spacing: 0.05em;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-link-text {
            transition: color 0.3s ease;
        }

        .nav-link:hover .nav-link-text,
        .nav-link:hover {
            color: var(--text-white);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.4s var(--ease-smooth);
        }

        .nav-link:hover::after {
            width: 100%;
        }

        .lang-toggle {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            background: transparent;
            border: none;
            cursor: pointer;
            font-size: 0.9rem;
            letter-spacing: 0.05em;
            padding: 0;
        }

        .lang-option {
            color: var(--text-grey);
            transition: all 0.3s ease;
            position: relative;
            display: inline-block;
        }

        .lang-option.active {
            color: var(--text-white);
            font-weight: 700;
            transform: scale(1.15);
        }

        .lang-option:hover {
            color: var(--text-white);
        }

        .lang-divider {
            color: var(--text-grey);
        }

        /* ========================================
           Section Styling (Global)
           REMOVED: Borders and Box Shadows
           ======================================== */

        section {
            padding: 10rem 4rem;
            position: relative;
            z-index: 1;
            /* Removed large borders and margins to create flow */
            margin: 0;
            border: none;
            border-radius: 0;
            box-shadow: none;
            /* Removed CSS transition for transform to prevent GSAP conflict/jitter */
        }

        /* Background Differentiation */
        .bg-dark {
            background: var(--black);
        }
        
        .bg-medium {
            background: rgba(20, 20, 20, 0.4); /* Transparent Dark Grey */
            backdrop-filter: blur(10px);
        }

        .section-header {
            margin-bottom: 5rem;
            position: relative;
            max-width: 1600px;
            margin-left: auto;
            margin-right: auto;
        }

        .section-title {
            font-size: clamp(1.5rem, 3vw, 2.5rem);
            font-weight: 300;
            letter-spacing: 0.15em;
            margin-bottom: 1rem;
            opacity: 0;
            transform: translateY(30px);
            text-align: left;
            color: #444444;
            font-family: 'Montserrat', 'Futura', sans-serif;
            text-transform: uppercase;
        }

        /* ========================================
           About Section
           ======================================== */

        .about {
            min-height: 100vh;
        }

        .about-container {
            max-width: 1600px;
            margin: 0 auto;
        }

        .about-content {
            display: grid;
            grid-template-columns: 500px 1fr; /* Larger image column */
            gap: 8rem;
            align-items: center;
            margin-bottom: 10rem;
        }

        .about-avatar {
            position: relative;
            opacity: 0;
        }

        .about-avatar::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.15);
            border-radius: 4px;
            z-index: 3;
            transition: opacity 0.5s ease;
            pointer-events: none;
        }

        .about-avatar:hover::before {
            opacity: 0;
        }

        .about-avatar img {
            width: 100%;
            height: auto;
            max-height: 600px;
            object-fit: contain;
            border-radius: 4px;
            box-shadow: 0 20px 50px rgba(0,0,0,0.5);
            position: relative;
            z-index: 2;
            display: block;
        }

        .avatar-glow {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 120%;
            height: 120%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
            border-radius: 50%;
            z-index: 1;
            animation: glowPulse 4s ease-in-out infinite;
        }

        @keyframes glowPulse {
            0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
            50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.05); }
        }

        .about-text {
            opacity: 0;
        }

        .about-title {
            font-size: clamp(1.5rem, 3vw, 2.5rem);
            font-weight: 300;
            margin-bottom: 3rem;
            color: #444444;
            letter-spacing: 0.15em;
            opacity: 0;
        }

        .about-description {
            font-size: clamp(1rem, 2vw, 1.3rem);
            line-height: 1.6;
            font-weight: 300;
            color: var(--text-light-grey);
            max-width: 900px;
            margin-bottom: 2rem;
            letter-spacing: 0.02em;
            opacity: 0;
        }

        .about-line {
            display: block;
        }

        /* Removed CSS animation to prevent double animation - GSAP handles this in script.js */
        /* .about-text.animated .about-line {
            animation: lineSlideIn 0.8s ease forwards;
        }

        .about-text.animated .about-line:nth-child(1) { animation-delay: 0s; }
        .about-text.animated .about-line:nth-child(2) { animation-delay: 0.1s; }
        .about-text.animated .about-line:nth-child(3) { animation-delay: 0.2s; }
        .about-text.animated .about-line:nth-child(4) { animation-delay: 0.3s; }

        @keyframes lineSlideIn {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        } */

        .keyword {
            color: var(--text-white);
            font-style: italic;
            font-weight: 600;
            position: relative;
            display: inline-block;
            opacity: 0;
            transform: translateX(-10px);
        }

        /* First paragraph keywords */
        .about-description:nth-of-type(1) .about-line:nth-child(2) .keyword {
            animation: keywordSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            animation-delay: 0.5s;
        }

        .about-description:nth-of-type(1) .about-line:nth-child(3) .keyword {
            animation: keywordSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            animation-delay: 0.6s;
        }

        /* Second paragraph keywords */
        .about-description:nth-of-type(2) .about-line:nth-child(2) .keyword {
            animation: keywordSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
            animation-delay: 0.7s;
        }

        @keyframes keywordSlideIn {
            0% {
                opacity: 0;
                transform: translateX(-10px);
            }
            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }

        /* ========================================
           Experience Grid (Philosophy + Timeline)
           ======================================== */
        .experience-grid {
            display: grid;
            grid-template-columns: 1fr 1.2fr;
            gap: 8rem;
            max-width: 1600px;
            margin: 0 auto;
        }

        /* ========================================
           Design Philosophy Section
           ======================================== */
        .philosophy-section {
            opacity: 0;
            transform: translateY(30px);
            display: flex;
            flex-direction: column;
        }

        .philosophy-title {
            font-size: clamp(1.5rem, 3vw, 2.5rem);
            font-weight: 300;
            margin-bottom: 5rem;
            color: #444444;
            letter-spacing: 0.15em;
        }

        .philosophy-item {
            display: flex;
            gap: 2rem;
            margin-bottom: 5rem;
            opacity: 0;
            transform: translateX(-30px);
        }

        .philosophy-item:last-child {
            margin-bottom: 0;
        }

        .philosophy-number {
            font-size: 3rem;
            font-weight: 800;
            color: rgba(255, 255, 255, 0.1);
            line-height: 1;
            flex-shrink: 0;
            font-style: italic;
        }

        .philosophy-content {
            flex: 1;
        }

        .philosophy-keyword {
            font-size: clamp(1.5rem, 2.5vw, 2rem);
            font-weight: 500;
            color: var(--text-white);
            margin-bottom: 1rem;
            font-style: normal;
            letter-spacing: 0.05em;
            position: relative;
            display: inline-block;
        }

        .philosophy-keyword::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .philosophy-item:hover .philosophy-keyword::after {
            width: 100%;
        }

        .philosophy-desc {
            font-size: 1.1rem;
            line-height: 1.6;
            color: var(--text-grey);
        }

        /* ========================================
           Timeline (Experience) - SIMPLIFIED
           ======================================== */
        .timeline {
            position: relative;
        }

        .timeline-title {
            font-size: clamp(1.5rem, 3vw, 2.5rem);
            font-weight: 300;
            margin-bottom: 5rem;
            text-align: left;
            color: #444444;
            opacity: 0;
            transform: translateY(30px);
            letter-spacing: 0.15em;
        }

        .timeline-track {
            position: relative;
            padding-left: 3rem;
            /* Single continuous line */
            border-left: 1px solid rgba(255, 255, 255, 0.1);
        }

        /* MODIFIED: Removed Arrow */
        .timeline-track::after {
            display: none;
        }

        .timeline-item {
            position: relative;
            margin-bottom: 5rem;
            opacity: 0;
            transform: translateX(-30px);
            cursor: pointer; /* Indicates interaction */
        }

        /* MODIFIED: Interactive Anchor Point on Hover */
        .timeline-item::before {
            content: '';
            position: absolute;
            left: -3rem; /* Align exactly to the border padding */
            top: 0.8rem; /* Align with the title vertically */
            width: 10px;
            height: 10px;
            background: var(--accent);
            border-radius: 50%;
            /* Center the dot on the line (1px line, 10px dot -> -5px offset + 0.5px line center) */
            transform: translateX(-50%) scale(0);
            opacity: 0;
            box-shadow: 0 0 15px var(--accent), 0 0 30px var(--accent);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy effect */
            z-index: 2;
        }

        .timeline-item:hover::before {
            transform: translateX(-50%) scale(1);
            opacity: 1;
        }

        .timeline-content {
            padding-left: 2rem;
            transition: transform 0.3s ease;
        }

        .timeline-item:hover .timeline-content {
            transform: translateX(10px);
        }

        .timeline-year {
            font-size: 0.9rem;
            color: var(--accent);
            letter-spacing: 0.1em;
            margin-bottom: 0.5rem;
            font-weight: 600;
            display: inline-block;
            background: rgba(255,255,255,0.05);
            padding: 0.2rem 0.8rem;
            border-radius: 20px;
        }

        .timeline-role {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text-white);
            margin-bottom: 0.8rem;
        }

        .timeline-desc {
            color: var(--text-grey);
            line-height: 1.6;
            font-size: 1.1rem;
        }

        /* ========================================
           Hero Section
           ======================================== */

        .hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 8rem 4rem 4rem;
            position: relative;
            z-index: 1;
            background: transparent;
            overflow: hidden;
        }

        /* Digital Grid Background */
        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image:
                linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
            background-size: 50px 50px;
            animation: gridMove 20s linear infinite;
            pointer-events: none;
            z-index: 0;
        }

        @keyframes gridMove {
            0% { transform: translate(0, 0); }
            100% { transform: translate(50px, 50px); }
        }

        /* Matrix Rain Canvas */
        #matrix-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.15;
            pointer-events: none;
            z-index: 0;
        }

        .hero-container {
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
            text-align: left;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 3rem;
            position: relative;
            z-index: 1;
            padding-left: 4rem;
        }

        .hero-main-title {
            font-size: clamp(1.2rem, 3vw, 2rem);
            font-weight: 400;
            line-height: 2.5;
            letter-spacing: 0.05em;
            margin: 0;
            text-align: left;
            max-width: 1400px;
            font-family: 'Press Start 2P', cursive;
            text-transform: uppercase;
            position: relative;
        }

        .title-line-1,
        .title-line-2 {
            display: block;
            color: var(--text-white);
            opacity: 0;
            position: relative;
            overflow: visible;
            padding: 0.5rem 0;
        }

        /* Pixel scanline effect */
        @keyframes pixelScanline {
            0% {
                clip-path: inset(0 0 100% 0);
            }
            100% {
                clip-path: inset(0 0 0 0);
            }
        }

        /* Pixel blink cursor */
        @keyframes pixelBlink {
            0%, 49% {
                opacity: 1;
            }
            50%, 100% {
                opacity: 0;
            }
        }

        .hero-main-title.loaded .title-line-1,
        .hero-main-title.loaded .title-line-2 {
            position: relative;
        }

        /* Smiley cursor effect */
        .title-line-2::after {
            content: ':)';
            display: inline-block;
            margin-left: 0.5rem;
            animation: pixelBlink 1s infinite;
            opacity: 0;
        }

        .hero-main-title.loaded .title-line-2::after {
            animation: pixelBlink 1s infinite;
            opacity: 1;
        }

        /* Chinese pixel font for hero slogan only when in Chinese mode */
        body.lang-zh .hero-main-title {
            font-family: 'Zpix', 'Press Start 2P', cursive;
            font-size: clamp(1.1rem, 2.8vw, 1.9rem);
            line-height: 2.6;
        }

        /* Scanline effect overlay on hero */
        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: repeating-linear-gradient(
                0deg,
                rgba(255, 255, 255, 0.015) 0px,
                rgba(0, 0, 0, 0.02) 1px,
                rgba(0, 0, 0, 0.02) 2px,
                rgba(255, 255, 255, 0.015) 3px
            );
            pointer-events: none;
            z-index: 2;
            opacity: 0.6;
            animation: scanlineMove 8s linear infinite;
        }

        @keyframes scanlineMove {
            0% { transform: translateY(0); }
            100% { transform: translateY(4px); }
        }

        /* Vignette and noise overlay */
        .hero-section::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background:
                radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/></filter><rect width="300" height="300" filter="url(%23noise)" opacity="0.05"/></svg>');
            pointer-events: none;
            z-index: 2;
            mix-blend-mode: overlay;
        }

        /* Pixel-style keyword with bracket accent */
        .emphasis-text {
            color: var(--text-white);
            font-style: normal;
            font-weight: 400;
            position: relative;
            display: inline-block;
            padding: 0;
            background: transparent;
            letter-spacing: inherit;
            margin: 0;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        /* Pixel bracket decorations */
        .emphasis-text::before {
            content: '[';
            margin-right: 0.3em;
            color: rgba(255, 255, 255, 0.5);
        }

        .emphasis-text::after {
            content: ']';
            margin-left: 0.3em;
            color: rgba(255, 255, 255, 0.5);
        }

        /* Hover effect - invert colors */
        .emphasis-text:hover {
            color: #000000;
            background: var(--text-white);
            padding: 0 0.3em;
        }

        .emphasis-text:hover::before,
        .emphasis-text:hover::after {
            color: #000000;
        }

        /* Add pixel box decoration on active */
        .emphasis-text.active {
            animation: pixelFlash 0.5s ease;
        }

        @keyframes pixelFlash {
            0%, 100% {
                opacity: 1;
            }
            50% {
                opacity: 0.5;
            }
        }

        .hero-info-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            width: 100%;
            max-width: 1200px;
            padding-top: 5rem;
            opacity: 0;
            transform: translateY(30px);
            margin-top: auto;
        }

        .info-column {
            text-align: left;
            padding: 2rem;
            /* Subtle glass effect */
            background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(5px);
            border-radius: 8px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(20px);
        }

        .info-column:hover {
            background: rgba(255, 255, 255, 0.06);
            transform: translateY(-5px);
        }

        .info-label {
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.5);
            letter-spacing: 0.15em;
            text-transform: uppercase;
            margin-bottom: 1rem;
            font-weight: 600;
        }

        .info-content {
            font-size: 1.1rem;
            color: var(--text-white);
            line-height: 1.5;
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 500;
        }

        .status-dot {
            width: 10px;
            height: 10px;
            background: #00ff00;
            border-radius: 50%;
            display: inline-block;
            animation: pulse 2s ease-in-out infinite;
            box-shadow: 0 0 15px rgba(0,255,0,0.8);
            margin-right: 8px;
            transition: all 0.3s ease;
        }

        .status-dot.available {
            background: #00ff00;
            box-shadow: 0 0 15px rgba(0,255,0,0.8);
        }

        .status-dot.busy {
            background: #ff0000;
            box-shadow: 0 0 15px rgba(255,0,0,0.8);
        }

        .status-dot.vacation {
            background: #ffcc00;
            box-shadow: 0 0 15px rgba(255,204,0,0.8);
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(0.9); }
        }

        .scroll-indicator {
            position: absolute;
            bottom: 3rem;
            left: 50%;
            transform: translateX(-50%);
            text-align: center;
            opacity: 0;
        }

        .scroll-arrow {
            width: 24px;
            height: 24px;
            margin: 0 auto;
            animation: bounce 2s ease-in-out infinite;
        }

        .scroll-arrow svg {
            width: 100%;
            height: 100%;
            stroke: var(--text-grey);
            stroke-width: 2;
        }

        @keyframes bounce {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(10px); }
        }

        /* ========================================
           Showcase Section
           ======================================== */

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 3rem;
            max-width: 1600px;
            margin: 0 auto;
        }

        /* Retaining Borders for Project Cards */
        .project-card {
            background: rgba(10, 10, 10, 0.5);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            opacity: 0;
            transform: translateY(50px);
            position: relative;
            display: flex;
            flex-direction: column;
            height: 100%;
            min-height: 600px;
        }

        /* Enhanced Hover Effect - Smoother with refined glow */
        .project-card:hover {
            border-color: rgba(255, 255, 255, 0.4);
            background: rgba(20, 20, 20, 0.9);
            box-shadow:
                0 0 0 1px rgba(255, 255, 255, 0.1),
                0 25px 50px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(255, 255, 255, 0.05);
            transform: translateY(-12px);
            z-index: 10;
        }

        /* Glass Sheen Effect - Using transform for better performance */
        .project-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 50%;
            height: 100%;
            background: linear-gradient(to right,
                transparent,
                rgba(255, 255, 255, 0.1),
                transparent);
            transform: translateX(-200%) skewX(-25deg);
            z-index: 5;
            pointer-events: none;
            will-change: transform;
            transition: transform 0s;
        }

        .project-card:hover::after {
            transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
            transform: translateX(400%) skewX(-25deg);
        }

        @keyframes scanLine {
            0% {
                transform: translateY(-100%);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 0.8;
            }
            100% {
                transform: translateY(600px);
                opacity: 0;
            }
        }

        .project-image {
            position: relative;
            overflow: hidden;
            aspect-ratio: 16/10;
            background: var(--medium-grey);
        }

        .project-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform: scale(1);
            filter: grayscale(20%) brightness(0.9);
            will-change: transform;
            transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                        filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .project-card:hover .project-image img {
            transform: scale(1.08);
            filter: grayscale(0%) brightness(1.05);
        }

        /* Grey overlay - default visible, smooth fade on hover */
        .project-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0.4) 60%,
                rgba(0, 0, 0, 0.7) 100%
            );
            transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
            z-index: 10;
        }

        .project-card:hover .project-overlay {
            background: linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 0) 100%
            );
        }

        /* View button - positioned absolutely, independent of overlay */
        .project-btn {
            color: var(--text-white);
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 600;
            letter-spacing: 0.05em;
            padding: 0.7rem 2.8rem;
            background: rgba(255, 255, 255, 0.12);
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.4);
            border-radius: 50px;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            display: inline-block;
            opacity: 0;
            transform: translateY(30px) scale(0.9);
            pointer-events: auto;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            position: absolute;
            bottom: 3rem;
            left: 50%;
            transform: translateX(-50%) translateY(30px) scale(0.9);
            z-index: 15;
        }

        .project-card:hover .project-btn {
            opacity: 1;
            transform: translateX(-50%) translateY(0) scale(1);
        }

        .project-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            border-color: rgba(255, 255, 255, 0.7);
            transform: translateX(-50%) translateY(-3px) scale(1.05);
            box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
        }

        .project-btn:active {
            transform: translateX(-50%) translateY(-1px) scale(0.98);
        }

        /* Coming Soon Styles */
        .project-card.coming-soon {
            opacity: 0.6;
            border-style: dashed;
        }

        .coming-soon-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .coming-soon-text {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--text-grey);
            letter-spacing: 0.05em;
        }

        .project-info {
            padding: 2.5rem;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            background: transparent;
            /* Ensure info sits 'above' for 3D effect context if needed, though mostly flat here */
            position: relative;
            z-index: 2;
        }

        .project-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            padding-bottom: 1rem;
        }

        .project-category,
        .project-year {
            font-size: 0.8rem;
            color: var(--text-grey);
            letter-spacing: 0.05em;
            text-transform: uppercase;
        }

        .project-title {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 1rem;
            letter-spacing: -0.01em;
            color: var(--text-white);
        }

        .project-description {
            color: var(--text-light-grey);
            line-height: 1.6;
            margin-bottom: 2rem;
            font-size: 0.95rem;
            flex-grow: 1;
        }

        .project-tech {
            display: flex;
            gap: 0.8rem;
            flex-wrap: wrap;
            align-items: center;
            padding-bottom: 5px;
        }

        .project-tech span {
            padding: 0.4rem 1rem;
            background: rgba(255,255,255,0.03);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 20px;
            font-size: 0.75rem;
            color: var(--text-grey);
            white-space: nowrap;
            flex-shrink: 0;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            transform: translateY(0);
        }

        .project-card:hover .project-tech span {
            background: rgba(255,255,255,0.12);
            border-color: rgba(255,255,255,0.2);
            color: var(--text-white);
            transform: translateY(-2px);
        }

        .project-tech span:nth-child(1) {
            transition-delay: 0s;
        }
        .project-tech span:nth-child(2) {
            transition-delay: 0.05s;
        }
        .project-tech span:nth-child(3) {
            transition-delay: 0.1s;
        }

        /* ========================================
           Skills Section
           ======================================== */

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .skill-category-box {
            background: transparent; /* Clean look */
            background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
            border-radius: 16px;
            padding: 3rem 2rem;
            transition: transform 0.4s ease;
            position: relative;
            overflow: hidden;
            opacity: 0;
            transform: translateY(30px);
        }

        .skill-category-box:hover {
            transform: translateY(-10px);
            background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
        }

        .category-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 2rem;
            color: var(--text-white);
            padding-bottom: 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .category-keywords {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .keyword-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            color: var(--text-light-grey);
            font-size: 1rem;
            padding: 0.8rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            opacity: 0;
            transform: translateX(-10px);
        }

        .keyword-item:hover {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-white);
            transform: translateX(5px);
        }

        .keyword-icon {
            width: 20px;
            height: 20px;
            color: var(--text-grey);
            flex-shrink: 0;
            transition: color 0.3s ease;
        }

        .keyword-item:hover .keyword-icon {
            color: var(--accent);
        }

        .keyword-text {
            font-weight: 500;
        }

        /* ========================================
           Contact Section
           ======================================== */

        .contact {
            padding-top: 5rem;
        }

        .contact-content {
            max-width: 900px; /* Adjusted for 2 columns centered */
            margin: 0 auto;
            width: 100%;
        }

        .contact-methods {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2rem;
            margin-bottom: 2rem;
        }

        .contact-method {
            display: flex;
            align-items: center;
            gap: 1.5rem;
            padding: 2rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            border-radius: 12px;
            text-decoration: none;
            color: var(--text-white);
            transition: all 0.3s ease;
            opacity: 1;
            transform: translateY(0);
        }

        .contact-method:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: rgba(255, 255, 255, 0.12);
            transform: translateY(-4px);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
        }

        .contact-method:active {
            transform: translateY(-2px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        /* MODIFIED: Reverted to transparent background icon */
        .method-icon {
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.05); /* Reverted */
            color: var(--text-white); /* Reverted */
            flex-shrink: 0;
            transition: all 0.3s ease;
        }

        .contact-method:hover .method-icon {
            background: var(--accent);
            color: var(--black);
            transform: scale(1.1);
        }

        .method-info h3 {
            font-size: 1.1rem;
            margin-bottom: 0.15rem;
        }

        .method-info p {
            font-size: 0.9rem;
            color: var(--text-grey);
            word-break: break-all; /* Ensure long email breaks */
        }

        .method-arrow {
            font-size: 1.5rem;
            color: var(--text-grey);
            transition: transform 0.3s ease;
            margin-left: auto;
        }

        .contact-method:hover .method-arrow {
            transform: translateX(10px);
            color: var(--accent);
        }

        .contact-cta {
            text-align: center;
            padding: 2rem 4rem 1.5rem;
            background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 70%);
            border-radius: 20px;
            opacity: 1;
            transform: translateY(0);
            margin-bottom: 0;
        }

        .contact-cta h3 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }

        .contact-cta p {
            color: var(--text-grey);
            margin-bottom: 3rem;
            font-size: 1.1rem;
        }

        .btn {
            padding: 1rem 2.5rem;
            font-size: 1rem;
            font-weight: 600;
            border: none;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            transition: all 0.4s var(--ease-smooth);
            display: inline-flex;
            align-items: center;
            gap: 10px;
            text-decoration: none;
        }

        .btn-large {
            padding: 1.2rem 4rem;
            font-size: 1.1rem;
        }

        /* MODIFIED: Prominent Send Message Button */
        .btn-primary {
            background: rgba(255, 255, 255, 0.95);
            border: 2px solid rgba(255, 255, 255, 1);
            color: #000000;
            border-radius: 8px;
            transition: all 0.3s ease;
            font-weight: 500;
            font-family: 'Montserrat', 'Futura', sans-serif;
            text-transform: uppercase;
            letter-spacing: 0.15em;
            box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
        }

        .btn-primary:hover {
            background: rgba(255, 255, 255, 1);
            transform: translateY(-2px);
            box-shadow: 0 6px 30px rgba(255, 255, 255, 0.3);
        }

        .btn-primary:active {
            transform: translateY(0);
            box-shadow: 0 2px 15px rgba(255, 255, 255, 0.2);
        }

        /* ========================================
           Footer
           ======================================== */

        .footer {
            background: var(--black);
            padding: 0.5rem 4rem 6rem;
            position: relative;
        }

        /* Advanced Footer Animation Decor */
        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 0%;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: width 1s ease;
        }
        
        .footer.visible::before {
            width: 80%;
        }

        .footer-simple {
            text-align: center;
            max-width: 1600px;
            margin: 0 auto;
        }

        .footer-connect-title {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.4);
            letter-spacing: 0.3em;
            margin-bottom: 3rem;
            opacity: 1;
        }

        .footer-social {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 4rem;
        }

        .footer-social-link {
            width: 30px;
            height: 30px;
            color: rgba(255, 255, 255, 0.3);
            transition: all 0.5s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            opacity: 1;
            transform: translateY(0);
        }

        .footer-social-link:hover {
            color: var(--accent);
            transform: translateY(-5px) scale(1.2);
            filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
        }

        .footer-social-link svg {
            width: 100%;
            height: 100%;
        }

        /* ========================================
           Responsive Design
           ======================================== */

        @media (max-width: 1024px) {
            .projects-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .about-content {
                grid-template-columns: 1fr;
                gap: 4rem;
            }
            
            .about-avatar img {
                max-height: 450px;
            }

            /* Responsive adjustments for 3-column contact */
            .contact-methods {
                grid-template-columns: 1fr; /* Stack on smaller tablets/mobile */
                gap: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            section {
                padding: 6rem 2rem;
            }

            .main-nav {
                padding: 1.5rem 2rem;
            }

            .nav-links {
                display: none; /* Hide on mobile for simplicity in this demo */
            }

            .hero {
                padding: 6rem 2rem 4rem;
            }

            .page-nav {
                display: none;
            }

            .hero-info-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }

            .projects-grid {
                grid-template-columns: 1fr;
            }

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

        /* ========================================
           AI Chatbot
           ======================================== */

        .chatbot-container {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            z-index: 9999;
        }

        .chatbot-toggle {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            padding: 0.8rem 1.2rem;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 50px;
            color: var(--text-white);
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
        }

        .chatbot-toggle:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-2px);
        }

        .chatbot-window {
            position: absolute;
            bottom: 4rem;
            right: 0;
            width: 320px;
            max-height: 500px;
            background: rgba(15, 15, 15, 0.95);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            opacity: 0;
            transform: translateY(20px) scale(0.95);
            pointer-events: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
        }

        .chatbot-window.active {
            opacity: 1;
            transform: translateY(0) scale(1);
            pointer-events: all;
        }

        .chatbot-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .chatbot-header h3 {
            margin: 0;
            color: var(--text-white);
            font-size: 1.1rem;
        }

        .chatbot-close {
            background: none;
            border: none;
            color: var(--text-grey);
            font-size: 1.5rem;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .chatbot-close:hover {
            color: var(--text-white);
        }

        .chatbot-messages {
            flex: 1;
            overflow-y: auto;
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            max-height: 400px;
        }

        .chatbot-message {
            display: flex;
            animation: messageSlideIn 0.3s ease;
        }

        @keyframes messageSlideIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .chatbot-message p {
            padding: 0.8rem 1.2rem;
            border-radius: 12px;
            margin: 0;
            line-height: 1.5;
            font-size: 0.9rem;
        }

        .bot-message p {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-white);
        }

        .user-message {
            justify-content: flex-end;
        }

        .user-message p {
            background: var(--accent);
            color: var(--black);
        }

        .chatbot-input-area {
            display: flex;
            gap: 0.6rem;
            padding: 1rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        #chatbot-input {
            flex: 1;
            padding: 0.7rem 1rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 8px;
            color: var(--text-white);
            font-size: 0.9rem;
        }

        #chatbot-input:focus {
            outline: none;
            border-color: rgba(255, 255, 255, 0.3);
        }

        #chatbot-send {
            padding: 0.7rem 1.2rem;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            border-radius: 8px;
            color: var(--text-white);
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        #chatbot-send:hover {
            background: var(--accent);
            color: var(--black);
        }

        .chatbot-api-notice {
            padding: 0.5rem 1.5rem 1rem;
            text-align: center;
        }

        .chatbot-api-notice small {
            color: var(--text-grey);
            font-size: 0.75rem;
        }

        #chatbot-input:disabled,
        #chatbot-send:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .chatbot-thinking p {
            display: inline-flex;
            gap: 4px;
            align-items: center;
        }

        .chatbot-thinking p span {
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--text-light-grey);
            opacity: 0.4;
            animation: chatbotDot 1.2s infinite ease-in-out;
        }

        .chatbot-thinking p span:nth-child(2) { animation-delay: 0.15s; }
        .chatbot-thinking p span:nth-child(3) { animation-delay: 0.3s; }

        @keyframes chatbotDot {
            0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
            40% { opacity: 1; transform: translateY(-3px); }
        }
