:root {
--primary: #7c3aed;
--bg: #0a0a1a;
--bg-card: rgba(20,20,40,0.88);
--border: rgba(255,255,255,0.08);
--border-hover: rgba(124,58,237,0.4);
--text: #ffffff;
--text-muted: #9ca3af;
--accent-purple: #a78bfa;
--accent-blue: #60a5fa;
--accent-green: #34d399;
--accent-pink: #f472b6;
--accent-amber: #fbbf24;
--accent-cyan: #22d3ee;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
font-family: 'Inter', -apple-system, sans-serif;
background: var(--bg);
color: var(--text);
min-height: 100vh;
overflow-x: hidden;
}

/* Starfield */
.starfield {
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
pointer-events: none;
z-index: 0;
overflow: hidden;
}
.starfield::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
background:
    radial-gradient(ellipse at 50% 0%, rgba(124,58,237,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(96,165,250,0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 60%, rgba(167,139,250,0.06) 0%, transparent 40%);
}
.star {
position: absolute;
border-radius: 50%;
background: #fff;
animation: twinkle var(--dur) ease-in-out infinite alternate;
}
@keyframes twinkle {
0% { opacity: var(--o1); transform: scale(1); }
100% { opacity: var(--o2); transform: scale(1.3); }
}

/* Shooting stars */
.shooting-star {
position: absolute;
width: var(--len, 80px);
height: 1px;
background: linear-gradient(90deg, rgba(255,255,255,0.7), transparent);
border-radius: 1px;
opacity: 0;
filter: drop-shadow(0 0 3px rgba(167,139,250,0.5));
animation: shoot var(--speed, 1.2s) ease-in forwards;
animation-delay: var(--delay, 0s);
transform-origin: left center;
}
@keyframes shoot {
0% { opacity: 0; transform: translateX(0) scaleX(0); }
10% { opacity: 1; transform: translateX(0) scaleX(1); }
70% { opacity: 1; }
100% { opacity: 0; transform: translateX(var(--travel, 300px)) scaleX(1); }
}

/* Floating particles */
.particle {
position: absolute;
border-radius: 50%;
background: var(--pcolor, rgba(167,139,250,0.4));
pointer-events: none;
animation: floatUp var(--fdur, 20s) linear infinite;
animation-delay: var(--fdelay, 0s);
opacity: 0;
}
@keyframes floatUp {
0% { opacity: 0; transform: translateY(0) translateX(0); }
10% { opacity: var(--fopacity, 0.4); }
90% { opacity: var(--fopacity, 0.4); }
100% { opacity: 0; transform: translateY(var(--fdrift-y, -600px)) translateX(var(--fdrift-x, 30px)); }
}

/* Hero */
.about-hero {
position: relative;
z-index: 1;
text-align: center;
padding: 100px 24px 10px;
}
.hero-title {
font-size: clamp(1.8rem, 5vw, 3rem);
font-weight: 800;
line-height: 1.15;
max-width: 700px;
margin: 0 auto 20px;
opacity: 0;
animation: fadeUp 0.8s ease forwards 0.2s;
}
.hero-title .highlight {
background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue), var(--accent-pink));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-sub {
font-size: 1.05rem;
color: var(--text-muted);
max-width: 560px;
margin: 0 auto;
line-height: 1.7;
opacity: 0;
animation: fadeUp 0.8s ease forwards 0.4s;
}
@keyframes fadeUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}

/* ═══ Orbit Section ═══ */
.orbit-section {
position: relative;
z-index: 1;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
padding: 40px 0 80px;
}
.orbit-container {
position: relative;
width: 1200px;
height: 800px;
}

