
:root {
  --bg-1: #0b0518;
  --bg-2: #0e0822;
  --glass: rgba(255,255,255,0.06);
  --glass-strong: rgba(255,255,255,0.11);
  --glass-border: rgba(255,255,255,0.12);
  --text: #e8e3f4;
  --muted: #8b849e;
  --purple: #9b5de5;
  --pink: #f72585;
  --cyan: #4cc9f0;
  --orange: #f77f00;
  --glow-purple: rgba(155,93,229,0.4);
  --glow-pink: rgba(247,37,133,0.35);
  --glow-cyan: rgba(76,201,240,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-1);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
*, *::before, *::after,
a, button, input, select, textarea, label,
[role="button"] { cursor: none !important; }


.hero-bg-img {
  position: absolute;
  inset: 0;
  background: url('hero_bg.png') center / cover no-repeat;
  opacity: 0.12;
  z-index: 0;
  pointer-events: none;
  filter: saturate(0.8);
}


.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}
.orb-1 {
  width: 500px; height: 500px;
  background: var(--purple);
  top: -10%; left: -10%;
  animation: orbFloat1 18s ease-in-out infinite alternate;
}
.orb-2 {
  width: 400px; height: 400px;
  background: var(--pink);
  bottom: 5%; right: -8%;
  animation: orbFloat2 22s ease-in-out infinite alternate;
}
.orb-3 {
  width: 300px; height: 300px;
  background: var(--cyan);
  top: 50%; left: 55%;
  animation: orbFloat3 15s ease-in-out infinite alternate;
}
@keyframes orbFloat1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(8%, 12%) scale(1.15); }
}
@keyframes orbFloat2 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-10%, -8%) scale(1.2); }
}
@keyframes orbFloat3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-15%, 10%) scale(0.85); }
}


.grain {
  position: fixed;
  inset: -50%;
  width: 200%; height: 200%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  animation: grainAnim 0.15s steps(1) infinite;
  will-change: transform;
}
@keyframes grainAnim {
  0%  { transform: translate(0,0); }    10% { transform: translate(-3%,-3%); }
  20% { transform: translate(3%,1%); }  30% { transform: translate(-1%,2%); }
  40% { transform: translate(2%,-2%); } 50% { transform: translate(-2%,3%); }
  60% { transform: translate(3%,-1%); } 70% { transform: translate(-3%,2%); }
  80% { transform: translate(1%,-3%); } 90% { transform: translate(-1%,1%); }
}


.spotlight {
  position: fixed;
  width: 480px; height: 480px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(155,93,229,0.1) 0%, rgba(247,37,133,0.05) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}


.cursor-dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  position: fixed;
  left: 0; top: 0;
  margin: -4px 0 0 -4px; /* center the 8px dot on the position point */
  z-index: 9998;
  pointer-events: none;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-ring {
  width: 40px; height: 40px;
  border: 1.5px solid rgba(155,93,229,0.7);
  border-radius: 50%;
  position: fixed;
  left: 0; top: 0;
  margin: -20px 0 0 -20px; /* center the 40px ring on the position point */
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s, margin 0.3s ease;
  z-index: 9997;
  pointer-events: none;
  opacity: 0;
  will-change: transform;
}
.cursor-ring.active { opacity: 1; }
.cursor-ring.hover {
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px; /* re-center the larger 64px ring */
  border-color: var(--pink);
  background: rgba(247,37,133,0.06);
}


.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 100;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--cyan));
}


nav {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  width: calc(100% - 80px);
  max-width: 900px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: background 0.4s;
}
nav:hover { background: var(--glass-strong); }
.nav-logo {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }
.theme-btn {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.theme-btn:hover { color: var(--text); background: var(--glass-strong); }


.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 100px 40px 120px;
  overflow: hidden;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  opacity: 0;
  animation: riseIn 0.7s 0.1s ease forwards;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--purple);
  border-radius: 50%;
  animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(155,93,229,0.6); }
  50%       { box-shadow: 0 0 0 6px rgba(155,93,229,0); }
}
.hero h1 {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 1.0;
  margin-bottom: 8px;
  opacity: 0;
  animation: riseIn 0.9s 0.25s ease forwards;
}
.h1-grad {
  background: linear-gradient(135deg, #fff 30%, var(--purple) 60%, var(--pink) 85%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-alias {
  color: var(--muted);
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 28px;
  opacity: 0;
  animation: riseIn 0.8s 0.4s ease forwards;
}
.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--muted);
  max-width: 44ch;
  margin: 0 auto 48px;
  line-height: 1.75;
  opacity: 0;
  animation: riseIn 0.8s 0.55s ease forwards;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: riseIn 0.8s 0.7s ease forwards;
}
.btn-glass {
  padding: 14px 36px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  backdrop-filter: blur(12px);
  transition: transform 0.25s, box-shadow 0.3s;
}
.btn-glass.primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(155,93,229,0.35);
}
.btn-glass.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(155,93,229,0.5);
}
.btn-glass.secondary {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-glass.secondary:hover {
  transform: translateY(-3px);
  background: var(--glass-strong);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 48.5%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: riseIn 0.8s 1s ease forwards;
  color: var(--muted);
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-dot {
  width: 3px; height: 7px;
  background: var(--purple);
  border-radius: 2px;
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}
.scroll-label { font-size: 0.62rem; letter-spacing: 2px; text-transform: uppercase; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}


.marquee-section {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 18px 0;
  background: var(--glass);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marqueeScroll 24s linear infinite;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee-sep {
  width: 4px; height: 4px;
  background: var(--purple);
  border-radius: 50%;
  flex-shrink: 0;
}


.wrap { max-width: 1060px; margin: 0 auto; padding: 0 48px; }
section { padding: 100px 0; position: relative; z-index: 2; }

.section-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
}
.section-sub {
  color: var(--muted);
  max-width: 48ch;
  font-size: 0.95rem;
  margin-bottom: 52px;
  line-height: 1.7;
}


.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto auto;
  gap: 20px;
}
.work-card.full-width { grid-column: 1 / -1; }

@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-card.full-width { grid-column: 1; }
}
.work-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s;
  cursor: none;
  display: flex;
  flex-direction: column;
}
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 60px rgba(155,93,229,0.22);
  border-color: rgba(155,93,229,0.45);
}
.work-media {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.work-card.vertical .work-media { aspect-ratio: 9/16; }
.work-media video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #07041a;
}

