:root {
            --bg: #0f1724;
            --card: #0b1220;
            --muted: #fff;
            --accent: #3ddc84;
            --glass: rgba(255, 255, 255, 0.03);
            --radius: 12px;
            --maxw: 1100px;
        }

        * {
            box-sizing: border-box
        }

        html,
        body {
            height: 100%
        }

        body {
            margin: 0;
            font-family: Inter, ui-sans-serif, system-ui, Segoe UI, Roboto, "Helvetica Neue", Arial;
            background: linear-gradient(180deg, #081021 0%, #071827 60%);
            color: #e6eef6;
            -webkit-font-smoothing: antialiased;
            line-height: 1.45;
            -webkit-text-size-adjust: 100%;
            padding: 24px;
            min-height: 100vh;
            /* ensure background fills the viewport */
            background-repeat: no-repeat;
            background-attachment: fixed;
            /* keeps gradient covering entire page on resize/scroll */
        }

        .wrap {
            max-width: var(--maxw);
            margin: 0 auto
        }

        header {
            display: flex;
            gap: 16px;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 28px;
        }

        .brand {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .logo {
            width: 56px;
            height: 56px;
            border-radius: 12px;
            background: linear-gradient(135deg, var(--accent), #6ce9c4);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: #042016;
            box-shadow: 0 6px 20px rgba(3, 7, 12, 0.6);
        }

        nav {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        nav a {
            color: var(--muted);
            text-decoration: none;
            padding: 8px 12px;
            border-radius: 10px;
            font-size: 14px;
        }

        nav a:hover,
        nav a.active {
            background: var(--glass);
            color: #d8eef8
        }

        .hero {
            display: grid;
            grid-template-columns: 1fr 360px;
            gap: 20px;
            align-items: start;
            margin-bottom: 28px;
        }

        .card {
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
            border-radius: var(--radius);
            padding: 20px;
            box-shadow: 0 6px 24px rgba(2, 6, 12, 0.6);
        }

        .intro h1 {
            margin: 0 0 8px 0;
            font-size: 28px
        }

        .intro p {
            margin: 0;
            color: var(--muted)
        }

        .stats {
            display: flex;
            gap: 12px;
            margin-top: 14px
        }

        .stat {
            background: var(--glass);
            padding: 10px 12px;
            border-radius: 10px;
            font-size: 14px
        }

        .contact-list {
            display: flex;
            flex-direction: column;
            gap: 8px
        }

        .btn {
            display: inline-block;
            padding: 8px 12px;
            border-radius: 9px;
            background: linear-gradient(90deg, var(--accent), #5ee6b3);
            color: #042016;
            font-weight: 600;
            text-decoration: none;
            font-size: 14px;
            position: relative;
            overflow: hidden;
            transition: transform 0.15s ease, box-shadow 0.15s ease;
            will-change: transform, box-shadow;
        }

        /* cross-fade between two gradients using pseudo-elements */
        .btn::before,
        .btn::after {
            content: "";
            position: absolute;
            inset: 0;
            border-radius: inherit;
            pointer-events: none;
            transition: opacity 0.35s ease;
            z-index: -1;
        }

        /* base gradient */
        .btn::before {
            background: linear-gradient(90deg, var(--accent), #5ee6b3);
            opacity: 1;
        }

        /* hovered gradient (fades in) */
        .btn::after {
            background: linear-gradient(90deg, #5ee6b3, var(--accent));
            opacity: 0;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(3, 7, 12, 0.45);
        }

        .btn:hover::after {
            opacity: 1;
        }

        .btn.small {
            padding: 6px 10px;
            font-size: 12px;
            border-radius: 7px;
        }

        main {
            display: grid;
            gap: 20px;
            grid-template-columns: 1fr;
            margin-bottom: 28px;
        }

        section h2 {
            margin: 0 0 12px 0;
            font-size: 20px
        }

        .grid {
            display: grid;
            gap: 12px;
        }

        /* Projects grid */
        .projects {
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        }

        .project {
            padding: 14px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.02);
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-height: 120px;
        }

        .project h3 {
            margin: 0;
            font-size: 16px
        }

        .project p {
            margin: 0;
            color: var(--muted);
            font-size: 13px;
            flex: 1
        }

        .project p a.link {
            color: var(--accent);
            text-decoration: none;
        }

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

        .tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap
        }

        .tag {
            font-size: 12px;
            padding: 6px 8px;
            border-radius: 999px;
            background: #04202b;
            color: #88ffd1
        }

        /* Experience timeline */
        .timeline {
            display: flex;
            flex-direction: column;
            gap: 12px
        }

        .exp {
            display: grid;
            grid-template-columns: 120px 1fr;
            gap: 12px;
            align-items: start;
            padding: 12px;
            border-radius: 10px;
            background: var(--glass)
        }

        .exp .period {
            color: var(--muted);
            font-size: 13px
        }

        .exp h4 {
            margin: 0 0 6px 0;
            font-size: 15px
        }

        .exp p {
            margin: 0;
            color: var(--muted);
            font-size: 13px
        }

        /* Interests */
        .chips {
            display: flex;
            gap: 8px;
            flex-wrap: wrap
        }

        .chip {
            background: rgba(255, 255, 255, 0.03);
            padding: 8px 10px;
            border-radius: 999px;
            font-size: 13px;
            color: var(--muted)
        }

        /* Links */
        a:not(.btn):not(nav a) {
            color: #5ee6b3;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        a:not(.btn):not(nav a):hover {
            color: #7eeec7;
            text-decoration: underline;
        }

        footer {
            margin-top: 10px;
            text-align: center;
            color: var(--muted);
            font-size: 13px;
            padding: 16px 0
        }

        /* Responsive */
        @media (max-width:880px) {
            .hero {
                grid-template-columns: 1fr;
            }

            .brand .logo {
                width: 48px;
                height: 48px
            }
        }