/* ===================================================================
   Comp Culture — Link-in-Bio Styles
   Black/red color scheme, chrome text, basketball culture aesthetic.
   Mobile-first, single-scroll page.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- Tokens --- */
:root {
  --bg-deep: #050505;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --red: #e63946;
  --red-glow: rgba(230, 57, 70, 0.45);
  --red-dim: rgba(230, 57, 70, 0.15);
  --chrome-from: #d4d4d8;
  --chrome-to: #71717a;
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --radius: 12px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Ambient Background --- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  opacity: 0.35;
  animation: pulse-ambient 6s ease-in-out infinite alternate;
}

.ambient::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230, 57, 70, 0.2) 0%, transparent 70%);
  opacity: 0.25;
  animation: pulse-ambient 8s ease-in-out 2s infinite alternate;
}

@keyframes pulse-ambient {
  0% { opacity: 0.2; transform: translateX(-50%) scale(1); }
  100% { opacity: 0.4; transform: translateX(-50%) scale(1.15); }
}

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

/* --- Main Container --- */
.container {
  position: relative;
  z-index: 2;
  max-width: 440px;
  margin: 0 auto;
  padding: 48px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* --- Logo / Brand Mark --- */
.brand {
  text-align: center;
  margin-bottom: 12px;
}

.brand-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  position: relative;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 18px var(--red-glow));
}

.brand-name {
  font-family: var(--font-display);
  font-size: 3.2rem;
  letter-spacing: 0.08em;
  line-height: 1;
  background: linear-gradient(180deg, var(--chrome-from) 0%, var(--chrome-to) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(212, 212, 216, 0.15));
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--red);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 8px;
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  margin: 28px auto;
  border: none;
}

/* --- Social Links --- */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.link-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(230, 57, 70, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(230, 57, 70, 0.12);
}

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

.link-card:active {
  transform: translateY(0);
}

.link-icon {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--red);
  transition: color var(--transition);
}

.link-card:hover .link-icon {
  color: var(--text-primary);
}

.link-label {
  position: relative;
  z-index: 1;
  flex: 1;
}

.link-arrow {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
}

.link-card:hover .link-arrow {
  color: var(--text-secondary);
  transform: translateX(3px);
}

/* --- About Section --- */
.about {
  text-align: center;
  padding: 24px 16px;
  max-width: 360px;
}

.about-heading {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.about-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.about-text strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  padding-top: 40px;
  text-align: center;
}

.footer-line {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0 auto 12px;
}

.footer-text {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Basketball court line decoration --- */
.court-line {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  border: 1px solid rgba(230, 57, 70, 0.06);
  border-bottom: none;
  border-radius: 100px 100px 0 0;
  z-index: 0;
  pointer-events: none;
}

/* --- Entrance animation --- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand { animation: fade-up 0.6s ease-out both; }
.divider { animation: fade-up 0.6s ease-out 0.1s both; }
.links { animation: fade-up 0.6s ease-out 0.2s both; }
.about { animation: fade-up 0.6s ease-out 0.3s both; }
.footer { animation: fade-up 0.6s ease-out 0.4s both; }

/* --- Responsive --- */
@media (min-width: 640px) {
  .container {
    padding: 80px 24px 80px;
  }

  .brand-name {
    font-size: 4rem;
  }

  .brand-icon {
    width: 96px;
    height: 96px;
  }
}
