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

:root {
    --bg: #050816;
    --cyan: #22d3ee;
    --blue: #2563eb;
    --text: #ffffff;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --border: rgba(34, 211, 238, 0.22);
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
}

#stars {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 25%, rgba(34, 211, 238, 0.18), transparent 32%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.22), transparent 36%),
        radial-gradient(circle at 55% 80%, rgba(14, 165, 233, 0.12), transparent 36%),
        #050816;
}

.portfolio-shell {
    min-height: 100vh;
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 42px 54px 34px;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 34px;
    align-items: center;
    position: relative;
}

.identity-panel {
    z-index: 3;
}

.eyebrow {
    color: var(--cyan);
    letter-spacing: 4px;
    font-weight: 800;
    font-size: 13px;
    margin-bottom: 20px;
}

.identity-panel h1 {
    font-size: clamp(58px, 7vw, 105px);
    line-height: 0.92;
    margin-bottom: 24px;
}

.identity-panel h2 {
    color: var(--cyan);
    font-size: clamp(22px, 2.2vw, 38px);
    line-height: 1.1;
    margin-bottom: 16px;

    white-space: nowrap;
}

.tagline {
    color: var(--muted);
    font-size: 20px;
    line-height: 1.65;
    max-width: 680px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
    max-width: 650px;
}

.quick-stats div {
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
}

.quick-stats strong {
    display: block;
    color: var(--cyan);
    font-size: 21px;
    margin-bottom: 6px;
}

.quick-stats span {
    color: var(--muted);
    font-size: 13px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 28px;
}

.actions a {
    color: var(--text);
    text-decoration: none;
    border: 1px solid rgba(34, 211, 238, 0.72);
    background: rgba(15, 23, 42, 0.48);
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 650;
    transition: 0.25s ease;
}

.actions a:hover {
    color: #020617;
    background: var(--cyan);
    transform: translateY(-3px);
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
}

.hint {
    color: var(--soft);
    margin-top: 20px;
    font-size: 14px;
}

/* GALAXY */

.galaxy-panel {
    width: min(720px, 100%);
    aspect-ratio: 1 / 1;
    position: relative;
    margin: auto;
}

.galaxy-panel:has(.planet:hover) .planet:not(:hover),
.galaxy-panel:has(.planet:hover) .skill-moon,
.galaxy-panel:has(.skill-moon:hover) .planet,
.galaxy-panel:has(.skill-moon:hover) .skill-moon:not(:hover) {
    opacity: 0.46;
}

.orbit {
    position: absolute;
    border: 1px dashed rgba(125, 211, 252, 0.26);
    border-radius: 50%;
    inset: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbit-a { width: 42%; height: 42%; }
.orbit-b { width: 66%; height: 66%; }
.orbit-c { width: 88%; height: 88%; }

.orbit-d {
    width: 108%;
    height: 108%;
    border-color: rgba(34, 211, 238, 0.16);
}

.orbit-e {
    width: 124%;
    height: 124%;
    border-color: rgba(34, 211, 238, 0.10);
}

.planet {
    position: absolute;
    border: 1px solid rgba(34, 211, 238, 0.32);
    color: var(--text);
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    cursor: pointer;
    transition: 0.25s ease;
    font-weight: 800;
}

.planet:hover {
    transform: scale(1.1);
    box-shadow:
        0 0 48px rgba(34, 211, 238, 0.55),
        0 0 120px rgba(37, 99, 235, 0.25);
    border-color: rgba(34, 211, 238, 0.9);
    opacity: 1 !important;
    z-index: 8;
}

/* =========================
   CENTER BRAND CORE
   8-star living brand symbol:
   0%  - 20%  = N monogram
   25% - 45%  = 3-layer database
   50% - 70%  = 8-point AI sparkle
   75% - 90%  = 3-layer database again
   95% - 100% = back to N
========================= */

.core {
    width: 156px;
    height: 156px;
    left: calc(50% - 78px);
    top: calc(50% - 78px);
    z-index: 5;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(34,211,238,.26), rgba(37,99,235,.24), rgba(2,6,23,.96));
    box-shadow: 0 0 72px rgba(34,211,238,.66), inset 0 0 32px rgba(34,211,238,.10);
}

