:root {
  --bg: #0b0b0c;
  --card: #121216;
  --muted: #a7a7b0;
  --text: #f6f6f9;
  --acc: #7c5cff;
  --acc-2: #00e0ff;
  --acc-3: #ff2ea6;
  --ring: rgba(124, 92, 255, 0.35);
  --radius: 18px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --max: 1160px;
  --pad: clamp(16px, 2vw, 24px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  /* Simple performant PNG background */
  background: var(--bg) url("../dj-petra-fundal.png") center/cover no-repeat;
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter,
    "Helvetica Neue", Arial, Noto Sans, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Mobile optimizations */
@media (max-width: 860px) {
  /* Same PNG background on mobile */
  body {
    background: var(--bg) url("../dj-petra-fundal.png") center/cover no-repeat;
  }
  .links {
    gap: 10px;
  }
  .links a {
    padding: 8px 10px;
  }
  .hero-photo {
    border-radius: 14px;
  }
  .carousel-arrow {
    width: 36px;
    height: 36px;
  }
}
a {
  color: inherit;
  text-decoration: none;
}
.container {
  max-width: var(--max);
  margin: auto;
  padding: 0 var(--pad);
}

/* NAV */
header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(11, 11, 12, 0.6);
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--pad);
  position: relative;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand .logo-dj-petra {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-block;
  box-shadow: var(--shadow);
}
.brand img.logo {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand b {
  font-size: 1.05rem;
  letter-spacing: 0.4px;
}
.links {
  display: flex;
  gap: 14px;
  align-items: center;
}
.links a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--text);
  opacity: 0.9;
}
.links a:hover {
  background: rgba(255, 255, 255, 0.06);
}
.links a {
  position: relative;
}
.links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.links a:hover::after {
  transform: scaleX(1);
}
.cta {
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  gap: 26px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  padding: clamp(40px, 8vw, 110px) 0;
}
/* Make the experience card span full width under the two columns */
.hero-inner > .hero-card {
  grid-column: 1 / -1;
}
.hero-photo {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  background: #0f0f13;
}
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.title {
  font-size: clamp(32px, 4.5vw, 64px);
  line-height: 1.08;
  margin: 0;
}
.subtitle {
  color: var(--muted);
  margin: 8px 0 0;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.badge {
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #e8e8f0;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.18),
    rgba(0, 224, 255, 0.14)
  );
}
.hero-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
/* Testimonials fill the hero-card */
.hero-card .testimonials {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  height: 100%;
}
.t-title {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 10px;
  letter-spacing: 0.3px;
  font-weight: 700;
}
.t-slides {
  position: relative;
  min-height: 110px;
  flex: 1;
  padding: 0; /* săgețile nu mai sunt peste text */
}
.t-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.t-arrow {
  position: static;
  transform: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 20, 24, 0.55);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.t-arrow:hover {
  background: rgba(20, 20, 24, 0.8);
}

@media (max-width: 520px) {
  .t-arrow {
    width: 30px;
    height: 30px;
  }
}
.t-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms ease, transform 320ms ease;
  display: grid;
  align-content: center;
}
.t-slide.active {
  opacity: 1;
  transform: none;
}
.t-quote {
  font-size: 0.98rem;
  color: #e9e9f2;
  margin: 0;
}
.t-author {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.t-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}
.t-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}
.t-dot.active {
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px;
  border-radius: 14px;
  text-align: center;
}
.stat b {
  display: block;
  font-size: 1.2rem;
}

