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

        :root {
            --bg: #0b0b0f;
            --bg2: #101017;
            --bg-card: #14141c;
            --bg-card-hover: #1a1a25;
            --border: #1e1e2e;
            --border-hover: #2e2e42;
            --text: #eeeef0;
            --text-muted: #9d9db5;
            --text-dim: #6b6b85;
            --orange: #ff6b2c;
            --orange-light: #ff8f5e;
            --orange-glow: rgba(255, 107, 44, 0.12);
            --cyan: #00d4ff;
            --purple: #a855f7;
            --radius: 16px;
            --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        html { scroll-behavior: smooth; scroll-padding-top: 80px; }

        body {
            font-family: 'Sora', sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.7;
            overflow-x: hidden;
        }

        ::selection { background: var(--orange); color: #000; }
        a { color: inherit; text-decoration: none; }

        /* ===== CANVAS BG ===== */
        #bgCanvas {
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        /* ===== SCROLL PROGRESS ===== */
        .scroll-progress {
            position: fixed;
            top: 0; left: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--orange), var(--orange-light), var(--cyan));
            z-index: 10001;
            width: 0%;
        }

        /* ===== NAV ===== */
        .nav {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 1000;
            padding: 0 2rem;
            transition: var(--transition);
        }

        .nav.scrolled {
            background: rgba(11, 11, 15, 0.8);
            backdrop-filter: blur(24px) saturate(180%);
            border-bottom: 1px solid var(--border);
        }

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

        .nav-logo {
            font-family: 'Space Grotesk', sans-serif;
            font-weight: 700;
            font-size: 1.2rem;
        }

        .nav-logo span { color: var(--orange); }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
            align-items: center;
        }

        .nav-links a {
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--text-muted);
            transition: var(--transition);
        }

        .nav-links a:hover { color: var(--text); }

        .nav-cta {
            padding: 0.5rem 1.2rem !important;
            background: var(--orange) !important;
            color: #000 !important;
            border-radius: 8px;
            font-weight: 600 !important;
        }

        .nav-cta:hover { box-shadow: 0 4px 20px rgba(255,107,44,0.4); }

        .nav-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 8px;
        }

        .nav-toggle span {
            display: block;
            width: 22px; height: 2px;
            background: var(--text);
            margin: 5px 0;
            transition: var(--transition);
        }

        /* ===== CONTAINER ===== */
        .container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

        .section-label {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.75rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 3px;
            color: var(--orange);
            margin-bottom: 0.75rem;
        }

        .section-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: clamp(2rem, 4vw, 2.75rem);
            font-weight: 700;
            letter-spacing: -1px;
            line-height: 1.2;
            margin-bottom: 1rem;
        }

        /* ===== HERO ===== */
        .hero {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            z-index: 2;
            overflow: hidden;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 3rem;
            align-items: center;
        }

        .hero-left { max-width: 620px; }

        /* hero bg image overlay */
        .hero-bg-img {
            position: absolute;
            top: 0; right: 0;
            width: 55%;
            height: 100%;
            background: none;
            z-index: 0;
            pointer-events: none;
        }

        .hero-bg-img::after {
            content: '';
            position: absolute;
            top: 10%; right: 5%;
            width: 400px; height: 400px;
            border: 1px solid rgba(255,255,255,0.03);
            border-radius: 50%;
            animation: heroCircle 20s linear infinite;
        }

        @keyframes heroCircle {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        .hero-code {
            position: absolute;
            top: 15%; right: 8%;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72rem;
            color: rgba(255,255,255,0.06);
            line-height: 1.8;
            white-space: pre;
            pointer-events: none;
            z-index: 0;
        }

        .hero h1 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: clamp(3.5rem, 7vw, 5.5rem);
            font-weight: 700;
            letter-spacing: -2.5px;
            line-height: 1.05;
            margin-bottom: 1.5rem;
            animation: fadeInUp 0.8s ease-out 0.1s both;
        }

        .hero h1 .accent {
            color: var(--orange);
            position: relative;
        }

        .hero h1 .accent::after {
            content: '';
            position: absolute;
            bottom: 4px; left: 0;
            width: 100%; height: 6px;
            background: var(--orange);
            opacity: 0.2;
            border-radius: 3px;
        }

        .hero-sub {
            font-size: 1.1rem;
            color: var(--text-muted);
            max-width: 520px;
            line-height: 1.8;
            margin-bottom: 2rem;
            animation: fadeInUp 0.8s ease-out 0.2s both;
        }

        .hero-sub strong { color: var(--text); font-weight: 600; }

        .hero-actions {
            display: flex;
            gap: 0.75rem;
            animation: fadeInUp 0.8s ease-out 0.3s both;
        }

        .btn-linkedin { padding: 0.8rem; }
        .btn-linkedin-text { display: none; }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.8rem 1.5rem;
            border-radius: 10px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            border: none;
            font-family: inherit;
        }

        .btn-primary {
            background: var(--orange);
            color: #000;
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(255,107,44,0.35);
        }

        .btn-ghost {
            background: transparent;
            color: var(--text);
            border: 1px solid var(--border);
        }

        .btn-ghost:hover {
            border-color: var(--border-hover);
            background: var(--bg-card);
        }


        .pf-info h3 a, .pc-info h3 a { color: inherit; }
        .sg-dot-orange { background: var(--orange); }
        .sg-dot-cyan { background: var(--cyan); }
        .sg-dot-purple { background: var(--purple); }
        .sg-dot-green { background: #22c55e; }
        .edu-status-ongoing { color: #facc15; }
        .edu-status-done { color: #22c55e; }
        .cl-blurred { cursor: pointer; }
        .cl-static { cursor: default; }
        .cl-sms-note { color: var(--text-dim); font-weight: 400; display: none; }
        .pf-link-mb { margin-bottom: 0.75rem; }
        .pf-link-mt { margin-top: 0.5rem; }
        .term-dot-red { background: #ff5f57; }
        .term-dot-yellow { background: #ffbd2e; }
        .term-dot-green { background: #28c840; }

        .hero-right {
            animation: fadeIn 1s ease-out 0.5s both;
        }

        .hero-terminal {
            background: #0d0d12;
            border: 1px solid var(--border);
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
        }

        .term-bar {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            background: #08080c;
            gap: 7px;
        }

        .term-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
        }

        .term-title {
            margin-left: 10px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72rem;
            color: var(--text-dim);
        }

        .term-body {
            padding: 1.25rem;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.78rem;
            line-height: 1.9;
            min-height: 320px;
            color: var(--text-muted);
        }

        .term-line {
            margin-bottom: 2px;
            white-space: nowrap;
            overflow: hidden;
        }

        .term-prompt {
            color: var(--orange);
        }

        .term-cmd {
            color: var(--text);
        }

        .term-output {
            color: var(--text-dim);
            font-size: 0.72rem;
        }

        .term-success {
            color: #22c55e;
        }

        .term-cursor {
            display: inline-block;
            width: 8px;
            height: 15px;
            background: var(--orange);
            vertical-align: text-bottom;
            animation: cursorBlink 1s step-end infinite;
        }

        @keyframes cursorBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }
        .hero-scroll-hint {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 0.3rem;
            color: var(--text-dim);
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: 1px;
            text-decoration: none;
            animation: fadeIn 0.6s ease-out 0.1s both;
            transition: color 0.3s;
        }

        .hero-scroll-hint:hover { color: var(--orange); }

        .hero-scroll-hint svg {
            animation: bounceDown 2s ease-in-out infinite;
        }

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

        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes fadeInUp { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: translateY(0); } }

        /* ===== PROJECT GALLERY ===== */
        .pg-gallery {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.75rem;
        }

        .pg-thumb {
            width: 56px;
            height: 40px;
            border-radius: 6px;
            border: 1px solid var(--border);
            overflow: hidden;
            cursor: pointer;
            transition: var(--transition);
            opacity: 0.6;
        }

        .pg-thumb:hover, .pg-thumb.active {
            opacity: 1;
            border-color: var(--orange);
        }

        .pg-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Lightbox */
        .lightbox {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 10000;
            background: rgba(0,0,0,0.9);
            backdrop-filter: blur(10px);
            justify-content: center;
            align-items: center;
            cursor: pointer;
        }

        .lightbox.open {
            display: flex;
        }

        .lightbox img {
            max-width: 90vw;
            max-height: 85vh;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.5);
        }

        .lightbox-close {
            position: absolute;
            top: 2rem; right: 2rem;
            width: 40px; height: 40px;
            background: rgba(255,255,255,0.1);
            border: none;
            border-radius: 50%;
            color: #fff;
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .lightbox-close:hover { background: rgba(255,255,255,0.2); }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 44px; height: 44px;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 50%;
            color: #fff;
            font-size: 1.1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .lightbox-nav:hover { background: rgba(255,255,255,0.15); }
        .lightbox-prev { left: 2rem; }
        .lightbox-next { right: 2rem; }

        /* ===== PROJECTS (IMMEDIATELY AFTER HERO) ===== */
        .projects {
            position: relative;
            z-index: 2;
            padding: 6rem 0 8rem;
        }

        .projects-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-bottom: 3.5rem;
        }

        .projects-grid {
            display: grid;
            gap: 2rem;
        }

        /* Featured project - full width */
        .project-featured {
            display: grid;
            grid-template-columns: 1.1fr 1fr;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            overflow: hidden;
            transition: var(--transition);
            opacity: 0;
            transform: translateY(30px);
        }

        .project-featured.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .project-featured:hover {
            border-color: var(--border-hover);
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
        }

        .pf-visual {
            position: relative;
            min-height: 420px;
            overflow: hidden;
            background: var(--bg2);
            display: flex;
            flex-direction: column;
        }

        .pf-gallery-main {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.5rem 1.5rem 0.75rem;
            cursor: pointer;
            overflow: hidden;
            height: 580px;
        }

        .pf-gallery-main img {
            max-width: 100%;
            max-height: 550px;
            border-radius: 8px;
            object-fit: contain;
            transition: transform 0.4s ease;
            box-shadow: 0 8px 30px rgba(0,0,0,0.4);
        }

        .pf-gallery-main:hover img {
            transform: scale(1.02);
        }

        /* Phone mockup frame */
        .phone-frame {
            position: relative;
            background: #1a1a1f;
            border-radius: 32px;
            padding: 10px 8px;
            border: 2px solid #2a2a33;
            box-shadow: 0 15px 50px rgba(0,0,0,0.5);
            transition: transform 0.4s ease;
            max-height: 550px;
        }

        .pf-gallery-main:hover .phone-frame {
            transform: scale(1.02);
        }

        .phone-frame::before {
            content: '';
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 5px;
            background: #2a2a33;
            border-radius: 10px;
            z-index: 2;
        }

        .phone-frame img {
            border-radius: 24px;
            max-height: 550px;
            width: auto;
            display: block;
            box-shadow: none !important;
        }

        .pf-gallery-main:hover .phone-frame img {
            transform: none;
        }

        .pc-gallery-main .phone-frame {
            max-height: 220px;
        }

        .pc-gallery-main .phone-frame img {
            max-height: 195px;
            border-radius: 18px;
        }

        .pc-gallery-main .phone-frame {
            border-radius: 24px;
            padding: 8px 6px;
        }

        .pc-gallery-main .phone-frame::before {
            width: 40px;
            height: 4px;
            top: 6px;
        }

        .pf-gallery-thumbs {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            padding: 0.75rem 1.5rem 1.25rem;
            overflow: hidden;
        }

        .pf-gallery-thumbs img {
            width: 56px;
            height: 40px;
            object-fit: cover;
            border-radius: 6px;
            border: 2px solid transparent;
            cursor: pointer;
            opacity: 0.5;
            transition: var(--transition);
        }

        .pf-gallery-thumbs img:hover { opacity: 0.8; }

        .pf-gallery-thumbs img.active {
            opacity: 1;
            border-color: var(--orange);
        }

        /* Fallback if no images */
        .pf-visual-content {
            padding: 2rem;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        /* Animated browser + phone mockup */
        .mockup-browser {
            width: 88%;
            background: #0d0d12;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border);
            box-shadow: 0 30px 80px rgba(0,0,0,0.6);
            position: relative;
            z-index: 2;
            transition: transform 0.5s ease;
        }

        .project-featured:hover .mockup-browser {
            transform: translateY(-6px) scale(1.01);
        }

        .mockup-bar {
            display: flex;
            align-items: center;
            padding: 10px 14px;
            background: #08080c;
            gap: 6px;
        }

        .mockup-dot { width: 8px; height: 8px; border-radius: 50%; }
        .mockup-dot.r { background: #ff5f57; }
        .mockup-dot.y { background: #ffbd2e; }
        .mockup-dot.g { background: #28c840; }

        .mockup-url {
            flex: 1;
            margin-left: 10px;
            padding: 4px 12px;
            background: rgba(255,255,255,0.04);
            border-radius: 5px;
            font-size: 0.7rem;
            font-family: 'JetBrains Mono', monospace;
            color: var(--text-dim);
        }

        .mockup-body {
            padding: 1.5rem;
            min-height: 200px;
        }

        .mockup-skeleton {
            display: flex;
            flex-direction: column;
            gap: 0.6rem;
        }

        .sk-line {
            height: 8px;
            background: rgba(255,255,255,0.04);
            border-radius: 4px;
        }

        .sk-line.w70 { width: 70%; }
        .sk-line.w50 { width: 50%; }
        .sk-line.w85 { width: 85%; }
        .sk-line.accent {
            height: 18px; width: 45%;
            background: linear-gradient(90deg, rgba(255,107,44,0.15), rgba(255,107,44,0.03));
            margin-bottom: 0.5rem;
        }

        .sk-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-top: 0.75rem;
        }

        .sk-card {
            height: 55px;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.04);
            border-radius: 6px;
        }

        .mockup-phone {
            position: absolute;
            right: 8%;
            bottom: 10%;
            width: 140px;
            background: #0d0d12;
            border-radius: 20px;
            padding: 6px;
            border: 1px solid var(--border);
            box-shadow: 0 20px 50px rgba(0,0,0,0.6);
            z-index: 3;
            transition: transform 0.5s ease;
        }

        .project-featured:hover .mockup-phone {
            transform: translateY(-10px) scale(1.03);
        }

        .mockup-phone-screen {
            background: #08080c;
            border-radius: 16px;
            padding: 1rem 0.6rem;
            min-height: 220px;
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .phone-notch {
            width: 60px; height: 4px;
            background: rgba(255,255,255,0.08);
            border-radius: 10px;
            margin: 0 auto 0.6rem;
        }

        .phone-sk-line {
            height: 5px;
            background: rgba(255,255,255,0.04);
            border-radius: 3px;
        }

        .phone-sk-line.w60 { width: 60%; }
        .phone-sk-line.w80 { width: 80%; }
        .phone-sk-line.accent {
            height: 12px; width: 40%;
            background: linear-gradient(90deg, rgba(255,107,44,0.15), rgba(255,107,44,0.03));
            margin-bottom: 0.3rem;
        }

        .phone-sk-list {
            margin-top: 0.4rem;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .phone-sk-item {
            height: 22px;
            background: rgba(255,255,255,0.02);
            border: 1px solid rgba(255,255,255,0.04);
            border-radius: 5px;
        }

        /* Project info panel */
        .pf-info {
            padding: 3rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .pf-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.3rem 0.8rem;
            background: var(--orange-glow);
            border: 1px solid rgba(255,107,44,0.2);
            border-radius: 6px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.7rem;
            color: var(--orange);
            font-weight: 600;
            width: fit-content;
            margin-bottom: 1rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .pf-info h3 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 2rem;
            font-weight: 700;
            letter-spacing: -0.5px;
            margin-bottom: 0.25rem;
        }

        .pf-type {
            font-size: 0.88rem;
            color: var(--orange-light);
            font-weight: 500;
            margin-bottom: 1rem;
        }

        .pf-desc {
            color: var(--text-muted);
            font-size: 0.92rem;
            line-height: 1.75;
            margin-bottom: 1.25rem;
        }

        .pf-features {
            list-style: none;
            margin-bottom: 1.5rem;
        }

        .pf-features li {
            padding: 0.3rem 0;
            color: var(--text-muted);
            font-size: 0.85rem;
            display: flex;
            gap: 0.5rem;
            align-items: flex-start;
        }

        .pf-features li .chevron {
            color: var(--orange);
            font-family: 'JetBrains Mono', monospace;
            font-weight: 700;
            flex-shrink: 0;
            margin-top: 2px;
        }

        .pf-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
            margin-bottom: 1.5rem;
        }

        .pf-tech span {
            padding: 0.25rem 0.6rem;
            background: rgba(255,255,255,0.03);
            border: 1px solid var(--border);
            border-radius: 5px;
            font-size: 0.72rem;
            font-family: 'JetBrains Mono', monospace;
            color: var(--text-dim);
        }

        .pf-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.55rem 1.1rem;
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.85rem;
            font-weight: 500;
            transition: var(--transition);
            width: fit-content;
        }

        .pf-link:hover {
            border-color: var(--orange);
            background: var(--orange-glow);
        }

        /* Store badges */
        .store-badges {
            display: flex;
            gap: 0.6rem;
            margin-top: 0.75rem;
            align-items: center;
        }

        .store-badge {
            height: 36px;
            border-radius: 6px;
            transition: var(--transition);
        }

        .store-badge:hover {
            transform: scale(1.05);
        }

        .store-badge.coming-soon {
            filter: grayscale(1) brightness(0.5);
            opacity: 0.5;
            pointer-events: none;
            position: relative;
        }

        .store-badges-wrap {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
        }

        .coming-label {
            font-size: 0.65rem;
            font-family: 'JetBrains Mono', monospace;
            color: var(--text-dim);
            letter-spacing: 0.5px;
        }

        /* Blurred contact values */
        .cl-blurred .cl-value {
            filter: blur(5px);
            user-select: none;
            transition: filter 0.4s ease;
        }

        .cl-blurred.revealed .cl-value {
            filter: blur(0);
            user-select: auto;
        }

        .cl-blurred .cl-hint {
            font-size: 0.65rem;
            color: var(--orange);
            font-weight: 500;
            margin-top: 1px;
            transition: opacity 0.3s;
        }

        .cl-blurred.revealed .cl-hint {
            opacity: 0;
            height: 0;
            margin: 0;
        }

        /* Smaller project cards */
        .projects-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }

        .project-card {
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 20px;
            overflow: hidden;
            transition: var(--transition);
            opacity: 0;
            transform: translateY(30px);
        }

        .project-card.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .project-card:hover {
            border-color: var(--border-hover);
            transform: translateY(-6px);
            box-shadow: 0 20px 50px rgba(0,0,0,0.4);
        }

        .pc-visual {
            position: relative;
            overflow: hidden;
            background: var(--bg2);
        }

        .pc-gallery-main {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1.25rem 1.25rem 0.5rem;
            cursor: pointer;
            min-height: 180px;
        }

        .pc-gallery-main img {
            max-width: 100%;
            max-height: 200px;
            border-radius: 6px;
            object-fit: contain;
            transition: transform 0.4s ease;
            box-shadow: 0 6px 20px rgba(0,0,0,0.3);
        }

        .pc-gallery-main:hover img { transform: scale(1.02); }

        .pc-gallery-thumbs {
            display: flex;
            gap: 4px;
            padding: 0.5rem 1.25rem 1rem;
            overflow-x: auto;
        }

        .pc-gallery-thumbs img {
            width: 48px;
            height: 34px;
            object-fit: cover;
            border-radius: 4px;
            border: 2px solid transparent;
            cursor: pointer;
            opacity: 0.5;
            transition: var(--transition);
            flex-shrink: 0;
        }

        .pc-gallery-thumbs img:hover { opacity: 0.8; }
        .pc-gallery-thumbs img.active { opacity: 1; border-color: var(--orange); }

        /* Fallback mockup for empty galleries */
        .pc-visual .mockup-browser {
            width: calc(100% - 4rem);
            margin: 2rem 2rem 0;
            transform-origin: top center;
        }

        .project-card:hover .pc-visual .mockup-browser {
            transform: translateY(-4px);
        }

        .pc-info {
            padding: 2rem;
        }

        .pc-number {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72rem;
            color: var(--orange);
            font-weight: 600;
            margin-bottom: 0.5rem;
            letter-spacing: 1px;
        }

        .pc-info h3 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 0.2rem;
        }

        .pc-type {
            font-size: 0.82rem;
            color: var(--orange-light);
            margin-bottom: 0.75rem;
        }

        .pc-desc {
            color: var(--text-muted);
            font-size: 0.88rem;
            line-height: 1.7;
            margin-bottom: 1rem;
        }

        .pc-features {
            list-style: none;
            margin-bottom: 1rem;
        }

        .pc-features li {
            padding: 0.2rem 0;
            color: var(--text-dim);
            font-size: 0.82rem;
        }

        .pc-features li::before {
            content: '> ';
            font-family: 'JetBrains Mono', monospace;
            color: var(--orange);
            font-weight: 700;
        }

        .pc-tech {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
            margin-bottom: 1rem;
        }

        .pc-tech span {
            padding: 0.2rem 0.5rem;
            background: rgba(255,255,255,0.03);
            border: 1px solid var(--border);
            border-radius: 4px;
            font-size: 0.68rem;
            font-family: 'JetBrains Mono', monospace;
            color: var(--text-dim);
        }

        /* More projects - peek & fade */
        .more-projects {
            position: relative;
            overflow: hidden;
            transition: max-height 0.6s ease;
        }

        .more-projects.collapsed {
            max-height: 320px;
        }

        .more-projects.collapsed .projects-row {
            filter: blur(3px);
            opacity: 0.4;
            pointer-events: none;
        }

        .more-projects.collapsed::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 100%;
            background: linear-gradient(to bottom, transparent 20%, var(--bg) 90%);
            z-index: 5;
            pointer-events: none;
        }

        .more-projects.collapsed .show-more-overlay {
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 10;
        }

        .more-projects.expanded {
            max-height: none;
            overflow: visible;
            pointer-events: auto;
        }

        .more-projects.expanded::after {
            display: none;
        }

        .show-more-overlay {
            padding: 1.1rem 3rem;
            background: var(--orange);
            border: none;
            border-radius: 14px;
            color: #000;
            font-family: inherit;
            font-size: 1.05rem;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 0.6rem;
            transition: var(--transition);
            box-shadow: 0 8px 30px rgba(255,107,44,0.3);
        }

        .show-more-overlay:hover {
            box-shadow: 0 12px 40px rgba(255,107,44,0.45);
        }

        .more-projects.collapsed .show-more-overlay:hover {
            transform: translateX(-50%) translateY(-3px);
        }

        .more-projects.expanded .show-more-overlay {
            position: static;
            transform: none;
            margin: 2rem auto 0;
            background: var(--bg-card);
            border: 1px solid var(--border);
            color: var(--text);
            box-shadow: none;
        }

        .more-projects.expanded .show-more-overlay:hover {
            transform: translateY(-3px);
            border-color: var(--orange);
            box-shadow: 0 8px 20px rgba(0,0,0,0.3);
        }

        /* ===== ABOUT + SKILLS combined ===== */
        .about-skills {
            position: relative;
            z-index: 2;
            padding: 6rem 0;
        }

        .as-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
        }

        .about-text p {
            color: var(--text-muted);
            font-size: 1rem;
            margin-bottom: 1rem;
        }

        .about-text p strong { color: var(--text); }

        .stats-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1rem;
            margin-top: 2rem;
        }

        .stat-card {
            padding: 1.25rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            text-align: center;
            transition: var(--transition);
        }

        .stat-card:hover {
            border-color: var(--orange);
            transform: translateY(-3px);
        }

        .stat-card .stat-value {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--orange);
        }

        .stat-card p {
            font-size: 0.75rem;
            color: var(--text-dim);
            margin-top: 0.2rem;
        }

        /* Skills right panel */
        .skills-panel {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .skill-group {
            padding: 1.5rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 14px;
            transition: var(--transition);
        }

        .skill-group:hover {
            border-color: var(--border-hover);
        }

        .sg-header {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            margin-bottom: 0.75rem;
        }

        .sg-dot {
            width: 8px; height: 8px;
            border-radius: 50%;
        }

        .sg-header h3 {
            font-size: 0.9rem;
            font-weight: 600;
        }

        .sg-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.35rem;
        }

        .sg-tags span {
            padding: 0.3rem 0.65rem;
            border: 1px solid var(--border);
            border-radius: 6px;
            font-size: 0.78rem;
            color: var(--text-muted);
            transition: var(--transition);
        }

        .sg-tags span:hover {
            border-color: var(--orange);
            color: var(--orange);
            background: var(--orange-glow);
        }

        /* ===== CAREER ===== */
        .career {
            position: relative;
            z-index: 2;
            padding: 6rem 0;
        }

        .career-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-top: 3rem;
        }

        .career-card {
            padding: 2rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 18px;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .career-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0;
            width: 3px; height: 100%;
            background: var(--orange);
        }

        .career-card:hover {
            border-color: var(--border-hover);
            transform: translateY(-4px);
        }

        .cc-date {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.75rem;
            color: var(--orange);
            font-weight: 600;
            margin-bottom: 0.75rem;
            letter-spacing: 0.5px;
        }

        .career-card h3 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.2rem;
            font-weight: 700;
            margin-bottom: 0.2rem;
        }

        .career-card h4 {
            font-size: 0.9rem;
            color: var(--text-muted);
            font-weight: 400;
            margin-bottom: 1rem;
        }

        .career-card ul {
            list-style: none;
        }

        .career-card li {
            padding: 0.2rem 0;
            color: var(--text-dim);
            font-size: 0.82rem;
            padding-left: 1rem;
            position: relative;
        }

        .career-card li::before {
            content: '';
            position: absolute;
            left: 0; top: 0.6em;
            width: 4px; height: 4px;
            border-radius: 50%;
            background: var(--border-hover);
        }

        /* ===== EDUCATION ===== */
        .education {
            position: relative;
            z-index: 2;
            padding: 4rem 0 6rem;
        }

        .edu-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            margin-top: 2rem;
        }

        .edu-card {
            padding: 1.75rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 14px;
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
        }

        .edu-logo {
            width: 140px;
            height: 80px;
            object-fit: contain;
            opacity: 0.85;
            margin-bottom: 0.75rem;
        }

        .edu-card:hover {
            border-color: var(--border-hover);
            transform: translateY(-3px);
        }

        .edu-label {
            font-family: 'JetBrains Mono', monospace;
            font-size: 0.72rem;
            color: var(--orange);
            font-weight: 600;
            margin-bottom: 0.5rem;
            letter-spacing: 1px;
        }

        .edu-card h3 {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.3rem;
        }

        .edu-card p {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .edu-status {
            display: inline-block;
            margin-top: 0.6rem;
            padding: 0.25rem 0.7rem;
            border-radius: 100px;
            font-size: 0.68rem;
            font-weight: 600;
            letter-spacing: 0.5px;
        }

        .edu-status.ongoing {
            background: rgba(255,107,44,0.1);
            border: 1px solid rgba(255,107,44,0.25);
            color: var(--orange);
        }

        .edu-status.done {
            background: rgba(34,197,94,0.1);
            border: 1px solid rgba(34,197,94,0.25);
            color: #22c55e;
        }

        /* ===== COOPERATION ===== */
        .cooperation {
            position: relative;
            z-index: 2;
            padding: 4rem 0;
        }

        .coop-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1.25rem;
            margin-top: 2rem;
        }

        .coop-card {
            padding: 1.75rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 14px;
            transition: var(--transition);
        }

        .coop-card:hover {
            border-color: var(--border-hover);
            transform: translateY(-3px);
        }

        .coop-icon {
            margin-bottom: 1rem;
        }

        .coop-card h3 {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .coop-card p {
            font-size: 0.85rem;
            color: var(--text-muted);
            line-height: 1.6;
        }

        @media (max-width: 768px) {
            .coop-grid { grid-template-columns: 1fr; }
        }

        /* ===== CONTACT ===== */
        .contact {
            position: relative;
            z-index: 2;
            padding: 6rem 0 4rem;
        }

        .contact-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: start;
        }

        .contact-info h2 {
            font-family: 'Space Grotesk', sans-serif;
            font-size: clamp(2rem, 4vw, 2.5rem);
            font-weight: 700;
            letter-spacing: -1px;
            margin-bottom: 0.75rem;
        }

        .contact-info > p {
            color: var(--text-muted);
            margin-bottom: 2rem;
        }

        .contact-links {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .cl-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.85rem 1.25rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 12px;
            transition: var(--transition);
        }

        .cl-item:hover {
            border-color: var(--orange);
            transform: translateX(6px);
        }

        .cl-icon {
            width: 36px; height: 36px;
            border-radius: 9px;
            background: var(--orange-glow);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .cl-icon svg { width: 16px; height: 16px; }

        .cl-label {
            font-size: 0.72rem;
            color: var(--text-dim);
        }

        .cl-value {
            font-weight: 600;
            font-size: 0.9rem;
        }

        /* Contact form */
        .contact-form {
            padding: 2rem;
            background: var(--bg-card);
            border: 1px solid var(--border);
            border-radius: 18px;
        }

        .contact-form h3 {
            font-size: 1.15rem;
            font-weight: 700;
            margin-bottom: 1.25rem;
        }

        .fg { margin-bottom: 1rem; }

        .fg label {
            display: block;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--text-muted);
            margin-bottom: 0.35rem;
        }

        .fg input, .fg textarea {
            width: 100%;
            padding: 0.75rem 0.9rem;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 9px;
            color: var(--text);
            font-family: inherit;
            font-size: 0.88rem;
            transition: var(--transition);
            outline: none;
        }

        .fg input:focus, .fg textarea:focus {
            border-color: var(--orange);
            box-shadow: 0 0 0 3px var(--orange-glow);
        }

        .fg textarea {
            resize: vertical;
            min-height: 100px;
        }

        .form-btn {
            width: 100%;
            padding: 0.85rem;
            background: var(--orange);
            color: #000;
            border: none;
            border-radius: 9px;
            font-weight: 700;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
        }

        .form-btn:hover {
            box-shadow: 0 8px 30px rgba(255,107,44,0.35);
            transform: translateY(-2px);
        }

        .hp-field { display: none; }

        .cf-turnstile { margin-bottom: 1rem; }

        .form-btn:disabled {
            opacity: 0.6;
            cursor: wait;
        }

        .form-status-ok {
            margin-top: 0.75rem;
            padding: 0.6rem 1rem;
            background: rgba(34,197,94,0.1);
            border: 1px solid rgba(34,197,94,0.25);
            border-radius: 8px;
            color: #22c55e;
            font-size: 0.85rem;
        }

        .form-status-err {
            margin-top: 0.75rem;
            padding: 0.6rem 1rem;
            background: rgba(239,68,68,0.1);
            border: 1px solid rgba(239,68,68,0.25);
            border-radius: 8px;
            color: #ef4444;
            font-size: 0.85rem;
        }

        /* ===== FOOTER ===== */
        .footer {
            position: relative;
            z-index: 2;
            padding: 2.5rem 0;
            border-top: 1px solid var(--border);
            text-align: center;
        }

        .footer p {
            color: var(--text-dim);
            font-size: 0.8rem;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 0.75rem;
        }

        .footer-links a {
            color: var(--text-muted);
            font-size: 0.8rem;
            transition: var(--transition);
        }

        .footer-links a:hover { color: var(--orange); }

        /* ===== REVEAL ===== */
        .reveal {
            opacity: 0;
            transform: translateY(25px);
            transition: opacity 0.6s ease-out, transform 0.6s ease-out;
        }

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

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .hero-content { grid-template-columns: 1fr; }
            .hero-right { display: none; }
            .as-grid, .career-grid, .contact-grid, .edu-row, .projects-row {
                grid-template-columns: 1fr;
            }
            .project-featured { grid-template-columns: 1fr; }
            .pf-visual { min-height: 280px; }
        }

        @media (max-width: 768px) {
            .nav-links { display: none; }
            .nav-links.open {
                display: flex;
                flex-direction: column;
                position: absolute;
                top: 68px; left: 0; right: 0;
                background: rgba(11,11,15,0.95);
                backdrop-filter: blur(20px);
                padding: 1rem 2rem;
                border-bottom: 1px solid var(--border);
                gap: 0.75rem;
            }
            .nav-toggle { display: block; }
            .stats-row { grid-template-columns: repeat(3, 1fr); }

            .hero-code { display: none; }
            .hero-bg-img { display: none; }
            .hero h1 { font-size: 2.8rem; letter-spacing: -1.5px; }
            .hero-sub { font-size: 0.95rem; }
            .hero-actions {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 0.5rem;
            }
            .btn-linkedin { padding: 0.7rem 1.2rem; }
            .btn-linkedin-text { display: inline; }
            .hero-actions .btn { font-size: 0.82rem; padding: 0.7rem 1.2rem; }
            .hero-scroll-hint { bottom: 1rem; }
            .container { padding: 0 1.25rem; }

            .pf-info { padding: 1.5rem; }
            .pf-info h3 { font-size: 1.5rem; }
            .pf-desc { font-size: 0.85rem; }
            .pf-gallery-main { padding: 1rem 1rem 0.5rem; height: 420px; }
            .pf-gallery-main img { max-height: 390px; }
            .phone-frame { max-height: 400px; }
            .phone-frame img { max-height: 370px; }
            .pf-gallery-thumbs { padding: 0.5rem 1rem 1rem; flex-wrap: wrap; }

            .career-grid { gap: 1rem; }
            .edu-row { gap: 1rem; }
            .edu-logo { width: 100px; height: 60px; }
            .contact-form { padding: 1.5rem; }
        }