* { font-family: 'DM Sans', sans-serif; }
.display-font { font-family: 'Space Grotesk', sans-serif; }
html { scroll-behavior: smooth; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #09090b; }
::-webkit-scrollbar-thumb { background: #14b8a6; border-radius: 4px; }

::selection { background: rgba(20,184,166,0.35); color: #fff; }
::-moz-selection { background: rgba(20,184,166,0.35); color: #fff; }

#cursor-glow {
  position: fixed; width: 500px; height: 500px; border-radius: 50%;
  pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(20,184,166,0.07) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: left 0.12s ease, top 0.12s ease;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.teal-glow { box-shadow: 0 0 30px rgba(20,184,166,0.3); }
.teal-glow:hover { box-shadow: 0 0 45px rgba(20,184,166,0.5); }

.card { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 40px rgba(20,184,166,0.12); border-color: rgba(20,184,166,0.35) !important; }

.skill-card { transition: all 0.25s ease; }
.skill-card:hover { background: rgba(20,184,166,0.08); border-color: rgba(20,184,166,0.35) !important; transform: translateY(-3px); }

.nav-link { position: relative; padding-bottom: 4px; }
.nav-link::after { content: ''; display: block; height: 2px; background: #14b8a6; width: 0; border-radius: 2px; transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.75s ease, transform 0.75s ease; }
.reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }

@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.anim-badge  { animation: fadeDown 0.8s ease 0.1s both; }
.anim-title  { animation: fadeUp  0.9s ease 0.2s both; }
.anim-sub    { animation: fadeUp  0.9s ease 0.35s both; }
.anim-tags   { animation: fadeUp  0.9s ease 0.45s both; }
.anim-btns   { animation: fadeUp  0.9s ease 0.55s both; }

@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }
.pulse-dot { animation: pulse-dot 1.8s ease infinite; }

@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
.bounce-arrow { animation: bounce 1.8s ease infinite; }

.timeline-line { background: linear-gradient(to bottom, transparent, #14b8a6 20%, #14b8a6 80%, transparent); }

.contact-card { transition: all 0.3s ease; }
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 8px 40px rgba(20,184,166,0.15); border-color: rgba(20,184,166,0.4) !important; }

#mobile-menu {
  position: fixed;
  top: 64px;
  left: 0; right: 0;
  z-index: 40;
  background: rgba(9,9,11,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  padding: 20px 24px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
}
#mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
#mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: #a1a1aa;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color 0.2s ease, padding-left 0.2s ease;
  text-decoration: none;
}
#mobile-menu a:last-child { border-bottom: none; }
#mobile-menu a:hover, #mobile-menu a:active { color: #14b8a6; padding-left: 6px; }
#mobile-menu a::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #14b8a6;
  opacity: 0;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
#mobile-menu a:hover::before { opacity: 1; }

.hero-orb { background: radial-gradient(circle, rgba(20,184,166,0.18) 0%, transparent 70%); filter: blur(60px); }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.type-cursor {
  display: inline-block; width: 3px; height: 0.85em;
  background: #14b8a6; margin-left: 3px; vertical-align: middle;
  border-radius: 2px; animation: blink 0.9s step-end infinite;
}

#music-player {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 100;
  background: rgba(18,18,20,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 22px;
  padding: 16px 18px;
  width: 288px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(20,184,166,0.06);
  user-select: none;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1),
              height 0.4s cubic-bezier(0.4,0,0.2,1),
              border-radius 0.4s cubic-bezier(0.4,0,0.2,1),
              padding 0.35s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              opacity 0.2s ease;
}
#music-player:hover {
  border-color: rgba(20,184,166,0.3);
  box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 0 32px rgba(20,184,166,0.1), 0 0 0 1px rgba(20,184,166,0.15);
}
#music-player.dragging {
  opacity: 0.92;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8), 0 0 40px rgba(20,184,166,0.18);
  border-color: rgba(20,184,166,0.4);
  cursor: grabbing !important;
  transition: box-shadow 0.1s ease, border-color 0.1s ease;
}

#drag-handle {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 16px;
  margin: -4px -4px 8px -4px;
  cursor: grab;
  opacity: 0.3;
  transition: opacity 0.2s ease;
  border-radius: 8px 8px 0 0;
}
#drag-handle:hover { opacity: 0.7; }
#drag-handle:active { cursor: grabbing; }
#drag-handle svg { pointer-events: none; }

#music-player.collapsing,
#music-player.collapsed {
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  position: fixed;
}
#player-body {
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 1;
  transform: scale(1);
}
#music-player.collapsing #player-body,
#music-player.collapsed  #player-body,
#music-player.expanding  #player-body {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}
#music-player.collapsed #player-body { display: none; }
#music-player.collapsing #drag-handle,
#music-player.collapsed  #drag-handle { display: none; }

#player-collapsed-icon {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease 0.15s;
}
#music-player.collapsed #player-collapsed-icon {
  display: flex;
  opacity: 1;
}
#music-player.collapsed:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 28px rgba(20,184,166,0.35);
}