.constellation-core::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    border: 1px solid rgba(34,211,238,.42);
    box-shadow: 0 0 22px rgba(34,211,238,.55), inset 0 0 20px rgba(34,211,238,.12);
}

.core-star {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 8px rgba(34,211,238,.95), 0 0 18px rgba(34,211,238,.78), 0 0 30px rgba(37,99,235,.45);
    animation: coreStarMorph 30s ease-in-out infinite;
}

.core-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(34,211,238,.10), rgba(34,211,238,.95), rgba(34,211,238,.10));
    transform-origin: left center;
    box-shadow: 0 0 10px rgba(34,211,238,.55);
    animation: coreLineMorph 30s ease-in-out infinite;
}

.core-l1, .core-l2, .core-l3, .core-l4,
.core-l5, .core-l6, .core-l7, .core-l8 {
    width: 70px;
    left: 42px;
    top: 42px;
}

/* STAR 1: N top-left | DB top-left | AI top */
.core-s1 { animation-name: coreS1; }
@keyframes coreS1 {
    0%,20%,95%,100% { left: 34px; top: 34px; }
    25%,45%,75%,90% { left: 44px; top: 36px; }
    50%,70% { left: 75px; top: 24px; }
}

/* STAR 2: N top-right | DB top-right | AI upper-right */
.core-s2 { animation-name: coreS2; }
@keyframes coreS2 {
    0%,20%,95%,100% { left: 116px; top: 34px; }
    25%,45%,75%,90% { left: 108px; top: 36px; }
    50%,70% { left: 106px; top: 46px; }
}

/* STAR 3: N bottom-left | DB bottom-left | AI right */
.core-s3 { animation-name: coreS3; }
@keyframes coreS3 {
    0%,20%,95%,100% { left: 34px; top: 122px; }
    25%,45%,75%,90% { left: 44px; top: 108px; }
    50%,70% { left: 128px; top: 76px; }
}

/* STAR 4: N bottom-right | DB bottom-right | AI lower-right */
.core-s4 { animation-name: coreS4; }
@keyframes coreS4 {
    0%,20%,95%,100% { left: 116px; top: 122px; }
    25%,45%,75%,90% { left: 108px; top: 108px; }
    50%,70% { left: 106px; top: 106px; }
}

/* STAR 5: N middle-left | DB middle-left | AI bottom */
.core-s5 { animation-name: coreS5; }
@keyframes coreS5 {
    0%,20%,95%,100% { left: 62px; top: 62px; }
    25%,45%,75%,90% { left: 44px; top: 60px; }
    50%,70% { left: 75px; top: 128px; }
}

/* STAR 6: N middle-right | DB middle-right | AI lower-left */
.core-s6 { animation-name: coreS6; }
@keyframes coreS6 {
    0%,20%,95%,100% { left: 88px; top: 94px; opacity: 1; }
    25%,45%,75%,90% { left: 108px; top: 60px; opacity: 1; }
    50%,70% { left: 46px; top: 106px; opacity: 1; }
}

/* STAR 7: N lower-left support | DB lower-middle-left | AI left */
.core-s7 { animation-name: coreS7; }
@keyframes coreS7 {
    0%,20%,95%,100% { left: 34px; top: 78px; opacity: 1; }
    25%,45%,75%,90% { left: 44px; top: 84px; opacity: 1; }
    50%,70% { left: 24px; top: 76px; opacity: 1; }
}

/* STAR 8: N upper-right support | DB lower-middle-right | AI upper-left */
.core-s8 { animation-name: coreS8; }
@keyframes coreS8 {
    0%,20%,95%,100% { left: 116px; top: 78px; opacity: 1; }
    25%,45%,75%,90% { left: 108px; top: 84px; opacity: 1; }
    50%,70% { left: 46px; top: 46px; opacity: 1; }
}

