/* =====================================================
   Tarrant Media — Custom Component Styles
   Translated from src/index.css (Tailwind @apply)
   ===================================================== */

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
}

body {
  background-image: radial-gradient(circle at 50% 0%, rgba(60, 171, 238, 0.05) 0%, transparent 50%);
}

::selection {
  background-color: #3CABEE;
  color: #fff;
}

h1, h2, h3, h4 {
  letter-spacing: -0.05em;
  line-height: 1.1;
  font-weight: 700;
  text-transform: capitalize;
}

/* ─── Cinematic Reveal System ─── */
.reveal {
  opacity: 0;
  transition: all 1000ms ease-out;
  transform: translateY(2rem);
  filter: blur(4px);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ─── Floating Nav Pill ─── */
.nav-pill {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.75rem 2rem;
  background-color: rgba(9, 9, 11, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.nav-link {
  font-size: 0.75rem;
  line-height: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a1a1aa;
  transition: color 300ms;
  text-decoration: none;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #3CABEE;
}

/* ─── Glass Cards ─── */
.glass-card {
  background-color: rgba(24, 24, 27, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* ─── Primary Button ─── */
.btn-primary {
  position: relative;
  overflow: hidden;
  display: inline-block;
  background-color: #3CABEE;
  color: #ffffff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 500ms;
  box-shadow: 0 0 20px rgba(60, 171, 238, 0.2);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(60, 171, 238, 0.4);
  color: #ffffff;
}

.btn-primary:active {
  transform: scale(0.95);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 500ms;
}

.btn-primary:hover::after {
  opacity: 1;
}

/* ─── Cinematic Grain Overlay ─── */
.grain-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
}

/* ─── Video Utilities ─── */
.video-container {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  border-bottom-left-radius: 4rem;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, black, rgba(0, 0, 0, 0.4), transparent);
  z-index: 10;
}

/* ─── About Page Timeline ─── */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid #27272a;
  padding-bottom: 3rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -5px;
  top: 0.5rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: #3CABEE;
  box-shadow: 0 0 10px rgba(60, 171, 238, 0.8);
}
