@font-face {
  font-family: "Dearlove";
  src: url("fonts/Dearlove.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Patrick";
  src: url("fonts/patrick.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  /* Fotoğrafları kolayca değiştirebilmek için; istersen url(...) ile güncelle. */
  --photo-1: url("images/1.jpeg");
  --photo-2: url("images/2.jpeg");
  --photo-3: url("images/3.jpeg");
  --photo-4: url("images/4.jpeg");
  --photo-5: url("images/5.jpeg");
  --photo-6: url("images/1.jpeg");
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: "Patrick", "Arial", sans-serif;
  background: none !important;
}

body {
  position: relative;
}

/* Geçiş Overlay */
.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.transition-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.transition-title {
  font-family: "Dearlove", cursive;
  font-size: clamp(2rem, 8vw, 5rem);
  color: #8b0000;
  text-align: center;
  padding: 20px;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.transition-overlay.active .transition-title {
  opacity: 1;
  transform: scale(1);
}

.section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
}

/* Görünür ama henüz fade-in başlamamış section */
.section.is-visible {
  display: flex;
}

/* Fade-in olan (hedef) section */
.section.is-visible.active {
  opacity: 1;
  pointer-events: auto;
}

/* Ana Ekran (Section 0) */
#section-0 {
  background-image: url("assets/background.png");
  position: relative;
  overflow: hidden;
}

/* Pure Snow.js için özelleştirmeler - Tüm Sayfa İçin Tek Element */
#snow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Kar küresi efekti için kar tanelerini özelleştir */
#snow .snowflake {
  filter: blur(0.5px) drop-shadow(0 0 2px rgba(255, 255, 255, 0.6));
  opacity: 0.9;
}

/* Tüm sectionların content'leri kar yağışının üstünde olmalı */
.section .content {
  position: relative;
  z-index: 4;
}

@media (max-width: 768px) {
  #section-0 {
    background-image: url("assets/background-mobile.png");
  }
}

#section-0 .content {
  text-align: center;
  padding: 20px;
  max-width: 90%;
}

.snowman-icon {
  width: 80px;
  height: auto;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0s forwards;
}

.title-grey {
  font-family: "Dearlove", cursive;
  font-size: 3.5rem;
  color: #072814;
  font-weight: normal;
  margin-bottom: 0px;
  letter-spacing: 2px;
  line-height: 1.2;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.title-red {
  font-family: "Dearlove", cursive;
  font-size: 3.5rem;
  color: #b70000;
  font-weight: normal;
  margin-bottom: 30px;
  letter-spacing: 2px;
  line-height: 1.2;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.question {
  font-family: "Patrick", "Arial", sans-serif;
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 40px;
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.9s forwards;
}

.buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  font-family: "Patrick", "Arial", sans-serif;
  padding: 15px 30px;
  border: 2px solid #444;
  background: transparent;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  min-width: 180px;
  color: #000;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-no {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 1.2s forwards;
}

.btn-yes {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 1.5s forwards;
}

/* Section 1 - Hayır Teşekkürler */
#section-1 {
  background-image: url("assets/background.png");
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  #section-1 {
    background-image: url("assets/background-mobile.png");
  }
}

#section-1 .content {
  text-align: center;
  padding: 20px;
  max-width: 90%;
}

#section-1 .snowman-icon {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0s forwards;
}

.cookieman-icon {
  width: 90px;
  height: auto;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0s forwards;
}

.section1-title {
  font-family: "Dearlove", cursive;
  font-size: 3.5rem;
  color: #b70000;
  font-weight: normal;
  margin-bottom: 40px;
  letter-spacing: 2px;
  line-height: 1.2;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.btn-retry {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.5s forwards;
}

/* Section 2 - Evet İsterim */
#section-2 {
  background-image: url("assets/background.png");
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  #section-2 {
    background-image: url("assets/background-mobile.png");
  }
}

#section-2 .content {
  text-align: center;
  padding: 20px;
  max-width: 90%;
}

.section2-title {
  font-family: "Patrick", "Arial", sans-serif;
  font-size: 2.5rem;
  color: #b70000;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 3px;
  line-height: 1;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0s forwards;
}

