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

html { overflow-x: hidden; max-width: 100%; }

body {
    font-family: Arial, Helvetica, sans-serif;
    width: 100%; height: 100%;
    max-width: 100%;
    background-color: #02030a;
    color: #f8fafc;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(60,20,120,0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(0,60,120,0.25) 0%, transparent 55%),
        #02030a;
    pointer-events: none;
}

#network-canvas {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

.container {
    position: relative;
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
}

/* header */
header {
    display: flex; position: fixed;
    top: 0; left: 0; right: 0;
    align-items: center; justify-content: space-between;
    height: 72px;
    background: linear-gradient(
        135deg,
        rgba(12,10,40,0.72) 0%,
        rgba(8,6,30,0.68) 100%
    );
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    padding: 0 36px;
    border-bottom: 1px solid rgba(114,161,222,0.18);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.04),
        0 4px 30px rgba(0,0,0,0.5),
        0 0 60px rgba(92,53,245,0.08),
        inset 0 1px 0 rgba(255,255,255,0.06);
    z-index: 9999;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}
header::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(130,100,255,0.6), rgba(60,160,255,0.6), transparent);
    border-radius: 999px;
}

/* logo */
.left { display: flex; align-items: center; gap: 4px; }
.left img {
    width: 38px; height: 38px; margin-right: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(130,100,255,0.4);
    box-shadow: 0 0 14px rgba(101,61,245,0.5), 0 0 0 3px rgba(101,61,245,0.08);
    transition: box-shadow 0.3s;
}
.left img:hover { box-shadow: 0 0 22px rgba(101,61,245,0.8), 0 0 0 4px rgba(101,61,245,0.15); }
.left h1 {
    font-size: 17px !important; font-weight: 700; letter-spacing: 0.02em;
    background: linear-gradient(90deg, #c4b5fd, #93c5fd);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* nav link */
header ul {
    display: flex; align-items: center; gap: 4px;
    list-style: none; padding: 6px 8px;
    border-radius: 50px; width: auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 20px rgba(92,53,245,0.06);
}
header ul li { list-style: none; }
header ul a {
    text-decoration: none;
    color: rgba(200,210,240,0.75);
    font-weight: 600; font-size: 13px; letter-spacing: 0.06em;
    padding: 7px 18px; border-radius: 50px;
    transition: all 0.25s;
}
header ul a:hover {
    color: #fff;
    background: rgba(130,100,255,0.15);
    box-shadow: 0 0 16px rgba(130,100,255,0.2);
}

/* bar menu */
.menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    padding: 7px;
    z-index: 10000;
    transition: background 0.2s;
}
.menu:hover { background: rgba(130,100,255,0.15); }
.menu span {
    display: block;
    height: 2px;
    background: rgba(200,210,240,0.85);
    border-radius: 2px;
    transform-origin: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* X state */
.menu.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* hero visual */
.hero {
    display: flex; align-items: center; justify-content: space-between;
    height: 100vh; padding: 0 5%;
    overflow: hidden;
}

/* left hv */
.hero-info { flex: 0 0 44%; }

.hero-title {
    font-weight: 400;
    border: 1px solid rgb(55,65,205);
    padding: 7px 12px 7px 9px;
    display: inline-flex; align-items: center; gap: 6px;
    background-color: rgba(0,19,113,0.3); border-radius: 50px; font-size: 14px;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.2;} }

.hero-info h1 { font-weight: 600; font-size: 56px; margin-top: 30px; margin-bottom: 25px; line-height: 70px; }
.hero-info p { font-size: 19px; line-height: 30px; margin-bottom: 35px; color: rgba(200,215,240,0.82); }

.hero-buttons { display: flex; gap: 14px; }
.btn-primary {
    text-decoration: none; padding: 12px 28px; border-radius: 50px;
    background: linear-gradient(135deg, #5c35f5, #2d8de0);
    color: #fff; font-weight: 600; font-size: 14px;
    box-shadow: 0 0 20px rgba(92,53,245,0.4); transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 30px rgba(92,53,245,0.6); }
.btn-ghost {
    text-decoration: none; padding: 12px 28px; border-radius: 50px;
    border: 1px solid rgba(114,161,222,0.35);
    color: rgba(200,220,255,0.85); font-weight: 600; font-size: 14px;
    backdrop-filter: blur(6px); transition: all 0.2s;
}
.btn-ghost:hover { border-color: rgba(114,161,222,0.7); background: rgba(114,161,222,0.08); transform: translateY(-2px); }

/* right hv */
.hero-visual {
    flex: 0 0 50%;
    position: relative;
    height: 560px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.12s ease-out;
    transform-style: preserve-3d;
}

.visual-glow {
    position: absolute;
    width: 260px; height: 260px; border-radius: 50%;
    background: radial-gradient(circle, rgba(92,53,245,0.2) 0%, transparent 70%);
    filter: blur(30px);
    animation: glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}
@keyframes glow-pulse { 0%,100%{transform:scale(1);opacity:0.7;} 50%{transform:scale(1.15);opacity:1;} }

/* orbit system */
.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(114,161,222,0.1);
}

.orbit-1 { width: 330px; height: 330px; animation: spin1 14s linear infinite; }
.orbit-2 { width: 530px; height: 530px; animation: spin2 22s linear infinite reverse; }

@keyframes orbit-in {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

@keyframes spin1 { to { transform: rotate(360deg); } }
@keyframes spin2 { to { transform: rotate(-360deg); } }

.tech-dot {
    position: absolute;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(6,6,40,0.85);
    border: 1px solid rgba(114,161,222,0.25);
    backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    box-shadow: 0 0 12px rgba(114,161,222,0.15);
    cursor: default;
    top: 50%; left: 50%;
    transform:
        rotate(var(--angle))
        translateX(50%)
        translateY(-50%)
        rotate(calc(-1 * var(--angle)));
    transition: transform 0.25s, box-shadow 0.25s;
}

/* orbit-1 */
.orbit-1 .tech-dot {
    transform:
        rotate(var(--angle))
        translate(165px, -50%)
        rotate(calc(-1 * var(--angle)));
}
/* orbit-2 */
.orbit-2 .tech-dot {
    transform:
        rotate(var(--angle))
        translate(265px, -50%)
        rotate(calc(-1 * var(--angle)));
}

.tech-dot:hover {
    background: rgba(20,20,80,0.95);
    box-shadow: 0 0 22px rgba(114,161,222,0.45);
    z-index: 20;
}

/* tooltip */
.tech-tip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%; transform: translateX(-50%);
    background: rgba(6,6,40,0.95);
    border: 1px solid rgba(114,161,222,0.25);
    color: rgba(200,220,255,0.9);
    font-size: 11px; font-weight: 600;
    padding: 4px 9px; border-radius: 20px;
    white-space: nowrap;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
}
.tech-dot:hover .tech-tip { opacity: 1; }

.orbit-2 .tech-dot { width: 40px; height: 40px; font-size: 20px; }

.devicon-nextjs-plain { color: #fff; }

/* avatar */
.avatar-card {
    position: relative; z-index: 10;
    display: flex; flex-direction: column;
    align-items: center; gap: 14px; cursor: pointer;
    ;
}
.avatar-inner { position: relative; width: 140px; height: 140px; }
.avatar-img {
    width: 140px; height: 140px; border-radius: 50%;
    border: 2px solid rgba(92,53,245,0.6);
    box-shadow: 0 0 30px rgba(92,53,245,0.5), 0 0 60px rgba(45,141,224,0.2);
    object-fit: cover; transition: transform 0.3s;
}
.avatar-card:hover .avatar-img { transform: scale(1.06); }
.avatar-pulse {
    position: absolute; inset: -8px; border-radius: 50%;
    border: 1.5px solid rgba(92,53,245,0.35);
    animation: pulse-ring 2.5s ease-out infinite;
}
.avatar-pulse.delay { animation-delay: 1.25s; }
@keyframes pulse-ring { 0%{transform:scale(0.95);opacity:0.8;} 100%{transform:scale(1.35);opacity:0;} }
.avatar-label {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 50px;
    background: rgba(8,8,60,0.6);
    border: 1px solid rgba(72,232,156,0.25);
    font-size: 12px; color: rgba(200,230,210,0.9);
    backdrop-filter: blur(8px);
}
.avatar-status { width: 7px; height: 7px; border-radius: 50%; background: #48e89c; box-shadow: 0 0 6px #48e89c; animation: blink 1.6s ease-in-out infinite; }

/* gradient */
.gradient {
    background: linear-gradient(to right, #008baa, #9548e8, #f8fafc, #48a8e8, #008baa);
    background-size: 200%; background-clip: text;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: anim-grad 2.5s linear infinite;
}
@keyframes anim-grad { to { background-position: 200%; } }

.gradient-2 {
    background: linear-gradient(to right, #d60202, #ff7373, #f8fafc, #d60202);
    background-size: 200%; background-clip: text;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: anim-grad2 2.5s linear infinite;
}
@keyframes anim-grad2 { to { background-position: 200%; } }


/* intro anim thing */

/* badge */
.intro-badge {
    opacity: 0;
    transform: translateY(10px);
    animation: none;
}
.intro-badge.visible {
    animation: badge-in 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
}
@keyframes badge-in {
    to { opacity: 1; transform: translateY(0); }
}

/* typewriter thing */
#heroTitle {
    min-height: 140px;
}

/* blinking cursor */
.tw-cursor {
    display: inline-block;
    width: 3px;
    height: 0.85em;
    background: rgba(200,220,255,0.85);
    border-radius: 2px;
    margin-left: 4px;
    vertical-align: middle;
    animation: cursor-blink 0.75s step-end infinite;
}
@keyframes cursor-blink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0; }
}

/* paragraph */
.intro-para {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.intro-para.visible {
    opacity: 1;
    transform: translateY(0);
}

/* buttons */
.intro-buttons {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.intro-buttons.visible {
    opacity: 1;
    transform: translateY(0);
}
/* constellation */
.skills-section {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 160px 5% 120px;
    overflow: hidden;
    scroll-margin-top: 72px;
}

/* section header */
.skills-header {
    text-align: center;
    margin-bottom: 70px;
    z-index: 2;
    position: relative;
}
.skills-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: rgba(130,100,255,0.8);
    display: block;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.skills-label.visible { opacity: 1; transform: translateY(0); }

.skills-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 14px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}
.skills-title.visible { opacity: 1; transform: translateY(0); }

.skills-sub {
    font-size: 16px;
    color: rgba(180,200,240,0.55);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.6s ease 0.28s, transform 0.6s ease 0.28s;
}
.skills-sub.visible { opacity: 1; transform: translateY(0); }

/* constellation canvas */
.constellation-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 480px;
}

#constellation-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.constellation-nodes {
    position: absolute;
    inset: 0;
    z-index: 2;
}

/* star node */
.star-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translate(-50%, -50%);
    cursor: default;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.star-node.visible { opacity: 1; }

.star-icon {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: rgba(6, 6, 35, 0.85);
    border: 1px solid rgba(114,161,222,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    backdrop-filter: blur(8px);
    box-shadow:
        0 0 0 0 rgba(130,100,255,0.4),
        0 0 14px rgba(114,161,222,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.star-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid rgba(130,100,255,0.25);
    animation: star-twinkle 3s ease-in-out infinite;
}

@keyframes star-twinkle {
    0%,100% { opacity: 0.3; transform: scale(1); }
    50%      { opacity: 0.8; transform: scale(1.08); }
}

.star-node:hover .star-icon {
    transform: scale(1.18);
    border-color: rgba(130,100,255,0.6);
    box-shadow:
        0 0 0 6px rgba(130,100,255,0.08),
        0 0 28px rgba(130,100,255,0.4);
}

.star-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(180,210,255,0.7);
    text-transform: uppercase;
    transition: color 0.3s;
    white-space: nowrap;
}
.star-node:hover .star-name { color: rgba(200,220,255,1); }

/* particle */
@keyframes burst-ring {
    0%   { transform: translate(-50%,-50%) scale(0.5); opacity: 0.9; }
    100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}
.burst-ring {
    position: absolute;
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 1.5px solid rgba(130,100,255,0.7);
    pointer-events: none;
    top: 50%; left: 50%;
    animation: burst-ring 0.7s ease-out forwards;
}
/* project section */
.project-section {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 160px 5% 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-margin-top: 72px;
}

.project-header {
    text-align: center;
    margin-bottom: 60px;
}
.project-label {
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.25em;
    color: rgba(130,100,255,0.8);
    display: block; margin-bottom: 14px;
    opacity: 0; transform: translateY(12px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.project-label.visible { opacity: 1; transform: translateY(0); }

.project-title {
    font-size: 48px; font-weight: 700;
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.7s ease 0.12s, transform 0.7s ease 0.12s;
}
.project-title.visible { opacity: 1; transform: translateY(0); }

/* card */
.project-card {
    display: flex;
    gap: 48px;
    align-items: stretch;
    width: 100%; max-width: 1000px;
    background: rgba(8, 6, 35, 0.6);
    border: 1px solid rgba(114,161,222,0.12);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 8px 60px rgba(0,0,0,0.5),
        0 0 80px rgba(92,53,245,0.06);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease 0.25s, transform 0.8s cubic-bezier(0.22,1,0.36,1) 0.25s;
}
.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.project-card:hover {
    border-color: rgba(130,100,255,0.25);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.06) inset,
        0 8px 60px rgba(0,0,0,0.5),
        0 0 100px rgba(92,53,245,0.12);
}

/* terminal left */
.project-preview {
    flex: 0 0 48%;
    background: rgba(4, 3, 20, 0.9);
    border-right: 1px solid rgba(114,161,222,0.08);
    display: flex;
    flex-direction: column;
    min-height: 340px;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.t-dot {
    width: 11px; height: 11px; border-radius: 50%;
}
.t-dot.red    { background: #ff5f57; }
.t-dot.yellow { background: #ffbd2e; }
.t-dot.green  { background: #28c840; }
.t-title {
    margin-left: 8px;
    font-size: 12px;
    color: rgba(180,200,240,0.35);
    font-family: 'Courier New', monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
    flex: 1;
    overflow: hidden;
}

.t-line { display: block; white-space: pre; }
.t-prompt  { color: rgba(130,100,255,0.9); }
.t-cmd     { color: rgba(200,220,255,0.9); }
.t-comment { color: rgba(120,160,120,0.7); font-style: italic; }
.t-out     { color: rgba(72,232,156,0.85); }
.t-out-dim { color: rgba(160,200,160,0.55); }
.t-cursor-term {
    display: inline-block;
    width: 8px; height: 14px;
    background: rgba(130,100,255,0.8);
    border-radius: 1px;
    vertical-align: middle;
    animation: cursor-blink 0.75s step-end infinite;
}

/* info right */
.project-info {
    flex: 1;
    padding: 36px 36px 36px 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
    background: rgba(130,100,255,0.12);
    border: 1px solid rgba(130,100,255,0.3);
    color: rgba(180,150,255,0.9);
    width: fit-content;
}

.project-name {
    font-size: 36px; font-weight: 700; line-height: 1;
}

.project-desc {
    font-size: 14px; line-height: 1.7;
    color: rgba(180,200,240,0.7);
}
.project-desc em { color: rgba(72,232,156,0.8); font-style: normal; }

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.highlight-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: rgba(180,200,240,0.65);
}
.hi-icon { font-size: 15px; }

.project-stack {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
}
.project-stack i { font-size: 22px; }
.stack-badge {
    padding: 3px 10px; border-radius: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    font-size: 11px; font-weight: 700;
    color: rgba(180,200,240,0.6);
    letter-spacing: 0.05em;
}

.project-links {
    display: flex; align-items: center; gap: 18px;
    margin-top: 4px;
}
.project-links .btn-primary {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; padding: 10px 22px;
}
.project-stats {
    display: flex; gap: 14px;
    font-size: 13px; color: rgba(180,200,240,0.45);
}

/* miscellaneous */
.more-soon {
    margin-top: 36px;
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(160,180,220,0.4);
    letter-spacing: 0.06em;
}
.soon-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(130,100,255,0.6);
    box-shadow: 0 0 6px rgba(130,100,255,0.6);
}

.blackhole {
    position: absolute;
    width: 100%;
    height: 100%;
    justify-content: center;
    display: flex;
    mix-blend-mode: lighten;
}

.blackhole {
    width: 100%;
    margin-top: -24.9%;

} 


.orbit-1, .orbit-2, .avatar-card {
    opacity: 0;
    transition: opacity 0.8s ease;
}
.orbit-1.ready { opacity: 1; }
.orbit-2.ready { opacity: 1; transition-delay: 0.25s; }
.avatar-card.ready { opacity: 1; transition-delay: 0.1s; }

@media (min-width: 1400px) {
    .hero { padding: 0 8%; }
    .hero-info h1 { font-size: 64px; line-height: 80px; }
    .orbit-1 { width: 380px; height: 380px; }
    .orbit-2 { width: 600px; height: 600px; }
    .orbit-1 .tech-dot {
        transform: rotate(var(--angle)) translate(190px,-50%) rotate(calc(-1 * var(--angle)));
    }
    .orbit-2 .tech-dot {
        transform: rotate(var(--angle)) translate(300px,-50%) rotate(calc(-1 * var(--angle)));
    }
    .hero-visual { height: 640px; }
}

@media (max-width: 1199px) {
    .hero { padding: 0 4%; gap: 20px; }
    .hero-info { flex: 0 0 46%; }
    .hero-visual { flex: 0 0 50%; height: 500px; }
    .hero-info h1 { font-size: 46px; line-height: 58px; }
    .orbit-1 { width: 280px; height: 280px; }
    .orbit-2 { width: 450px; height: 450px; }
    .orbit-1 .tech-dot {
        transform: rotate(var(--angle)) translate(140px,-50%) rotate(calc(-1 * var(--angle)));
    }
    .orbit-2 .tech-dot {
        transform: rotate(var(--angle)) translate(225px,-50%) rotate(calc(-1 * var(--angle)));
    }
     .blackhole { margin-top: -60%; }
}

@media (max-width: 1023px) {
    header { padding: 0 24px; height: 64px; }
    .left h1 { font-size: 15px !important; }

    .menu { display: flex; }
    header ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 64px; right: 0;
        width: 220px;
        background: rgba(8,6,35,0.97);
        backdrop-filter: blur(24px);
        border-left: 1px solid rgba(114,161,222,0.12);
        border-bottom: 1px solid rgba(114,161,222,0.12);
        border-radius: 0 0 0 16px;
        padding: 12px 10px;
        gap: 4px;
        transform: translateX(110%);
        transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
        z-index: 9998;
        background-clip: unset;
        box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    }
    header ul.open { transform: translateX(0); }
    header ul a {
        font-size: 13px; padding: 10px 16px;
        border-radius: 8px; letter-spacing: 0.05em;
        width: 100%; display: block;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: auto; min-height: 100vh;
        padding: 100px 6% 80px;
        gap: 56px; text-align: center;
        overflow: hidden;
    }
    .hero-info { flex: none; width: 100%; display: flex; flex-direction: column; align-items: center; }
    .hero-info h1 { font-size: 42px; line-height: 54px; margin-top: 22px; margin-bottom: 20px; }
    .hero-info p  { font-size: 16px; line-height: 28px; margin-bottom: 30px; }
    .hero-buttons { justify-content: center; }
    .hero-visual  { flex: none; width: 100%; height: 400px; }

    .orbit-1 { width: 230px; height: 230px; }
    .orbit-2 { width: 370px; height: 370px; }
    .orbit-1 .tech-dot {
        transform: rotate(var(--angle)) translate(115px,-50%) rotate(calc(-1 * var(--angle)));
    }
    .orbit-2 .tech-dot {
        transform: rotate(var(--angle)) translate(185px,-50%) rotate(calc(-1 * var(--angle)));
    }
    .tech-dot    { width: 38px; height: 38px; font-size: 19px; }
    .avatar-img  { width: 110px; height: 110px; }
    .avatar-inner{ width: 110px; height: 110px; }

    .blackhole { margin-top: -45%; }
    .blackhole video { width: 140%; margin-top: -35%; }

    .skills-section  { padding: 120px 6% 80px; }
    .skills-title    { font-size: 38px; }
    .constellation-wrap { height: 600px; }

    .project-section { padding: 120px 6% 80px; }
    .project-title   { font-size: 38px; }
    .project-card    { flex-direction: column; gap: 0; }
    .project-preview { flex: none; border-right: none; border-bottom: 1px solid rgba(114,161,222,0.08); min-height: 260px; }
    .project-info    { padding: 28px 28px; gap: 14px; }
    .project-name    { font-size: 28px; }
}

@media (max-width: 767px) {
    header { padding: 0 18px; height: 60px; }
    header ul { top: 60px; }
    .left h1  { font-size: 14px !important; }
    .left img { width: 30px; height: 30px; }

    .hero    { padding: 90px 5% 60px; gap: 44px; overflow: hidden; }
    .hero-info h1 { font-size: 34px; line-height: 46px; margin-top: 18px; margin-bottom: 16px; }
    .hero-info p  { font-size: 15px; line-height: 26px; margin-bottom: 26px; }
    .hero-visual  { height: 340px; }

    .orbit-1 { width: 190px; height: 190px; }
    .orbit-2 { width: 310px; height: 310px; }
    .orbit-1 .tech-dot {
        transform: rotate(var(--angle)) translate(95px,-50%) rotate(calc(-1 * var(--angle)));
    }
    .orbit-2 .tech-dot {
        transform: rotate(var(--angle)) translate(155px,-50%) rotate(calc(-1 * var(--angle)));
    }
    .tech-dot    { width: 34px; height: 34px; font-size: 17px; }
    .avatar-img  { width: 100px; height: 100px; }
    .avatar-inner{ width: 100px; height: 100px; }

    .blackhole { margin-top: -65%; }
    .blackhole video { width: 180%; margin-top: -50%; }

    .skills-section  { padding: 100px 5% 70px; }
    .skills-title    { font-size: 32px; }
    .constellation-wrap { height: 520px; }

    .project-section { padding: 100px 5% 70px; }
    .project-title   { font-size: 32px; }
    .project-info    { padding: 24px 20px; gap: 12px; }
    .project-name    { font-size: 26px; }
    .project-preview { min-height: 220px; }
}


@media (max-width: 479px) {
    header { padding: 0 14px; height: 56px; }
    header ul { top: 56px; width: 100%; border-radius: 0; border-left: none; }
    .left h1 { display: none; }
    .left img { width: 28px; height: 28px; }

    .hero    { padding: 80px 5% 50px; gap: 36px; }
    .hero-title    { font-size: 12px; }
    .hero-info h1  { font-size: 28px; line-height: 38px; margin-top: 14px; margin-bottom: 14px; }
    .hero-info p   { font-size: 13px; line-height: 23px; margin-bottom: 22px; }
    .btn-primary   { padding: 10px 22px; font-size: 13px; }
    .hero-visual   { height: 290px; }

    .orbit-1 { width: 160px; height: 160px; }
    .orbit-2 { width: 260px; height: 260px; }
    .orbit-1 .tech-dot {
        transform: rotate(var(--angle)) translate(80px,-50%) rotate(calc(-1 * var(--angle)));
    }
    .orbit-2 .tech-dot {
        transform: rotate(var(--angle)) translate(130px,-50%) rotate(calc(-1 * var(--angle)));
    }
    .tech-dot    { width: 30px; height: 30px; font-size: 15px; }
    .avatar-img  { width: 80px; height: 80px; }
    .avatar-inner{ width: 80px; height: 80px; }

    .blackhole { margin-top: -65%; }
    .blackhole video { width: 220%; margin-top: -60%; }

    .skills-section  { padding: 90px 5% 60px; }
    .skills-title    { font-size: 28px; }
    .skills-sub      { font-size: 13px; }
    .constellation-wrap { height: 420px; }
    .star-icon { width: 44px; height: 44px; font-size: 22px; }

    .project-section { padding: 90px 5% 60px; }
    .project-title   { font-size: 28px; }
    .project-name    { font-size: 22px; }
    .project-desc    { font-size: 13px; }
    .project-info    { padding: 20px 16px; gap: 12px; }
    .project-preview { min-height: 180px; }
    .terminal-body   { font-size: 11px; padding: 14px; }
    .project-links   { flex-wrap: wrap; gap: 12px; }
}