/* SECTIONS */
section {
  padding: clamp(40px, 7vw, 90px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
h2 {
  font-size: clamp(22px, 3vw, 36px);
  margin: 0 0 16px;
}
.grid {
  display: grid;
  gap: 18px;
}

/* Utility layout helpers (visual parity with inline styles) */
.cols-2 {
  grid-template-columns: 1fr 1fr;
}
.cols-1 {
  grid-template-columns: 1fr;
}
.mt-18 {
  margin-top: 18px;
}
.mt-8 {
  margin-top: 8px;
}
.list-tight {
  margin: 0;
  padding-left: 18px;
}
.muted-note {
  margin: 12px 0 0 0;
  color: var(--muted);
}

/* Generic card (used outside About too) */
.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 {
  margin-top: 0;
}

/* Color accents */
h2 {
  background: linear-gradient(135deg, var(--acc-2), var(--acc));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.btn {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease,
    background 0.2s ease, border-color 0.2s ease;
}

/* ABOUT */
.about {
  grid-template-columns: 1fr;
}
.about .card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 20px;
}
/* Make the second About card place its actions at the bottom */
.about .card.with-cta {
  display: flex;
  flex-direction: column;
}
.about .card.with-cta .actions {
  margin-top: auto;
  margin-bottom: 12px; /* ridică puțin butonul de jos */
}
.about .card .inline-photo {
  float: right;
  width: clamp(120px, 28%, 220px);
  border-radius: 12px;
  margin: 0 0 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

/* MUSIC (YouTube embed) */
.video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* GALLERY */
.carousel {
  position: relative;
}
.carousel-viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}
.carousel-track {
  display: flex;
  transition: transform 320ms ease;
  will-change: transform;
}
.carousel-slide {
  min-width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f0f13;
  position: relative;
}
.carousel-slide > img,
.carousel-slide > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.portrait-grid {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  padding: 10px;
}
.portrait-grid .portrait {
  display: flex;
  align-items: stretch;
}
.portrait-grid .portrait .box {
  height: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  background: #0f0f13;
}
.portrait-grid .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 20, 24, 0.55);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.carousel-arrow:hover {
  background: rgba(20, 20, 24, 0.8);
}
.carousel-arrow.prev {
  left: 10px;
}
.carousel-arrow.next {
  right: 10px;
}
.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}
.carousel-dot.active {
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
}

/* GIGS */
.gigs {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.gig {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px;
}
.gig small {
  color: var(--muted);
}

/* CONTACT */
form {
  display: grid;
  gap: 12px;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #0f0f13;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  outline: none;
  font: inherit; /* aliniează fontul cu restul site-ului */
  resize: vertical; /* doar sus-jos, fără stânga-dreapta */
  overflow-x: hidden;
}
/* Ascunde săgețile pentru input[type=number] */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  appearance: textfield; /* Standard */
  -moz-appearance: textfield; /* Firefox */
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--acc);
  box-shadow: 0 0 0 6px var(--ring);
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#contact .actions {
  margin-top: 24px;
}
#contact .subtitle:last-child {
  margin-bottom: 24px;
}

/* Booking form button styling */
#booking-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
#btnMail {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  border: none;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 220ms ease, filter 200ms ease,
    opacity 160ms ease;
  will-change: transform, box-shadow;
}
#btnMail:hover {
  transform: translateY(-1px) scale(1.012);
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.35),
    0 6px 18px rgba(0, 224, 255, 0.25);
}
#btnMail:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
#btnMail:focus-visible {
  outline: none;
  box-shadow: 0 0 0 6px var(--ring), 0 10px 24px rgba(124, 92, 255, 0.3),
    0 6px 18px rgba(0, 224, 255, 0.2);
}
.btn.primary {
  background: linear-gradient(135deg, var(--acc), var(--acc-2));
  border: none;
  font-weight: 700;
}
.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.35),
    0 6px 18px rgba(0, 224, 255, 0.25);
}

@media (prefers-reduced-motion: reduce) {
  #btnMail {
    transition: none;
  }
}

