body {
  background-color: #1e2e3c;
  margin: 0;
  padding: 0;
  padding-top: 80px;
  min-height: 100vh;
}

/* ============================
   HEADER + NAVBAR + LOGO
   ============================ */

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: transparent;
  pointer-events: none;
  box-sizing: border-box;
}

.navbar,
.top-right-mini {
  pointer-events: auto;
}

.navbar {
  background-color: #5e322f;
  padding: 10px;
  filter: drop-shadow(20px 20px 15px rgba(0, 0, 0, 0.5));
  border-radius: 5px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 15px;
  justify-content: left;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.navbar a {
  color: white;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 5px;
  display: inline-block;
  transition: all 0.3s ease;
}

.navbar a:hover {
  filter: drop-shadow(30px 30px 20px rgba(0, 0, 0, 0.5));
  transform: scale(1.05);
  background-color: #1e2e3c;
}

.top-right-mini {
  position: fixed;
  top: 5px;
  right: 50px;
  width: 220px;
  max-width: 20vw;
  height: 120px;
  object-fit: cover;
  z-index: 1100;
  border-radius: 5px;
  filter: drop-shadow(10px 10px 15px rgba(0, 0, 0, 0.5));
  transform: perspective(1000px) rotateY(-20deg) rotateX(3deg);
}

/* ============================
   SECȚIUNI VIDEO
   ============================ */

/* HOME este vizibil la început */
#home-video {
  display: block;
}

/* CONTACT este ascuns la început */
#contact-video {
  display: none;
}

/* Ambele secțiuni ocupă ecranul complet și nu creează scroll */
.content-section,
.content2-section {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* ============================
   HOME VIDEO
   ============================ */

.video-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* video home pe tot ecranul */
  display: block;
  pointer-events: none; /* scoate iconițele PiP */
}

/* ============================
   CONTACT VIDEO
   ============================ */

.video2-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -40px;

  /* LINIA CARE REZOLVĂ BLUR-UL TEXTULUI */
  transform: translateZ(0);
}

/* Micșorăm DOAR video-ul de contact */
.video2-container video {
  width: 90%;
  height: 85%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ============================
   TEXT SELECTABIL PESTE VIDEO
   ============================ */

.text {
  position: absolute;
  color: white;
  font-size: 15px;
  font-weight: 600;
  user-select: text;
  pointer-events: auto;
  text-shadow: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.label {
  display: inline-block;
}

/* Poziții individuale */
.email-text {
  top: 32%;
  left: 67%;
}

.phone-text {
  top: 55%;
  left: 67%;
}

.linkedin-text {
  top: 80%;
  left: 65%;
}

/* Iconița de copy */
.copy-icon {
  width: 28px;
  height: 28px;
  background-image: url("copy.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  display: inline-block;
  transition: 0.3s;
  position: relative;
  filter: brightness(0) invert(1); /* face iconița ALBĂ */
}

/* Efect hover */
.copy-icon:hover {
  filter: brightness(1.4);
}

/* Tooltip-ul "Copy" */
.tooltip {
  visibility: hidden;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 6px;
  position: absolute;
  left: 110%;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

/* Arată textul "Copy" la hover */
.text:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

/* ============================
   BOOK OVERLAY – versiunea corectată
   ============================ */

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 5000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.book {
  width: 90%;
  max-width: 900px;
  height: auto;
  max-height: calc(100vh - 120px);
  display: flex;
  position: relative;
  background-color: #3d2b1f;
  border-radius: 5px 30px 30px 5px;
  padding: 20px;
  box-shadow:
    5px 5px 0px #2a1d15,
    15px 15px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 10px rgba(0, 0, 0, 0.5);
  background-image: linear-gradient(
    90deg,
    #3d2b1f 0%,
    #3d2b1f 2%,
    #fdf6e3 5%,
    rgba(0, 0, 0, 0.1) 48%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.1) 52%,
    #fdf6e3 95%,
    #3d2b1f 98%,
    #3d2b1f 100%
  );
  overflow-y: auto;
}

.book-page {
  flex: 1;
  padding: 30px;
  color: #2c1e14;
  font-family: "Georgia", serif;
  position: relative;
  overflow-y: auto;
}

.book-page:first-child {
  background: linear-gradient(90deg, #fdf6e3 90%, #e2d9c2 100%);
  border-right: 2px solid rgba(0, 0, 0, 0.15);
}

.book-page:last-child {
  background: linear-gradient(-90deg, #fdf6e3 90%, #e2d9c2 100%);
}

.left-page {
  background: linear-gradient(to right, #fdf6e3, #f5ecd5);
}

.right-page {
  background: linear-gradient(to left, #fdf6e3, #f5ecd5);
}

.topic-list {
  list-style: none;
  padding: 0;
}

.topic-list li {
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  transition: background 0.3s;
}

.topic-list li:hover {
  background: #5e322f;
  color: white;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: #5e322f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 3000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-btn:hover {
  background: #1e2e3c;
}

.book-title {
  border-bottom: 2px solid #5e322f;
  padding-bottom: 10px;
}

/* ============================
   RESPONSIVE FIX LOGO
   ============================ */

@media (max-width: 900px) {
  .top-right-mini {
    top: 55px;
    right: 10px;
    width: 150px;
  }
}

@media (max-width: 750px) {
  .top-right-mini {
    top: 60px;
    right: 5px;
    width: 130px;
  }
}

@media (max-width: 600px) {
  .top-right-mini {
    top: 65px;
    right: 0;
    width: 110px;
  }
}

@media (max-width: 500px) {
  .top-right-mini {
    top: 70px;
    right: 0;
    width: 95px;
  }
}

/* Fix universal pentru videoclipuri pe orice telefon */
@media (max-width: 1400px) {
  video {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }

  .video-container,
  .video2-container {
    width: 100% !important;
    height: auto !important;
  }

  .content-section,
  .content2-section {
    height: auto !important;
    min-height: auto !important;
  }
}
