/* ==========================================================================
   SSN Sudarshan Sweets & Namkeen Style Sheet
   ========================================================================== */

/* --- Custom Variables --- */
:root {
  --font-heading: 'Cinzel', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Brand Palette */
  --color-primary-blue: #0a2540;
  --color-dark-blue: #031022;
  --color-light-blue: #164e87;
  --color-accent-gold: #dfa938;
  --color-accent-gold-light: #f6e09e;
  --color-accent-gold-dark: #b38318;
  --color-accent-red: #d32f2f;
  
  /* Glassmorphism Styles */
  --glass-bg: rgba(3, 16, 34, 0.65);
  --glass-border: rgba(223, 169, 56, 0.2);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --glass-blur: blur(16px);
}

/* --- Base Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  color: #ffffff;
  overflow-x: hidden;
  background-color: var(--color-dark-blue);
  scroll-behavior: smooth;
}

/* --- Sweets Background & Overlay --- */
.bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
}

.bg-image {
  width: 100%;
  height: 100%;
  background-image: url('sweets_bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: scale(1.05);
  animation: bgPan 40s ease-in-out infinite alternate;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(10, 37, 64, 0.4) 0%, rgba(3, 16, 34, 0.96) 80%);
  pointer-events: none;
}

/* --- Floating Sparkles --- */
.sparkles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  background: radial-gradient(circle, var(--color-accent-gold-light) 0%, rgba(223, 169, 56, 0) 70%);
  border-radius: 50%;
  opacity: 0;
  animation: floatSparkle 8s ease-in-out infinite;
}

/* --- Main Layout --- */
.main-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 40px 20px 20px 20px;
  position: relative;
  z-index: 1;
}

/* --- Header / Logo --- */
.header {
  margin-bottom: 30px;
  text-align: center;
}

.logo-container {
  position: relative;
  display: inline-block;
  padding: 10px;
  border-radius: 50%;
  animation: logoEntrance 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-img {
  max-width: 280px;
  height: auto;
  border-radius: 12px;
  position: relative;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(223, 169, 56, 0.4);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-img:hover {
  transform: scale(1.05);
  border-color: var(--color-accent-gold);
}

/* Chakra spin glow behind the logo image */
.logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(223, 169, 56, 0.25) 0%, rgba(10, 37, 64, 0) 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  animation: chakraSpin 15s linear infinite;
  border: 1px dashed rgba(223, 169, 56, 0.15);
}

/* --- Glassmorphic Content Card --- */
.content-card {
  width: 100%;
  max-width: 850px;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  padding: 50px 45px;
  text-align: center;
  margin-bottom: 40px;
  animation: cardEntrance 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
  opacity: 0;
  transform: translateY(30px);
}

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--color-accent-gold-light);
  background: rgba(223, 169, 56, 0.1);
  border: 1px solid rgba(223, 169, 56, 0.3);
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 25px;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(223, 169, 56, 0.1);
}

.main-title {
  font-family: var(--font-heading);
  font-size: 42px;
  line-height: 1.25;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.main-title .highlight {
  color: var(--color-accent-gold);
  background: linear-gradient(135deg, var(--color-accent-gold-light) 0%, var(--color-accent-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 16px;
  color: #e2e8f0;
  line-height: 1.8;
  max-width: 680px;
  margin: 0 auto 35px auto;
  font-weight: 400;
}

/* --- Countdown Timer --- */
.countdown-wrapper {
  margin: 35px auto;
  display: flex;
  justify-content: center;
  width: 100%;
}

.timer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.timer-colon {
  font-size: 32px;
  font-family: var(--font-heading);
  color: var(--color-accent-gold);
  font-weight: bold;
  animation: pulseColon 1.5s ease-in-out infinite;
  margin-bottom: 22px;
}

.time-card {
  width: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(223, 169, 56, 0.15);
  border-radius: 16px;
  padding: 18px 5px;
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.05), 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.time-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent-gold);
  background: rgba(223, 169, 56, 0.06);
  box-shadow: 0 10px 25px rgba(223, 169, 56, 0.15);
}

.time-number-wrapper {
  overflow: hidden;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-number {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-heading);
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  display: inline-block;
  transition: transform 0.5s ease-in-out;
}

.time-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent-gold-light);
  margin-top: 8px;
  font-weight: 500;
}

/* --- Newsletter Section --- */
.newsletter-section {
  margin-top: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
}

.newsletter-section h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-accent-gold-light);
  margin-bottom: 8px;
}

.form-desc {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 25px;
}

.subscribe-form {
  display: flex;
  gap: 15px;
  max-width: 550px;
  margin: 0 auto;
}

.input-group {
  position: relative;
  flex: 1;
}

.email-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.email-input:focus {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.08);
}

.input-label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
  transition: all 0.3s ease;
}

