@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap");

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

:root {
    font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
    font-optical-sizing: auto;
    line-height: 1.5;
    color-scheme: dark;
    color: #eae5ec;
    background-color: var(--backgroundColor);
    --backgroundColor: #0b080c;
    --accentColor: #c2a4ff;
    --accentColorDim: #c481ff;
    --text-primary: #eae5ec;
    --text-secondary: #b0a8b5;
    --card-bg: rgba(255, 255, 255, 0.04);
    --border-color: rgba(255, 255, 255, 0.08);
    --cWidth: 94%;
    --cMaxWidth: 1400px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #000;
}

body.page-loading {
    overflow: hidden;
}

/* —— Page intro loader (GSAP) —— */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(24px, 5vw, 48px);
    background: var(--backgroundColor);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(194, 164, 255, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 45% at 100% 100%, rgba(251, 141, 255, 0.08), transparent 50%);
    color: var(--text-primary);
    pointer-events: auto;
    font-family: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
}

.page-loader__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(72px);
    pointer-events: none;
    opacity: 0.45;
}
.page-loader__glow--1 {
    width: min(420px, 70vw);
    height: min(420px, 70vw);
    top: -12%;
    left: -8%;
    background: #fb8dff;
    box-shadow: inset -40px 30px 50px rgba(84, 0, 255, 0.35);
}
.page-loader__glow--2 {
    width: min(360px, 55vw);
    height: min(360px, 55vw);
    bottom: -5%;
    right: -6%;
    background: var(--accentColor);
    box-shadow: inset -35px 25px 45px rgba(84, 0, 255, 0.3);
}

.page-loader__brand {
    position: absolute;
    z-index: 1;
    top: clamp(28px, 6vh, 56px);
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(13px, 2vw, 15px);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0;
}

.page-loader__bars {
    position: relative;
    z-index: 1;
    width: min(300px, 82vw);
    height: 50px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px var(--border-color);
}

.page-loader__bars--spin {
    overflow: visible;
    box-shadow: none;
}

.page-loader__bars-strip {
    display: flex;
    width: 100%;
    height: 100%;
    transform-origin: center center;
    will-change: transform;
}

