@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

        :root {
            --accent-emerald: #10b981;
            --accent-blue: #3b82f6;
            --accent-purple: #8b5cf6;
            --surface: rgba(15, 22, 41, 0.6);
            --border: rgba(148, 163, 184, 0.12);
        }

        body {
            font-family: 'DM Sans', system-ui, sans-serif;
            background-color: #070b14;
        }

        h1, h2, h3, .font-display {
            font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
        }

        .page-bg {
            background-image:
                radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.12), transparent),
                radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 130, 246, 0.1), transparent),
                radial-gradient(ellipse 50% 30% at 0% 50%, rgba(139, 92, 246, 0.08), transparent);
        }

        .grid-overlay {
            background-image:
                linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
            background-size: 64px 64px;
            mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 70%);
        }

        .gradient-text {
            background: linear-gradient(135deg, #34d399 0%, #60a5fa 45%, #a78bfa 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .section-label {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.75rem;
            font-weight: 600;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #10b981;
            margin-bottom: 1rem;
        }

        .section-label::before {
            content: '';
            width: 2rem;
            height: 2px;
            background: linear-gradient(90deg, #10b981, transparent);
        }

        .glass-card {
            background: var(--surface);
            backdrop-filter: blur(12px);
            border: 1px solid var(--border);
            transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
        }

        .glass-card:hover {
            border-color: rgba(16, 185, 129, 0.25);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(16, 185, 129, 0.05);
        }

        .article-card {
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            transform-style: preserve-3d;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .article-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.55), 0 0 40px -8px rgba(16, 185, 129, 0.15);
        }

        .article-card.featured:hover {
            box-shadow: 0 32px 64px -16px rgba(0, 0, 0, 0.6), 0 0 60px -12px rgba(59, 130, 246, 0.2);
        }

        .article-card .p-6 {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .article-card h3 {
            min-height: 3rem;
        }

        .article-card p.text-gray-400 {
            flex: 1;
            min-height: 4rem;
        }

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

        .nav-link::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -5px;
            left: 0;
            background: currentColor;
            transition: width 0.3s ease;
            border-radius: 1px;
        }

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

        .hero-bg {
            background:
                radial-gradient(900px 500px at 85% 15%, rgba(139, 92, 246, 0.18), transparent 55%),
                radial-gradient(700px 400px at 15% 25%, rgba(16, 185, 129, 0.14), transparent 55%),
                radial-gradient(600px 400px at 50% 80%, rgba(59, 130, 246, 0.1), transparent 60%);
        }

        .hero-photo-ring {
            background: linear-gradient(135deg, #10b981, #3b82f6, #8b5cf6);
            padding: 3px;
            border-radius: 1.5rem;
        }

        .hero-photo-inner {
            background: #070b14;
            border-radius: calc(1.5rem - 3px);
            overflow: hidden;
        }

        .stat-card {
            background: rgba(15, 22, 41, 0.7);
            border: 1px solid rgba(148, 163, 184, 0.1);
            backdrop-filter: blur(8px);
            transition: transform 0.3s ease, border-color 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-4px);
            border-color: rgba(16, 185, 129, 0.3);
        }

        .skill-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 0.75rem;
            background: rgba(15, 22, 41, 0.8);
            color: #cbd5e1;
            border: 1px solid rgba(148, 163, 184, 0.08);
            border-radius: 0.5rem;
            font-size: 0.8125rem;
            transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
        }

        .skill-badge:hover {
            background: rgba(30, 41, 59, 0.9);
            border-color: rgba(16, 185, 129, 0.25);
            transform: translateY(-2px);
        }

        .skill-badge i[class*="devicon"] {
            font-size: 1.25rem;
            line-height: 1;
        }

        .timeline-line {
            position: absolute;
            left: 1.25rem;
            top: 2.5rem;
            bottom: 0;
            width: 2px;
            background: linear-gradient(180deg, #10b981, #3b82f6, #8b5cf6, transparent);
        }

        .timeline-dot {
            width: 2.5rem;
            height: 2.5rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            border: 2px solid rgba(16, 185, 129, 0.4);
            background: rgba(16, 185, 129, 0.1);
        }

        .tech-pill {
            display: inline-block;
            padding: 0.2rem 0.6rem;
            font-size: 0.7rem;
            font-weight: 500;
            border-radius: 9999px;
            background: rgba(15, 22, 41, 0.9);
            border: 1px solid rgba(148, 163, 184, 0.15);
            color: #94a3b8;
        }

        .btn-primary {
            background: linear-gradient(135deg, #059669, #10b981);
            box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25);
            transition: all 0.3s ease;
        }

        .btn-primary:hover {
            box-shadow: 0 8px 30px rgba(16, 185, 129, 0.35);
            transform: translateY(-2px);
        }

        .reveal {
            opacity: 0;
            transform: translateY(28px);
            transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
        }

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

        .reveal-delay-1 { transition-delay: 0.1s; }
        .reveal-delay-2 { transition-delay: 0.2s; }
        .reveal-delay-3 { transition-delay: 0.3s; }

        #toast {
            transform: translateX(calc(100% + 2rem));
            transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
        }

        #toast.show {
            transform: translateX(0);
        }

        .cursor-blink {
            animation: blink 1s step-end infinite;
        }

        @keyframes blink {
            50% { opacity: 0; }
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Floating orbs */
        .floating-orbs {
            pointer-events: none;
            overflow: hidden;
        }

        .orb {
            position: absolute;
            border-radius: 50%;
            filter: blur(80px);
            opacity: 0.35;
            animation: orbFloat 20s ease-in-out infinite;
        }

        .orb-1 { width: 400px; height: 400px; background: #10b981; top: 5%; left: -10%; animation-delay: 0s; }
        .orb-2 { width: 350px; height: 350px; background: #3b82f6; top: 40%; right: -8%; animation-delay: -7s; }
        .orb-3 { width: 300px; height: 300px; background: #8b5cf6; bottom: 10%; left: 30%; animation-delay: -14s; }

        @keyframes orbFloat {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(30px, -40px) scale(1.05); }
            66% { transform: translate(-20px, 20px) scale(0.95); }
        }

        /* Nav scroll state */
        #mainNav.nav-scrolled {
            background: rgba(7, 11, 20, 0.92);
            border-bottom-color: rgba(255, 255, 255, 0.08);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        }

        /* Tech marquee */
        .marquee-wrap {
            mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
        }

        .marquee-track {
            display: flex;
            width: max-content;
            animation: marquee 40s linear infinite;
        }

        .marquee-track:hover {
            animation-play-state: paused;
        }

        @keyframes marquee {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        .marquee-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1.25rem;
            margin: 0 0.5rem;
            border-radius: 9999px;
            background: rgba(15, 22, 41, 0.6);
            border: 1px solid rgba(148, 163, 184, 0.1);
            color: #94a3b8;
            font-size: 0.875rem;
            font-weight: 500;
            white-space: nowrap;
        }

        .marquee-item i[class*="devicon"] {
            font-size: 1.25rem;
        }

        /* Project image zoom */
        .project-img-wrap {
            overflow: hidden;
        }

        .project-img-wrap img {
            transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .article-card:hover .project-img-wrap img {
            transform: scale(1.08);
        }

        .project-link-overlay {
            position: absolute;
            inset: 0;
            background: rgba(7, 11, 20, 0.6);
            opacity: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: opacity 0.3s ease;
        }

        .article-card:hover .project-link-overlay {
            opacity: 1;
        }

        /* Code terminal hero decoration */
        .code-terminal {
            background: rgba(7, 11, 20, 0.85);
            border: 1px solid rgba(148, 163, 184, 0.12);
            border-radius: 0.75rem;
            font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
            font-size: 0.75rem;
            line-height: 1.6;
        }

        .code-terminal .dot {
            width: 0.625rem;
            height: 0.625rem;
            border-radius: 50%;
        }

        /* Process cards */
        .process-card {
            position: relative;
            overflow: hidden;
        }

        .process-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: linear-gradient(90deg, transparent, var(--process-accent, #10b981), transparent);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .process-card:hover::before {
            opacity: 1;
        }

        .process-num {
            font-size: 3rem;
            font-weight: 800;
            line-height: 1;
            opacity: 0.08;
            position: absolute;
            top: 1rem;
            right: 1.25rem;
            font-family: 'Plus Jakarta Sans', sans-serif;
        }

        /* Skill bars */
        .skill-bar-track {
            height: 4px;
            background: rgba(148, 163, 184, 0.1);
            border-radius: 9999px;
            overflow: hidden;
        }

        .skill-bar-fill {
            height: 100%;
            border-radius: 9999px;
            background: linear-gradient(90deg, #10b981, #3b82f6);
            width: 0;
            transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .skill-bar-fill.animated {
            width: var(--fill, 0%);
        }

        /* CTA band */
        .cta-band {
            background:
                radial-gradient(ellipse 60% 80% at 20% 50%, rgba(16, 185, 129, 0.15), transparent),
                radial-gradient(ellipse 50% 70% at 80% 50%, rgba(139, 92, 246, 0.12), transparent),
                rgba(15, 22, 41, 0.5);
            border: 1px solid rgba(148, 163, 184, 0.1);
        }

        /* Counter */
        .counter-value {
            font-variant-numeric: tabular-nums;
        }

        @media (prefers-reduced-motion: reduce) {
            .animate-float, .animate-fade-in, .animate-slide-up, .animate-bounce,
            .orb, .marquee-track {
                animation: none !important;
            }
            .article-card:hover, .stat-card:hover, .btn-primary:hover {
                transform: none !important;
            }
            .article-card:hover .project-img-wrap img {
                transform: none !important;
            }
            .reveal {
                opacity: 1;
                transform: none;
                transition: none;
            }
            .skill-bar-fill {
                width: var(--fill, 0%);
                transition: none;
            }
        }