.section2-subtitle {
  font-family: "Patrick", "Arial", sans-serif;
  font-size: 1.3rem;
  color: #703f3f;
  font-weight: 400;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.boxes-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.box-item {
  cursor: pointer;
  transition: transform 0.3s ease;
  opacity: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.box-item:nth-child(1) {
  animation: boxBounce 0.8s ease-out 0.6s forwards;
}

.box-item:nth-child(2) {
  animation: boxBounce 0.8s ease-out 0.8s forwards;
}

.box-item:nth-child(3) {
  animation: boxBounce 0.8s ease-out 1s forwards;
}

.box-item:nth-child(4) {
  animation: boxBounce 0.8s ease-out 1.2s forwards;
}

.box-item:hover {
  transform: scale(1.05);
}

.box-item img {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes boxBounce {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  25% {
    opacity: 1;
    transform: scale(1.15);
  }
  50% {
    opacity: 1;
    transform: scale(0.8);
  }
  75% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Section 3 - Box 1 Background */
#section-3 {
  position: relative;
  overflow: hidden;
}

#section-3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/box1-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.2);
}

#section-3.active::before {
  animation: backgroundScaleDown 0.8s ease-out forwards;
}

@keyframes backgroundScaleDown {
  0% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

#section-3 {
  flex-direction: column;
}

#section-3 .content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.bauble-stage {
  position: relative;
  width: min(1200px, 95vw);
  height: 90vh;
  margin: 0 auto;
  padding-top: 2vh;
}

/* Section 3 Footer */
.section3-footer {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 10vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  background: transparent;
  border-top: 3px solid #b70000;
}

.footer-title {
  font-family: "Dearlove", cursive;
  font-size: clamp(1rem, 4vw, 1.8rem);
  color: #b70000;
  font-weight: normal;
  letter-spacing: 2px;
  margin: 0;
}

.footer-back-btn {
  font-family: "Patrick", "Arial", sans-serif;
  padding: clamp(5px, 1.5vw, 8px) clamp(15px, 4vw, 25px);
  border: 2px solid #b70000;
  background: transparent;
  border-radius: 50px;
  font-size: clamp(0.7rem, 2vw, 0.9rem);
  cursor: pointer;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b70000;
  transition: all 0.3s ease;
}

.section3-footer {
  gap: clamp(15px, 4vw, 30px);
}

.footer-back-btn:hover {
  background: #b70000;
  color: #fff;
}

.bauble {
  position: absolute;
  top: 0;
  left: var(--x);
  width: var(--size, clamp(120px, 22vw, 190px));
  transform: translate(-50%, calc(-100% - var(--drop-target, 24vh)));
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.22, 0.8, 0.32, 1),
    opacity 0.8s ease-out;
  pointer-events: none;
  will-change: transform;
}

.bauble.dropped {
  transform: translate(-50%, 0);
  opacity: 1;
}

.bauble-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: calc(var(--drop-target, 24vh) + 2px);
  background: #660000;
  border-radius: 3px;
}

.bauble-body {
  position: absolute;
  top: var(--drop-target, 24vh);
  left: 50%;
  width: 100%;
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  transform-origin: top center;
}

.bauble.dropped .bauble-body {
  animation: swing 2.5s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes swing {
  0%,
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) rotate(3deg);
  }
}

.bauble-frame {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  position: relative;
  z-index: 2;
}

/* FOTOĞRAF */
.bauble-photo {
  position: absolute;
  width: 90%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  top: 63%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: var(
    --photo-url,
    radial-gradient(circle at 50% 50%, #d7f1ff, #a2d0ff 55%, #7fb7ff)
  );
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.18);
  z-index: 5;
}

.bauble-caption-svg {
  position: absolute;
  bottom: -26%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 60px;
  pointer-events: none;
  overflow: visible;
}

.bauble-caption {
  font-family: "Patrick", "Arial", sans-serif;
  font-size: clamp(0.6rem, 2.2vw, 1rem);
  fill: #3e010191;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.9));
  dominant-baseline: middle;
  text-anchor: middle;
}

#section-3.active .bauble {
  transition-delay: var(--delay, 0s);
}

@media (max-width: 768px) {
  .bauble-stage {
    width: 100%;
  }

  /* Mobil konumlar: ilk iki üstte yan yana, alttaki üçlü soldan-orta-sağdan iner */
  #section-3 .bauble:nth-child(1) {
    --x: 32%;
    --drop-target: 14vh;
    --size: clamp(95px, 40vw, 145px);
  }
  #section-3 .bauble:nth-child(2) {
    --x: 68%;
    --drop-target: 15vh;
    --size: clamp(95px, 40vw, 145px);
  }
  #section-3 .bauble:nth-child(3) {
    --x: 22%;
    --drop-target: 34vh;
    --size: clamp(100px, 42vw, 160px);
  }
  #section-3 .bauble:nth-child(4) {
    --x: 50%;
    --drop-target: 38vh;
    --size: clamp(105px, 45vw, 170px);
  }
  #section-3 .bauble:nth-child(5) {
    --x: 78%;
    --drop-target: 33vh;
    --size: clamp(100px, 42vw, 160px);
  }

  .bauble-caption-svg {
    width: 140%;
  }

  .bauble-caption {
    font-size: clamp(0.9rem, 3.5vw, 1.4rem);
  }
}

