/* =============================================
   Dovydas Barends — Official Site
   ============================================= */

:root {
  --bg-deep: #050508;
  --bg-card: rgba(18, 12, 32, 0.75);
  --purple-bright: #b026ff;
  --purple-mid: #7c3aed;
  --purple-glow: rgba(176, 38, 255, 0.45);
  --blue-accent: #6366f1;
  --text-primary: #f8f8fc;
  --text-muted: #a8a0b8;
  --border-subtle: rgba(176, 38, 255, 0.2);
  --font-display: "Permanent Marker", cursive;
  --font-body: "Montserrat", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Starfield background */
.stars {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(176, 38, 255, 0.08) 0%, transparent 50%),
    var(--bg-deep);
}

.stars::before,
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 65%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 45%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 75%, rgba(255, 255, 255, 0.45) 0%, transparent 100%),
    radial-gradient(1px 1px at 15% 85%, rgba(255, 255, 255, 0.25) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 45% 90%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 10%, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
  animation: twinkle 8s ease-in-out infinite alternate;
}

.stars::after {
  background-image:
    radial-gradient(1px 1px at 22% 38%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 62% 72%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 28%, rgba(255, 255, 255, 0.25) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 38% 52%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 5% 55%, rgba(255, 255, 255, 0.45) 0%, transparent 100%);
  animation-delay: -4s;
}

@keyframes twinkle {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* Layout */
.page {
  position: relative;
  z-index: 1;
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.9) 0%, transparent 100%);
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: rgba(5, 5, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-social {
  display: flex;
  gap: 0.75rem;
}

.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.nav-social a:hover {
  border-color: var(--purple-bright);
  box-shadow: 0 0 20px var(--purple-glow);
  transform: translateY(-2px);
}

.nav-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
}

.hero__image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--bg-deep) 0%, rgba(5, 5, 8, 0.6) 35%, rgba(5, 5, 8, 0.15) 70%, transparent 100%),
    linear-gradient(to right, rgba(5, 5, 8, 0.5) 0%, transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  animation: fadeUp 1s ease-out both;
}

.hero__tagline {
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: 0.95;
  margin-bottom: 1.25rem;
  text-shadow: 0 0 60px var(--purple-glow);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 32ch;
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn--primary {
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-mid));
  color: #fff;
  border: none;
  box-shadow: 0 4px 24px var(--purple-glow);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--purple-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn--outline:hover {
  border-color: var(--purple-bright);
  box-shadow: 0 0 20px var(--purple-glow);
  transform: translateY(-3px);
}

/* Soundwave divider */
.soundwave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3rem 0;
}

.soundwave span {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--purple-mid), var(--purple-bright));
  animation: wave 1.2s ease-in-out infinite;
}

.soundwave span:nth-child(1) { height: 12px; animation-delay: 0s; }
.soundwave span:nth-child(2) { height: 22px; animation-delay: 0.1s; }
.soundwave span:nth-child(3) { height: 32px; animation-delay: 0.2s; }
.soundwave span:nth-child(4) { height: 22px; animation-delay: 0.3s; }
.soundwave span:nth-child(5) { height: 12px; animation-delay: 0.4s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--purple-bright);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.section__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* Connect cards */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.connect-card {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.connect-card:hover {
  border-color: var(--purple-bright);
  box-shadow: 0 8px 40px rgba(176, 38, 255, 0.15);
  transform: translateY(-4px);
}

.connect-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.connect-card__icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.connect-card__icon--youtube {
  background: rgba(255, 0, 0, 0.15);
  color: #ff4444;
}

.connect-card__icon--instagram {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.2), rgba(131, 58, 180, 0.2));
  color: #e1306c;
}

.connect-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.connect-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.connect-card__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-bright);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.connect-card__link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.25s;
}

.connect-card:hover .connect-card__link svg {
  transform: translateX(4px);
}

/* Coming soon */
.coming-soon {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  margin-top: 1rem;
}

.coming-soon__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.coming-soon h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.coming-soon p {
  color: var(--text-muted);
  max-width: 45ch;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  margin-top: 2rem;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer .logo {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 640px) {
  .hero {
    min-height: 90vh;
    padding-bottom: 3rem;
  }

  .hero__image {
    object-position: 65% 25%;
  }

  .hero__overlay {
    background:
      linear-gradient(to top, var(--bg-deep) 0%, rgba(5, 5, 8, 0.75) 45%, rgba(5, 5, 8, 0.3) 100%);
  }

  .hero__cta {
    flex-direction: column;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }
}