/* Central orb */
.orb-center {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -55%);
text-align: center;
pointer-events: none;
}
.orb-glow {
position: absolute;
inset: -80px;
border-radius: 50%;
background: radial-gradient(circle, rgba(124,58,237,0.2) 0%, rgba(96,165,250,0.08) 40%, transparent 70%);
animation: orbPulse 4s ease-in-out infinite;
}
@keyframes orbPulse {
0%, 100% { transform: scale(1); opacity: 0.6; }
50% { transform: scale(1.08); opacity: 1; }
}
.orb-video-wrap {
position: relative;
width: 400px;
height: 400px;
z-index: 1;
}
.orb-video {
width: 100%;
height: 100%;
object-fit: contain;
display: block;
-webkit-mask-image: radial-gradient(circle, #fff 58%, transparent 71%);
mask-image: radial-gradient(circle, #fff 58%, transparent 71%);
}
.orb-wordmark {
display: block;
margin: -16px auto 0;
height: 52px;
filter: drop-shadow(0 0 20px rgba(124,58,237,0.3));
position: relative;
z-index: 2;
}

/* Faint orbit ring */
.orbit-ring-visual {
position: absolute;
top: 50%; left: 50%;
border: 1px solid rgba(124,58,237,0.05);
border-radius: 50%;
pointer-events: none;
transform: translate(-50%, -50%);
}

/* Float cards - positioned by JS, always upright */
.float-card {
position: absolute;
width: 260px;
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 14px;
overflow: hidden;
backdrop-filter: blur(12px);
cursor: pointer;
transition: border-color 0.3s, box-shadow 0.3s, opacity 0.5s;
z-index: 3;
opacity: 0;
}
.float-card.visible { opacity: 1; }
.float-card:hover {
border-color: var(--border-hover);
box-shadow: 0 0 30px rgba(124,58,237,0.15);
z-index: 10;
}
.float-card.open {
border-color: var(--accent-color, var(--accent-purple));
box-shadow: 0 0 40px rgba(124,58,237,0.18);
z-index: 10;
}

.float-card .feature-head {
display: flex;
align-items: center;
gap: 12px;
padding: 16px 18px;
user-select: none;
}
.float-card .feature-icon {
width: 38px;
height: 38px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
background: none;
}
.float-card .feature-icon { font-size: 26px; line-height: 1; }
.float-card .feature-title {
font-size: 0.88rem;
font-weight: 700;
flex: 1;
color: var(--accent-color, var(--accent-purple));
white-space: nowrap;
}
.feature-chevron {
width: 16px;
height: 16px;
color: var(--text-muted);
transition: transform 0.3s ease;
flex-shrink: 0;
}
.float-card.open .feature-chevron {
transform: rotate(180deg);
color: var(--accent-color, var(--accent-purple));
}
.feature-body {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease;
}
.float-card.open .feature-body {
max-height: 400px;
}
.feature-content {
padding: 0 18px 18px;
color: var(--text-muted);
font-size: 0.78rem;
line-height: 1.7;
}
.feature-content strong { color: var(--text); font-weight: 600; }
.feature-content ul { list-style: none; margin: 6px 0 0; padding: 0; }
.feature-content ul li { position: relative; padding-left: 16px; margin-bottom: 3px; }
.feature-content ul li::before {
content: '';
position: absolute;
left: 0; top: 7px;
width: 5px; height: 5px;
border-radius: 50%;
background: var(--accent-color, var(--accent-purple));
opacity: 0.7;
}

/* CTA */
.cta-section {
position: relative;
z-index: 1;
text-align: center;
padding: 40px 24px 40px;
}
.cta-divider {
width: 60px;
height: 2px;
background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
margin: 0 auto 40px;
}
.cta-text {
font-size: clamp(1rem, 3vw, 1.3rem);
color: var(--text-muted);
max-width: 500px;
margin: 0 auto 12px;
line-height: 1.6;
}
.cta-headline {
font-size: clamp(1.6rem, 4vw, 2.4rem);
font-weight: 800;
background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 32px;
}
.cta-btn {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 14px 36px;
background: linear-gradient(135deg, #7c3aed, #6366f1);
color: #fff;
font-weight: 700;
font-size: 1rem;
border: none;
border-radius: 12px;
cursor: pointer;
text-decoration: none;
transition: all 0.3s ease;
box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.cta-btn:hover {
transform: translateY(-2px);
box-shadow: 0 8px 30px rgba(124,58,237,0.4);
}

/* For Projects */
.project-section {
position: relative;
z-index: 1;
max-width: 1100px;
margin: 0 auto;
padding: 0 24px 60px;
}
.project-section h2 {
font-size: 1.4rem;
font-weight: 800;
text-align: center;
margin-bottom: 8px;
}
.project-section .section-sub {
text-align: center;
color: var(--text-muted);
font-size: 0.9rem;
margin-bottom: 24px;
}
.project-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 16px;
}
.project-card {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 16px;
padding: 24px;
transition: all 0.3s ease;
opacity: 0;
transform: translateY(20px);
}
.project-card.visible { opacity: 1; transform: translateY(0); }
.project-card:hover { border-color: var(--border-hover); }
.project-card h3 {
font-size: 1rem;
font-weight: 700;
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 10px;
}
.project-card p {
color: var(--text-muted);
font-size: 0.88rem;
line-height: 1.7;
}

/* ═══ Mobile / Tablet fallback ═══ */
@media (max-width: 1200px) {
.orbit-section { padding: 20px 24px 60px; }
.orbit-container {
    width: 100%;
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.orb-center {
    position: relative;
    top: auto; left: auto;
    transform: none;
}
.orb-video-wrap { width: 260px; height: 260px; }
.orb-wordmark { height: 40px; margin-top: -12px; }
.float-card {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    opacity: 1 !important;
    margin-bottom: 10px;
}
.orbit-ring-visual { display: none; }
}

@media (max-width: 700px) {
.project-grid { grid-template-columns: 1fr; }
.orb-video-wrap { width: 200px; height: 200px; }
.orb-wordmark { height: 32px; }
.about-hero { padding-top: 80px; }
}