/* Gradient border for secondary buttons */
.btn:not(.primary) {
  border: 1px solid transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(135deg, rgba(124, 92, 255, 0.8), rgba(0, 224, 255, 0.8))
      border-box;
}
.btn:not(.primary):hover {
  opacity: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* FOOTER */
footer {
  padding: 30px 0;
  color: var(--muted);
  text-align: center;
}

/* Selection colors */
::selection {
  background: rgba(124, 92, 255, 0.35);
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    /* Ensure a clean vertical flow and better spacing */
    grid-template-areas:
      "text"
      "photo"
      "card";
    gap: 18px;
  }
  /* Add breathing room on the left for hero text */
  .hero-inner > div:first-child {
    grid-area: text;
    padding-left: 6px;
    padding-right: 6px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
  }
  .hero-photo {
    grid-area: photo;
    width: min(92%, 520px);
    margin: 0 auto;
  }
  .hero-card {
    grid-area: card;
  }
  /* Center badges and buttons under the centered text */
  .badges,
  .actions {
    justify-content: center;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .about {
    grid-template-columns: 1fr;
  }
  .about .card .inline-photo {
    float: none;
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px 0;
  }
  /* Type tweaks */
  .title {
    font-size: clamp(24px, 7vw, 36px);
    line-height: 1.1;
  }
  .subtitle {
    font-size: 0.95rem;
  }
  h2 {
    font-size: clamp(20px, 6vw, 28px);
  }
  .badges {
    gap: 8px;
  }
  .badge {
    font-size: 0.85rem;
    padding: 5px 8px;
  }
  .actions {
    gap: 8px;
  }
  .btn {
    padding: 10px 12px;
    font-size: 0.95rem;
  }
}

/* NAV: ensure links fit on small screens */
@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
  }
  .brand {
    width: 100%;
    justify-content: center;
  }
  .links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  .links a {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
  .links .cta {
    padding: 9px 12px; /* slightly smaller to avoid overflow */
  }
}

/* === Enhancements: hero animations, button glow, posters sizing === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* Subtle entrance for hero title & photo */
.hero .title {
  opacity: 0;
  animation: fadeInUp 1.2s ease forwards;
}
.hero-photo {
  opacity: 0;
  animation: fadeIn 1.8s ease forwards;
  animation-delay: 0.3s;
}

/* Pulsing glow on button hover */
@keyframes glowPulse {
  0% {
    box-shadow: 0 0 10px rgba(124, 92, 255, 0.2),
      0 0 20px rgba(0, 224, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 18px rgba(124, 92, 255, 0.35),
      0 0 28px rgba(0, 224, 255, 0.35);
  }
  100% {
    box-shadow: 0 0 10px rgba(124, 92, 255, 0.2),
      0 0 20px rgba(0, 224, 255, 0.2);
  }
}
.btn:hover {
  animation: glowPulse 1s ease-in-out infinite alternate;
}

/* Posters carousel: vertical posters, centered, reusable */
.posters .carousel-viewport {
  border-radius: var(--radius);
  width: min(100%, 880px);
  margin: 0 auto;
}
/* Extra spacing between posters title and images */
.posters .t-title {
  display: block;
  margin: 0 0 20px;
}
/* Poster slides: let content dictate height, avoid forced aspect */
.posters .carousel-slide.poster {
  aspect-ratio: auto;
  background: transparent;
}
/* Slightly larger arrows just for posters carousel */
.posters .carousel-arrow {
  width: 48px;
  height: 48px;
}

/* Slightly smaller on very small screens */
@media (max-width: 420px) {
  /* width is now 100%, so no further reduction needed */
}

/* Posters: 3 pe pagină, verticale, mai mici */
.hero-card .carousel-viewport {
  border-radius: var(--radius);
}

.posters .poster-row {
  display: flex;
  gap: 10px;
}
.posters .poster-row .box {
  flex: 1 1 0;
  aspect-ratio: 4 / 5; /* consistent 1080x1350 look */
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  background: #0f0f13;
}
.posters .poster-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Responsive: 2 pe pagină pe ecrane mici, 1 pe ecrane foarte mici */
@media (max-width: 680px) {
  .posters .poster-row {
    gap: 8px;
  }
}
@media (max-width: 520px) {
  .posters .poster-row {
    flex-wrap: wrap;
  }
  .posters .poster-row .box {
    flex: 1 1 calc(50% - 8px);
  }
}
@media (max-width: 380px) {
  .posters .poster-row .box {
    flex: 1 1 100%;
  }
}

/* Blur-up effect for poster images */
.blur-up {
  filter: blur(12px);
  transform: scale(1.02);
  opacity: 0.8;
  transition: filter 600ms ease, transform 600ms ease, opacity 380ms ease;
}
.blur-up.loaded {
  filter: blur(0);
  transform: none;
  opacity: 1;
}