/* LINE 1: N left vertical | DB top layer | AI vertical top */
.core-l1 { animation-name: coreL1; }
@keyframes coreL1 {
    0%,20%,95%,100% {
        width: 88px;
        left: 38px;
        top: 38px;
        transform: rotate(90deg);
        opacity: 1;
    }

    25%,45%,75%,90% {
        width: 64px;
        left: 48px;
        top: 40px;
        transform: rotate(0deg);
        opacity: 1;
    }

    50%,70% {
        width: 52px;
        left: 78px;
        top: 28px;
        transform: rotate(90deg);
        opacity: 1;
    }
}

/* LINE 2: N diagonal | DB middle layer | AI horizontal */
.core-l2 { animation-name: coreL2; }
@keyframes coreL2 {
    0%,20%,95%,100% {
        width: 128px;
        left: 37px;
        top: 33px;
        transform: rotate(50deg);
        opacity: 1;
    }

    25%,45%,75%,90% {
        width: 64px;
        left: 48px;
        top: 64px;
        transform: rotate(0deg);
        opacity: 1;
    }

    50%,70% {
        width: 104px;
        left: 28px;
        top: 78px;
        transform: rotate(0deg);
        opacity: 1;
    }
}

/* LINE 3: N right vertical | DB bottom layer | AI vertical bottom */
.core-l3 { animation-name: coreL3; }
@keyframes coreL3 {
    0%,20%,95%,100% {
        width: 88px;
        left: 120px;
        top: 38px;
        transform: rotate(90deg);
        opacity: 1;
    }

    25%,45%,75%,90% {
        width: 64px;
        left: 48px;
        top: 112px;
        transform: rotate(0deg);
        opacity: 1;
    }

    50%,70% {
        width: 52px;
        left: 78px;
        top: 80px;
        transform: rotate(90deg);
        opacity: 1;
    }
}

/* LINE 4: hidden in N | hidden in DB | AI diagonal top-left to bottom-right */
.core-l4 { animation-name: coreL4; }
@keyframes coreL4 {
    0%,20%,95%,100% {
        width: 0;
        opacity: 0;
    }

    25%,45%,75%,90% {
        width: 0;
        opacity: 0;
    }

    50%,70% {
        width: 84px;
        left: 50px;
        top: 51px;
        transform: rotate(45deg);
        opacity: 1;
    }
}

/* LINE 5: hidden in N | DB left side | AI diagonal top-right to bottom-left */
.core-l5 { animation-name: coreL5; }
@keyframes coreL5 {
    0%,20%,95%,100% {
        width: 0;
        opacity: 0;
    }

    25%,45%,75%,90% {
        width: 68px;
        left: 48px;
        top: 40px;
        transform: rotate(90deg);
        opacity: 1;
    }

    50%,70% {
        width: 84px;
        left: 104px;
        top: 51px;
        transform: rotate(135deg);
        opacity: 1;
    }
}

/* LINE 6: hidden in N | DB right side | hidden in AI */
.core-l6 { animation-name: coreL6; }
@keyframes coreL6 {
    0%,20%,95%,100% {
        width: 0;
        opacity: 0;
    }

    25%,45%,75%,90% {
        width: 68px;
        left: 112px;
        top: 40px;
        transform: rotate(90deg);
        opacity: 1;
    }

    50%,70% {
        width: 0;
        opacity: 0;
    }
}

/* LINE 7: hidden in N | DB lower-middle layer | hidden in AI */
.core-l7 { animation-name: coreL7; }
@keyframes coreL7 {
    0%,20%,95%,100% {
        width: 0;
        opacity: 0;
    }

    25%,45%,75%,90% {
        width: 64px;
        left: 48px;
        top: 88px;
        transform: rotate(0deg);
        opacity: 1;
    }

    50%,70% {
        width: 0;
        opacity: 0;
    }
}

/* LINE 8: hidden in all phases */
.core-l8 { animation-name: coreL8; }
@keyframes coreL8 {
    0%,20%,25%,45%,50%,70%,75%,90%,95%,100% {
        width: 0;
        opacity: 0;
    }
}

.priority-planet {
    border-color: rgba(34, 211, 238, 0.72);
}