.page-loader__bar {
    height: 100%;
    flex: 0 0 auto;
    background: linear-gradient(90deg, var(--accentColor) 0%, #e8b8ff 45%, #fb8dff 100%);
    box-shadow: 0 0 24px rgba(194, 164, 255, 0.35);
}

.page-loader__bar--wide {
    position: relative;
    width: 200px;
}

.page-loader__bar--narrow {
    position: relative;
    width: 100px;
    background: linear-gradient(90deg, #d4b8ff 0%, var(--accentColorDim) 50%, #c2a4ff 100%);
}

.page-loader__counter {
    position: fixed;
    left: clamp(24px, 6vw, 50px);
    bottom: clamp(24px, 6vh, 50px);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.02em;
    font-size: clamp(56px, 14vw, 100px);
    line-height: 1.02;
    font-weight: 500;
    z-index: 1;
    height: 1.02em;
    overflow: hidden;
}

.page-loader__pct {
    font-size: 0.35em;
    line-height: 1.2;
    margin-left: 0.06em;
    margin-bottom: 0.12em;
    color: var(--text-secondary);
    -webkit-text-fill-color: var(--text-secondary);
}

.page-loader__digit {
    position: relative;
    top: -0.12em;
}

.page-loader__digit--1,
.page-loader__digit--2,
.page-loader__digit--3 {
    position: relative;
}

.page-loader__num--offset-1 {
    position: relative;
    right: -0.22em;
}

.page-loader__num--offset-2 {
    position: relative;
    right: -0.09em;
}

.page-loader__num {
    height: 1.02em;
    line-height: 1.02;
    text-align: center;
    background: linear-gradient(180deg, #f5f0f8 0%, var(--accentColor) 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* —— 3D background —— */
.scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.scene-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}
.orb-1 {
    top: -10%;
    left: -10%;
    width: 320px;
    height: 320px;
    background: #fb8dff;
    box-shadow: inset -50px 40px 50px rgba(84, 0, 255, 0.5);
    animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
    top: 50%;
    right: -5%;
    width: 280px;
    height: 280px;
    background: #c2a4ff;
    box-shadow: inset -40px 30px 40px rgba(84, 0, 255, 0.4);
    animation: orbFloat 10s ease-in-out infinite 1s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

/* —— Nav (moncy.dev style) —— */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    backdrop-filter: blur(12px);
    background: rgba(11, 8, 12, 0.6);
    border-bottom: 1px solid var(--border-color);
}

.nav-logo {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-logo:hover { color: var(--accentColor); }

.nav-email {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
}

.nav-email:hover { color: var(--accentColor); }

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-link:hover { color: var(--accentColor); }

@media (max-width: 768px) {
    .nav { padding: 16px 20px; }
    .nav-email { display: none; }
    .nav-links { gap: 20px; }
}

/* —— Vertical social bar (left) —— */
.social-bar {
    position: fixed;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-bar-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: color 0.2s, border-color 0.2s;
}

.social-bar-link:hover {
    color: var(--accentColor);
    border-color: rgba(194, 164, 255, 0.4);
}

@media (max-width: 900px) {
    .social-bar { left: 12px; gap: 12px; }
    .social-bar-link { width: 36px; height: 36px; font-size: 11px; }
}

/* —— Content wrap —— */
.content-wrap {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}

/* —— Scroll reveal (fade + slide up when in view) —— */
.scroll-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* —— Hero / Landing —— */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 40px 60px;
    position: relative;
}

.hero-inner {
    width: 100%;
    max-width: var(--cMaxWidth);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}

/* Robot on top, name + role in a row underneath */
.hero-inner--stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(24px, 4vh, 48px);
}

.hero-robot-row {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 32px 48px;
    max-width: 900px;
}

.hero-inner--stacked .hero-text-row .hero-left {
    text-align: right;
}

.hero-inner--stacked .hero-text-row .hero-right {
    text-align: left;
}

.hero-left {
    text-align: right;
}

.hero-greeting {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--accentColor);
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.hero-name {
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.hero-center {
    position: relative;
    width: clamp(100px, 14vw, 140px);
    height: clamp(110px, 18vh, 160px);
    min-width: 90px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spline robot in hero: larger slot, same grid column */
.hero-inner--stacked .hero-center:has(#hero-3d-anchor[data-spline-scene]),
.hero-center:has(#hero-3d-anchor[data-spline-scene]) {
    width: clamp(180px, 28vw, 300px);
    height: clamp(240px, 36vh, 420px);
    min-width: 160px;
    min-height: 220px;
}

.hero-logo-wrap {
    width: 100%;
    height: 100%;
    min-width: 80px;
    min-height: 90px;
    overflow: visible;
    position: relative;
    background: transparent;
    pointer-events: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.hero-logo-css {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hero-logo-spin 18s linear infinite;
    visibility: visible;
    opacity: 1;
}

.hero-logo-wrap:has(canvas) .hero-logo-css {
    display: none;
}

.hero-logo-css-text {
    font-family: var(--fontFamily), sans-serif;
    font-size: clamp(36px, 10vw, 72px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.25),
        0 0 24px rgba(194, 164, 255, 0.35),
        0 -1px 0 rgba(255, 255, 255, 0.6),
        0 0 40px rgba(255, 255, 255, 0.12);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

@keyframes hero-logo-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-logo-wrap canvas,
.hero-spline-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Pointer events handled globally in spline-hero.js so Look at tracks full viewport */
.hero-spline-canvas {
    pointer-events: none;
}

.hero-right {
    text-align: left;
}

.hero-role {
    display: flex;
    flex-direction: column;
    gap: 0;
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-role-dim {
    color: var(--accentColorDim);
    opacity: 0.85;
}

.hero-role-bold {
    color: var(--text-primary);
    margin-left: 8px;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    color: var(--text-secondary);
    text-decoration: none;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
    }
    .hero-inner--stacked {
        text-align: center;
    }
    /* Split hero copy: name / intro left, role lines right (desktop-like, reads cleaner than stacked center) */
    .hero-text-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px 14px;
        max-width: 100%;
        width: 100%;
        justify-items: stretch;
        padding: 0 8px;
        box-sizing: border-box;
    }
    .hero-inner--stacked .hero-text-row .hero-left,
    .hero-text-row .hero-left {
        text-align: left;
    }
    .hero-inner--stacked .hero-text-row .hero-right,
    .hero-text-row .hero-right {
        text-align: right;
    }
    .hero-role {
        align-items: flex-end;
    }
    .hero-role-bold {
        margin-left: 0;
    }
    .hero-center { margin: 20px auto; }

    /* Spline: soften the WebGL “card” so it merges with the starfield */
    .hero-robot-row {
        overflow: visible;
        width: 100%;
        max-width: 100vw;
    }
    .hero-inner--stacked .hero-center:has(#hero-3d-anchor[data-spline-scene]),
    .hero-center:has(#hero-3d-anchor[data-spline-scene]) {
        width: min(100vw - 32px, 360px);
        height: min(48vh, 400px);
        min-width: 0;
        min-height: 200px;
        max-height: 420px;
        background: transparent;
        box-shadow: none;
    }
    #hero-3d-anchor.hero-spline-ready {
        background: transparent;
        overflow: visible;
        -webkit-mask-image: radial-gradient(
            ellipse 95% 90% at 50% 42%,
            #000 50%,
            rgba(0, 0, 0, 0.65) 72%,
            transparent 100%
        );
        mask-image: radial-gradient(
            ellipse 95% 90% at 50% 42%,
            #000 50%,
            rgba(0, 0, 0, 0.65) 72%,
            transparent 100%
        );
    }
    .hero-spline-canvas {
        background: transparent !important;
    }
}

@media (max-width: 480px) {
    .hero-center {
        width: min(100px, 32vw);
        height: min(110px, 36vw);
    }
    .hero-center:has(#hero-3d-anchor[data-spline-scene]) {
        width: min(100vw - 24px, 340px);
        height: min(46vh, 360px);
        min-height: 200px;
    }
    .hero-text-row {
        gap: 12px 10px;
        padding: 0 4px;
    }
    .hero-greeting {
        font-size: clamp(13px, 3.2vw, 18px);
        letter-spacing: 1px;
        margin-bottom: 6px;
    }
    .hero-name {
        font-size: clamp(24px, 6.8vw, 40px);
        letter-spacing: 1px;
    }
    .hero-role {
        font-size: clamp(16px, 3.9vw, 28px);
        letter-spacing: 1px;
    }
}

/* —— Section common —— */
.section {
    padding: 80px 40px 100px;
    max-width: var(--cMaxWidth);
    margin: 0 auto;
}

.section-inner {
    width: var(--cWidth);
    max-width: var(--cMaxWidth);
    margin: 0 auto;
}

.section-heading {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accentColor);
    margin-bottom: 32px;
}

/* —— About —— */
.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-3d-placeholder {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* About CA logo block — no circular frame */
.about-ca-visual {
    position: relative;
    overflow: visible;
}

.about-ca-visual.about-3d-placeholder {
    display: block;
}

.about-content .about-text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 480px;
}

.about-3d-placeholder .about-ca-wrap {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
}

.about-ca-wrap {
    position: relative;
    pointer-events: none;
}

.about-ca-wrap .ca-logo-css-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.about-ca-wrap .ca-logo-css-fallback .hero-logo-css-text {
    font-size: clamp(36px, 12vw, 56px);
}

.about-ca-wrap canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

@media (max-width: 900px) {
    .about-inner { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { order: -1; }
}

/* —— What I Do (cards like moncy's DEVELOP/DESIGN) —— */
.what-i-do {
    padding-top: 60px;
}

.what-i-do-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    align-items: start;
}

.what-i-do-title {
    position: sticky;
    top: 120px;
}

.what-i-do-what {
    display: block;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.what-i-do-i-do {
    display: block;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 600;
    color: var(--accentColor);
    letter-spacing: 2px;
}

.what-i-do-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.do-card-frame {
    padding: 28px 32px;
    border-radius: 4px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.do-card .star-border-container .star-border-inner.do-card-frame {
    border: 1px solid var(--border-color);
    padding: 28px 32px;
}

.do-card:hover .do-card-frame {
    border-color: rgba(194, 164, 255, 0.3);
    box-shadow: 0 0 40px rgba(194, 164, 255, 0.08);
}

.do-card-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.do-card-desc {
    font-size: 14px;
    color: var(--accentColor);
    margin-bottom: 12px;
}

.do-card-text {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .what-i-do-inner { grid-template-columns: 1fr; gap: 32px; }
    .what-i-do-title { position: static; }
}

/* —— Work / Projects —— */
.work {
    padding-top: 40px;
}

.work-inner .section-heading {
    margin-bottom: 28px;
}

.projects-list-wrap {
    width: 100%;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-2px);
    border-color: rgba(194, 164, 255, 0.4);
    box-shadow: 0 8px 32px rgba(194, 164, 255, 0.15);
    background: rgba(194, 164, 255, 0.06);
}

.project-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(40, 35, 50, 0.8);
    padding: 6px;
    flex-shrink: 0;
}

.project-content { flex: 1; }

.project-name {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.project-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.project-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-style: italic;
}

.certificate-link {
    display: inline-block;
    font-size: 13px;
    color: var(--accentColor);
    text-decoration: none;
    margin-top: 4px;
}

.certificate-link:hover { text-decoration: underline; color: #e0d0ff; }

.project-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: transform 0.3s, color 0.3s;
    flex-shrink: 0;
}

.project-link:hover {
    transform: translateX(4px);
    color: var(--accentColor);
}

.link-arrow { font-size: 20px; }

.view-more-wrap {
    width: 100%;
    margin-top: 16px;
}

.view-more-btn {
    width: 100%;
    margin-top: 0;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.view-more-btn:hover {
    background: rgba(194, 164, 255, 0.08);
    border-color: rgba(194, 164, 255, 0.4);
}

/* —— Tech —— */
.tech-section .section-inner {
    max-width: 700px;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-item {
    padding: 8px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
    backdrop-filter: blur(12px);
    transition: border-color 0.2s, background 0.2s;
}

.tech-item:hover {
    border-color: rgba(194, 164, 255, 0.3);
    background: rgba(194, 164, 255, 0.06);
}

.tech-item-wrap {
    display: inline-block;
    border-radius: 8px;
}

.star-border-inner.tech-item {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
}

/* —— Contact —— */
.contact-section .section-inner.contact-inner {
    text-align: center;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.contact-link {
    display: block;
    padding: 14px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
    backdrop-filter: blur(12px);
}

.contact-link:hover {
    background: rgba(194, 164, 255, 0.08);
    border-color: rgba(194, 164, 255, 0.4);
    transform: translateY(-2px);
}

.contact-link-wrap {
    display: block;
    text-decoration: none;
    color: inherit;
}

.star-border-inner.contact-link {
    display: block;
    text-align: center;
    padding: 14px 20px;
}

/* —— Footer with centered Resume CTA —— */
.site-footer {
    padding: 48px 24px 60px;
    text-align: center;
}

.footer-resume-wrap {
    display: inline-block;
}

.footer-resume-wrap.star-border-container {
    padding: 1px 0;
}

.star-border-inner.resume-cta {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid #222;
    background: var(--card-bg);
    transition: border-color 0.2s, color 0.2s;
}

.star-border-inner.resume-cta:hover {
    border-color: rgba(194, 164, 255, 0.4);
    color: var(--accentColor);
}

.resume-cta-arrow { font-size: 12px; }

/* —— Resume modal (fixed overlay) —— */
.resume-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.resume-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.resume-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
}

.resume-modal-box {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--backgroundColor);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.resume-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.resume-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.resume-modal-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.resume-modal-download {
    padding: 8px 16px;
    background: var(--accentColor);
    color: #0b080c;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.resume-modal-download:hover {
    background: #d4b8ff;
    color: #0b080c;
}

.resume-modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.resume-modal-close:hover {
    color: var(--text-primary);
    border-color: rgba(194, 164, 255, 0.4);
}

.resume-modal-body {
    flex: 1;
    min-height: 0;
    display: flex;
}

.resume-modal-iframe {
    width: 100%;
    height: 75vh;
    min-height: 400px;
    border: none;
    background: #fff;
}

/* —— StarBorder: thin glowing layer (reference-style) —— */
.star-border-container {
    display: inline-block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 1px 0;
    --star-color: var(--accentColor);
    --star-speed: 6s;
}

/* Only a thin slice of the orb is visible: orbs sit mostly outside, tight gradient */
.star-border-container .border-gradient-bottom {
    position: absolute;
    width: 300%;
    height: 50%;
    opacity: 0.6;
    bottom: -48%;
    right: -250%;
    border-radius: 50%;
    animation: star-movement-bottom linear infinite alternate;
    z-index: 0;
    background: radial-gradient(circle, var(--star-color) 0%, var(--star-color) 4%, transparent 8%);
    animation-duration: var(--star-speed);
}

.star-border-container .border-gradient-top {
    position: absolute;
    opacity: 0.6;
    width: 300%;
    height: 50%;
    top: -48%;
    left: -250%;
    border-radius: 50%;
    animation: star-movement-top linear infinite alternate;
    z-index: 0;
    background: radial-gradient(circle, var(--star-color) 0%, var(--star-color) 4%, transparent 8%);
    animation-duration: var(--star-speed);
}

.star-border-container .star-border-inner {
    position: relative;
    border: 1px solid #222;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 16px;
    padding: 16px 26px;
    border-radius: 20px;
    z-index: 1;
}

@keyframes star-movement-bottom {
    0% { transform: translate(0%, 0%); opacity: 0.8; }
    100% { transform: translate(-100%, 0%); opacity: 0.2; }
}

@keyframes star-movement-top {
    0% { transform: translate(0%, 0%); opacity: 0.8; }
    100% { transform: translate(100%, 0%); opacity: 0.2; }
}

.project-card-wrap {
    width: 100%;
}

.star-border-inner.project-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    font-size: inherit;
}

@media (max-width: 480px) {
    .section { padding: 50px 20px 70px; }
    .nav-links { gap: 16px; }
}
