:root {
            --bg: #050816;
            --bg-elevated: #0b1022;
            --accent: #6366f1;
            --accent-soft: rgba(99, 102, 241, 0.15);
            --accent-strong: #4f46e5;
            --text: #e5e7eb;
            --text-muted: #9ca3af;
            --card: rgba(15, 23, 42, 0.9);
            --border-subtle: rgba(148, 163, 184, 0.2);
            --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.7);
            --radius-xl: 18px;
            --radius-2xl: 24px;
            --transition-fast: 0.2s ease;
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: radial-gradient(circle at top left, #1f2937 0, #020617 45%, #000 100%);
            color: var(--text);
            line-height: 1.6;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        /* Layout */

        .page {
            max-width: 1120px;
            margin: 0 auto;
            padding: 1.5rem 1.25rem 3rem;
        }

        @media (min-width: 1024px) {
            .page {
                padding-top: 2.5rem;
            }
        }

        /* Navbar */

        .navbar {
            position: sticky;
            top: 0;
            z-index: 50;
            backdrop-filter: blur(16px);
            background: linear-gradient(to bottom, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.75), transparent);
            border-bottom: 1px solid rgba(148, 163, 184, 0.25);
        }

        .navbar-inner {
            max-width: 1120px;
            margin: 0 auto;
            padding: 0.6rem 1.25rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
        }

        .nav-brand {
            display: flex;
            align-items: baseline;
            gap: 0.35rem;
        }

        .nav-brand span:nth-child(1) {
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            font-size: 0.8rem;
            color: var(--accent);
        }

        .nav-brand span:nth-child(2) {
            font-weight: 600;
            font-size: 0.9rem;
            color: #e5e7eb;
        }

        .nav-links {
            display: flex;
            gap: 0.6rem;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .nav-links a {
            font-size: 0.82rem;
            padding: 0.35rem 0.65rem;
            border-radius: 999px;
            color: var(--text-muted);
            transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
        }

        .nav-links a:hover {
            background: var(--accent-soft);
            color: var(--text);
            transform: translateY(-1px);
        }

        @media (max-width: 640px) {
            .navbar-inner {
                flex-direction: column;
                align-items: flex-start;
            }

            .nav-links {
                justify-content: flex-start;
            }
        }

        /* Hero */

        .hero {
            display: grid;
            grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
            gap: 2rem;
            margin-top: 1.75rem;
            align-items: center;
        }

        @media (max-width: 768px) {
            .hero {
                grid-template-columns: minmax(0, 1fr);
            }
        }

        .hero-left {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
        }

        .hero-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.25rem 0.7rem;
            border-radius: 999px;
            background: rgba(22, 101, 52, 0.24);
            color: #bbf7d0;
            border: 1px solid rgba(34, 197, 94, 0.3);
            font-size: 0.7rem;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            width: fit-content;
        }

        .hero-title {
            font-size: clamp(2rem, 3.4vw, 2.6rem);
            font-weight: 700;
            letter-spacing: 0.02em;
        }

        .hero-title span {
            color: var(--accent);
        }

        .hero-subtitle {
            font-size: 0.98rem;
            color: var(--text-muted);
            max-width: 40rem;
        }

        .hero-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .hero-meta span {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.25rem 0.6rem;
            border-radius: 999px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: rgba(15, 23, 42, 0.9);
        }

        .hero-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.75rem;
            margin-top: 0.5rem;
        }

        .btn {
            border-radius: 999px;
            padding: 0.55rem 1.1rem;
            font-size: 0.86rem;
            border: 1px solid transparent;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--accent-strong), #7c3aed);
            color: white;
            box-shadow: 0 12px 30px rgba(79, 70, 229, 0.55);
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 18px 38px rgba(79, 70, 229, 0.75);
        }

        .btn-outline {
            background: rgba(15, 23, 42, 0.9);
            border-color: rgba(148, 163, 184, 0.5);
            color: var(--text-muted);
        }

        .btn-outline:hover {
            border-color: var(--accent);
            color: var(--text);
            background: rgba(15, 23, 42, 1);
            transform: translateY(-1px);
        }

        .hero-right {
            justify-self: center;
            width: 100%;
            max-width: 360px;
        }

        .hero-card {
            border-radius: var(--radius-2xl);
            background: radial-gradient(circle at 0 0, rgba(96, 165, 250, 0.1), transparent 50%),
                        radial-gradient(circle at 100% 100%, rgba(244, 114, 182, 0.12), transparent 52%),
                        var(--card);
            border: 1px solid rgba(148, 163, 184, 0.35);
            box-shadow: var(--shadow-soft);
            padding: 1.4rem 1.2rem 1.25rem;
            position: relative;
            overflow: hidden;
        }

        .hero-avatar {
            width: 72px;
            height: 72px;
            border-radius: 999px;
            background: radial-gradient(circle at 25% 25%, #f97316, #1e293b);
            border: 2px solid rgba(248, 250, 252, 0.9);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.6rem;
            color: #e5e7eb;
            margin-bottom: 0.7rem;
        }

        .hero-card-title {
            font-size: 1rem;
            font-weight: 600;
        }

        .hero-card-subtitle {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        .hero-pill-row {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            margin: 0.8rem 0;
        }

        .pill {
            font-size: 0.7rem;
            padding: 0.2rem 0.55rem;
            border-radius: 999px;
            border: 1px solid rgba(148, 163, 184, 0.35);
            background: rgba(15, 23, 42, 0.85);
            color: var(--text-muted);
        }

        .hero-chip {
            position: absolute;
            right: 1.2rem;
            top: 1.2rem;
            font-size: 0.7rem;
            padding: 0.2rem 0.55rem;
            border-radius: 999px;
            background: rgba(45, 212, 191, 0.16);
            border: 1px solid rgba(45, 212, 191, 0.5);
            color: #a5f3fc;
        }

        .hero-footer {
            border-top: 1px dashed rgba(148, 163, 184, 0.35);
            margin-top: 0.9rem;
            padding-top: 0.7rem;
            font-size: 0.75rem;
            color: var(--text-muted);
        }

        /* Sections */

        section {
            margin-top: 3rem;
        }

        .section-heading {
            font-size: 1.1rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--text-muted);
            margin-bottom: 0.25rem;
            font-weight: 600;
        }

        .section-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 1.25rem;
        }

        .section-intro {
            font-size: 0.9rem;
            color: var(--text-muted);
            max-width: 38rem;
            margin-bottom: 1.5rem;
        }

        .card {
            border-radius: var(--radius-xl);
            background: var(--card);
            border: 1px solid var(--border-subtle);
            padding: 1.25rem 1.3rem;
        }

        /* About */

        .about-text {
            font-size: 0.92rem;
            color: var(--text-muted);
        }

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

        /* Skills */

        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1rem;
        }

        .skills-category-title {
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .skills-list {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
        }

        .skills-list span {
            font-size: 0.78rem;
            padding: 0.22rem 0.6rem;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.9);
            border: 1px solid rgba(148, 163, 184, 0.3);
            white-space: nowrap;
        }

        /* Projects */

        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 1rem;
        }

        .project-card {
            position: relative;
            overflow: hidden;
        }

        .project-tag {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-bottom: 0.4rem;
            text-transform: uppercase;
            letter-spacing: 0.08em;
        }

        .project-title {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.25rem;
        }

        .project-desc {
            font-size: 0.84rem;
            color: var(--text-muted);
            margin-bottom: 0.6rem;
        }

        .project-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
            font-size: 0.75rem;
        }

        .project-meta span {
            padding: 0.15rem 0.5rem;
            border-radius: 999px;
            background: rgba(15, 23, 42, 0.9);
            border: 1px solid rgba(148, 163, 184, 0.4);
        }

        .project-link {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            margin-top: 0.7rem;
            font-size: 0.8rem;
            color: var(--accent);
        }

        .project-link:hover {
            text-decoration: underline;
        }

        /* Experience & Education */

        .timeline {
            display: grid;
            gap: 0.8rem;
        }

        .timeline-item {
            display: grid;
            grid-template-columns: 12px minmax(0, 1fr);
            gap: 0.75rem;
        }

        .timeline-marker {
            position: relative;
        }

        .timeline-marker::before {
            content: "";
            position: absolute;
            left: 5px;
            top: 4px;
            width: 6px;
            height: 6px;
            border-radius: 999px;
            background: var(--accent);
        }

        .timeline-marker::after {
            content: "";
            position: absolute;
            left: 7px;
            top: 14px;
            width: 2px;
            height: calc(100% - 10px);
            background: rgba(148, 163, 184, 0.4);
        }

        .timeline-item:last-child .timeline-marker::after {
            display: none;
        }

        .timeline-content {
            padding-bottom: 0.75rem;
        }

        .timeline-role {
            font-size: 0.9rem;
            font-weight: 600;
        }

        .timeline-company {
            font-size: 0.82rem;
            color: var(--text-muted);
        }

        .timeline-meta {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin: 0.25rem 0;
        }

        .timeline-detail {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        /* Certifications */

        .cert-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1rem;
        }

        .cert-item-title {
            font-size: 0.9rem;
            font-weight: 600;
            margin-bottom: 0.2rem;
        }

        .cert-link {
            font-size: 0.8rem;
            color: var(--accent);
        }

        .cert-link:hover {
            text-decoration: underline;
        }

        .cert-note {
            font-size: 0.78rem;
            color: var(--text-muted);
            margin-top: 0.4rem;
        }

        /* Contact */

        .contact-card {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            align-items: center;
            justify-content: space-between;
        }

        .contact-main {
            font-size: 0.9rem;
        }

        .contact-main strong {
            color: var(--text);
        }

        .contact-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
        }

        footer {
            margin-top: 2.5rem;
            font-size: 0.75rem;
            color: var(--text-muted);
            text-align: center;
            padding-top: 1rem;
            border-top: 1px solid rgba(148, 163, 184, 0.2);
        }

        /* Projects Dropdown in Navigation */
        .site-nav {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
        }

        .site-nav a,
        .nav-dropdown-toggle {
        color: #9ca3af;;
        /*color: #fff;*/
        text-decoration: none;
        background: none;
        border: none;
        /*font: inherit;*/
        cursor: pointer;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        }

        .site-nav a:hover,
        .nav-dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.08);
        }

        .nav-dropdown {
        position: relative;
        }

        .nav-dropdown-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        }

        .caret {
        font-size: 0.8rem;
        }

        .nav-dropdown-menu {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        min-width: 180px;
        background: #111827;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 12px;
        padding: 0.4rem;
        box-shadow: 0 10px 25px rgba(0,0,0,0.25);
        display: none;
        z-index: 1000;
        }

        .nav-dropdown-menu a {
        display: block;
        padding: 0.7rem 0.85rem;
        border-radius: 8px;
        white-space: nowrap;
        }

        .nav-dropdown-menu a:hover {
        background: rgba(255,255,255,0.08);
        }

        .nav-dropdown:hover .nav-dropdown-menu,
        .nav-dropdown:focus-within .nav-dropdown-menu {
        display: block;
        }