/* GLOBAL STYLES */
body {
  margin: 0;
  font-family: 'Poppins', 'Arial', sans-serif;
  background: linear-gradient(135deg, #1a1512, #2b221e);
  color: #edd6c8;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Cinzel', serif;
  margin: 0;
}

/* 🎬 INTRO LANDING SCREEN (FADES & DISAPPEARS IN 4 SECONDS WITHOUT JS) */
#landing {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, #3d312a 0%, #1a1512 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #edd6c8;
  z-index: 9999;
  text-align: center;
  
  /* Pure CSS handling: Runs fade effect, then completely uninstalls landing layout box */
  animation: fadeOutEffect 0.5s ease forwards, removeBlock 0s linear forwards;
  animation-delay: 4s, 4.5s; 
}

@keyframes fadeOutEffect {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes removeBlock {
  to { pointer-events: none; visibility: hidden; display: none; z-index: -10; }
}

.landing-content {
  padding: 20px;
  width: 100%;
  max-width: 600px;
}

.brand-title {
  font-size: 2.2rem;
  letter-spacing: 4px;
  color: #cbb29b;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.celebration-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 4px 15px rgba(0,0,0,0.6);
  margin-bottom: 10px;
}

.sub-text {
  font-size: 1rem;
  letter-spacing: 2px;
  color: #a89485;
  margin-bottom: 35px;
}

/* COUNTDOWN TIMERS */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.time-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid rgba(203, 178, 155, 0.3);
  min-width: 65px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.time-box span {
  display: block;
  font-size: 2.2rem;
  font-weight: bold;
  color: #ffffff;
}

.time-box label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #cbb29b;
}

/* 4-SECOND PROGRESS BAR ANIMATION */
.loader-container {
  width: 80%;
  max-width: 350px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.loader-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #cbb29b, #ffffff);
  border-radius: 10px;
  animation: loadProgress 4s linear forwards;
}

@keyframes loadProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* MAIN CONTENT (SLIDES UP GENTLY WHEN LANDING FADES) */
#mainContent {
  display: block; /* Always natively displayed now */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  animation: revealContent 0.8s ease forwards;
  animation-delay: 4.2s;
}

@keyframes revealContent {
  to { opacity: 1; transform: translateY(0); }
}

/* HEADER ELEMENTS */
header {
  text-align: center;
  padding: 40px 20px 20px;
}

.logo {
  width: 180px;
  margin-bottom: 20px;
  filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.5));
}

.section-heading {
  font-size: 2.2rem;
  color: #ffffff;
  margin-bottom: 5px;
}

.tagline {
  font-size: 1.1rem;
  color: #a89485;
  font-style: italic;
}

/* PRODUCTS GRID */
.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}

/* CARDS CONFIGURATION */
.card {
  background: #2b221e;
  border: 1px solid rgba(203, 178, 155, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.6);
  border-color: #cbb29b;
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.card-info {
  background: #1a1512;
  padding: 15px 10px;
  text-align: center;
}

.card p {
  margin: 0;
  font-weight: 600;
  font-size: 1.2rem;
  color: #edd6c8;
}

/* POPUP CONFIGURATION */
#popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  z-index: 99999;
  
  /* Triggers popup automatically right as the screen transitions */
  animation: displayPopup 0.1s linear forwards;
  animation-delay: 4.5s;
}

@keyframes displayPopup {
  to { display: flex; }
}

.popup-content {
  width: 85%;
  max-width: 380px;
  background: #2b221e;
  border: 2px solid #cbb29b;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.popup-content img {
  width: 100%;
  display: block;
}

#closeBtn {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  transition: color 0.2s;
}

#closeBtn:hover {
  color: #cbb29b;
}

/* FOOTER SETUP */
.footer {
  background: #1a1512;
  border-top: 2px solid #cbb29b;
  padding: 35px 20px;
  text-align: center;
  color: #ffffff;
  border-top-left-radius: 25px;
  border-top-right-radius: 25px;
  margin-top: 50px;
}

.footer h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #cbb29b;
}

/* SOCIAL CONTROLS */
.socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 15px auto 0;
}

.social-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  background: #2b221e;
  color: #edd6c8;
  border: 1px solid rgba(203, 178, 155, 0.2);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: all 0.3s;
  font-size: 1.1rem;
}

.social-btn:hover {
  transform: scale(1.02);
  color: #ffffff;
  background: #3d312a;
}

.facebook { border-left: 5px solid #1877f2; }
.instagram { border-left: 5px solid #e1306c; }
.whatsapp { border-left: 5px solid #25D366; }

/* SCREEN ADAPTABILITY BREAKPOINTS */
@media (min-width: 768px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
  .socials {
    flex-direction: row;
    max-width: 100%;
    justify-content: center;
  }
  .social-btn {
    flex: 1;
  }
  .brand-title { font-size: 3.5rem; }
  .celebration-title { font-size: 5rem; }
}

@media (min-width: 1024px) {
  .products {
    grid-template-columns: repeat(4, 1fr);
  }
}