/* ========== 1. GLOBAL RESETS & SHARED UTILITIES ========== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;900&family=Space+Mono:wght@700&display=swap");

.ps-lg-5 {
  padding-left: 4rem !important;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none !important;
  color: inherit;
  transition: color 0.2s;
}

a:hover {
  color: #8da2fb;
}

.btn-neo {
  border: 2px solid black;
  border-radius: 50px;
  padding: 10px 25px;
  font-family: "Space Mono", monospace;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
  box-shadow: 4px 4px 0px 0px black;
  transition: all 0.1s;
  cursor: pointer;
  color: black;
  display: inline-block;
}

.btn-neo:active {
  box-shadow: 2px 2px 0px 0px black;
  transform: translate(2px, 2px);
}

.btn-neo:hover {
  background-color: #ffb1c6;
}
.bg-blue {
  background-color: #a2b2f7;
}
.text-blue {
  color: #a2b2f7;
}
.text-pink {
  color: #f9a8d4;
}
.heading-bold {
  font-family: "Arial Black", sans-serif;
  color: #000;
}

/* ========== 2. NAVBAR SECTION ========== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transition: transform 0.3s ease-in-out;
  transform: translateY(0);
  z-index: 1030;
}

.nav-logo {
  height: 45px; /* Adjust this value to shrink/enlarge */
  width: auto; /* Keeps the aspect ratio perfect */
  display: block; /* Removes any weird bottom spacing */
}

.nav-up {
  transform: translateY(-100%) !important;
}
div.vr {
  border: 1px solid rgb(0, 0, 0);
}

div.navbar-nav {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
}

.modal-content.signup-card {
  border: 3px solid black;
  border-radius: 40px;
  overflow: hidden;
}

.modal-header.login-header {
  border-bottom: 3px solid black;
  padding: 20px 20px 10px 20px;
}

.modal-backdrop {
  background-color: #000;
}
.modal-backdrop.show {
  opacity: 0.7;
}
.neo-input::placeholder {
  letter-spacing: 2px;
}

.error-header {
  background-color: #ff5858;
  border-bottom: 3px solid black;
  padding: 10px 20px;
}
.success-header {
  border-bottom: 3px solid black;
  padding: 10px 20px;
}

/* ============= 2.5 LOGIN MODAL ============= */
/* Shake animation for the modal on error */
.shake {
  animation: shake-anim 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake-anim {
  10%,
  90% {
    transform: translate3d(-1px, 0, 0);
  }
  20%,
  80% {
    transform: translate3d(2px, 0, 0);
  }
  30%,
  50%,
  70% {
    transform: translate3d(-4px, 0, 0);
  }
  40%,
  60% {
    transform: translate3d(4px, 0, 0);
  }
}

/* Optional: Style for the inline error alert */
#loginAlert {
  border: 2px solid #000;
  border-radius: 0;
  font-weight: 700;
  /* A softer, sophisticated coral/red */
  background-color: #ff8585;
  color: #000; /* Black text is easier to read on lighter reds */
  box-shadow: 3px 3px 0px #000;
  letter-spacing: 0.5px;
}

/* ========== 3. BANNER & PRODUCT GRID ========== */
#banner-section {
  padding-top: 10px;
  background-image: url("../images/bannerGradientbg.png");
  background-size: cover;
}
#banner-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 3rem);
  color: #000000;
  letter-spacing: -1px;
  margin-top: 1rem;
  overflow: hidden;
}
/* 1. Base Desktop Style (1024px and up) */
.floating-bag {
  position: absolute;
  top: 11%; /* Vertical center relative to the blue header/text */
  right: -15px; /* Adjust this to control how much it overlaps the right edge */
  transform: translateY(-50%);
  z-index: 10;
  width: 120%; /* Makes it larger than the col-md-5 container */
  max-width: none;
  /* Percentage-based crop ensures it scales with the image size */
  clip-path: inset(0 0 12% 0);
  transition: all 0.3s ease-in-out;
}

#search-bar {
  padding: 0 15px 0 45px;
  height: 50px;
  border: 2px solid black;
  border-radius: 50px;
  box-shadow: 4px 4px 0px 0px black;
  font-family: "Space Mono", monospace;
  outline: none;
}

.bi-search {
  z-index: 5;
  pointer-events: none;
  font-size: 1.2rem;
}

#product-grid-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  padding: 0 15px;
}

#product-grid-container .col {
  flex: 1 1 100%;
  max-width: 100%;
  margin-bottom: 3rem;
}

.neo-card {
  border: 3px solid black !important;
  border-radius: 25px !important;
  background-color: white;
  box-shadow: 10px 10px 0px 0px black;
  max-width: 800px;
  position: relative;
}

.product-header {
  border-bottom: 3px solid black;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  padding: 15px 0px;
  width: 100%;
}

/* ========== 4. DESCRIPTION & INFO SECTION ========== */

#info-section {
  background-color: #ffedfd;
  padding: 80px;
}

#description {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 40px 20px;
}

