:root {
  --bg: #000;
  --panel: rgba(8, 12, 22, .86);
  --panel-solid: #090d17;
  --line: rgba(125, 211, 252, .16);
  --text: #eef7ff;
  --muted: #8ea1b8;
  --cyan: #4fc3f7;
  --blue: #60a5fa;
  --pink: #f472b6;
  --violet: #a78bfa;
  --gold: #fbbf24;
  --green: #34d399;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; color: var(--text); font-family: Inter, system-ui, sans-serif; }
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; }
a { color: inherit; }
img { display: block; max-width: 100%; }

#starfield { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.app-shell { position: relative; z-index: 1; width: 100vw; height: 100vh; display: grid; grid-template-columns: 260px 1fr; grid-template-rows: 64px 1fr 64px; background: radial-gradient(circle at 70% 10%, rgba(79,195,247,.08), transparent 34%), #000; }

.topbar { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 22px; background: rgba(0,0,0,.82); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); background: transparent; }
.brand span { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(79,195,247,.45); border-radius: 8px; color: var(--cyan); font-weight: 800; box-shadow: 0 0 22px rgba(79,195,247,.18); }
.brand strong, h1, h2, h3, .nav-link, .top-action { font-family: Rajdhani, Inter, sans-serif; letter-spacing: .02em; }
.topnav { display: flex; gap: 8px; }
.nav-link, .bottomnav button { color: var(--muted); background: transparent; padding: 8px 12px; border-radius: 8px; text-transform: uppercase; font-size: .78rem; font-weight: 700; transition: color .2s, background .2s; }
.nav-link.active, .nav-link:hover, .bottomnav button.active, .bottomnav button:hover { color: var(--cyan); background: rgba(79,195,247,.09); }
.top-action, .ghost-btn, .primary-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 8px; text-decoration: none; font-weight: 800; }
.top-action, .ghost-btn { border: 1px solid var(--line); color: var(--cyan); background: rgba(255,255,255,.02); }
.primary-btn { color: #001018; background: linear-gradient(135deg, var(--cyan), var(--violet)); box-shadow: 0 12px 30px rgba(79,195,247,.18); }
.primary-btn.small { min-height: 36px; padding: 0 13px; font-size: .86rem; }

.sidebar { background: rgba(3,5,10,.82); border-right: 1px solid var(--line); padding: 18px; overflow-y: auto; }
.profile-card, .galaxy-card { position: relative; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(9,13,23,.92), rgba(3,5,10,.9)); border-radius: 12px; }
.galaxy-card::before { content: ""; position: absolute; inset: -60%; background: radial-gradient(circle, rgba(79,195,247,.15), transparent 23%), radial-gradient(circle at 70% 70%, rgba(244,114,182,.12), transparent 28%); animation: cardGalaxy 16s linear infinite; pointer-events: none; opacity: .8; }
.galaxy-card > * { position: relative; z-index: 1; }
@keyframes cardGalaxy { to { transform: rotate(360deg); } }
.profile-card { padding: 16px; }
.profile-image { aspect-ratio: 1 / 1.18; border-radius: 10px; overflow: hidden; border: 1px solid rgba(79,195,247,.28); margin-bottom: 14px; background: #05070d; }
.profile-image img { width: 100%; height: 100%; object-fit: cover; }
.eyebrow { color: var(--cyan); text-transform: uppercase; font-size: .72rem; letter-spacing: .18em; font-weight: 800; }
.profile-card h1 { font-size: 2rem; margin: 4px 0; }
.profile-card p:not(.eyebrow), p { color: var(--muted); line-height: 1.65; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.mini-stats span { border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 8px 4px; text-align: center; color: var(--muted); font-size: .72rem; }
.mini-stats strong { display: block; color: var(--cyan); font-size: .92rem; }
.side-links { display: grid; gap: 8px; margin-top: 14px; }
.side-links button { display: flex; justify-content: space-between; align-items: center; padding: 12px; color: var(--text); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 9px; }

.content { position: relative; overflow: hidden; }
.page { position: absolute; inset: 0; padding: 24px; overflow-y: auto; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity .28s, transform .28s; }
.page.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); min-height: 300px; gap: 24px; align-items: center; }
.hero-copy h2, .section-head h2 { max-width: 780px; font-size: clamp(2rem, 5vw, 4.8rem); line-height: .95; margin: 10px 0 16px; }
.hero-copy p { max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.hero-love-card { min-height: 300px; display: grid; place-items: center; border-radius: 18px; isolation: isolate; background: radial-gradient(circle at 50% 44%, rgba(244,114,182,.12), transparent 42%), radial-gradient(circle, rgba(79,195,247,.08), transparent 64%), rgba(0,0,0,.22); }
.love-bg-heart { position: absolute; width: 220px; height: 220px; opacity: .09; transform: rotate(45deg); background: linear-gradient(135deg, var(--pink), var(--cyan)); border-radius: 42px 42px 12px 42px; filter: blur(.2px) drop-shadow(0 0 34px rgba(244,114,182,.4)); animation: floatLove 7s ease-in-out infinite; }
.love-bg-heart::before, .love-bg-heart::after { content: ""; position: absolute; width: 100%; height: 100%; border-radius: 50%; background: inherit; }
.love-bg-heart::before { left: -50%; }
.love-bg-heart::after { top: -50%; }
.love-bg-heart-one { left: 9%; top: 12%; }
.love-bg-heart-two { right: 7%; bottom: 8%; width: 155px; height: 155px; animation-delay: -2.4s; opacity: .07; }
@keyframes floatLove { 50% { transform: translateY(-16px) rotate(45deg) scale(1.08); opacity: .14; } }
.hwrap { width: 190px; height: 190px; position: relative; display: grid; place-items: center; }
.hero-hwrap { width: min(250px, 58vw); height: min(250px, 58vw); }
.hring { position: absolute; border-radius: 50%; border: 1px solid rgba(79,195,247,.16); animation: hring 2.2s ease-in-out infinite; }
.hring:nth-child(1) { inset: -7px; }
.hring:nth-child(2) { inset: -25px; border-color: rgba(167,139,250,.12); animation-delay: .45s; }
.hring:nth-child(3) { inset: -45px; border-color: rgba(244,114,182,.1); animation-delay: .9s; }
@keyframes hring { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.07); opacity: .2; } }
.hcore, .cyber-heart { width: 100%; height: 100%; position: relative; z-index: 1; }
.cyber-heart svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 0 18px rgba(79,195,247,.65)) drop-shadow(0 0 42px rgba(167,139,250,.35)); animation: hbeat 1.1s ease-in-out infinite; }
@keyframes hbeat { 0% { transform: scale(1); } 14% { transform: scale(1.1); } 28% { transform: scale(.98); } 42% { transform: scale(1.08); } 70%, 100% { transform: scale(1); } }
.heart-stage { min-height: 320px; display: grid; place-items: center; perspective: 900px; border-radius: 18px; background: radial-gradient(circle, rgba(79,195,247,.09), transparent 62%); }
.heart-stage::before { content: "\2665"; position: absolute; font-size: clamp(10rem, 24vw, 18rem); line-height: 1; color: rgba(244,114,182,.1); text-shadow: 0 0 50px rgba(244,114,182,.55); animation: floatLoveText 6s ease-in-out infinite; }
.heart-stage::after { content: "\2665"; position: absolute; font-size: clamp(5rem, 12vw, 9rem); right: 10%; bottom: 9%; line-height: 1; color: rgba(79,195,247,.07); text-shadow: 0 0 42px rgba(79,195,247,.4); animation: floatLoveText 7s ease-in-out infinite reverse; }
@keyframes floatLoveText { 50% { transform: translateY(-14px) scale(1.07); opacity: .82; } }
.heart-hint { color: var(--muted); font-size: .82rem; align-self: end; margin-bottom: -16px; }
.heart3d { width: 178px; height: 178px; background: transparent; transform-style: preserve-3d; touch-action: none; filter: drop-shadow(0 0 28px rgba(244,114,182,.62)); transition: transform .16s ease-out; position: relative; z-index: 1; }
.heart3d .cyber-heart { display: block; width: 100%; height: 100%; transform: translateZ(30px); }
.heart-face { position: absolute; inset: 22px; background: linear-gradient(145deg, #ff4f9a, #8b5cf6 55%, #38bdf8); transform: rotate(45deg); border-radius: 24px 24px 12px 24px; box-shadow: inset -18px -18px 28px rgba(0,0,0,.28), inset 10px 10px 24px rgba(255,255,255,.22); }
.heart-face::before, .heart-face::after { content: ""; position: absolute; width: 100%; height: 100%; border-radius: 50%; background: inherit; }
.heart-face::before { left: -50%; }
.heart-face::after { top: -50%; }

.project-strip { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 12px; margin: 12px 0 20px; }
.quick-card { min-height: 76px; padding: 14px; display: flex; align-items: center; gap: 10px; border-radius: 10px; cursor: pointer; }
.quick-card strong { flex: 1; font-family: Rajdhani, sans-serif; font-size: .96rem; }
.quick-card em { color: var(--cyan); font-style: normal; font-size: 1.4rem; }
.card-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--cyan); background: rgba(79,195,247,.1); }

