/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:         #0d0f18;
  --surface:    #13162400;
  --surface-s:  #161925;
  --border:     #252a3d;
  --border-glow:#3b3f5c;
  --blue:       #89b4fa;
  --purple:     #cba6f7;
  --pink:       #f38ba8;
  --text:       #cdd6f4;
  --muted:      #6c7086;
  --font:       'JetBrains Mono', monospace;

  /* liquid glass */
  --glass-bg:   rgba(20, 22, 40, 0.45);
  --glass-border: rgba(203, 166, 247, 0.18);
  --glass-shine: rgba(255,255,255,0.06);
  --glass-blur: 18px;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}

/* subtle noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── Accent Colors ─────────────────────────────────────────── */
.accent-blue   { color: var(--blue); }
.accent-purple { color: var(--purple); }
.accent-pink   { color: var(--pink); }

/* ─── Liquid Glass Button ───────────────────────────────────── */
.glass-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35em 0.9em;
  border-radius: 9999px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  box-shadow:
    0 2px 12px rgba(0,0,0,0.35),
    inset 0 1px 0 var(--glass-shine),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  white-space: nowrap;
}

/* inner liquid shimmer */
.glass-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.08),
    transparent
  );
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.glass-btn:hover::before {
  left: 130%;
}

.glass-btn:hover {
  border-color: rgba(203, 166, 247, 0.42);
  box-shadow:
    0 4px 24px rgba(203, 166, 247, 0.15),
    0 2px 12px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  transform: translateY(-1px) scale(1.03);
  color: var(--purple);
}

.glass-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ─── Dynamic Island ────────────────────────────────────────── */
.island-wrapper {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  justify-content: center;
}

.island {
  position: relative;
  height: 40px;
  border-radius: 9999px;
  background: rgba(10, 11, 20, 0.82);
  border: 1px solid rgba(203, 166, 247, 0.2);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 4px 32px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 1px 0 rgba(255,255,255,0.07) inset;
  overflow: hidden;
  cursor: pointer;
  transition:
    width 0.55s cubic-bezier(0.34, 1.4, 0.64, 1),
    height 0.55s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.3s ease;
  width: 110px;
}

.island:hover,
.island.open {
  width: 380px;
  box-shadow:
    0 8px 48px rgba(203, 166, 247, 0.18),
    0 4px 32px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.05) inset,
    0 1px 0 rgba(255,255,255,0.08) inset;
}

.island-default,
.island-expanded {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.island-default {
  opacity: 1;
  transform: scale(1);
}

.island:hover .island-default,
.island.open .island-default {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.island-expanded {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  gap: 10px;
  justify-content: space-between;
}

.island:hover .island-expanded,
.island.open .island-expanded {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
  transition: opacity 0.25s ease 0.12s, transform 0.25s ease 0.12s;
}

.island-logo {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.island-logo-sm {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.island-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.island-link {
  font-size: 0.72rem;
  padding: 0.28em 0.75em;
}

/* ─── Sections ──────────────────────────────────────────────── */
.section {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 5vw 80px;
  max-width: 900px;
  margin: 0 auto;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero-section {
  gap: 0;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-name {
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-bio {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 480px;
  font-weight: 400;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.85em;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--border-glow);
  color: var(--text);
}

.scroll-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 60px;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.8; transform: scaleY(1.15); }
}

/* ─── Section Title ─────────────────────────────────────────── */
.section-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  color: var(--text);
}

/* ─── Tech I Use ────────────────────────────────────────────── */
.tech-section {
  min-height: auto;
  padding-top: 100px;
  padding-bottom: 60px;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-pill {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.5em 1.1em;
  border-radius: 10px;
  color: var(--text);
  letter-spacing: 0.02em;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow:
    0 2px 12px rgba(0,0,0,0.3),
    inset 0 1px 0 var(--glass-shine);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.tech-pill:hover {
  border-color: rgba(203, 166, 247, 0.45);
  box-shadow:
    0 4px 20px rgba(203, 166, 247, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-3px) scale(1.05);
  color: var(--purple);
}

/* ─── Projects ──────────────────────────────────────────────── */
.projects-section {
  min-height: auto;
  padding-top: 100px;
  padding-bottom: 100px;
}

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  background: var(--surface-s);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(203,166,247,0.04) 0%, transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  border-color: rgba(203, 166, 247, 0.3);
  box-shadow: 0 4px 32px rgba(203, 166, 247, 0.08);
  transform: translateY(-2px);
}

.project-card:hover::before {
  opacity: 1;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px;
  flex-wrap: wrap;
}

.project-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.project-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.wip-badge {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--pink);
  border: 1px solid rgba(243, 139, 168, 0.35);
  border-radius: 4px;
  padding: 0.1em 0.45em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(243, 139, 168, 0.08);
}

.project-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tech-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: 9999px;
  letter-spacing: 0.04em;
}

.tech-tag.blue {
  color: var(--blue);
  background: rgba(137, 180, 250, 0.1);
  border: 1px solid rgba(137, 180, 250, 0.25);
}

.tech-tag.purple {
  color: var(--purple);
  background: rgba(203, 166, 247, 0.1);
  border: 1px solid rgba(203, 166, 247, 0.25);
}

.tech-tag.pink {
  color: var(--pink);
  background: rgba(243, 139, 168, 0.1);
  border: 1px solid rgba(243, 139, 168, 0.25);
}

.project-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 14px;
  max-width: 640px;
}

.project-links {
  display: flex;
  gap: 8px;
}

.proj-btn {
  font-size: 0.72rem;
  padding: 0.3em 0.8em;
}

/* ─── Contact ───────────────────────────────────────────────── */
.contact-section {
  min-height: auto;
  padding-top: 100px;
  padding-bottom: 140px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: var(--surface-s);
  max-width: 560px;
}

.terminal-prompt {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.prompt-at, .prompt-path {
  color: var(--muted);
}

.contact-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.contact-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0.65em 1em;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.8rem;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-row:hover {
  border-color: rgba(203, 166, 247, 0.4);
  box-shadow: 0 2px 20px rgba(203, 166, 247, 0.12);
  transform: translateX(4px);
  color: var(--purple);
}

.contact-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  min-width: 64px;
  text-transform: uppercase;
}

.contact-value {
  font-size: 0.82rem;
  font-weight: 400;
}

/* ─── Background Orbs ───────────────────────────────────────── */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
}

.orb-1 {
  width: 500px; height: 500px;
  background: var(--purple);
  top: -150px; left: -100px;
}

.orb-2 {
  width: 400px; height: 400px;
  background: var(--blue);
  bottom: 10%; right: -120px;
}

.orb-3 {
  width: 300px; height: 300px;
  background: var(--pink);
  top: 50%; left: 40%;
  transform: translate(-50%, -50%);
  opacity: 0.07;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .section {
    padding: 100px 6vw 60px;
  }

  .island:hover,
  .island.open {
    width: 280px;
  }

  .project-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
