        :root {
            --bg: #010125;
            --card-bg: rgba(255, 255, 255, 0.06);
            --accent1: #7c6cff;
            --accent2: #5fb0ff;
            --muted: #bfc3ff;
            --glass-border: rgba(255, 255, 255, 0.03);
            --text: #f5f5f5;
            --radius: 48;
            /* used for SVG circle radius default */
        }

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

        html,
        body {
            height: 100%
        }

        body {
            font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Poppins", sans-serif;
            background: var(--bg);
            color: var(--text);
            padding: 40px 6vw;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            line-height: 1.5;
        }

        /* Container */
        .resume {
            max-width: 980px;
            margin: 0 auto;
            background: var(--card-bg);
            border-radius: 18px;
            padding: 28px;
            box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
            overflow: hidden;
        }

        /* Header grid */
        .header {
            display: grid;
            grid-template-columns: 1fr 220px;
            gap: 22px;
            align-items: center;
        }

        .name {
            font-family: "Poppins", sans-serif;
            font-weight: 700;
            font-size: 2rem;
            color: #cfc9ff;
            margin-bottom: 6px;
        }

        .role {
            color: var(--muted);
            font-weight: 500;
            margin-bottom: 12px
        }

        .contacts {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
            font-size: .95rem;
            color: #e9e9ff
        }

        .contacts a {
            color: inherit;
            text-decoration: none;
            display: inline-flex;
            gap: 8px;
            align-items: center
        }

        .contacts a:hover {
            color: var(--accent1)
        }

        .links {
            margin-top: 12px;
            display: flex;
            gap: 12px;
            flex-wrap: wrap
        }

        .links a {
            color: var(--muted);
            text-decoration: none;
            font-weight: 600;
            padding: 6px 10px;
            border-radius: 8px;
            transition: background .18s, color .18s, transform .12s
        }

        .links a:hover {
            background: rgba(124, 108, 255, 0.12);
            color: #fff;
            transform: translateY(-2px)
        }

        .btn-print {
            margin-top: 14px;
            display: inline-block;
            background: linear-gradient(90deg, var(--accent1), var(--accent2));
            color: #fff;
            border: none;
            padding: 10px 14px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 700;
            box-shadow: 0 6px 18px rgba(92, 110, 255, 0.18)
        }

        .btn-print:hover {
            transform: translateY(-3px)
        }

        /* Avatar */
        .avatar-wrap {
            display: flex;
            justify-content: center;
            align-items: center
        }

        .avatar {
            width: 180px;
            height: 180px;
            border-radius: 18px;
            overflow: hidden;
            border: 4px solid rgba(124, 108, 255, 0.18);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block
        }

        /* Sections layout */
        .sections {
            margin-top: 22px;
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 22px;
            align-items: start
        }

        @media (max-width:980px) {
            .header {
                grid-template-columns: 1fr 160px
            }

            .avatar {
                width: 140px;
                height: 140px
            }

            .sections {
                grid-template-columns: 1fr
            }
        }

        section.card {
            background: rgba(255, 255, 255, 0.02);
            padding: 18px;
            border-radius: 12px;
            border: 1px solid var(--glass-border)
        }

        section.card h3 {
            color: #cfc9ff;
            font-size: 1.05rem;
            margin-bottom: 10px;
            border-left: 4px solid var(--accent1);
            padding-left: 10px
        }

        /* Skills area layout */
        .skills-grid {
            display: flex;
            gap: 18px;
            flex-wrap: wrap;
            align-items: flex-start;
        }

        /* Circular skill tile */
        .circle-skill {
            width: 120px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            text-align: center;
            font-size: .88rem;
            color: var(--text);
        }

        .circle-wrap {
            width: 120px;
            height: 120px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        svg.progress-ring {
            width: 120px;
            height: 120px;
            transform: rotate(-90deg);
            overflow: visible
        }

        .ring-bg {
            fill: none;
            stroke: rgba(255, 255, 255, 0.08);
            stroke-width: 10
        }

        .ring-progress {
            fill: none;
            stroke: var(--accent1);
            stroke-width: 10;
            stroke-linecap: round;
            transition: stroke-dashoffset 1.4s cubic-bezier(.2, .9, .3, 1), stroke 0.3s
        }

        .ring-gradient {
            stroke: url(#grad1)
        }

        .circle-label {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transform: rotate(0deg);
            font-weight: 700;
        }

        .circle-label small {
            font-weight: 500;
            font-size: .75rem;
            color: var(--muted);
            display: block;
            margin-top: 4px
        }

        /* Tooltip on hover */
        .circle-skill:hover .ring-progress {
            filter: drop-shadow(0 6px 18px rgba(92, 110, 255, 0.18))
        }

        /* Project list and tags */
        .projects ul {
            list-style: none;
            padding-left: 0;
            margin-top: 8px
        }

        .projects li {
            margin-bottom: 8px
        }

        .projects a {
            color: var(--muted);
            text-decoration: none;
            font-weight: 600
        }

        .projects a:hover {
            color: var(--accent1)
        }

        .tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 8px
        }

        .tags span {
            background: rgba(255, 255, 255, 0.06);
            padding: 6px 10px;
            border-radius: 999px;
            color: #fff;
            font-size: .85rem
        }

        .tags span:hover {
            background: var(--accent1);
            cursor: pointer;
            transform: translateY(-3px)
        }

        /* Right column small cards */
        .right-col .card {
            margin-bottom: 14px
        }

        .experience ul,
        .education ul {
            list-style: none;
            padding-left: 0
        }

        .experience li,
        .education li {
            margin-bottom: 8px;
            color: #e9e9ff
        }

        .note {
            margin-top: 12px;
            font-size: .85rem;
            color: var(--muted)
        }

        /* small screens */
        @media (max-width:720px) {
            body {
                padding: 20px 4vw
            }

            .header {
                grid-template-columns: 1fr
            }

            .avatar-wrap {
                order: -1;
                margin-bottom: 12px
            }

            .avatar {
                width: 120px;
                height: 120px;
                border-radius: 999px
            }

            .profile {
                text-align: center
            }

            .sections {
                grid-template-columns: 1fr
            }

            .skills-grid {
                justify-content: center
            }
        }

        /* Print fallback - show percentages as text and hide circles */
        @media print {
            body {
                background: #fff;
                color: #000;
                padding: 0
            }

            .resume {
                box-shadow: none;
                border-radius: 0;
                padding: 18px;
                background: #fff
            }

            .btn-print,
            .links {
                display: none
            }

            .avatar {
                border: none;
                box-shadow: none
            }

            .circle-skill .circle-wrap {
                display: none
            }

            /* hide circular visuals */
            .circle-skill .circle-text-print {
                display: block
            }
        }

        /* small entry animation for cards */
        .fade-in-up {
            opacity: 0;
            transform: translateY(18px);
            animation: enter .7s ease forwards
        }

        @keyframes enter {
            to {
                opacity: 1;
                transform: translateY(0)
            }
        }