/* Tablet boyut ayarlaması */
@media (min-width: 769px) and (max-width: 1024px) {
  #section-3 .bauble {
    --size: clamp(100px, 18vw, 160px) !important;
  }

  .bauble-caption {
    font-size: clamp(0.5rem, 1.8vw, 0.9rem);
  }
}

@media (max-width: 768px) {
  #section-3::before {
    background-image: url("assets/box1-background-mobile.png");
  }
}

/* Section 4 - Box 2 Background */
#section-4 {
  position: relative;
  overflow: hidden;
}

#section-4::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/box2-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.2);
}

#section-4.active::before {
  animation: backgroundScaleDown 0.8s ease-out forwards;
}

@media (max-width: 768px) {
  #section-4::before {
    background-image: url("assets/box2-background-mobile.png");
  }
}

/* Section 4 Content */
#section-4 .content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.video-container {
  position: relative;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Desktop/Tablet Container */
.video-container-desktop {
  width: clamp(300px, 80vw, 900px);
  aspect-ratio: 16 / 9;
  background-image: url("assets/box2-video.png");
  padding-left: 8%;
}

.video-container-desktop .video-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-top: 10%;
}

.video-container-desktop .video-player {
  width: clamp(280px, 65%, 550px);
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-container-desktop .video-message {
  font-family: "Dearlove", cursive;
  font-size: clamp(0.8rem, 1.8vw, 1.1rem);
  color: #072814;
  margin-top: 1rem;
  max-width: clamp(280px, 55%, 550px);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

/* Mobile Container */
.video-container-mobile {
  display: none;
  width: clamp(250px, 90vw, 350px);
  aspect-ratio: 9 / 16;
  background-image: url("assets/box2-video-mobile.png");
  padding-top: 8%;
  justify-content: center;
  align-items: center;
}

.video-container-mobile .video-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 30%;
}

.video-container-mobile .video-player {
  width: clamp(150px, 75%, 280px);
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.video-container-mobile .video-message {
  font-family: "Dearlove", cursive;
  font-size: clamp(0.65rem, 3vw, 0.85rem);
  color: #072814;
  margin-top: 1rem;
  max-width: clamp(150px, 75%, 280px);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
  line-height: 1.3;
  text-align: center;
}

.video-player video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 768px) {
  .video-container-desktop {
    display: none;
  }

  .video-container-mobile {
    display: flex;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .video-container-desktop {
    width: clamp(400px, 75vw, 700px);
    padding-left: 10%;
  }

  .video-container-desktop .video-player {
    width: clamp(240px, 52%, 450px);
  }

  .video-container-desktop .video-message {
    font-size: clamp(0.75rem, 1.6vw, 1rem);
    max-width: clamp(240px, 52%, 450px);
  }
}

/* Section 5 - Box 3 Background */
#section-5 {
  position: relative;
  overflow: hidden;
}

#section-5::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/box3-background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: scale(1.2);
}

#section-5.active::before {
  animation: backgroundScaleDown 0.8s ease-out forwards;
}

@media (max-width: 768px) {
  #section-5::before {
    background-image: url("assets/box3-background-mobile.png");
  }
}

/* Section 5 Content */
#section-5 .content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.tree-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(5px, 1.5vw, 25px);
  width: 100%;
  height: 100%;
  max-height: 90vh;
}

.tree-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80vh;
  flex-shrink: 0;
}

.tree-image {
  height: 100%;
  width: auto;
  max-height: 80vh;
  object-fit: contain;
}

.wish-column {
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 2.5vh, 25px);
  width: clamp(160px, 22vw, 280px);
}

.wish-column-left .wish-box:nth-child(odd) {
  align-self: flex-start;
  margin-left: 0;
}

.wish-column-left .wish-box:nth-child(even) {
  align-self: flex-end;
  margin-right: 0;
}

.wish-column-right .wish-box:nth-child(odd) {
  align-self: flex-end;
  margin-right: 0;
}

