:root {
  --pink-main: #ffb6c1;
  --pink-soft: #ffe4ec;
  --pink-dark: #ff6f91;
  --text-dark: #444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: var(--pink-soft);
  color: var(--text-dark);
  cursor: none;
}
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  font-size: 22px;
  transform: translate(-50%, -50%);
  z-index: 100000;
  transition: transform 0.08s ease;
}
/* Hero */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--pink-main), var(--pink-soft));
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--pink-dark);
}

.subtitle {
  margin: 15px 0 30px;
  font-size: 1.1rem;
}

.hero-img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid white;
}

/* Sections */
.section {
  padding: 70px 20px;
  max-width: 1100px;
  position: relative;
  margin: 80px auto; /* ⬅️ ADD THIS */
}

.section.glow::after {
  content: "";
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(255,182,193,0.4), transparent 70%);
  opacity: 0;
  animation: glowFade 1.2s ease forwards;
  pointer-events: none;
  z-index: -1;
}

@keyframes glowFade {
  from { opacity: 1; }
  to { opacity: 0; }
}
.section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--pink-dark);
}

.soft-pink {
  background: white;
  border-radius: 40px;
  padding-top: 80px;
  padding-bottom: 80px;
}


/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Message */
.message p {
  max-width: 600px;
  margin: auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Footer */
footer {
  text-align: center;
  padding: 80px 20px 40px;
  margin-top: 100px;
  color: #777;
}

/* Smaller galleries (1–2 images) */
.gallery.small {
  grid-template-columns: repeat(auto-fit, minmax(220px, 260px));
  justify-content: center;
}

/* Omar special section */
.omar {
  text-align: center;
  background: linear-gradient(180deg, #ffe4ec, #fff);
  border-radius: 50px;
}

.omar h2 {
  font-size: 3rem;
  color: var(--pink-dark);
  margin-bottom: 30px;
}

.omar-text {
  font-size: 1.2rem;
  line-height: 2;
  margin-bottom: 40px;
}

/* Button (JS-ready) */
.magic-btn {
  background: var(--pink-dark);
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.magic-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(255, 111, 145, 0.4);
}
.magic-btn:active {
  transform: scale(0.95);
  box-shadow: none;
}
/* ===== Ftira Funny Section ===== */

.ftira-gallery {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-top: 40px;
}

.ftira-gallery img {
  max-width: 280px;
  width: 100%;
  height: auto;            /* ⬅️ FULL IMAGE */
  object-fit: contain;     /* ⬅️ NO CROPPING */
  border-radius: 20px;
  background: white;
  padding: 10px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  transform: rotate(var(--tilt));
}

/* Give each image a goofy tilt */
.ftira-gallery img:nth-child(1) { --tilt: -4deg; }
.ftira-gallery img:nth-child(2) { --tilt: 3deg; }
.ftira-gallery img:nth-child(3) { --tilt: -2deg; }

/* Hover = extra fun */
.ftira-gallery img:hover {
  transform: rotate(0deg) scale(1.05);
  transition: transform 0.3s ease;
}

/* LOCK SCREEN */
#lock-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, #ffb6c1, #ffe4ec);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lock-box {
  background: white;
  padding: 50px 40px;
  border-radius: 40px;
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.lock-box h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.lock-title {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #555;
}

.lock-box input {
  width: 100%;
  padding: 14px;
  border-radius: 25px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 20px;
}

.lock-box button {
  background: #ff6f91;
  color: white;
  border: none;
  padding: 12px 35px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
}

.lock-box button:hover {
  transform: scale(1.05);
}

.hint {
  margin-top: 20px;
  font-size: 0.95rem;
  color: #ff6f91;
}

/* Fade-in reveal */
.site-content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}

.site-content.visible {
  opacity: 1;
  pointer-events: auto;
}
/* Floating hearts */
.heart {
  position: fixed;
  bottom: -20px;
  font-size: 24px;
  animation: floatUp 3s ease-in forwards;
  pointer-events: none;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-120vh) scale(1.5);
    opacity: 0;
  }
}
/* Masonry style */
.masonry {
  column-count: 3;
  column-gap: 20px;
}

.masonry img {
  width: 100%;
  margin-bottom: 20px;
  border-radius: 20px;
}

/* Dense chaos */
.masonry.dense {
  column-count: 4;
}

/* Duo */
.gallery.duo {
  grid-template-columns: repeat(2, 260px);
  justify-content: center;
}