#description-section {
  background:
    linear-gradient(135deg, rgba(255, 237, 253, 0.94) 0%, rgba(255, 200, 226, 0.92) 48%, rgba(255, 160, 199, 0.9) 100%);
  border-top: 2px solid rgba(0, 0, 0, 0.08);
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

#description .col {
  width: 100% !important;
  padding: 20px !important;
  position: relative;
}

#description .row {
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.65;
}

.description-heading {
  display: inline-block;
  font-weight: 900;
  font-size: 1.18em;
  line-height: 1.25;
}

.sticky-note {
  position: relative;
  background: #a2b2f7;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  z-index: 1;
}

.scrapbook-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 4px;
}

.tilt-left {
  transform: rotate(-4deg);
  max-width: 380px;
}
.tilt-right {
  transform: rotate(5deg);
  max-width: 340px;
  margin-top: 30px;
}

.tape {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 40px;
  background-color: #fdf6c1;
  opacity: 0.8;
  z-index: 2;
}

.absolute-arrow {
  position: absolute;
  top: -90px;
  left: -10px;
  width: 100px;
  z-index: 5;
  transform: scaleX(-1) rotate(10deg);
}

/* Container Tweaks */
#info-section {
  background-color: #ffedfd; /* Your pink background */
  padding: 100px 0;
  position: relative;
}

/* Character Positioning */
.character-wrapper {
  position: absolute;
  bottom: -95px; /* Pushes her legs onto the white section below */
  left: 1%;
  z-index: 100;
  width: 220px;
}

.character-img {
  width: 100%;
  height: auto;
}

/* Gallery Layering */
.gallery-height {
  min-height: 550px;
}

.scrapbook-card {
  position: absolute;
  border: 4px solid white;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.purple-card {
  width: 450px;
  height: 450px;
  top: 0;
  right: 20px;
  z-index: 1;
}

.yellow-card {
  width: 200px;
  height: 200px;
  bottom: 50px;
  left: 150px;
  z-index: 5;
  cursor: pointer;
}

.yellow-card:hover {
  transform: rotate(0deg) scale(1.05);
}

.scrapbook-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Decorations */
.deco-exclamation {
  position: absolute;
  top: -40px;
  left: 0;
  width: 60px;
}
.deco-swirl {
  position: absolute;
  bottom: 0;
  right: -20px;
  width: 80px;
}

/* Responsive */
@media (max-width: 768px) {
  .gallery-height {
    min-height: 700px;
  }
  .purple-card {
    width: 100%;
    height: 350px;
    position: relative;
    right: auto;
    margin: 0 auto;
  }
  .yellow-card {
    width: 150px;
    height: 150px;
    bottom: 20px;
    left: 10px;
  }
  .character-wrapper {
    position: relative;
    bottom: 0;
    margin: 40px auto -100px auto;
    width: 150px;
  }
}

@media (max-width: 991px) {
  .navbar .container-fluid {
    display: flex !important;
    align-items: center;
  }
  /* Keeps the brand/logo from taking up too much room */
  .navbar-brand {
    max-width: 50%;
  }
}
/* ========== 5. ABOUT & INSTRUCTIONS ========== */

#about {
  background-color: #ffffff;
}

#about-section {
  scroll-margin-top: 25px;
}

.about-title {
  font-family: "Arial Black", sans-serif;
  font-size: 2.8rem;
  letter-spacing: -1px;
  padding: 40px 0;
}

.about-description {
  text-align: justify !important;
}

.highlight-pink {
  color: #f9a8d4;
}

#instruction-header {
  font-size: 2.5rem;
  font-weight: bold;
}

.header-banner-wrapper {
  padding: 20px;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  position: relative;
}

.header-character {
  position: absolute;
  right: 10px;
  bottom: -1px;
}

.about-card-frame {
  line-height: 0;
  border: 10px solid #a2b2f7;
  border-radius: 40px;
  overflow: hidden;
  background: #a2b2f7;
}

.main-frame {
  width: 500px;
  height: 500px;
}
.landscape-frame {
  width: 100%;
  max-width: 550px;
  height: 250px;
}

.landscape-about-img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: 30% 70%;
}

#instruction-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 50px;
}

.icon-box {
  width: 220px;
  height: 220px;
  background-color: #ebe3ff;
  border-radius: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px auto;
}

/* ========== 6. FOOTER SECTION ========== */
.footer-heading {
  font-family: "Arial Black", sans-serif;
  font-size: 2.2rem;
}
.social-icon {
  border: 2px solid #000;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-char-wrapper {
  position: absolute;
  left: 250px;
  bottom: -45px;
}
.footer-char {
  height: 120px;
}

.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 5px;
  position: relative;
  padding-left: 12px;
}
.footer-links li::before {
  content: "•";
  position: absolute;
  left: 0;
}

/* ========== 7. MEDIA QUERIES (RESPONSIVE) ========== */