/* Float label logic when input is not empty or focused */
.email-input:focus ~ .input-label,
.email-input:not(:placeholder-shown) ~ .input-label {
  top: 0;
  font-size: 11px;
  color: var(--color-accent-gold-light);
  background-color: #0d1e35;
  padding: 2px 8px;
  border-radius: 4px;
  transform: translateY(-50%) scale(0.95);
  border: 1px solid rgba(223, 169, 56, 0.2);
}

.input-focus-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%);
  transition: all 0.4s ease;
}

.email-input:focus ~ .input-focus-line {
  width: 100%;
  left: 0;
}

.submit-btn {
  background: linear-gradient(135deg, var(--color-accent-gold-dark) 0%, var(--color-accent-gold) 100%);
  color: var(--color-dark-blue);
  border: none;
  border-radius: 12px;
  padding: 0 30px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(223, 169, 56, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(223, 169, 56, 0.5);
  background: linear-gradient(135deg, var(--color-accent-gold) 0%, var(--color-accent-gold-light) 100%);
}

.btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
  transform: translateX(4px);
}

.form-message {
  margin-top: 15px;
  font-size: 13px;
  font-weight: 500;
  min-height: 20px;
  transition: all 0.3s ease;
}

.form-message.success {
  color: #10b981;
}

.form-message.error {
  color: #f87171;
}

/* --- Sneak Peek Carousel --- */
.sneak-peek-section {
  margin-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  width: 100%;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-accent-gold-light);
  margin-bottom: 25px;
}

.carousel-container {
  width: 100%;
  overflow-x: auto;
  padding: 10px 5px 20px 5px;
  cursor: grab;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.carousel-container::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.carousel-container {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.carousel-track {
  display: flex;
  gap: 20px;
  width: max-content;
}

.catalog-card {
  width: 220px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: left;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.catalog-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(223, 169, 56, 0.04);
  border-color: rgba(223, 169, 56, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 10px rgba(223, 169, 56, 0.1);
}

.card-image-wrapper {
  width: 100%;
  height: 120px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(223, 169, 56, 0.25);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.catalog-card:hover .card-img {
  transform: scale(1.12);
}

.catalog-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  color: #ffffff;
  font-weight: 700;
}

.catalog-card p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.6;
  font-weight: 400;
}

/* --- Contact & Location Info --- */
.store-info-section {
  margin-top: 45px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  text-align: left;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: rgba(223, 169, 56, 0.1);
  border: 1px solid rgba(223, 169, 56, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-gold);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.info-item:hover .info-icon {
  background: var(--color-accent-gold);
  color: var(--color-dark-blue);
  box-shadow: 0 0 15px rgba(223, 169, 56, 0.4);
}

.info-icon svg {
  width: 20px;
  height: 20px;
}

.info-item h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--color-accent-gold-light);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.info-item p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}

.info-item a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: var(--color-accent-gold);
}

/* --- Footer --- */
.footer {
  margin-top: auto;
  text-align: center;
  padding: 20px 0;
  width: 100%;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(223, 169, 56, 0.15);
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(223, 169, 56, 0.2);
}

.social-icon svg {
  width: 18px;
  height: 18px;
}

.copyright {
  font-size: 12px;
  color: #64748b;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes bgPan {
  0% { transform: scale(1.05) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1%, -1%); }
  100% { transform: scale(1.05) translate(0, 0); }
}

@keyframes logoEntrance {
  0% { opacity: 0; transform: scale(0.8) translateY(-20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes cardEntrance {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes chakraSpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes floatSparkle {
  0% { transform: translateY(0) scale(0); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-120px) scale(1.2); opacity: 0; }
}

@keyframes pulseColon {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 768px) {
  .main-container {
    padding: 20px 15px;
  }
  
  .logo-img {
    max-width: 220px;
  }
  
  .logo-glow {
    width: 250px;
    height: 250px;
  }
  
  .content-card {
    padding: 35px 20px;
    border-radius: 20px;
  }
  
  .main-title {
    font-size: 30px;
  }
  
  .subtitle {
    font-size: 14px;
    margin-bottom: 25px;
  }
  
  .timer-container {
    gap: 8px;
  }
  
  .timer-colon {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .time-card {
    width: 72px;
    padding: 12px 2px;
    border-radius: 12px;
  }
  
  .time-number {
    font-size: 28px;
  }
  
  .time-number-wrapper {
    height: 36px;
  }
  
  .time-label {
    font-size: 9px;
    letter-spacing: 1px;
    margin-top: 4px;
  }
  
  .subscribe-form {
    flex-direction: column;
    gap: 12px;
  }
  
  .submit-btn {
    padding: 16px 20px;
    border-radius: 12px;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 26px;
  }
  
  .badge {
    font-size: 11px;
    padding: 6px 14px;
  }
}