/* Triple */
.gallery.triple {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Omar focus */
.gallery.trio-focus img:nth-child(2) {
  transform: scale(1.05);
}

/* Fun section */
.fun {
  background: linear-gradient(180deg, #fff, #ffe4ec);
  border-radius: 40px;
}

/* ===== Sister Carousel ===== */

.sister-carousel {
  position: relative; /* ⬅️ REQUIRED */
  overflow: hidden;
}


.carousel-container {
  position: relative; /* ⬅️ ALSO IMPORTANT */
  max-width: 420px;
  min-height: 520px;
  margin: auto;
}


.sister-carousel .carousel {
  z-index: 1;
}


.sister-carousel .carousel__wrapper {
  position: relative;
  height: 420px;
}

.sister-carousel .item {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: sister-carousel 24s infinite ease-in-out;
}

.sister-carousel .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

/* Animation */
@keyframes sister-carousel {
  0% { opacity: 0; transform: translateX(100%) scale(0.8); }
  10% { opacity: 1; transform: translateX(0) scale(1); }
  30% { opacity: 1; }
  40% { opacity: 0; transform: translateX(-100%) scale(0.8); }
  100% { opacity: 0; }
}
.masonry {
  margin-top: 20px;
}
/* ===== Omar Special Section ===== */

.omar {
  text-align: center;
  background: radial-gradient(circle at top, #fff, #ffe4ec);
  border-radius: 60px;
  padding-top: 90px;
  padding-bottom: 90px;
}

.omar h2 {
  font-size: 3.2rem;
  margin-bottom: 50px;
}

/* Image layout */
.omar-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
}

.omar-frame {
  width: 220px;
  height: 320px;
  border-radius: 30px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Side images */
.omar-frame.left {
  transform: rotate(-6deg) scale(0.9);
  opacity: 0.8;
}

.omar-frame.right {
  transform: rotate(6deg) scale(0.9);
  opacity: 0.8;
}

/* Center image (hero) */
.omar-frame.center {
  transform: scale(1.05);
  z-index: 2;
}

/* Hover magic */
.omar-frame:hover {
  transform: scale(1.1) rotate(0deg);
  box-shadow: 0 30px 60px rgba(255, 111, 145, 0.4);
  opacity: 1;
}

/* Text */
.omar-text {
  font-size: 1.25rem;
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto 50px;
}
/* Omar image wrapper */
.omar-frame {
  position: relative;
  width: 220px;
  height: 320px;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  background: white;
}

/* Actual image */
.omar-img {
  width: 100%;
  height: 100%;
  background-size: cover;       /* default */
  background-position: center;
}

/* Center image: show FULL picture */
.omar-frame.contain .omar-img {
  background-size: contain;     /* ⬅️ key requirement */
  background-repeat: no-repeat;
}

/* Overlay label */
.omar-label {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.85);
  color: var(--pink-dark);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 2;
  white-space: nowrap;
}

/* Hover enhancement */
.omar-frame:hover .omar-label {
  background: var(--pink-dark);
  color: white;
}
/* ===== Cinematic Section ===== */

.cinematic {
  background: linear-gradient(180deg, #fff, #ffe4ec);
  border-radius: 60px;
  padding-top: 100px;
  padding-bottom: 120px;
  text-align: center;
}

.cinematic-title {
  font-size: 2.6rem;
  line-height: 1.4;
  color: var(--pink-dark);
  margin-bottom: 80px;
}

/* Story container */
.cinematic-story {
  display: flex;
  flex-direction: column;
  gap: 100px;
  max-width: 900px;
  margin: auto;
}

/* Each scene */
.scene {
  position: relative;
}

/* Image */
.scene img {
  width: 100%;
  height: auto;              /* FULL IMAGE */
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

/* Caption */
.caption {
  margin-top: 20px;
  font-size: 1.2rem;
  font-style: italic;
  color: #555;
}

/* Slight cinematic motion */
.scene:nth-child(odd) {
  transform: translateX(-20px);
}

.scene:nth-child(even) {
  transform: translateX(20px);
}

/* Button spacing */
.cinematic-btn {
  margin-top: 100px;
}
.scene {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.2s ease,
    transform 1.2s ease;
}

.scene.visible {
  opacity: 1;
  transform: translateY(0);
}
/* ===== Slow Zoom Effect ===== */

.scene img {
  animation: slowZoom 5s ease-in-out infinite alternate;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}
.scene:nth-child(odd) img {
  transform-origin: left center;
}

.scene:nth-child(even) img {
  transform-origin: right center;
}
/* ===== Letter Popup ===== */

.letter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 182, 193, 0.4);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.letter-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.letter-card {
  background: white;
  border-radius: 40px;
  padding: 50px 45px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 40px 80px rgba(0,0,0,0.25);
  text-align: center;
  position: relative;
  animation: popIn 0.5s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.letter-card h3 {
  color: var(--pink-dark);
  margin-bottom: 30px;
  font-size: 1.8rem;
}

#typed-letter {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #444;
  white-space: pre-line;
}

.letter-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.6;
}

.letter-close:hover {
  opacity: 1;
}
/* Letter pagination */
.letter-card {
  max-height: 80vh;
}

.letter-next {
  margin-top: 30px;
  background: var(--pink-dark);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 0.95rem;
  cursor: pointer;
}

.letter-next.hidden {
  display: none;
}
/* Tiny hearts between pages */
.page-heart {
  position: fixed;
  font-size: 18px;
  opacity: 0;
  animation: pageHeart 1.2s ease forwards;
  pointer-events: none;
  z-index: 10000;
}

@keyframes pageHeart {
  0% {
    transform: translateY(10px) scale(0.6);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(-40px) scale(1.2);
    opacity: 0;
  }
}
/* Letter page fade */
#typed-letter {
  transition: opacity 0.4s ease;
}

#typed-letter.fade-out {
  opacity: 0;
}