@media (min-width: 992px) {
  .navbar-collapse {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }
  #product-grid-container .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
  #instruction-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
  }
  .neo-card {
    width: 90%;
  }
}

@media (max-width: 1024px) {
  .navbar .container-fluid {
    display: flex !important;
    justify-content: space-between !important;
  }

  /* Icons stay beside hamburger */
  .navbar .ms-auto {
    margin-left: auto !important;
    margin-right: 1rem !important;
  }

  /* Links Aligned to Start */
  .navbar-nav {
    align-items: flex-start !important;
    text-align: left !important;
    padding: 20px 0;
    width: 100%;
    margin-right: 20px !important;
  }

  .nav-link {
    width: 100%;
    padding: 12px 0 !important;
    display: flex;
    justify-content: center;
  }

  .navbar-nav .vr {
    display: none !important; /* Hide vertical lines on stack */
  }

  /* Sticky Note Reset */
  .sticky-note {
    transform: none !important;
    margin-bottom: 20px;
  }
  .absolute-arrow {
    display: none;
  }

  /* Optimization for Tablets and Mobile (1024px and below) */
  @media (max-width: 1024px) {
    /* Fix Heading Size */
    .footer-heading {
      font-size: 1.8rem !important;
      text-align: center;
    }

    /* Center the Shop Button and Socials */
    #main-footer .col-md-5 {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      margin-bottom: 3rem;
    }

    /* RESET CHARACTER POSITIONING */
    /* This prevents the girl from floating over links */
    .footer-char-wrapper {
      position: relative !important;
      left: 0 !important;
      bottom: 0 !important;
      margin-top: 20px;
      text-align: center;
      width: 100%;
    }

    .footer-char {
      height: 100px; /* Slightly smaller for better fit */
    }

    /* Fix Link Columns */
    #main-footer .col-md-7 .row-cols-3 {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
    }

    #main-footer .col-md-7 .col {
      flex: 0 0 45%; /* Two columns per row on tablets */
      max-width: 45%;
      margin-bottom: 20px;
    }
  }

  /* Specific Mobile Optimization (768px and below) */
  @media (max-width: 768px) {
    #main-footer .col-md-7 .col {
      flex: 0 0 100%; /* Full width stack on mobile */
      max-width: 100%;
      align-items: center !important; /* Center the links */
      text-align: center;
    }

    .footer-links li {
      padding-left: 0;
    }

    .footer-links li::before {
      display: none; /* Remove bullet points for centered mobile list */
    }
  }
  /* Optional: Scale down icons slightly for mobile */
}

@media (max-width: 991px) {
  .navbar-collapse .btn-neo {
    width: 80%;
    max-width: 200px;
    margin: 20px auto;
    display: block;
  }
  .navbar-nav {
    padding-bottom: 20px;
    align-items: start;
  }
  .nav-link {
    display: flex;
    justify-content: start;
  }
}

/* Consolidated 768px Breakpoint - Using latest logic */
@media (max-width: 768px) {
  .footer-shopnow {
    padding: 2px;
    font-size: small;
  }
  /* Banner & General */

  .header-character {
    display: none;
  }
  #banner-text {
    font-size: 2.2rem;
    text-align: center;
  }
  #about {
    padding: 40px 20px;
  }
  .about-title {
    font-size: 2.2rem;
    text-align: center;
  }
  .about-content {
    text-align: center;
    padding: 0 10px;
  }

  /* Info Section & Gallery */
  #info-section {
    padding: 50px;
  }
  .gallery-height {
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    padding: 20px 0;
  }

  .deco-exclamation,
  .deco-swirl {
    display: none;
  }

  /* Character & Footer */
  .character-wrapper {
    position: relative;
    bottom: 0;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .footer-char-wrapper {
    position: relative;
    left: 0;
    bottom: 0;
    text-align: center;
  }
  #main-footer .row-cols-3 {
    flex-direction: column;
    gap: 2rem;
  }

  /* About Frame Compatibility */
  .main-frame {
    height: auto !important;
    min-height: 250px;
    max-height: 400px;
    width: 100%;
    max-width: 90%;
    margin: 0 auto;
    border-width: 6px;
  }

  .about-img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
  }

  .landscape-frame {
    height: auto !important;
    min-height: 150px;
    max-height: 250px;
  }

  .col-md-5.position-relative {
    /* Ensure the container has height even when the bag is absolute */
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .product-description {
    text-align: center;
  }
}

/* Custom Split: 40% Image, 60% Form */
@media (min-width: 768px) {
  .col-signup-img {
    flex: 0 0 40% !important;
    max-width: 40% !important;
  }

  .col-signup-form {
    flex: 0 0 60% !important;
    max-width: 60% !important;
  }
}
/* Custom Split: 40% Image, 60% Form */
@media (max-width: 450px) {
  .ps-lg-5 {
    padding-left: 0 !important;
  }
}

/* Ensure the form card doesn't look too stretched on wide screens */
.shadow-card {
  max-width: 650px; /* Limits the form width so it stays neat */
  margin: 0 auto;
}