.wish-column-right .wish-box:nth-child(even) {
  align-self: flex-start;
  margin-left: 0;
}

.wish-box {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #60593c;
  border-radius: 50px;
  padding: clamp(12px, 2vh, 20px) clamp(15px, 2vw, 25px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  transition-delay: var(--delay, 0s);
  max-width: 90%;
}

.wish-box.dropped {
  opacity: 1;
  transform: translateY(0);
}

.wish-box p {
  font-family: "Patrick", "Arial", sans-serif;
  font-size: clamp(0.85rem, 1.4vw, 1.15rem);
  color: #072814;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

/* Desktop delay'ler - zigzag sıralama */
.wish-box-1 {
  --delay: 0.2s;
}
.wish-box-2 {
  --delay: 0.5s;
}
.wish-box-3 {
  --delay: 0.8s;
}
.wish-box-4 {
  --delay: 1.1s;
}
.wish-box-5 {
  --delay: 0.35s;
}
.wish-box-6 {
  --delay: 0.65s;
}
.wish-box-7 {
  --delay: 0.95s;
}
.wish-box-8 {
  --delay: 1.25s;
}

@media (max-width: 768px) {
  .tree-container {
    flex-direction: column;
    gap: 15px;
  }

  .tree-wrapper {
    height: 50vh;
    order: 1;
  }

  .tree-image {
    max-height: 50vh;
  }

  .wish-column {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 8px;
  }

  .wish-column-left {
    order: 2;
  }

  .wish-column-right {
    order: 3;
  }

  .wish-column-left .wish-box:nth-child(odd),
  .wish-column-left .wish-box:nth-child(even),
  .wish-column-right .wish-box:nth-child(odd),
  .wish-column-right .wish-box:nth-child(even) {
    align-self: auto;
    margin: 0;
  }

  /* Mobil delay'ler - önce sol kolon tamamı, sonra sağ kolon */
  .wish-box-1 {
    --delay: 0.2s;
  }
  .wish-box-2 {
    --delay: 0.35s;
  }
  .wish-box-3 {
    --delay: 0.5s;
  }
  .wish-box-4 {
    --delay: 0.65s;
  }
  .wish-box-5 {
    --delay: 0.8s;
  }
  .wish-box-6 {
    --delay: 0.95s;
  }
  .wish-box-7 {
    --delay: 1.1s;
  }
  .wish-box-8 {
    --delay: 1.25s;
  }

  .wish-box {
    width: calc(50% - 6px);
    padding: 8px 10px;
    max-width: none;
  }

  .wish-box p {
    font-size: clamp(0.65rem, 2.5vw, 0.85rem);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .tree-container {
    gap: clamp(5px, 1vw, 15px);
  }

  .tree-wrapper {
    height: 70vh;
  }

  .tree-image {
    max-height: 70vh;
  }

  .wish-column {
    width: clamp(160px, 24vw, 260px);
  }

  .wish-box p {
    font-size: clamp(0.75rem, 1.6vw, 1rem);
  }
}

/* Section 6 - Mektup Stili */
#section-6 {
  background-color: #f5f0e6;
  position: fixed;
  overflow-y: auto !important;
  overflow-x: hidden;
  display: block !important;
}

#section-6.is-visible {
  display: block !important;
}

/* Section 6 Scroll Bar Stili */
#section-6::-webkit-scrollbar {
  width: 6px;
}

#section-6::-webkit-scrollbar-track {
  background: #f5f0e6;
}

#section-6::-webkit-scrollbar-thumb {
  background: #8b0000;
  border-radius: 3px;
}

#section-6::-webkit-scrollbar-thumb:hover {
  background: #6b0000;
}

/* Firefox için scroll bar */
#section-6 {
  scrollbar-width: thin;
  scrollbar-color: #8b0000 #f5f0e6;
}

#section-6 .content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100%;
  padding: clamp(15px, 3vw, 40px);
  padding-top: clamp(30px, 5vh, 60px);
  padding-bottom: clamp(80px, 10vh, 120px);
}

.letter-container {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(15px, 2vw, 30px);
}

.letter-title {
  font-family: "Patrick", "Arial", sans-serif;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  color: #8b0000;
  font-weight: 700;
  text-align: left;
  margin-bottom: clamp(20px, 4vh, 40px);
  letter-spacing: 2px;
}

.letter-text {
  font-family: "Patrick", "Arial", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  color: #703f3f;
  font-weight: 400;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: clamp(15px, 3vh, 25px);
}