.planet-experience,
.planet-projects,
.planet-education {
    width: 145px;
    height: 145px;
    font-size: 18px;
    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,.75),
            rgba(34,211,238,.55) 12%,
            rgba(37,99,235,.65) 45%,
            rgba(2,6,23,.95) 100%
        );
    box-shadow:
        inset -16px -18px 24px rgba(2,6,23,.85),
        inset 8px 8px 16px rgba(255,255,255,.08),
        0 0 28px rgba(34,211,238,.22);
}

.celestial-system {
    position: absolute;
    width: 360px;
    height: 360px;
    z-index: 6;
}

.experience-system {
    left: calc(10% + 72px);
    top: calc(16% + 72px);
    transform: translate(-50%, -50%);
}

.projects-system {
    right: calc(6% + 72px);
    bottom: calc(19% + 72px);
    transform: translate(50%, 50%);
    width: 410px;
    height: 410px;
}

.celestial-system .planet {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.celestial-system .planet:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.planet-education {
    left: 8%;
    bottom: 14%;
}

/* JOURNEY CONSTELLATION */

.constellation-journey {
    position: absolute;
    width: 190px;
    height: 150px;
    right: 8%;
    top: 8%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: 0.25s ease;
    z-index: 7;
}

.constellation-journey:hover {
    transform: scale(1.08);
}

.star {
    position: absolute;
    width: 9px;
    height: 9px;
    background: #22d3ee;
    border-radius: 50%;
    box-shadow:
        0 0 12px rgba(34, 211, 238, 0.95),
        0 0 24px rgba(37, 99, 235, 0.55);
}

.s1 { left: 28px; top: 98px; }
.s2 { left: 72px; top: 62px; }
.s3 { left: 62px; top: 22px; }
.s4 { left: 128px; top: 22px; }
.s5 { left: 150px; top: 78px; }
.s6 { left: 130px; top: 108px; }
.s7 { left: 142px; top: 134px; }

.constellation-line {
    position: absolute;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            rgba(34, 211, 238, 0.12),
            rgba(34, 211, 238, 0.95),
            rgba(34, 211, 238, 0.12)
        );
    transform-origin: left center;
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.45);
}

.l1 {
    width: 58px;
    left: 34px;
    top: 103px;
    transform: rotate(-39deg);
}

.l2 {
    width: 42px;
    left: 77px;
    top: 67px;
    transform: rotate(-103deg);
}

.l3 {
    width: 66px;
    left: 67px;
    top: 27px;
    transform: rotate(0deg);
}

.l4 {
    width: 60px;
    left: 133px;
    top: 27px;
    transform: rotate(69deg);
}

.l5 {
    width: 36px;
    left: 154px;
    top: 83px;
    transform: rotate(124deg);
}

.l6 {
    width: 30px;
    left: 135px;
    top: 113px;
    transform: rotate(65deg);
}

.l7 {
    width: 105px;
    left: 67px;
    top: 27px;
    transform: rotate(32deg);
}

.constellation-journey strong {
    position: absolute;
    left: 62px;
    bottom: 25px;
    color: #e0f2fe;
    font-size: 13px;
    letter-spacing: 1px;
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
}

@keyframes moonOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes moonCounter {
    from {
        transform: translate(-50%, -50%) rotate(var(--counter));
    }

    to {
        transform: translate(-50%, -50%) rotate(calc(var(--counter) - 360deg));
    }
}

.moon-track {
    position: absolute;
    inset: 0;
    pointer-events: none;
    animation: moonOrbit var(--duration) linear infinite;
}

.experience-track {
    --duration: 260s;
}

.projects-track {
    --duration: 340s;
}

.moon-holder {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform: rotate(var(--angle)) translateX(var(--radius));
}

