@tailwind base;
@tailwind components;
@tailwind utilities;

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #0a0a0a;
  --surface:  #111111;
  --surface2: #161616;
  --border:   #222222;
  --accent:   #ffffff;
  --accent2:  #a0a0a0;
  --muted:    #444444;
  --text:     #f0f0f0;
  --text2:    #888888;
  --green:    #22c55e;
  --tag-bg:   #1a1a1a;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

::selection { background: #ffffff22; }

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

/* Utility */
.glass   { background: rgba(17,17,17,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.section-label { font-size: 11px; font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text2); }

/* Animations */
@keyframes fadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes fadeUp  { from { opacity:0; transform:translateY(20px) } to { opacity:1; transform:translateY(0) } }
@keyframes marquee { 0% { transform:translateX(0) } 100% { transform:translateX(-50%) } }
@keyframes slideIn { from { opacity:0; transform:translateX(-10px) } to { opacity:1; transform:translateX(0) } }
@keyframes shimmer { 0% { background-position:-200% 0 } 100% { background-position:200% 0 } }

.animate-fade-in  { animation: fadeIn  0.6s ease forwards; }
.animate-fade-up  { animation: fadeUp  0.7s ease forwards; }
.animate-marquee  { animation: marquee 35s linear infinite; }
.animate-slide-in { animation: slideIn 0.5s ease forwards; }

.skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #222 50%, #1a1a1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* Video background */
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.18; pointer-events: none;
}

/* Nav link hover */
.nav-link {
  font-size: 12px; letter-spacing: 0.08em; color: var(--text2);
  transition: color 0.2s; font-weight: 400;
}
.nav-link:hover { color: var(--text); }

/* Tag pill */
.tag {
  font-size: 11px; font-weight: 500; padding: 3px 10px;
  background: var(--tag-bg); border: 1px solid var(--border);
  border-radius: 4px; color: var(--text2); white-space: nowrap;
}

/* Card */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: #333; }

/* Timeline dot */
.tl-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); border: 2px solid var(--muted);
  flex-shrink: 0; margin-top: 6px;
}
.tl-line {
  width: 1px; background: var(--border);
  position: absolute; top: 0; bottom: 0; left: 3px;
}

/* Status dot */
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--surface); flex-shrink: 0;
}

/* Skill badge */
.skill-badge {
  font-size: 12px; font-weight: 500;
  padding: 6px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--text2); white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  display: flex; align-items: center; gap: 8px;
}
.skill-badge:hover { color: var(--text); border-color: #444; }