.video-ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* keeps big play button centered */
  align-items: center;
  opacity: 1;
  pointer-events: auto;
  cursor: none;
}

.video-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.v-big-play {
  width: 64px; height: 64px;
  background: rgba(155,93,229,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  cursor: none;
  transition: transform 0.2s, background 0.2s;
  line-height: 1;
  padding-left: 4px; /* optical centering of ▶ */
}
.v-big-play:hover { transform: scale(1.12); background: rgba(155,93,229,1); }

.work-media.is-playing .video-center { visibility: hidden; }

.video-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 14px;
  background: linear-gradient(to top, rgba(7,4,26,0.92) 0%, rgba(7,4,26,0.5) 55%, transparent 100%);
}
.v-play-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  cursor: none;
  padding: 3px 6px;
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.2s;
}
.v-play-btn:hover { color: #fff; }

.v-seek-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  position: relative;
  cursor: none;
}
.v-seek-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--purple), var(--pink));
  border-radius: 2px;
  pointer-events: none;
}
.v-seek-bar {
  position: absolute;
  inset: -8px 0;
  width: 100%;
  height: 20px;
  opacity: 0;
  cursor: none;
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
}
.v-time {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 70px;
  text-align: right;
}

.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.work-card:hover .work-media img { transform: scale(1.05); }
.work-placeholder-box {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a0d30, #0e0822);
  color: var(--muted);
  font-size: 0.82rem;
}
.work-tool-tag {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--cyan);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.work-info {
  padding: 20px 22px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.work-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 5px; }
.work-caption { color: var(--muted); font-size: 0.82rem; }
.card-arrow { color: var(--purple); font-size: 1.1rem; transition: transform 0.3s; }
.work-card:hover .card-arrow { transform: translate(4px,-4px); }
.work-link { text-decoration: none; color: inherit; display: block; }


.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .skills-grid { grid-template-columns: 1fr; } }
.skill-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.skill-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
}
.skill-card:nth-child(1)::before { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.skill-card:nth-child(2)::before { background: linear-gradient(90deg, var(--pink), var(--orange)); }
.skill-card:nth-child(3)::before { background: linear-gradient(90deg, var(--cyan), var(--purple)); }
.skill-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.skill-icon { font-size: 2rem; margin-bottom: 16px; }
.skill-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.skill-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.skill-card li {
  color: var(--muted);
  font-size: 0.87rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.skill-card li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.skill-card:nth-child(1) li::before { background: var(--purple); }
.skill-card:nth-child(2) li::before { background: var(--pink); }
.skill-card:nth-child(3) li::before { background: var(--cyan); }


.about-card {
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 768px) {
  .about-card { grid-template-columns: 1fr; padding: 32px; gap: 36px; }
}
.about-text p { color: var(--muted); margin-bottom: 16px; line-height: 1.8; font-size: 0.93rem; }
.about-text p strong { color: var(--text); }
.about-quote {
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 24px;
  line-height: 1.5;
}
.contact-items { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}
.contact-card:hover {
  background: rgba(155,93,229,0.1);
  border-color: rgba(155,93,229,0.4);
  transform: translateX(6px);
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-card:nth-child(1) .contact-icon { background: linear-gradient(135deg, var(--purple), var(--pink)); }
.contact-card:nth-child(2) .contact-icon { background: linear-gradient(135deg, var(--cyan), var(--purple)); }
.contact-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 500; }
.contact-value { font-size: 0.9rem; font-weight: 600; margin-top: 2px; }


footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--glass-border);
  padding: 28px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  backdrop-filter: blur(8px);
}
.footer-logo {
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }


html[data-theme="light"] {
  --bg-1: #f0ecff;
  --bg-2: #f8f5ff;
  --glass: rgba(255,255,255,0.5);
  --glass-strong: rgba(255,255,255,0.7);
  --glass-border: rgba(155,93,229,0.2);
  --text: #1a1226;
  --muted: #6b617f;
  --purple: #7b35d0;
  --pink: #d91a6e;
  --cyan: #0a8eb5;
}
html[data-theme="light"] .orb { opacity: 0.2; }
html[data-theme="light"] .hero-bg-img { opacity: 0.06; }


@media (max-width: 768px) {
  nav { width: calc(100% - 32px); padding: 12px 20px; top: 10px; }
  .hero { padding: 100px 24px 60px; }
  .wrap { padding: 0 24px; }
  section { padding: 72px 0; }
  footer { padding: 20px 24px; flex-direction: column; gap: 10px; }
  /* Restore normal cursors on touch devices */
  *, *::before, *::after,
  a, button, input, select, textarea, label,
  [role="button"] { cursor: auto !important; }
  a, button { cursor: pointer !important; }
  body { cursor: auto !important; }
  .cursor-dot, .cursor-ring { display: none; }
}