.cosmic-panel { min-height: 260px; padding: 18px; border-radius: 14px; display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: stretch; }
.cosmic-panel.cosmic-only { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
.cosmic-panel h3 { font-size: 1.65rem; margin-top: 8px; }
.cosmic-only #orbitCanvas { height: 260px; border-radius: 14px; }
#orbitCanvas { width: 100%; height: 230px; border-radius: 12px; background: rgba(0,0,0,.42); }

.section-head { margin-bottom: 18px; }
.about-layout, .contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.about-main { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 18px; border-radius: 14px; }
.about-main img { width: 100%; height: 245px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(79,195,247,.22); }
.about-main h3, .love-note h3, .album-title h3 { font-size: 1.65rem; margin-bottom: 8px; }
.service-grid, .project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.service-card, .project-card, .love-note, .album-card, .contact-form { padding: 18px; border-radius: 14px; }
.service-card span { color: var(--gold); font-weight: 900; font-size: .82rem; }
.service-card strong, .project-card strong { display: block; margin: 8px 0; font-size: 1.18rem; }

.project-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.project-card { min-height: 220px; display: flex; flex-direction: column; gap: 10px; }
.project-card .tag-row { margin-top: auto; }
.project-card button { align-self: flex-start; margin-top: 4px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag-row span { color: var(--cyan); border: 1px solid rgba(79,195,247,.24); background: rgba(79,195,247,.08); padding: 5px 8px; border-radius: 999px; font-size: .76rem; }

.special-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.couple-card { min-height: 280px; padding: 20px; display: grid; grid-template-columns: 1fr 130px 1fr; gap: 14px; align-items: center; border-radius: 16px; isolation: isolate; }
.couple-card img { width: 100%; height: 230px; object-fit: cover; border-radius: 16px; border: 1px solid rgba(244,114,182,.3); }
.big-love { text-align: center; }
.special-love-3d { width: 130px; height: 130px; transform-style: preserve-3d; animation: specialHeartFloat 3.2s ease-in-out infinite; filter: drop-shadow(0 0 26px rgba(244,114,182,.72)); }
@keyframes specialHeartFloat { 0%, 100% { transform: translateY(0) rotateY(-12deg); } 50% { transform: translateY(-12px) rotateY(18deg) rotateX(8deg); } }
@keyframes pulse { 50% { transform: scale(1.12); } }
.love-note { display: flex; flex-direction: column; gap: 12px; justify-content: center; min-height: 280px; isolation: isolate; background: radial-gradient(circle at 18% 20%, rgba(244,114,182,.14), transparent 30%), radial-gradient(circle at 85% 75%, rgba(79,195,247,.1), transparent 34%), linear-gradient(145deg, rgba(9,13,23,.92), rgba(3,5,10,.9)); }
.love-note::after, .couple-card::after { content: ""; position: absolute; inset: 14px; border-radius: inherit; border: 1px solid rgba(244,114,182,.14); pointer-events: none; animation: loveBorder 2.8s ease-in-out infinite; }
@keyframes loveBorder { 50% { box-shadow: inset 0 0 30px rgba(244,114,182,.18), 0 0 26px rgba(79,195,247,.1); } }
.love-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.love-particles span { position: absolute; width: 14px; height: 14px; left: var(--x, 50%); bottom: -24px; transform: rotate(45deg); background: linear-gradient(135deg, rgba(244,114,182,.85), rgba(79,195,247,.7)); border-radius: 4px 4px 1px 4px; filter: drop-shadow(0 0 12px rgba(244,114,182,.5)); animation: riseLove 6s linear infinite; animation-delay: var(--d, 0s); opacity: .72; }
.love-particles span::before, .love-particles span::after { content: ""; position: absolute; width: 100%; height: 100%; border-radius: 50%; background: inherit; }
.love-particles span::before { left: -50%; }
.love-particles span::after { top: -50%; }
.love-particles span:nth-child(1) { --x: 12%; --d: -1s; }
.love-particles span:nth-child(2) { --x: 34%; --d: -3s; width: 10px; height: 10px; }
.love-particles span:nth-child(3) { --x: 57%; --d: -2s; }
.love-particles span:nth-child(4) { --x: 76%; --d: -4.5s; width: 11px; height: 11px; }
.love-particles span:nth-child(5) { --x: 90%; --d: -.4s; width: 8px; height: 8px; }
@keyframes riseLove { 0% { transform: translateY(0) rotate(45deg) scale(.7); opacity: 0; } 12% { opacity: .75; } 100% { transform: translateY(-330px) rotate(405deg) scale(1.25); opacity: 0; } }
#musicStatus { color: var(--muted); font-size: .86rem; }
.album-card { margin-top: 16px; }
.album-title { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 14px; }
.album-title p { max-width: 560px; font-size: .9rem; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; max-height: 380px; overflow-y: auto; padding-right: 4px; }
.album-item { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(145deg, rgba(79,195,247,.12), rgba(244,114,182,.12)); display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.album-item img, .album-item video { width: 100%; height: 100%; object-fit: cover; }

.contact-form { display: grid; gap: 12px; }
.contact-form label { display: grid; gap: 6px; color: var(--muted); font-weight: 700; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; color: var(--text); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); border-radius: 9px; padding: 12px; outline: 0; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .82rem; }
.contact-cards { display: grid; gap: 10px; align-content: start; }
.info-card { width: 100%; min-height: 76px; padding: 14px; display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; border-radius: 12px; text-align: left; }
.info-card span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--cyan); background: rgba(79,195,247,.1); }
.info-card small { display: block; color: var(--muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .12em; margin-bottom: 2px; }
.info-card strong { overflow-wrap: anywhere; }

.bottomnav { grid-column: 1 / -1; display: none; align-items: center; justify-content: space-around; background: rgba(0,0,0,.9); border-top: 1px solid var(--line); backdrop-filter: blur(18px); }
.project-modal { width: min(540px, calc(100vw - 28px)); color: var(--text); background: var(--panel-solid); border: 1px solid rgba(79,195,247,.3); border-radius: 16px; padding: 24px; margin: auto; box-shadow: 0 28px 90px rgba(0,0,0,.6); }
.project-modal::backdrop, .prank-modal::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(12px); }
.project-modal h3 { font-size: 2rem; margin: 8px 0; }
.project-modal p:not(.eyebrow) { margin-bottom: 14px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; color: var(--muted); background: rgba(255,255,255,.04); border-radius: 8px; }
.modal-close:hover { color: var(--cyan); }
.prank-modal { width: min(430px, calc(100vw - 28px)); margin: auto; padding: 34px 24px 28px; text-align: center; color: var(--text); background: radial-gradient(circle at 50% 0%, rgba(244,114,182,.18), transparent 45%), var(--panel-solid); border: 1px solid rgba(244,114,182,.36); border-radius: 18px; box-shadow: 0 28px 90px rgba(0,0,0,.68), 0 0 60px rgba(244,114,182,.14); }
.prank-finger { font-size: clamp(5rem, 18vw, 9rem); line-height: 1; margin-bottom: 14px; filter: drop-shadow(0 0 24px rgba(244,114,182,.55)); animation: prankPop .9s cubic-bezier(.22,1,.36,1) both; }
.prank-modal h3 { font-size: clamp(1.55rem, 6vw, 2.5rem); line-height: 1; color: var(--pink); text-shadow: 0 0 24px rgba(244,114,182,.36); }
@keyframes prankPop { 0% { transform: translateY(16px) scale(.76) rotate(-10deg); opacity: 0; } 70% { transform: translateY(0) scale(1.08) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 1; } }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; grid-template-rows: 62px 1fr 64px; }
  .sidebar { display: none; }
  .topnav { display: none; }
  .bottomnav { display: flex; }
  .page { padding: 18px; }
  .hero-grid, .about-layout, .contact-layout, .special-layout, .cosmic-panel { grid-template-columns: 1fr; }
  .project-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-main, .couple-card { grid-template-columns: 1fr; }
  .couple-card img { height: 260px; }
  .big-love { font-size: 4rem; }
}

@media (max-width: 560px) {
  .top-action { display: none; }
  .hero-copy h2, .section-head h2 { font-size: 2.35rem; }
  .project-strip, .service-grid { grid-template-columns: 1fr; }
  .heart-stage { min-height: 250px; }
  .heart3d { width: 132px; height: 132px; }
  .album-title { display: block; }
}