.bass-bar {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to top, #14b8a6, #2dd4bf);
  height: 4px;
}
@keyframes bass-bar-1 { 0%,100%{height:6px}  20%{height:22px} 50%{height:8px}  75%{height:18px} }
@keyframes bass-bar-2 { 0%,100%{height:14px} 30%{height:6px}  55%{height:24px} 80%{height:10px} }
@keyframes bass-bar-3 { 0%,100%{height:20px} 25%{height:8px}  60%{height:16px} 85%{height:4px}  }
@keyframes bass-bar-4 { 0%,100%{height:10px} 35%{height:20px} 65%{height:6px}  90%{height:22px} }
@keyframes bass-bar-5 { 0%,100%{height:16px} 40%{height:4px}  70%{height:20px} 95%{height:8px}  }
.bass-bar-1 { animation: bass-bar-1 0.85s ease-in-out infinite; }
.bass-bar-2 { animation: bass-bar-2 1.0s  ease-in-out infinite 0.15s; }
.bass-bar-3 { animation: bass-bar-3 0.75s ease-in-out infinite 0.05s; }
.bass-bar-4 { animation: bass-bar-4 1.1s  ease-in-out infinite 0.22s; }
.bass-bar-5 { animation: bass-bar-5 0.95s ease-in-out infinite 0.08s; }
.bass-bars-container {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 28px;
}
.bass-bars-container.paused .bass-bar {
  animation-play-state: paused;
  height: 4px !important;
}

.progress-bar-wrap {
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 99px; cursor: pointer;
  position: relative;
  transition: height 0.15s ease;
}
.progress-bar-wrap:hover { height: 6px; }
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #2dd4bf);
  border-radius: 99px; width: 0%;
  transition: width 0.3s linear;
  pointer-events: none;
}
.progress-bar-wrap::after {
  content: '';
  position: absolute;
  top: 50%; right: calc(100% - var(--prog, 0%));
  transform: translate(50%, -50%);
  width: 12px; height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(20,184,166,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.progress-bar-wrap:hover::after { opacity: 1; }

@keyframes spin-disc { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
.disc-spin { animation: spin-disc 4s linear infinite; }
.disc-spin.paused { animation-play-state: paused; }
#disc { transition: box-shadow 0.3s ease, transform 0.3s ease; }
#disc:hover { transform: scale(1.1); box-shadow: 0 0 24px rgba(20,184,166,0.5) !important; }

@keyframes eq-bar { 0%,100%{height:4px} 50%{height:14px} }
.eq-bar { width:3px; border-radius:2px; background:#14b8a6; animation: eq-bar 0.6s ease infinite; }
.eq-bar:nth-child(2){animation-delay:0.1s}
.eq-bar:nth-child(3){animation-delay:0.2s}
.eq-bars-wrap { display:flex; align-items:center; gap:2px; height:16px; }
.eq-bars-wrap.paused .eq-bar { animation-play-state:paused; height:4px; }

#play-btn { transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important; }
#play-btn:hover { transform: scale(1.12); box-shadow: 0 0 32px rgba(20,184,166,0.7) !important; }
#play-btn:active { transform: scale(0.96); }

#music-player button.ctrl-btn { transition: color 0.2s ease, transform 0.2s ease; }
#music-player button.ctrl-btn:hover { color: white; transform: scale(1.15); }
#music-player button.ctrl-btn:active { transform: scale(0.9); }

input[type=range] { -webkit-appearance: none; appearance: none; height: 3px; border-radius: 99px; cursor: pointer; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  border-radius: 50%; background: #14b8a6; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.3); box-shadow: 0 0 8px rgba(20,184,166,0.6); }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #14b8a6; cursor: pointer; border: none; }

@keyframes marquee { 0%{transform:translateX(0)} 40%{transform:translateX(0)} 90%{transform:translateX(-100%)} 91%{transform:translateX(100%)} 100%{transform:translateX(0)} }
#track-name.playing { animation: marquee 7s linear infinite; display: inline-block; }

.exp-logo {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.exp-logo img { width: 100%; height: 100%; object-fit: cover; }
.exp-logo-fallback { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; color: #14b8a6; }

.project-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(20,184,166,0.15);
  border-color: rgba(20,184,166,0.4) !important;
}
.project-img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16/9;
  background: rgba(20,184,166,0.04);
}
.project-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-img-wrap img { transform: scale(1.05); }
.project-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,9,11,0.7) 0%, transparent 60%);
  border-radius: 12px;
}
.project-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(20,184,166,0.25);
  color: #14b8a6;
  background: rgba(20,184,166,0.07);
}

#toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: rgba(20,184,166,0.15);
  border: 1px solid rgba(20,184,166,0.35);
  backdrop-filter: blur(12px);
  color: #2dd4bf;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 99px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
  z-index: 9999;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

#splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #09090b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: all;
}
#splash.done { opacity: 0; pointer-events: none; transition: opacity 0.7s ease; }
#splash-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
#splash-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #14b8a6;
  opacity: 0;
}
#splash-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(56px, 11vw, 128px);
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
  clip-path: inset(0 100% 0 0);
}
#splash-bar {
  width: 32px;
  height: 2px;
  background: #14b8a6;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 10px rgba(20,184,166,0.5);
}
body.splash-active { overflow: hidden; }