.letter-signature {
  font-family: "Patrick", "Arial", sans-serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: #8b0000;
  font-weight: 400;
  text-align: right;
  margin-top: clamp(25px, 5vh, 45px);
}

@media (max-width: 768px) {
  #section-6 .content {
    padding: 20px 15px;
    align-items: flex-start;
    padding-top: 40px;
  }

  .letter-container {
    padding: 15px;
  }

  .letter-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 20px;
  }

  .letter-text {
    font-size: clamp(1rem, 4.5vw, 1.3rem);
    line-height: 1.7;
    text-align: left;
  }

  .letter-signature {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
    margin-top: 25px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .letter-title {
    font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  }

  .letter-text {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
  }
}

/* Geri Dön Butonu */
.back-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #8b0000;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.back-btn:hover {
  background: #6b0000;
  transform: scale(1.1);
}

/* Section 1'de geri dön butonu gizle */
#section-1 .back-btn {
  display: none;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  .snowman-icon {
    width: 70px;
    margin-bottom: 8px;
  }

  .cookieman-icon {
    width: 100px;
    margin-bottom: 10px;
  }

  .title-grey,
  .title-red {
    font-size: 2.5rem;
  }

  .section1-title {
    font-size: 2.5rem;
  }

  .question {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn {
    width: 100%;
    max-width: 220px;
    padding: 10px 20px;
    font-size: 0.8rem;
    min-width: 150px;
  }

  .back-btn {
    width: 45px;
    height: 45px;
    bottom: 20px;
    right: 20px;
    font-size: 1.3rem;
  }

  #section-1 h2,
  #section-2 h2 {
    font-size: 2rem;
  }

  .section1-title {
    font-size: 2rem;
  }

  .section2-title {
    font-size: 1.8rem;
  }

  .section2-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .boxes-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .snowman-icon {
    width: 90px;
  }

  .cookieman-icon {
    width: 110px;
  }

  .title-grey,
  .title-red {
    font-size: 3rem;
  }

  .question {
    font-size: 1.1rem;
  }

  .section1-title {
    font-size: 3rem;
  }

  .section2-title {
    font-size: 2.2rem;
  }

  .section2-subtitle {
    font-size: 1.2rem;
  }

  .boxes-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
  }
}

@media (min-width: 1025px) {
  .snowman-icon {
    width: 100px;
  }

  .cookieman-icon {
    width: 120px;
  }

  .title-grey,
  .title-red {
    font-size: 4rem;
  }

  .question {
    font-size: 1.3rem;
  }

  .section1-title {
    font-size: 4rem;
  }

  .section2-title {
    font-size: 2.5rem;
  }

  .section2-subtitle {
    font-size: 1.3rem;
  }

  .boxes-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* Alışveriş Sepeti Butonu */
.shop-button-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.shop-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  border: 2px solid #072814;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #072814;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.shop-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.shop-button:active {
  transform: scale(0.95);
}

.shop-button svg {
  width: 22px;
  height: 22px;
}

/* Popup Kutu */
.shop-popup {
  position: absolute;
  bottom: 70px;
  left: 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  padding: 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.9);
  transition: all 0.3s ease;
  overflow: hidden;
}

.shop-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.shop-popup::before {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 16px;
  height: 16px;
  background: white;
  transform: rotate(45deg);
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
}

.shop-popup-content {
  position: relative;
  z-index: 1;
  background: white;
  padding: 18px 20px;
  text-align: center;
}

.shop-brand {
  font-family: "Dearlove", cursive;
  font-size: 1.3rem;
  color: #072814;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.shop-popup-text {
  font-family: "Patrick", "Arial", sans-serif;
  font-size: 0.95rem;
  color: #072814;
  margin-bottom: 12px;
  font-weight: 500;
}

.shop-popup-link {
  display: inline-block;
  background: linear-gradient(135deg, #b70000 0%, #8b0000 100%);
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-family: "Patrick", "Arial", sans-serif;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(139, 0, 0, 0.3);
}

.shop-popup-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 0, 0, 0.4);
}

/* Mobil için düzenlemeler */
@media (max-width: 480px) {
  .shop-button-container {
    bottom: 15px;
    left: 15px;
  }

  .shop-button {
    width: 45px;
    height: 45px;
  }

  .shop-button svg {
    width: 20px;
    height: 20px;
  }

  .shop-popup {
    min-width: 200px;
  }

  .shop-popup-text {
    font-size: 0.85rem;
  }

  .shop-popup-link {
    font-size: 0.8rem;
    padding: 8px 16px;
  }
}