#typed-letter.fade-in {
  opacity: 1;
}
/* Blinking cursor */
.cursor {
  display: inline-block;
  margin-left: 4px;
  width: 8px;
  height: 1.2em;
  background: var(--pink-dark);
  animation: blink 1s infinite;
  vertical-align: bottom;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
/* Stronger dim on final page */
.letter-overlay.final {
  background: rgba(255, 182, 193, 0.6);
}
/* ===== Music Player ===== */

.music {
  background: white;
  border-radius: 50px;
  color: white;
  text-align: center;
  transition: background 1s ease;
}
.music h2 {
  transition: color 1s ease;
}
.music-container {
  max-width: 520px;
  margin: auto;
}

.music input {
  display: none;
}

.cards {
  position: relative;
  height: 260px;
  margin-bottom: 30px;
}

.card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 70%;
  height: 100%;
  transition: transform 0.4s ease, opacity 0.4s ease;
  cursor: pointer;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* RESET default */
.music .card {
  transform: translateX(0) scale(0.7);
  opacity: 0;
  z-index: 0;
}

/* CENTER */
#m1:checked ~ .cards label:nth-child(1),
#m2:checked ~ .cards label:nth-child(2),
#m3:checked ~ .cards label:nth-child(3),
#m4:checked ~ .cards label:nth-child(4),
#m5:checked ~ .cards label:nth-child(5),
#m6:checked ~ .cards label:nth-child(6),
#m7:checked ~ .cards label:nth-child(7) {
  transform: translateX(0) scale(1);
  opacity: 1;
  z-index: 3;
}

/* LEFT */
#m1:checked ~ .cards label:nth-child(7),
#m2:checked ~ .cards label:nth-child(1),
#m3:checked ~ .cards label:nth-child(2),
#m4:checked ~ .cards label:nth-child(3),
#m5:checked ~ .cards label:nth-child(4),
#m6:checked ~ .cards label:nth-child(5),
#m7:checked ~ .cards label:nth-child(6) {
  transform: translateX(-40%) scale(0.8);
  opacity: 0.4;
  z-index: 2;
}

/* RIGHT */
#m1:checked ~ .cards label:nth-child(2),
#m2:checked ~ .cards label:nth-child(3),
#m3:checked ~ .cards label:nth-child(4),
#m4:checked ~ .cards label:nth-child(5),
#m5:checked ~ .cards label:nth-child(6),
#m6:checked ~ .cards label:nth-child(7),
#m7:checked ~ .cards label:nth-child(1) {
  transform: translateX(40%) scale(0.8);
  opacity: 0.4;
  z-index: 2;
}


.music input:checked ~ .cards .card {
  opacity: 0.4;
}

/* Player */
.player {
  background: #ffe4ec;
  border-radius: 20px;
  padding: 20px;
}

#playPause {
  background: var(--pink-dark);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  margin-bottom: 10px;
}

.track-info {
  margin-bottom: 10px;
  font-weight: 600;
}

.progress-bar {
  height: 4px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  position: relative;
  height: 6px;
  width: 100%;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: var(--pink-dark);
  transition: width 0.2s linear;
}
/* Floating words */
.floating-word {
  position: fixed;
  font-size: 1rem;
  color: rgba(255, 111, 145, 0.6);
  animation: floatWord 4s ease forwards;
  pointer-events: none;
  z-index: 9999;
}

@keyframes floatWord {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  20% { opacity: 1; }
  to {
    transform: translateY(-80px);
    opacity: 0;
  }
}
/* Birthday popup */
.birthday-popup {
  position: fixed;
  inset: 0;
  background: rgba(255,182,193,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100000;
}

.birthday-popup.active {
  display: flex;
}

.birthday-card {
  background: white;
  padding: 50px 60px;
  border-radius: 40px;
  font-size: 2rem;
  animation: birthdayPop 1s ease;
}

@keyframes birthdayPop {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
/* ===== Floating Love Elements ===== */

.floating-word,
.floating-love {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}

/* Words */
.floating-word {
  font-size: 1rem;
  color: rgba(255, 111, 145, 0.6);
  animation: floatWord 6s ease forwards;
}

/* Hearts & love shapes */
.floating-love {
  font-size: 22px;
  animation: floatLove 5s ease forwards;
}

/* Word animation */
@keyframes floatWord {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  100% {
    transform: translateY(-90px);
    opacity: 0;
  }
}

/* Love animation (lighter, playful) */
@keyframes floatLove {
  0% {
    transform: translateY(10px) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  100% {
    transform: translateY(-120px) scale(1.2) rotate(15deg);
    opacity: 0;
  }
}
/* Password field with eye */
.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding: 14px 45px 14px 14px; /* space for eye */
  border-radius: 25px;
  border: 1px solid #ddd;
  text-align: center;
  font-size: 1rem;
}

.toggle-eye {
text-align: center;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.toggle-eye:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}
