        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');
        @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100..800&display=swap');
    
        /* CSS Variables for dynamic theming */
        :root {
            --primary: #FAFAFA;
            --secondary: #0A0A0A;
            --accent: #FF3B30;
            --success: #34C759;
            --progress: #007AFF;
            --gray-100: #F5F5F5;
            --gray-200: #E5E5E5;
            --gray-300: #D4D4D4;
            --gray-400: #A3A3A3;
            --gray-500: #737373;
            --gray-600: #525252;
            --gray-700: #404040;
            --gray-800: #262626;
            --gray-900: #171717;
        
            /* Dynamic spacing system */
            --space-xs: clamp(0.5rem, 1vw, 0.75rem);
            --space-sm: clamp(1rem, 2vw, 1.5rem);
            --space-md: clamp(2rem, 4vw, 3rem);
            --space-lg: clamp(4rem, 8vw, 6rem);
            --space-xl: clamp(6rem, 12vw, 10rem);
        
            /* Fluid typography */
            --text-xs: clamp(0.75rem, 1.5vw, 0.875rem);
            --text-sm: clamp(0.875rem, 2vw, 1rem);
            --text-base: clamp(1rem, 2.5vw, 1.125rem);
            --text-lg: clamp(1.25rem, 3vw, 1.5rem);
            --text-xl: clamp(1.5rem, 4vw, 2rem);
            --text-2xl: clamp(2rem, 5vw, 3rem);
            --text-3xl: clamp(3rem, 8vw, 5rem);
            --text-4xl: clamp(4rem, 10vw, 8rem);
            --text-5xl: clamp(6rem, 15vw, 12rem);
        
            /* Custom easing functions */
            --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
            --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
            --ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
            --ease-signature-primary: cubic-bezier(0.4, 0.01, 0.165, 0.99);
            --ease-signature-secondary: cubic-bezier(0.6, 0.04, 0.98, 0.335);
            --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
        
            /* Noise texture */
            --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
            --grid: rgba(250, 250, 250, 0.05);
            --warning: #FF9500;
            --info: #007AFF;
        }
        
        /* Reduced motion preferences */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }
        
        /* Global resets with advanced defaults */
        *, *::before, *::after {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            cursor: none !important;
        }
        
        html {
            font-size: 16px;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
            cursor: none !important;
            overflow: hidden;
        }
        
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            font-weight: 400;
            line-height: 1.5;
            color: var(--secondary);
            background: var(--secondary);
            overflow: hidden;
            position: relative;
            cursor: none !important;
            height: 100vh;
            contain: layout style;
            transform: translateZ(0);
        }
        
        /* Mobile body overrides */
        body.mobile {
            overflow: auto !important;
            cursor: auto !important;
            height: auto !important;
            -webkit-overflow-scrolling: touch;
        }
        
        body.mobile * {
            cursor: auto !important;
        }
        
        /* Noise overlay for texture */
        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: var(--noise);
            pointer-events: none;
            z-index: 1000;
            opacity: 0.5;
        }
        
        /* Temperature shift overlay */
        .temperature-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 999;
            background: linear-gradient(180deg,
                rgba(255, 249, 240, 0) 0%,
                rgba(240, 249, 255, 0.03) 100%
            );
            opacity: 0;
            transition: opacity 2s ease;
        }
        
        /* Advanced custom cursor */
        .cursor {
            position: fixed;
            top: 0;
            left: 0;
            width: 20px;
            height: 20px;
            pointer-events: none;
            z-index: 10000;
            mix-blend-mode: difference;
            will-change: transform;
            contain: layout style;
        }
        
        .cursor-dot {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 8px;
            height: 8px;
            background: var(--primary);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: transform 0.15s var(--ease-out-expo);
            will-change: transform;
        }
        
        .cursor-ring {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 30px;
            height: 30px;
            border: 1px solid var(--primary);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: all 0.3s var(--ease-out-expo);
            will-change: transform, width, height, border-width;
        }
        
        /* Cursor states */
        body.hovering .cursor-dot {
            transform: translate(-50%, -50%) scale(0.5);
        }
        
        body.hovering .cursor-ring {
            width: 60px;
            height: 60px;
            border-width: 2px;
        }
        
        body.dragging .cursor-ring {
            width: 15px;
            height: 15px;
        }
        
        body.text-hover .cursor-ring {
            width: 100px;
            height: 30px;
            border-radius: 20px;
        }
        
        /* Magnetic cursor effect container */
        .magnetic {
            position: relative;
            display: inline-block;
            transition: transform 0.4s var(--ease-out-expo);
            will-change: transform;
            transform: translateZ(0);
            contain: layout;
        }
        
        /* Particle canvas - optimized */
        #particleCanvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 998;
            will-change: transform;
            transform: translateZ(0);
        }
        
        /* Navigation */
        .nav {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 60px;
            z-index: 500;
            mix-blend-mode: difference;
        }
        
        .nav-inner {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .nav-logo {
            font-size: var(--text-sm);
            font-weight: 600;
            letter-spacing: -0.02em;
            color: var(--primary);
            text-decoration: none;
            margin-left: 53px;
        }
        
        .nav-menu {
            display: flex;
            gap: var(--space-md);
            list-style: none;
            margin-right: 50px;
        }
        
        .nav-link {
            position: relative;
            font-size: var(--text-sm);
            font-weight: 500;
            color: var(--primary);
            text-decoration: none;
            overflow: hidden;
            display: inline-block;
            padding: 0.5rem 0;
        }
        
        .nav-link span {
            display: inline-block;
            transition: transform 0.3s var(--ease-signature-primary);
        }
        
        .nav-link::after {
            content: attr(data-text);
            position: absolute;
            top: 100%;
            left: 0;
            transition: top 0.3s var(--ease-signature-primary);
        }
        
        .nav-link:hover span {
            transform: translateY(-100%);
        }
        
        .nav-link:hover::after {
            top: 50%;
            transform: translateY(-50%);
        }
        
        /* FIXED: Sections container with proper isolation */
        .sections-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            perspective: 1200px;
            transform-style: preserve-3d;
            isolation: isolate; /* Prevent z-index issues */
        }
        
        section {
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100vh;
            padding: var(--space-xl) var(--space-md);
            display: flex;
            align-items: center;
            justify-content: center;
            will-change: transform;
            transform-origin: center center;
            transform-style: preserve-3d;
            backface-visibility: hidden;
            transition: none;
            contain: layout style paint;
        }
        
        section { z-index: 10; }
        
        /* Parallax layers */
        .parallax-layer {
            position: absolute;
            width: 100%;
            height: 100%;
            will-change: transform;
            transform: translateZ(0);
            contain: layout style;
        }
        
        /* Hero Section */
        .hero {
            background: var(--secondary);
            color: var(--primary);
            overflow: hidden;
        }
        
        .hero-content {
            width: 100%;
            max-width: 1600px;
            margin: 0 auto;
            padding-left: var(--space-md);
            position: relative;
            z-index: 10;
        }
        
        .hero-title {
            font-size: var(--text-5xl);
            font-weight: 900;
            line-height: 0.85;
            letter-spacing: -0.06em;
            margin-bottom: var(--space-md);
        }
        
        .hero-title .word {
            display: inline-block;
            position: relative;
            overflow: visible;
        }
        
        .hero-title .char {
            display: inline-block;
            position: relative;
            transform-origin: center bottom;
            will-change: transform, opacity;
            opacity: 0;
            transform: translateY(2em) rotateX(-90deg) rotateZ(0) scale(0);
            contain: layout style;
        }
        
        .hero-subtitle {
            font-size: var(--text-lg);
            font-weight: 300;
            color: var(--gray-400);
            max-width: 40ch;
            overflow: hidden;
        }
        
        .hero-subtitle .char {
            display: inline-block;
            opacity: 0;
            transform: translateY(1em) rotateX(-90deg);
            transform-origin: center center;
        }
        
        /* Dynamic constellation */
        .constellation-container {
            position: absolute;
            right: 15%;
            top: 50%;
            transform: translateY(-50%);
            width: 28vw;
            height: 28vw;
            max-width: 450px;
            max-height: 450px;
        }
        
        #constellationCanvas {
            width: 100%;
            height: 100%;
        }
    
        /* FIXED: Projects Section with better scroll handling */
        .projects {
            background: var(--primary);
            align-items: flex-start !important;
            overflow-y: auto;
            overflow-x: hidden;
            padding-top: calc(var(--space-lg) + var(--space-md)) !important;
            padding-bottom: 0 !important;
            -webkit-overflow-scrolling: touch;
            /* REMOVED scroll-behavior: smooth - this was causing conflicts */
        }
        
        /* FIXED: Ensure projects section doesn't interfere with transform animations */
        .projects.section-active {
            pointer-events: auto;
        }
        
        .projects:not(.section-active) {
            pointer-events: none;
        }
        
        .project-item {
            padding: calc(var(--space-md) * 0.75) 0;
            border-bottom: 1px solid var(--gray-200);
            position: relative;
            overflow: visible;
            opacity: 0;
            transform: translateX(40px) scale(0.97);
            transition: all 0.5s var(--ease-out-expo);
            cursor: none;
            background: transparent;
            will-change: transform, opacity;
            contain: layout style;
        }
        
        .project-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: -20px;
            right: -20px;
            height: 100%;
            background: linear-gradient(90deg,
                transparent 0%,
                rgba(0, 0, 0, 0.02) 20%,
                rgba(0, 0, 0, 0.02) 80%,
                transparent 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
            z-index: -1;
        }
        
        .project-item:hover {
            transform: translateX(-2px);
        }
        
        .project-item:hover::before {
            opacity: 1;
        }
        
        .project-item::after {
            content: '';
            position: absolute;
            bottom: -1px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--secondary);
            transition: width 0.6s var(--ease-signature-primary);
            z-index: 1;
        }
        
        .project-item:hover::after {
            width: 100%;
        }
        
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        .project-item:hover::before {
            opacity: 0.6;
        }
        
        /* 3D tilt effect on hover */
        .project-item:hover {
            transform: translateX(-4px) scale(1) perspective(1000px) rotateY(-2deg);
            background: linear-gradient(135deg,
                rgba(255, 255, 255, 0.05) 0%,
                rgba(255, 255, 255, 0.08) 100%);
        }
        
        .project-item:first-child {
            padding-top: 0;
            border-top: none;
        }
    
        .projects::-webkit-scrollbar {
            width: 6px;
        }
        
        .projects::-webkit-scrollbar-track {
            background: transparent;
        }
        
        .projects::-webkit-scrollbar-thumb {
            background: var(--gray-300);
            border-radius: 0;
            transition: background 0.3s ease;
        }
        
        .projects::-webkit-scrollbar-thumb:hover {
            background: var(--gray-500);
        }
        
        /* Firefox scrollbar */
        .projects {
            scrollbar-width: thin;
            scrollbar-color: var(--gray-300) transparent;
        }
    
        .projects-container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 var(--space-md);
            min-height: 100%;
        }
        
        .project-list {
            padding-top: 0;
            padding-bottom: var(--space-lg);
        }
        
        .project-item:last-child {
            padding-bottom: calc(var(--space-md) * 0.75);
            margin-bottom: 0;
            border-bottom: none;
        }
        
        .project-item.animated {
            opacity: 1;
            transform: translateX(0) scale(1);
        }
        
        /* Project header structure */
        .project-header {
            display: block;
            width: 100%;
        }
        
        .project-header-left {
            width: 100%;
        }
        
        /* Title and year row with proper spacing */
        .project-title-row {
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            margin-bottom: 10px;
        }
        
        .project-title {
            font-size: clamp(2rem, 5vw, 3rem);
            font-weight: 700;
            letter-spacing: -0.02em;
            line-height: 0.9;
        }
        
        /* Title character animation */
        .project-title .char {
            display: inline-block;
            transition: all 0.3s var(--ease-elastic);
            position: relative;
            will-change: transform, color;
            transform: translateZ(0);
        }
        
        .project-item:hover .project-title .char {
            animation: titleWave 0.5s var(--ease-elastic) forwards;
            animation-delay: calc(var(--char-index) * 0.015s);
        }
        
        @keyframes titleWave {
            0% {
                transform: translateY(0) scale(1) rotateZ(0);
                color: inherit;
            }
            50% {
                transform: translateY(-0.15em) scale(1.05) rotateZ(-0.5deg);
                color: var(--accent);
            }
            100% {
                transform: translateY(0) scale(1) rotateZ(0);
                color: var(--accent);
            }
        }
        
        .project-description {
            font-size: 14px;
            color: var(--gray-600);
            line-height: 1.5;
            margin-bottom: 12px;
            max-width: 65%;
        }
        
        .project-item:hover .project-description {
            color: var(--gray-700);
        }
        
        .project-tags {
            display: flex;
            gap: 14px;
            font-size: 11px;
            margin-bottom: 0;
            flex-wrap: wrap;
        }
        
        .project-tags span {
            background: transparent;
            padding: 0;
            border-radius: 0;
            opacity: 0;
            transform: translateY(8px);
            display: inline-block;
            color: var(--gray-500);
            position: relative;
            transition: all 0.25s var(--ease-out-expo);
        }
        
        /* Add separator dots between tags */
        .project-tags span:not(:last-child)::after {
            content: '·';
            position: absolute;
            right: -7px;
            color: var(--gray-300);
            pointer-events: none;
        }
        
        .project-item.animated .project-tags span {
            opacity: 0.6;
            transform: translateY(0);
            transition-delay: calc(0.2s + var(--index) * 0.02s);
        }
        
        .project-item:hover .project-tags span {
            opacity: 1;
            color: var(--gray-600);
        }
        
        /* Project links - refined positioning and animation */
        .project-links {
            position: absolute;
            right: 0;
            top: 35%;
            transform: translateY(-50%);
            display: flex;
            gap: 24px;
            opacity: 0;
            transition: opacity 0.25s ease;
        }
        
        .project-item:hover .project-links {
            opacity: 1;
            transition-delay: 0.05s;
        }
        
        .project-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 13px;
            font-weight: 500;
            color: var(--gray-400);
            text-decoration: none;
            text-transform: lowercase;
            letter-spacing: 0.03em;
            padding: 8px 0;
            position: relative;
            transition: all 0.25s var(--ease-out-expo);
        }
        
        .project-link svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            stroke-width: 2;
            transition: transform 0.25s var(--ease-out-expo);
            opacity: 0.7;
        }
        
        /* Subtle underline effect */
        .project-link::after {
            content: '';
            position: absolute;
            bottom: 6px;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--accent);
            transition: width 0.25s var(--ease-signature-primary);
        }
        
        .project-link:hover {
            color: var(--secondary);
        }
        
        .project-link:hover::after {
            width: calc(100% - 22px);
        }
        
        .project-link:hover svg {
            transform: translate(3px, -3px);
            opacity: 1;
        }
        
        .project-link.disabled {
            opacity: 0.3;
            pointer-events: none;
        }
        
        /* Enhanced hover state for entire project */
        .project-item:hover {
            transform: translateX(-2px) scale(1);
        }
        
        /* About Section */
        .about {
            background: var(--gray-100);
        }
        
        .about-content {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: var(--space-xl);
            align-items: center;
            max-width: 1200px;
        }
        
        .about-title {
            font-size: var(--text-4xl);
            font-weight: 800;
            line-height: 0.9;
            letter-spacing: -0.04em;
            overflow: visible;
            white-space: nowrap;
        }
        
        .about-title .char {
            display: inline-block;
            opacity: 0;
            transform: scale(0.5) translateY(20px);
            transform-origin: center;
        }
        
        .about-text {
            font-size: var(--text-xl);
            line-height: 1.4;
            font-weight: 300;
            color: var(--gray-700);
        }
        
        .about-text .word {
            display: inline-block;
            opacity: 0;
            transform: translateY(10px);
            position: relative;
            white-space: pre-wrap;
        }
        
        .about-text .word:after {
            content: '\00a0';
        }
    
        .skills {
            margin-top: var(--space-md);
            display: flex;
            flex-wrap: wrap;
            gap: var(--space-sm);
            align-items: center;
        }
        
        .skill {
            position: relative;
            padding: 0.5rem 1.2rem;
            font-size: var(--text-sm);
            font-weight: 400;
            color: var(--gray-600);
            background: transparent;
            border: 1px solid var(--gray-300);
            border-radius: 2rem;
            cursor: pointer;
            opacity: 0;
            transform: scale(0.98) translateY(8px);
            transition: all 0.3s var(--ease-out-expo);
        }
        
        /* Refined hover state */
        .skill::before {
            content: '';
            position: absolute;
            inset: -1px;
            background: var(--secondary);
            border-radius: 2rem;
            opacity: 0;
            z-index: -1;
            transition: opacity 0.3s ease;
        }
        
        .skill:hover {
            color: var(--primary);
            border-color: transparent;
            transform: scale(1) translateY(-1px);
        }
        
        .skill:hover::before {
            opacity: 1;
        }
        
        /* Subtle inner glow */
        .skill::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 2rem;
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0);
            transition: box-shadow 0.3s ease;
        }
        
        .skill:hover::after {
            box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
        }
        
        /* Active state - subtle feedback */
        .skill:active {
            transform: scale(0.98);
            transition: all 0.1s ease;
        }
        
        /* Ensure magnetic effect compatibility */
        .skill.magnetic {
            transform-origin: center center;
        }
        
        /* Contact Section */
        .contact {
            background: var(--secondary);
            color: var(--primary);
            position: relative;
            overflow: hidden;
        }
        
        .contact-content {
            position: relative;
            z-index: 10;
            text-align: center;
            max-width: 1000px;
        }
        
        /* Continuous animated background text */
        .contact-bg-wrapper {
            position: absolute;
            top: 50%;
            left: 0;
            width: 100%;
            transform: translateY(-50%);
            overflow: hidden;
            white-space: nowrap;
        }
        
        .contact-bg-text {
            display: inline-block;
            font-size: 20vw;
            font-weight: 900;
            opacity: 0.03;
            animation: continuousSlide 25s linear infinite;
            padding-right: 2em;
        }
        
        .contact-bg-text:nth-child(2) {
            animation-delay: -12.5s;
        }
        
        @keyframes continuousSlide {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }
        
        .contact-title {
            font-size: var(--text-4xl);
            font-weight: 900;
            margin-bottom: var(--space-md);
            line-height: 0.9;
            overflow: visible;
        }
        
        .contact-title .word {
            display: inline-block;
            position: relative;
            margin: 0 0.2em;
        }
        
        .contact-title .char {
            display: inline-block;
            transform-origin: center bottom;
            transition: all 0.4s var(--ease-out-expo);
        }
        
        .email-link {
            font-size: var(--text-2xl);
            color: var(--primary);
            text-decoration: none;
            position: relative;
            display: inline-block;
            padding: var(--space-xs) 0;
            overflow: visible;
        }
        
        .email-link .char {
            display: inline-block;
            position: relative;
        }
        
        .email-link::before,
        .email-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            height: 2px;
            background: var(--primary);
            transition: all 0.3s var(--ease-signature-primary);
        }
        
        .email-link::before {
            left: 50%;
            width: 0;
        }
        
        .email-link::after {
            right: 50%;
            width: 0;
        }
    
        /* Project detail modal */
        .project-detail {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: var(--primary);
            z-index: 1500;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: var(--space-lg) var(--space-md);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        
        .project-detail.active {
            opacity: 1;
            pointer-events: all;
        }
        
        .project-detail-content {
            width: 100%;
            max-width: 920px;
            background: transparent;
            border-radius: 0;
            padding: var(--space-sm);
            transform: translateY(30px) scale(0.98);
            opacity: 0;
            transition: all 0.5s var(--ease-out-expo);
        }
        
        .project-detail.active .project-detail-content {
            transform: translateY(0) scale(1);
            opacity: 1;
        }
        
        .project-detail-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: var(--space-sm);
            padding-bottom: var(--space-xs);
            border-bottom: 1px solid var(--gray-200);
        }
        
        .project-detail-title {
            font-size: clamp(1.875rem, 3.2vw, 2.5rem);
            font-weight: 700;
            letter-spacing: -0.02em;
            line-height: 1.1;
            color: var(--secondary);
        }
        
        .project-detail-close {
            background: transparent;
            border: none;
            color: var(--gray-400);
            cursor: pointer;
            padding: 8px;
            margin: -8px -8px 0 0;
            transition: all 0.15s ease;
        }
        
        .project-detail-close svg {
            width: 24px;
            height: 24px;
            stroke-width: 1.5;
        }
        
        .project-detail-close:hover {
            color: var(--secondary);
            transform: rotate(90deg);
        }
        
        .project-detail-info {
            display: grid;
            grid-template-columns: 200px 1fr;
            gap: var(--space-lg);
            align-items: start;
            padding-top: var(--space-sm);
            margin-top: 0;
        }
        
        .project-detail-meta {
            font-size: 13px;
            color: var(--gray-500);
        }
        
        .project-detail-meta h4 {
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--gray-400);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
        }
        
        .project-detail-meta p {
            margin-bottom: 16px;
            line-height: 1.4;
            color: var(--gray-600);
            font-size: 15px;
        }
        
        /* Status-specific styling */
        .project-status {
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-weight: 500 !important;
            text-transform: capitalize;
        }
        
        .project-status::before {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--gray-400);
            flex-shrink: 0;
        }
        
        .project-status.complete::before {
            background: var(--success);
            box-shadow: 0 0 8px rgba(76, 175, 80, 0.4);
        }
        
        .project-status.progress::before {
            background: var(--warning);
            box-shadow: 0 0 8px rgba(255, 193, 7, 0.4);
            animation: statusPulse 2s ease infinite;
        }
        
        @keyframes statusPulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.6; transform: scale(0.9); }
        }
        
        .project-detail-main {
            max-width: none;
        }
        
        .project-detail-description {
            font-size: 17px;
            line-height: 1.6;
            color: var(--gray-700);
            margin-bottom: var(--space-sm);
            max-width: 65ch;
        }
        
        .project-detail-links {
            margin-top: var(--space-sm);
            display: flex;
            gap: 32px;
        }
        
        .project-detail-links a {
            font-size: 15px;
            font-weight: 500;
            color: var(--gray-500);
            text-decoration: none;
            text-transform: lowercase;
            letter-spacing: 0.03em;
            padding: 0;
            padding-bottom: 2px;
            position: relative;
            transition: all 0.25s var(--ease-out-expo);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        
        .project-detail-links a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 1px;
            background: var(--accent);
            transition: width 0.25s var(--ease-signature-primary);
        }
        
        .project-detail-links a:hover {
            color: var(--secondary);
        }
        
        .project-detail-links a:hover::after {
            width: calc(100% - 24px);
        }
        
        .project-detail-links a svg {
            width: 16px;
            height: 16px;
            stroke: currentColor;
            stroke-width: 2;
            transition: transform 0.2s ease;
        }
        
        .project-detail-links a:hover svg {
            transform: translate(3px, -3px);
        }
        
        .project-detail-links a.disabled {
            opacity: 0.3;
            pointer-events: none;
        }
        
        .project-detail-links a.disabled::after {
            display: none;
        }
        
        @media (max-width: 768px) {
            .project-detail-info {
                grid-template-columns: 1fr;
                gap: var(--space-md);
            }
        
            .project-detail-content {
                padding: var(--space-md);
                margin: var(--space-sm);
            }
        
            .project-detail-meta {
                padding-bottom: var(--space-sm);
                border-bottom: 1px solid var(--gray-200);
                margin-bottom: var(--space-sm);
            }
            
            .project-detail-links {
                flex-direction: column;
                gap: 16px;
            }
        }
    
        .project-detail-links a.disabled::after {
            display: none;
        }
        
        /* Enhanced fade in animations */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .project-detail.active .project-detail-meta h4,
        .project-detail.active .project-detail-meta p,
        .project-detail.active .project-detail-description {
            animation: fadeInUp 0.5s var(--ease-out-expo) forwards;
            opacity: 0;
        }
        
        .project-detail.active .project-detail-meta h4 {
            animation-delay: 0.3s;
        }
    
        .project-detail.active .project-detail-meta p {
            animation-delay: 0.35s;
        }
    
        .project-detail.active .project-detail-description {
            animation-delay: 0.4s;
        }
        
        /* Enhanced Page indicators */
        .page-indicators {
            position: fixed;
            right: calc(var(--space-md) + 60px);
            top: 50%;
            transform: translateY(-50%);
            z-index: 500;
        }
        
        .indicator {
            display: block;
            width: 40px;
            height: 3px;
            margin: 20px 0;
            background: rgba(255,255,255,0.2);
            position: relative;
            overflow: hidden;
            transition: all 0.25s ease;
            border-radius: 3px;
            backdrop-filter: blur(5px);
        }
        
        .indicator::before {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(255,255,255,0.1);
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
            border-radius: 3px;
        }
        
        .indicator.smart-contrast {
            background: rgba(0,0,0,0.3);
        }
        
        .indicator.smart-contrast::before {
            background: rgba(0,0,0,0.1);
        }
        
        .indicator::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--primary);
            transition: left 0.4s var(--ease-signature-primary);
            border-radius: 3px;
        }
        
        .indicator.active {
            height: 4px;
            box-shadow: 0 0 10px rgba(255,255,255,0.3);
        }
        
        .indicator.active::after {
            left: 0;
        }
        
        .indicator.smart-contrast.active::after {
            background: var(--secondary);
            box-shadow: 0 0 10px rgba(0,0,0,0.3);
        }
        
        .indicator span {
            position: absolute;
            right: 60px;
            top: 50%;
            transform: translateY(-50%);
            font-size: var(--text-xs);
            opacity: 0;
            transition: opacity 0.25s ease;
            white-space: nowrap;
            color: var(--primary);
        }
        
        .indicator:hover span {
            opacity: 1;
        }
        
        .indicator.smart-contrast span {
            color: var(--secondary);
        }
        
        /* Loader */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100vh;
            background: var(--secondary);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.6s var(--ease-signature-primary);
        }
        
        .loader.loaded {
            transform: translateY(-100%);
        }
        
        .loader-text {
            font-size: var(--text-sm);
            font-weight: 500;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            color: var(--primary);
            overflow: hidden;
        }
        
        .loader-text span {
            display: inline-block;
            transform: translateY(100%) rotateX(-90deg);
            transform-origin: center bottom;
            animation: loaderText 0.5s var(--ease-out-expo) forwards;
            animation-delay: calc(var(--i) * 0.04s);
        }
        
        @keyframes loaderText {
            0% {
                transform: translateY(100%) rotateX(-90deg);
                opacity: 0;
            }
            50% {
                transform: translateY(-10%) rotateX(-10deg);
                opacity: 1;
            }
            100% {
                transform: translateY(0) rotateX(0);
                opacity: 1;
            }
        }
        
        /* Social links */
        .social-links {
            margin-top: var(--space-md);
            display: flex;
            justify-content: center;
            gap: var(--space-md);
        }
        
        .social-link {
            font-size: var(--text-sm);
            color: var(--gray-500);
            text-decoration: none;
            position: relative;
            transition: color 0.25s ease;
        }
        
        .social-link .char {
            display: inline-block;
            transition: transform 0.25s var(--ease-elastic);
        }
        
        .social-link:hover {
            color: var(--primary);
        }
        
        .social-link:hover .char {
            animation: linkBounce 0.35s var(--ease-elastic) forwards;
            animation-delay: calc(var(--char-index) * 0.02s);
        }
        
        .social-link .char {
            display: inline-block;
        }
        
        .social-link:hover {
            color: var(--primary);
        }
        
        /* GRID BACKGROUND WITH PERSPECTIVE */
        .grid-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            perspective: 1000px;
            pointer-events: none;
            z-index: 2;
        }
    
        .grid {
            position: absolute;
            top: 50%;
            left: 50%;
            width: 200%;
            height: 200%;
            transform: translate(-50%, -50%) rotateX(60deg);
            background-image:
                linear-gradient(var(--grid) 1px, transparent 1px),
                linear-gradient(90deg, var(--grid) 1px, transparent 1px);
            background-size: 100px 100px;
            opacity: 0.5;
            animation: gridPulse 20s ease-in-out infinite;
        }
    
        @keyframes gridPulse {
            0%, 100% { transform: translate(-50%, -50%) rotateX(60deg) scale(1); }
            50% { transform: translate(-50%, -50%) rotateX(60deg) scale(1.1); }
        }
    
        /* NOISE TEXTURE */
        .noise {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            opacity: 0.03;
            z-index: 1;
            background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
        }
    
        /* MAIN CONTAINER */
        .hero-container {
            position: relative;
            width: 100%;
            height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            padding: 60px;
            z-index: 10;
        }
    
        /* TOP BAR ENHANCED */
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            position: relative;
        }
    
        .status {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 12px;
            font-weight: 500;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            opacity: 0.6;
            transition: opacity 0.3s ease;
        }
       
        /* Status in hero name container */
        .hero-name-container .status {
            opacity: 0.8;
        }
    
        .status:hover {
            opacity: 1;
        }
    
        .status-dot {
            position: relative;
            width: 8px;
            height: 8px;
            background: var(--success);
            border-radius: 50%;
            animation: statusPulse 2s ease infinite;
        }
    
        .status-dot::after {
            content: '';
            position: absolute;
            top: -4px;
            left: -4px;
            width: 16px;
            height: 16px;
            border: 1px solid var(--success);
            border-radius: 50%;
            opacity: 0;
            animation: statusRing 2s ease infinite;
        }
    
        @keyframes statusRing {
            0% { transform: scale(0.5); opacity: 1; }
            100% { transform: scale(2); opacity: 0; }
        }
    
        .location {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            letter-spacing: 0.05em;
            opacity: 0.3;
            transition: all 0.3s ease;
            position: relative;
        }
    
        .location:hover {
            opacity: 0.6;
            color: var(--info);
        }
    
        .location .coords {
            display: inline-block;
            min-width: 150px;
        }
    
        /* HERO CENTER ENHANCED */
        .hero-center {
            display: flex;
            align-items: center;
            gap: 50px;
            position: relative;
        }
    
        .vertical-lines {
            display: flex;
            gap: 25px;
        }
    
        .vertical-line {
            writing-mode: vertical-rl;
            transform: rotate(180deg);
            font-size: 11px;
            letter-spacing: 0.3em;
            text-transform: uppercase;
            opacity: 0.2;
            transition: all 0.4s ease;
            position: relative;
            padding: 20px 0;
        }
    
        .vertical-line::before {
            content: '';
            position: absolute;
            top: 0;
            right: 50%;
            width: 1px;
            height: 0;
            background: var(--accent);
            transition: height 0.6s ease;
        }
    
        .vertical-line:hover {
            opacity: 0.5;
            color: var(--accent);
        }
    
        .vertical-line:hover::before {
            height: 100%;
        }
    
        .hero-name {
            font-size: clamp(4rem, 10vw, 9rem);
            font-weight: 700;
            letter-spacing: -0.02em;
            line-height: 0.9;
            position: relative;
        }
       
        .hero-name-container {
            position: relative;
            display: inline-block;
        }
       
        .hero-name-container .status {
            position: absolute;
            top: 10px;
            right: -45px;
            transform: translateX(100%);
        }
    
        .hero-name .char {
            display: inline-block;
            transition: all 0.3s ease;
            position: relative;
        }
    
        .hero-name .slash {
            display: inline-block;
            margin: 0 0.15em;
            font-weight: 200;
            color: var(--accent);
            position: relative;
            animation: slashGlow 3s ease infinite;
        }
    
        @keyframes slashGlow {
            0%, 100% { opacity: 0.6; text-shadow: 0 0 0 transparent; }
            50% { opacity: 1; text-shadow: 0 0 20px rgba(255, 59, 48, 0.5); }
        }
    
    
        /* BOTTOM BAR ENHANCED */
        .bottom-bar {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            position: relative;
        }
    
        .hero-description {
            max-width: 450px;
            font-size: 14px;
            line-height: 1.7;
            opacity: 0.5;
            position: relative;
            padding-left: 20px;
        }
    
        .hero-description::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 2px;
            height: 100%;
            background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
            opacity: 0.5;
        }
    
        .hero-description .highlight {
            color: var(--accent);
            font-weight: 500;
            position: relative;
            white-space: nowrap;
        }
    
        .metrics {
            display: flex;
            gap: 60px;
            align-items: flex-end;
        }
    
        .metric {
            text-align: right;
        }
    
        .metric-value {
            font-family: 'JetBrains Mono', monospace;
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            display: block;
            position: relative;
        }
    
        .metric-label {
            font-size: 10px;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            opacity: 0.4;
            margin-top: 4px;
        }
    
        .scroll-indicator {
            display: flex;
            align-items: center;
            gap: 16px;
            font-size: 11px;
            letter-spacing: 0.2em;
            text-transform: uppercase;
            opacity: 0.4;
            transition: all 0.3s ease;
        }
    
        .scroll-indicator:hover {
            opacity: 0.8;
            gap: 24px;
        }
    
        .scroll-line {
            width: 40px;
            height: 1px;
            background: var(--primary);
            position: relative;
            overflow: hidden;
        }
    
        .scroll-line::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: var(--accent);
            animation: scrollLineMove 2s ease-in-out infinite;
        }
    
        @keyframes scrollLineMove {
            0% { left: -100%; }
            50% { left: 100%; }
            100% { left: 100%; }
        }
    
        /* CORNER BRACKETS */
        .corner {
            position: fixed;
            width: 20px;
            height: 20px;
            opacity: 0.3;
            z-index: 1001;
            transition: opacity 0.3s ease;
        }
    
        .corner::before,
        .corner::after {
            content: '';
            position: absolute;
            background: var(--primary);
            transition: background-color 0.4s ease;
        }
        
        /* Corner color adaptation for light backgrounds */
        .corner.light-bg::before,
        .corner.light-bg::after {
            background: var(--secondary);
        }
    
        .corner.top-left {
            top: 40px;
            left: 40px;
        }
    
        .corner.top-left::before {
            top: 0;
            left: 0;
            width: 100%;
            height: 1px;
        }
    
        .corner.top-left::after {
            top: 0;
            left: 0;
            width: 1px;
            height: 100%;
        }
    
        .corner.top-right {
            top: 40px;
            right: 40px;
        }
    
        .corner.top-right::before {
            top: 0;
            right: 0;
            width: 100%;
            height: 1px;
        }
    
        .corner.top-right::after {
            top: 0;
            right: 0;
            width: 1px;
            height: 100%;
        }
    
        .corner.bottom-left {
            bottom: 40px;
            left: 40px;
        }
    
        .corner.bottom-left::before {
            bottom: 0;
            left: 0;
            width: 100%;
            height: 1px;
        }
    
        .corner.bottom-left::after {
            bottom: 0;
            left: 0;
            width: 1px;
            height: 100%;
        }
    
        .corner.bottom-right {
            bottom: 40px;
            right: 40px;
        }
    
        .corner.bottom-right::before {
            bottom: 0;
            right: 0;
            width: 100%;
            height: 1px;
        }
    
        .corner.bottom-right::after {
            bottom: 0;
            right: 0;
            width: 1px;
            height: 100%;
        }
    
        /* Time Display - optimized */
        .time-display {
            position: absolute;
            top: 50%;
            right: 60px;
            transform: translateY(-50%);
            font-family: 'JetBrains Mono', monospace;
            font-size: 180px;
            font-weight: 100;
            letter-spacing: -0.05em;
            opacity: 0.02;
            pointer-events: none;
            white-space: nowrap;
            will-change: transform;
            transform: translateZ(0);
        }
    
        /* FLOATING PARTICLES - optimized */
        .particle {
            position: absolute;
            width: 1px;
            height: 1px;
            background: var(--primary);
            opacity: 0.3;
            pointer-events: none;
            will-change: transform, opacity;
            transform: translateZ(0);
        }
    
        /* RESPONSIVE */
        
        /* Laptop and medium screens */
        @media (max-width: 1440px) and (min-width: 769px) {
            .hero-name-container .status {
                right: -40px;
                transform: translateX(90%);
            }
            
            .page-indicators {
                right: calc(var(--space-md) + 40px);
            }
        }
        
        /* Smaller laptops */
        @media (max-width: 1200px) and (min-width: 769px) {
            .hero-name-container .status {
                right: -35px;
                transform: translateX(85%);
            }
            
            .page-indicators {
                right: calc(var(--space-md) + 35px);
            }
        }
        
        /* Mobile and tablet optimizations */
        @media (max-width: 768px) {
            /* Reset CSS custom properties for mobile */
            :root {
                --space-xs: 0.75rem;
                --space-sm: 1.25rem;
                --space-md: 2rem;
                --space-lg: 3rem;
                --space-xl: 4rem;
            }
            
            /* Disable cursor on mobile */
            .cursor {
                display: none !important;
            }
            
            /* Enable default cursor behavior on mobile */
            *, *::before, *::after {
                cursor: auto !important;
            }
            
            html {
                cursor: auto !important;
                overflow: auto;
            }
            
            body {
                cursor: auto !important;
                overflow: auto;
                height: auto;
            }
            
            /* Disable performance-heavy elements */
            .grid-container,
            .noise,
            .temperature-overlay,
            #particleCanvas,
            .time-display,
            .constellation-container {
                display: none !important;
            }
            
            /* Mobile navigation */
            .nav {
                padding: 20px;
                backdrop-filter: blur(10px);
                background: rgba(10, 10, 10, 0.9);
                position: fixed;
                z-index: 1000;
            }
            
            .nav-logo {
                font-size: 14px;
                margin-left: 0;
            }
            
            .nav-menu {
                gap: 20px;
                margin-right: 0;
            }
            
            .nav-link {
                font-size: 13px;
                padding: 8px 0;
            }
            
            /* Mobile sections container - disable 3D transforms */
            .sections-container {
                position: relative !important;
                height: auto !important;
                perspective: none !important;
                transform-style: flat !important;
            }
            
            section {
                position: relative !important;
                height: auto !important;
                min-height: 100vh;
                min-height: -webkit-fill-available;
                padding: 20px;
                transform: none !important;
                opacity: 1 !important;
                z-index: auto !important;
                display: block !important;
            }
            
            /* Mobile hero section */
            .hero {
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 80px 20px 40px;
            }
            
            .hero-container {
                padding: 0;
                height: auto;
                justify-content: center;
                text-align: center;
                max-width: 100%;
            }
            
            .top-bar {
                display: none;
            }
            
            .hero-center {
                flex-direction: column;
                align-items: center;
                gap: 30px;
                width: 100%;
            }
            
            .vertical-lines {
                display: none;
            }
            
            .hero-name {
                font-size: clamp(3rem, 12vw, 6rem);
                text-align: center;
                margin-bottom: 20px;
            }
            
            .hero-name-container {
                display: flex;
                flex-direction: column;
                align-items: center;
                text-align: center;
                width: 100%;
            }
            
            .hero-name-container .status {
                position: static;
                transform: none;
                margin-top: 20px;
                justify-content: center;
                font-size: 10px;
            }
            
            .bottom-bar {
                flex-direction: column;
                align-items: center;
                text-align: center;
                gap: 30px;
                margin-top: 40px;
                width: 100%;
            }
            
            .hero-description {
                max-width: 90%;
                text-align: center;
                padding-left: 0;
                font-size: 16px;
                line-height: 1.6;
            }
            
            .hero-description::before {
                display: none;
            }
            
            .metrics {
                flex-direction: row;
                gap: 40px;
                justify-content: center;
            }
            
            .metric {
                text-align: center;
            }
            
            .metric-value {
                font-size: 28px;
            }
            
            .metric-label {
                font-size: 11px;
            }
            
            /* Mobile projects section */
            .projects {
                padding: 80px 20px 40px !important;
                height: auto !important;
                min-height: 100vh;
                overflow-y: visible !important;
                align-items: flex-start !important;
            }
            
            .projects-container {
                padding: 0;
                max-width: none;
                width: 100%;
            }
            
            .projects-header {
                font-size: clamp(2rem, 8vw, 3rem);
                margin-bottom: 30px;
                text-align: center;
            }
            
            .project-list {
                padding-bottom: 60px;
            }
            
            .project-item {
                padding: 30px 0;
                border-bottom: 1px solid var(--gray-200);
                transform: none !important;
                opacity: 1 !important;
                background: none !important;
            }
            
            .project-item:hover {
                transform: none !important;
                background: none !important;
            }
            
            .project-item::before,
            .project-item::after {
                display: none !important;
            }
            
            .project-title {
                font-size: clamp(1.5rem, 6vw, 2.5rem);
                margin-bottom: 15px;
            }
            
            .project-description {
                max-width: 100%;
                font-size: 16px;
                line-height: 1.5;
                margin-bottom: 15px;
            }
            
            .project-tags {
                margin-bottom: 20px;
                gap: 12px;
            }
            
            .project-tags span {
                opacity: 0.7 !important;
                transform: none !important;
                font-size: 12px;
            }
            
            .project-links {
                position: static !important;
                transform: none !important;
                opacity: 1 !important;
                flex-direction: column;
                gap: 15px;
                margin-top: 15px;
            }
            
            .project-link {
                font-size: 14px;
                padding: 12px 0;
                border-bottom: 1px solid var(--gray-200);
            }
            
            /* Mobile about section */
            .about {
                padding: 60px 20px;
                min-height: 100vh;
                display: flex;
                align-items: center;
            }
            
            .about-content {
                grid-template-columns: 1fr;
                gap: 30px;
                text-align: center;
                max-width: 100%;
                width: 100%;
            }
            
            .about-title {
                font-size: clamp(2.5rem, 10vw, 4rem);
                white-space: normal;
                margin-bottom: 30px;
            }
            
            .about-text {
                font-size: clamp(1.1rem, 4vw, 1.3rem);
                max-width: 100%;
                text-align: center;
            }
            
            .skills {
                justify-content: center;
                margin-top: 40px;
                gap: 12px;
            }
            
            .skill {
                opacity: 1 !important;
                transform: none !important;
                padding: 8px 16px;
                font-size: 14px;
            }
            
            /* Mobile contact section */
            .contact {
                padding: 60px 20px;
                min-height: 100vh;
                display: flex;
                align-items: center;
            }
            
            .contact-content {
                text-align: center;
                max-width: 100%;
                width: 100%;
            }
            
            .contact-bg-wrapper {
                display: none;
            }
            
            .contact-title {
                font-size: clamp(2.5rem, 10vw, 4rem);
                margin-bottom: 40px;
            }
            
            .email-link {
                font-size: clamp(1.2rem, 5vw, 1.8rem);
                word-break: break-all;
            }
            
            .social-links {
                flex-direction: column;
                gap: 20px;
                margin-top: 40px;
            }
            
            .social-link {
                font-size: 16px;
                padding: 15px 0;
                border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            }
            
            .copyright {
                margin-top: 60px !important;
                font-size: 11px !important;
            }
            
            /* Mobile page indicators */
            .page-indicators {
                right: 20px;
                top: 50%;
                transform: translateY(-50%);
            }
            
            .indicator {
                width: 20px;
                height: 2px;
                margin: 15px 0;
            }
            
            .indicator span {
                display: none;
            }
            
            /* Mobile corner brackets */
            .corner {
                width: 15px;
                height: 15px;
            }
            
            .corner.top-left,
            .corner.top-right {
                top: 20px;
            }
            
            .corner.bottom-left,
            .corner.bottom-right {
                bottom: 20px;
            }
            
            .corner.top-left,
            .corner.bottom-left {
                left: 20px;
            }
            
            .corner.top-right,
            .corner.bottom-right {
                right: 20px;
            }
            
            /* Mobile project detail modal */
            .project-detail {
                padding: 20px;
            }
            
            .project-detail-content {
                padding: 20px;
                margin: 0;
                max-width: 100%;
                height: 90vh;
                overflow-y: auto;
            }
            
            .project-detail-header {
                margin-bottom: 20px;
                padding-bottom: 15px;
            }
            
            .project-detail-title {
                font-size: clamp(1.5rem, 6vw, 2rem);
                line-height: 1.2;
            }
            
            .project-detail-close {
                padding: 12px;
                margin: -12px -12px 0 0;
            }
            
            .project-detail-close svg {
                width: 20px;
                height: 20px;
            }
            
            .project-detail-info {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .project-detail-meta {
                padding-bottom: 20px;
                border-bottom: 1px solid var(--gray-200);
                margin-bottom: 20px;
            }
            
            .project-detail-meta h4 {
                font-size: 12px;
                margin-bottom: 6px;
            }
            
            .project-detail-meta p {
                font-size: 14px;
                margin-bottom: 12px;
            }
            
            .project-detail-description {
                font-size: 16px;
                line-height: 1.6;
                max-width: 100%;
            }
            
            .project-detail-links {
                flex-direction: column;
                gap: 15px;
                margin-top: 30px;
            }
            
            .project-detail-links a {
                font-size: 14px;
                padding: 15px 0;
                border-bottom: 1px solid var(--gray-200);
            }
            
            /* Mobile loader */
            .loader-text {
                font-size: 14px;
            }
            
            /* Disable all animations on mobile for better performance */
            .project-item,
            .skill,
            .about-title .char,
            .about-text .word,
            .contact-title .char,
            .email-link .char,
            .social-link,
            .hero-title .char,
            .hero-subtitle .char {
                opacity: 1 !important;
                transform: none !important;
                animation: none !important;
            }
            
            /* Ensure proper touch scrolling */
            body.mobile {
                -webkit-overflow-scrolling: touch;
                overflow-y: auto;
            }
            
            /* Fix viewport height issues on mobile browsers */
            section {
                min-height: 100vh;
                min-height: -webkit-fill-available;
            }
            
            /* Ensure mobile compatibility */
            * {
                -webkit-tap-highlight-color: rgba(0,0,0,0.1);
            }
        }
        
        /* Smaller mobile devices */
        @media (max-width: 480px) {
            .hero-container {
                padding: 60px 15px 30px;
            }
            
            .hero-name {
                font-size: clamp(2.5rem, 10vw, 4rem);
            }
            
            .hero-description {
                font-size: 14px;
            }
            
            .nav {
                padding: 15px;
            }
            
            .nav-menu {
                gap: 15px;
            }
            
            .nav-link {
                font-size: 12px;
            }
            
            .projects-container,
            .about,
            .contact {
                padding-left: 15px;
                padding-right: 15px;
            }
            
            .project-item {
                padding: 25px 0;
            }
            
            .project-title {
                font-size: clamp(1.3rem, 5vw, 2rem);
            }
            
            .project-description {
                font-size: 15px;
            }
            
            .about-title {
                font-size: clamp(2rem, 8vw, 3rem);
            }
            
            .contact-title {
                font-size: clamp(2rem, 8vw, 3rem);
            }
            
            .email-link {
                font-size: clamp(1rem, 4vw, 1.5rem);
            }
        }
    </style>
