/* ============================================================
   CUSTOM STYLES – JIANU MEDIA
   ============================================================ */

/* ---------- RESET & VARIABILE ---------- */
:root {
  --gold: #FFF8D7;
  --dark: #121212;
  --text-light: #FFF8D7;
}

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

body {
  background: var(--dark);
  color: var(--text-light);
  font-family: 'Rubik', sans-serif;
  overflow-x: hidden;
}
/* ---------- HEADER TRANSPARENT ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background: rgba(18, 18, 18, 0.5); /* semi-transparent pentru lizibilitate */
  backdrop-filter: blur(6px); /* efect de sticlă mată */
  padding: 12px 24px;
  height: 64px; /* înălțime fixă */
  display: flex;
  align-items: center;
  transition: background 0.3s ease;
}

/* Dacă vrei complet transparent, schimbă în: background: transparent; backdrop-filter: none; */

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: 'Pinyon Script', cursive;
  font-size: 32px;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: opacity 0.3s;
}
.site-logo:hover {
  opacity: 0.8;
}

/* ---------- Ajustare HERO pentru a începe sub header ---------- */
.hero-wrapper {
  margin-top: 64px; /* aceeași înălțime ca header-ul */
  height: calc(70vh - 64px); /* scădem înălțimea header-ului */
  max-height: calc(600px - 64px);
  /* restul stilurilor rămân */
}

/* ---------- LOGO ---------- */
#jianu-logo {
  position: fixed;
  top: 15px;
  left: 25px;
  z-index: 1050;
  font-family: 'Pinyon Script', cursive;
  font-size: 36px;
  color: var(--gold);
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
@media (min-width: 1280px) {
  #jianu-logo {
    left: 200px;
    transform: translateX(-50%);
  }
}

/* ---------- BUTON CONTACT ---------- */
.contact-me-button {
  display: inline-block;
  padding: 16px 48px;
  background: transparent;
  border: 2px solid var(--gold);
  border-radius: 60px;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.contact-me-button:hover {
  background: var(--gold);
  color: var(--dark);
  transform: scale(1.05);
}
.contact-me-button .contact-me-text {
  position: relative;
  z-index: 2;
}

/* ---------- HERO (MOBILE FIRST) ---------- */
.hero-wrapper {
  position: relative;
  width: 100%;
  margin-top: 64px;
  height: calc(85vh - 64px);
  max-height: calc(800px - 64px);
  overflow: hidden;
  background: #121212; /* fundal negru pentru margini */
  padding: 20px; /* <- distanță față de margine */
}

.hero-image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px; /* opțional: colțuri rotunjite */
}

.hero-image-container video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.hero-content-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 10;
  width: 90%;
  max-width: 400px;
  pointer-events: none;
}

.hero-content-wrapper .contact-me-button {
  pointer-events: auto;
  display: none; /* ascuns pe mobil */
}

/* ---------- HERO (DESKTOP >= 1024px) ---------- */
@media (min-width: 1024px) {
  .hero-wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: calc(85vh - 64px);
    max-height: calc(800px - 64px);
    padding: 20px; /* menținem padding-ul și pe desktop */
  }

  .hero-image-container {
    width: 50%;
    height: 100%;
    flex-shrink: 0;
    border-radius: 12px 0 0 12px; /* colțuri rotunjite doar stânga */
  }

  .hero-image-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50%;
  }

  .hero-content-wrapper {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #121212;
    padding: 40px;
    max-width: 100%;
    pointer-events: auto;
    border-radius: 0 12px 12px 0; /* colțuri rotunjite doar dreapta */
  }

  .hero-content-wrapper .contact-me-button {
    display: inline-block;
    pointer-events: auto;
  }
}

/* ---------- AJUSTĂRI PENTRU ECURANE MICI ---------- */
@media (max-width: 480px) {
  .hero-wrapper {
    height: calc(70vh - 56px);
    max-height: calc(500px - 56px);
  }
  .site-header {
    height: 56px;
    padding: 8px 16px;
  }
  .site-logo {
    font-size: 24px;
  }
  .hero-wrapper {
    margin-top: 56px;
  }
}

/* ---------- AJUSTĂRI PENTRU ECURANE MARI ---------- */
@media (min-width: 1440px) {
  .hero-wrapper {
    max-height: calc(800px - 64px);
  }
}
/* ---------- ABOUT ---------- */
.about {
  padding: 80px 24px;
  max-width: 800px;
  margin: 0 auto;
}
.bio-profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  margin-bottom: 24px;
}
.bio-heading {
  font-family: 'Prata', serif;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.bio-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ddd;
}

/* ---------- SERVICES ---------- */
.services-section {
  padding: 60px 24px;
  text-align: center;
}
.services-title {
  font-family: 'Prata', serif;
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 40px;
}
.service-item {
  max-width: 400px;
  margin: 0 auto 30px;
  padding: 20px;
  border-bottom: 1px solid rgba(255,248,215,0.2);
}
.service-number {
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 4px;
}
.service-title-text {
  font-family: 'Prata', serif;
  font-size: 1.6rem;
  color: var(--gold);
}
.contact-me-button-bottom {
  margin-top: 20px;
}

/* ---------- CARUSEL ---------- */
.carousel-section {
  padding: 40px 16px;
  background: var(--dark);
}

.carousel-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: #1a1a1a;
  aspect-ratio: 4 / 3; /* raport de aspect pentru a se potrivi majorității imaginilor */
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
}

.carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain; /* IMAGINEA SE VEDE INTEGRAL, FĂRĂ TĂIERE */
  display: block;
}

/* Butoane de navigare */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}
.carousel-btn:hover {
  background: rgba(0,0,0,0.8);
}
.carousel-btn-prev {
  left: 12px;
}
.carousel-btn-next {
  right: 12px;
}

/* Indicatori (puncte) */
.carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 20;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.2s;
}
.carousel-dot.active {
  background: var(--gold);
  transform: scale(1.2);
}
.carousel-dot:hover {
  background: rgba(255,255,255,0.8);
}

/* ---------- FOOTER ---------- */
.footer-section {
  padding: 60px 24px 30px;
  text-align: center;
}
.footer-heading {
  font-family: 'Pinyon Script', cursive;
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-info-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
}
.footer-info-group {
  text-align: left;
  min-width: 150px;
}
.footer-info-label {
  font-size: 0.8rem;
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-info-details {
  font-size: 1rem;
  margin-top: 4px;
}
.footer-info-details a {
  color: var(--gold);
  text-decoration: none;
}
.footer-info-details a:hover {
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 30px 0;
}
.footer-social a {
  color: var(--gold);
  font-size: 1.6rem;
  transition: opacity 0.3s;
}
.footer-social a:hover {
  opacity: 0.7;
}

/* ---------- WHATSAPP FLOAT ---------- */
.fixed-action-buttons {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1049;
}
#whatsapp-fab {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
}
#whatsapp-fab.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#whatsapp-fab:hover {
  transform: scale(1.05);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .hero-content-wrapper {
    bottom: 10%;
  }
  .contact-me-button {
    padding: 14px 32px;
    font-size: 1rem;
  }
  .bio-heading,
  .services-title {
    font-size: 2rem;
  }
  .bio-body {
    font-size: 1rem;
  }
  .footer-info-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .carousel-container {
    aspect-ratio: 3 / 4; /* pe mobil, preferăm un raport mai apropiat de portret */
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}