.skill-moon {
    position: absolute;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 1px solid rgba(34, 211, 238, 0.42);
    background:
        radial-gradient(
            circle,
            rgba(34, 211, 238, 0.48),
            rgba(37, 99, 235, 0.34),
            rgba(2, 6, 23, 0.95)
        );
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.8px;
    cursor: pointer;
    pointer-events: auto;
    box-shadow:
        0 0 38px rgba(34, 211, 238, 0.42),
        0 0 90px rgba(37, 99, 235, 0.22);
    animation: moonCounter var(--duration) linear infinite;
    scale: 1;
    transition: scale 0.25s ease, box-shadow 0.25s ease;
}

.skill-moon:hover {
    scale: 1.15;
    box-shadow:
        0 0 50px rgba(34, 211, 238, 0.72),
        0 0 120px rgba(37, 99, 235, 0.32);
    z-index: 9;
}

.skill-moon::after {
    content: "";
    position: absolute;
    width: 116px;
    height: 116px;
    border: 1px solid rgba(34, 211, 238, 0.12);
    border-radius: 50%;
    pointer-events: none;
}


/* HOVER DETAIL CARD */

.preview-card {
    position: absolute;
    right: 34px;
    bottom: 28px;
    width: 430px;
    max-height: 520px;
    overflow-y: auto;
    padding: 28px;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 28px;
    box-shadow:
        0 0 45px rgba(34, 211, 238, 0.18),
        inset 0 0 30px rgba(34, 211, 238, 0.04);
    backdrop-filter: blur(14px);
    z-index: 20;
}

.preview-card.hidden {
    display: none;
}

.preview-label {
    color: var(--cyan);
    letter-spacing: 2.2px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 10px;
}

.preview-card h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 12px;
}

.preview-card h3 {
    color: var(--cyan);
    font-size: 18px;
    margin-bottom: 12px;
}

.preview-card p,
.preview-card li {
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.preview-card ul {
    padding-left: 18px;
    margin-top: 8px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.chips span {
    border: 1px solid rgba(34, 211, 238, 0.32);
    color: var(--cyan);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(34, 211, 238, 0.08);
    font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .portfolio-shell {
        grid-template-columns: 1fr;
        padding: 32px 24px;
    }

    .preview-card {
        position: static;
        width: auto;
        max-height: none;
        margin: 0 24px 24px;
    }
}

@media (max-width: 680px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }

    .identity-panel h1 {
        font-size: 56px;
    }

    .galaxy-panel {
        transform: scale(0.86);
        margin: -30px auto;
    }
}

.journey-mini-map {
    position: relative;
    height: 250px;
    margin-top: 10px;
    left: -20px;
}

.mini-route-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mini-route-lines line {
    stroke: rgba(34, 211, 238, 0.88);
    stroke-width: 2;
    filter: drop-shadow(0 0 7px rgba(34, 211, 238, 0.75));
}

.map-node {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
}

.map-node span {
    display: block;
    width: 11px;
    height: 11px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow:
        0 0 8px rgba(34,211,238,.95),
        0 0 18px rgba(34,211,238,.75),
        0 0 32px rgba(37,99,235,.45);
}

.map-node p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
}

.map-node small {
    display: block;
    margin-top: 3px;
    color: var(--soft);
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

/* cleaner constellation spacing */

.node-bachelors {
    left: 14%;
    top: 65%;
}

.node-dataeng {
    left: 39%;
    top: 35%;
}

.node-masters {
    left: 58%;
    top: 65%;
}

.node-intern {
    left: 79%;
    top: 40%;
}

.node-working {
    left: 79%;
    top: 82%;
}

.node-goal {
    left: 92%;
    top: 66%;
}

/* label fine-tuning */

.node-bachelors p,
.node-bachelors small {
    position: relative;
    left: -4px;
    top: 0px;
}

.node-dataeng p,
.node-dataeng small {
    position: relative;
    left: 0px;
    top: -54px;
}

.node-masters p,
.node-masters small {
    position: relative;
    left: -4px;
    top: 0px;
}

.node-intern p,
.node-intern small {
    position: relative;
    left: 4px;
    top: -62px;
}

.node-working p,
.node-working small {
    position: relative;
    left: 8px;
    top: 0px;
}

.node-goal p,
.node-goal small {
    position: relative;
    left: 39px;
    top: -47px;
}