@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&family=Cormorant+Garamond:wght@500;600&family=Nunito:wght@300;400&display=swap');

/* ----------------------------- */
/* RESPONSIVE BANNER HEADER */
/* ----------------------------- */
.banner-header {
  height: 600px;
  background-image: url('../Images/banner.png');
  background-size: cover;          /* fills the banner */
  background-position: top center; /* prevents stretching */
  background-repeat: no-repeat;
}

@media (max-width: 768px) {
  .banner-header {
    height: 250px;
    background-position: top center;
  }
}

@media (max-width: 480px) {
  .banner-header {
    height: 200px;
  }
}

/* ----------------------------- */
/* ROMANTIC TYPOGRAPHY */
/* ----------------------------- */

h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 3.2rem;
  text-align: center;
  color: #0d0f1a;
  margin-bottom: 25px;
  padding: 10px 0;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(0,150,255,0.25);
}

h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #0d0f1a;
  letter-spacing: 0.3px;
  text-align: center;
}

p {
  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.85;
  color: #1a1d2b;
  margin-bottom: 20px;
  padding: 0 10px;
  text-align: center;
}

/* ----------------------------- */
/* GLASS CONTAINER */
/* ----------------------------- */

.container.card-section {
  padding: 50px 20px !important;
  border-radius: 22px;

  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);

  transform: translateY(-6px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.12),
    0 20px 50px rgba(0, 0, 0, 0.18),
    0 0 35px rgba(0, 150, 255, 0.25);

  border: 1px solid rgba(180, 210, 255, 0.4);
  transition: box-shadow .3s ease, transform .3s ease;
}

@media (min-width: 576px) {
  .container.card-section {
    padding: 60px 30px !important;
  }
}

@media (min-width: 992px) {
  .container.card-section {
    padding: 70px 40px !important;
  }
}

@media (max-width: 576px) {
  .container.card-section .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .container.card-section .col-12 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

/* ----------------------------- */
/* PREMIUM GLASS FLIP CARD */
/* ----------------------------- */

.flip-card {
  width: 18rem;
  height: 400px;
  perspective: 1200px;
  cursor: pointer;

  border-radius: 20px;
  overflow: hidden;

  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.35);

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.15),
    0 0 35px rgba(0, 150, 255, 0.25),
    inset 0 0 20px rgba(255, 255, 255, 0.15);

  transition: transform .25s ease, box-shadow .25s ease;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .8s cubic-bezier(.4, .2, .2, 1);
  transform-style: preserve-3d;
  border-radius: 20px;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* FRONT & BACK SHARED */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;

  border-radius: 20px;
  overflow: hidden;

  box-shadow:
    0 0 25px rgba(0, 150, 255, 0.25),
    0 0 45px rgba(0, 150, 255, 0.15);
}

/* FRONT IMAGE */
.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter: brightness(1.05) contrast(1.05);
  transition: transform .6s ease, filter .4s ease;
}

.flip-card:hover .flip-card-front img {
  filter: brightness(1.12) contrast(1.1);
}

.flip-card.flipped .flip-card-front img {
  transform: scale(1.1);
}

/* BACK SIDE */
.flip-card-back {
  background: rgba(230, 245, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transform: rotateY(180deg);

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px;
  text-align: center;

  font-family: 'Nunito', sans-serif;
  font-size: 1.15rem;
  color: #0d0f1a;
  line-height: 1.8;

  opacity: 0;
  transition: opacity .4s ease .3s;
}

.flip-card.flipped .flip-card-back {
  opacity: 1;
}

/* ----------------------------- */
/* HOVER / TOUCH EFFECT */
/* ----------------------------- */

@media (hover: hover) and (pointer: fine) {
  .flip-card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow:
      0 20px 40px rgba(0, 150, 255, 0.35),
      0 0 50px rgba(0, 150, 255, 0.25);
  }
}

@media (hover: none) and (pointer: coarse) {
  .flip-card:active {
    transform: scale(0.97);
    box-shadow:
      0 12px 30px rgba(0, 150, 255, 0.35),
      0 0 35px rgba(0, 150, 255, 0.25);
  }
}



.letter-card {
  width: 100%;
  max-width: 800px; /* increase if you want it bigger */
  margin: 40px auto; /* centers the card + adds top/bottom spacing */
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 40px 20px; /* top/bottom padding */
  display: flex;
  justify-content: center;
  align-items: center;
}

.letter-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}
