/* Gen Z Premium Color Palette */
:root {
  --primary: #8b5cf6; /* Purple */
  --secondary: #6ee7b7; /* Mint green */
  --accent: #fbbf24; /* Amber */
  --background: #f9fafb; /* Light gray background */
  --dark: #111827; /* Near black */
  --card-bg: #ffffff; /* White */
  --text: #1f2937; /* Dark gray text */
  --muted: #6b7280; /* Medium gray */
  --danger: #ef4444; /* Red */
  --success: #10b981; /* Green */
  --warning: #f59e0b; /* Orange */
  --info: #3b82f6; /* Blue */
  --gradient-1: linear-gradient(90deg, #8b5cf6, #d8b4fe);
  --gradient-2: linear-gradient(90deg, #6ee7b7, #34d399);
  --gradient-3: linear-gradient(90deg, #fbbf24, #f59e0b);
  --gradient-4: linear-gradient(90deg, #ef4444, #f87171);
  --gold-gradient: linear-gradient(90deg, #ffd700, #ffb700);
  --box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  
  /* Gold Mode Variables - Enhanced Luxury Edition */
  --gold-primary: #d4af37; /* Rich gold */
  --gold-secondary: #f9d342; /* Bright gold */
  --gold-accent: #9d4edd; /* Royal purple - complementary to gold */
  --gold-background: #0f0c14; /* Deep dark blue-black */
  --gold-card: #1c1917; /* Dark charcoal with slight warmth */
  --gold-text: #f4dcb5; /* Warm off-white */
  --gold-muted: #c8b273; /* Muted gold */
  --gold-highlight: #ffdf80; /* Highlight gold */
  --gold-shadow: 0 10px 25px rgba(212, 175, 55, 0.15); /* Gold-tinted shadow */
  --gold-gradient-1: linear-gradient(135deg, #d4af37, #f9d342); /* Gold gradient */
  --gold-gradient-2: linear-gradient(135deg, #9d4edd, #c77dff); /* Purple gradient */
  --gold-border: rgba(212, 175, 55, 0.3); /* Subtle gold border */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  overflow-x: hidden;
  width: 100%;
  height: auto;
  min-height: 100%;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling for iOS */
}

body {
  touch-action: auto;
  font-family: 'Quicksand', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4, .logo {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.025em;
}

.app {
  max-width: 100%;
  overflow-x: hidden;
}
/* Modern Navbar Styles */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color:#f6e6ff;;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  padding: 0.7rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--dark);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon {
  font-size: 1.8rem;
  animation: spin 10s infinite linear;
  display: inline-block;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(45deg, #ab88fd, #7b00ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #8b5cf6, #7b00ff);
  transition: width 0.3s ease;
}

.logo-text:hover {
  transform: translateY(-2px);
  text-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.logo-text:hover::after {
  width: 100%;
}

/* Gold mode adjustments */
.gold-mode .logo-text {
  background: linear-gradient(45deg, var(--gold-primary), var(--gold-secondary));
  -webkit-background-clip: text;
  background-clip: text;
}

.gold-mode .logo-text::after {
  background: linear-gradient(45deg, var(--gold-primary), var(--gold-secondary));
}

.gold-mode .logo-text:hover {
  text-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(10deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-container {
  display: flex;
}

.nav-links {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.nav-link:before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  color: var(--primary);
  background-color: rgba(139, 92, 246, 0.05);
}

.nav-link:hover:before {
  width: 80%;
}

.nav-link i {
  
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.nav-link:hover i {
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center; /* Added to center content horizontally */
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #d8b4fe 100%);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
  margin: 0 auto; /* Added to center the button itself */

}
.theme-toggle-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4);
}

.theme-toggle-btn:active {
  transform: translateY(1px);
}

.toggle-icon {
  font-size: 1.2rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
}

.menu-icon, 
.menu-icon:before, 
.menu-icon:after {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--dark);
  position: absolute;
  transition: all 0.3s ease;
}

.menu-icon {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.menu-icon:before {
  content: '';
  top: -8px;
  left: 0;
}

.menu-icon:after {
  content: '';
  bottom: -8px;
  left: 0;
}

/* Mobile menu styles */
@media (max-width: 992px) {
  .nav-container {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--card-bg);
    overflow: hidden;
    transition: height 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .nav-container.active {
    height: auto;
  }
  
  .nav-links {
    flex-direction: column;
    padding: 1rem;
  }
  
  .nav-link {
    padding: 1rem;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-menu-btn.active .menu-icon {
    background-color: transparent;
  }
  
  .mobile-menu-btn.active .menu-icon:before {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-menu-btn.active .menu-icon:after {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Gold mode navbar adjustments */
.gold-mode .site-header {
  background-color: var(--gold-card);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.gold-mode .nav-link:before {
  background: var(--gold-primary);
}

.gold-mode .nav-link:hover {
  color: var(--gold-primary);
  background-color: rgba(212, 175, 55, 0.05);
}

.gold-mode .theme-toggle-btn {
  background: var(--gold-gradient-1);
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

.gold-mode .theme-toggle-btn:hover {
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.4);
}
/* Hero Section with Bento Grid */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 90vh;
  padding: 4rem 2rem;
  background: var(--gradient-1);
  color: white;
  border-radius: 0 0 30px 30px;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  position: relative;
  z-index: 2;
  perspective: 1000px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 700;
  background: linear-gradient(to right, #ffffff, #f0f0f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleReveal 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
  transform: translateY(30px) rotateX(10deg);
  transform-origin: center;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


.hero-title .highlight {
  position: relative;
  display: inline-block;
  color: plum;
  background: linear-gradient(to right,rgb(253, 252, 253),plum);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
text-decoration: underline rgb(168, 83, 168);
  text-transform: uppercase;
}
.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 0.8s 0.4s ease forwards;
  transform: translateY(20px);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-subtitle .highlight {
  color: white;
  background: var(--primary);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  display: inline-block;
  animation: subtitleHighlight 0.5s 1s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
  transform: scale(0.8);
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 0.8s 0.6s ease forwards;
  transform: translateY(20px);
  line-height: 1.7;
  font-weight: 400;
}

.hero-description strong {
  font-weight: 600;
  color: white;
  position: relative;
  display: inline-block;
}

.hero-description strong::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

/* New animations for enhanced typography */
@keyframes titleReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) rotateX(10deg);
    letter-spacing: 0.05em;
  }
  30% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    letter-spacing: -0.02em;
  }
}

@keyframes highlightPulse {
  0% {
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 15px rgba(251, 191, 36, 0.8);
  }
}

@keyframes underlineGrow {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

@keyframes subtitleHighlight {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Gold mode adjustments */
.gold-mode .hero-title {
  background: linear-gradient(to right, var(--gold-text), var(--gold-highlight));
  -webkit-background-clip: text;
  background-clip: text;
}

.gold-mode .hero-title .highlight {
  background: linear-gradient(to right, var(--gold-primary), var(--gold-secondary));
  -webkit-background-clip: text;
  background-clip: text;
}

.gold-mode .hero-title .highlight::after {
  background: linear-gradient(to right, var(--gold-primary), var(--gold-secondary));
}

.gold-mode .hero-subtitle .highlight {
  background: var(--gold-primary);
  color: var(--gold-card);
}
.cta-button {
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(90deg, white, #f0f0f0);
  color: var(--primary);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--box-shadow), 0 0 0 0 rgba(139, 92, 246, 0.3);
  animation: fadeInUp 0.8s 0.6s ease forwards, pulse 2s 4s infinite, glow 3s infinite alternate;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  transition: all 0.6s ease;
}

.cta-button::after {
  content: 'Let\'s Calculate!';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background-color: var(--primary);
  border-radius: 50px;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3), 0 0 20px rgba(139, 92, 246, 0.2);
  color: transparent;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover::after {
  opacity: 1;
  transform: scale(1);
}

.cta-button:active {
  transform: translateY(2px) scale(0.95);
}

@keyframes glow {
  0% {
    box-shadow: var(--box-shadow), 0 0 5px rgba(139, 92, 246, 0.3);
  }
  100% {
    box-shadow: var(--box-shadow), 0 0 20px rgba(139, 92, 246, 0.6);
  }
}

/* Gold mode version */
.gold-mode .cta-button {
  background: linear-gradient(90deg, var(--gold-text), #f0e6d2);
  color: var(--gold-primary);
  box-shadow: var(--gold-shadow), 0 0 0 0 rgba(212, 175, 55, 0.3);
  animation: fadeInUp 0.8s 0.6s ease forwards, pulse 2s 4s infinite, goldGlow 3s infinite alternate;
}

.gold-mode .cta-button::after {
  background-color: var(--gold-primary);
  color: var(--gold-card);
}

.gold-mode .cta-button:hover {
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.3), 0 0 20px rgba(212, 175, 55, 0.2);
}

@keyframes goldGlow {
  0% {
    box-shadow: var(--gold-shadow), 0 0 5px rgba(212, 175, 55, 0.3);
  }
  100% {
    box-shadow: var(--gold-shadow), 0 0 20px rgba(212, 175, 55, 0.6);
  }
}
/* Bento Grid Styling */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.bento-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  overflow: hidden;
  position: relative;
}

.bento-item.loaded {
  opacity: 1;
  transform: translateY(0);
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.15);
}

.bento-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.bento-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.bento-item p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.bento-item-1 {
  grid-column: 1;
  grid-row: 1;
}

.bento-item-2 {
  grid-column: 2;
  grid-row: 1;
}

.bento-item-3 {
  grid-column: 3;
  grid-row: 1;
}

.bento-item-4 {
  grid-column: 1;
  grid-row: 2;
}

.bento-item-5 {
  grid-column: 2 / span 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}

.bento-item-5 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  transition: all 0.5s ease;
}

.bento-item-5:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 1.5rem;
  border-radius: 0 0 20px 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.bento-item-5:hover .image-overlay {
  opacity: 1;
  transform: translateY(0);
}

.image-overlay p {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.bento-item-6 {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-counter {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Loading and Animation Effects */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
}

/* Gold mode version */
.gold-mode .hero {
  background: var(--gold-gradient);
}

.gold-mode .bento-item {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.gold-mode .bento-item:hover {
  background: rgba(212, 175, 55, 0.15);
}

.gold-mode .cta-button {
  background-color: var(--gold-text);
  color: var(--gold-primary);
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .bento-item-3 {
    grid-column: 1;
    grid-row: 2;
  }
  
  .bento-item-4 {
    grid-column: 2;
    grid-row: 2;
  }
  
  .bento-item-5 {
    grid-column: 1 / span 2;
    grid-row: 3;
  }
  
  .bento-item-6 {
    grid-column: 1 / span 2;
    grid-row: 4;
  }
}

@media (max-width: 576px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-item {
    grid-column: 1;
  }
  
  .bento-item-1 { grid-row: 1; }
  .bento-item-2 { grid-row: 2; }
  .bento-item-3 { grid-row: 3; }
  .bento-item-4 { grid-row: 4; }
  .bento-item-5 { grid-row: 5; }
  .bento-item-6 { grid-row: 6; }
  
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Section Styling */
section {
  padding: 5rem 2rem;
}

section h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

section h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  bottom: -10px;
  left: 25%;
  background: var(--gradient-1);
  border-radius: 10px;
}

.subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 3rem;
}
/* Calculator Section */
.calculator-section {
  background-color: rgb(241, 218, 252);
  border: #bf6bff 3px solid;
  position: relative;
  overflow: hidden;
  margin: 3rem 2rem;
  border-radius: 30px;
}

.calculator-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gradient-1);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.2;
  top: -100px;
  left: -100px;
  z-index: 0;
  animation: floatGlow 15s infinite alternate ease-in-out;
}

.calculator-section::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: var(--gradient-3);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  bottom: -100px;
  right: -100px;
  z-index: 0;
  animation: floatGlow 12s infinite alternate-reverse ease-in-out;
}

@keyframes floatGlow {
  0% { transform: translate(0, 0); }
  50% { transform: translate(40px, 20px); }
  100% { transform: translate(-20px, 40px); }
}

.calculator-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-bg);
 
  background-position: 10px 0, 10px 0, 0 0, 0 0;
  background-size: 20px 20px;
  background-repeat: repeat;
  border-radius: 20px;
  border: #ff6b6b 2px solid;;
  padding: 2.5rem;
  box-shadow: 
    var(--box-shadow),
    inset 0 0 20px rgba(139, 92, 246, 0.2),
    0 5px 0 rgba(139, 92, 246, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.2);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  overflow: hidden;
}


.calculator-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  transform: rotate(30deg);
  z-index: -1;
  pointer-events: none;
}

.calculator-container:hover {
  transform: translateY(-5px) rotateX(2deg);
  box-shadow: 
    0 20px 30px rgba(0, 0, 0, 0.1),
    inset 0 0 20px rgba(139, 92, 246, 0.3),
    0 5px 0 rgba(139, 92, 246, 0.2);
}

/* Gold mode version of the textured container */
.gold-mode .calculator-container {
 
  box-shadow: 
    var(--box-shadow),
    inset 0 0 20px rgba(255, 215, 0, 0.2),
    0 5px 0 rgba(255, 215, 0, 0.1),
    0 10px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.gold-mode .calculator-container::before {
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
}

.gold-mode .calculator-container:hover {
  box-shadow: 
    0 20px 30px rgba(0, 0, 0, 0.15),
    inset 0 0 20px rgba(255, 215, 0, 0.3),
    0 5px 0 rgba(255, 215, 0, 0.2);
}

.form-section {

  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  opacity: 1; /* Changed from 0 to 1 */
  transform: translateY(0); /* Changed from translateY(20px) to 0 */
}



.form-section:last-of-type {
  border-bottom: none;
}

.form-section h3 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.form-section h3::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-1);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.form-section:hover h3::after {
  transform: scaleX(1);
}

.form-group {
  margin-bottom: 1.8rem;
  transition: all 0.3s ease;
  transform-origin: left;
}

.form-group:hover {
  transform: scale(1.02);
}

.form-group label {
  display: block;
  margin-bottom: 0.7rem;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
  padding-left: 0.5rem;
}

.form-group label::before {
  content: '•';
  position: absolute;
  left: -5px;
  color: var(--primary);
  opacity: 0;
  transition: all 0.3s ease;
}

.form-group:hover label {
  color: var(--primary);
}

.form-group:hover label::before {
  opacity: 1;
  left: 0;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #ddd;
  border-radius: 16px;
  font-size: 1rem;
  font-family: 'Quicksand', sans-serif;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
  transform: translateY(-3px);
}

.checkbox-group {
  display: flex;
  align-items: center;
 
  border-radius: 12px;
  transition: all 0.3s ease;
  background-color: rgba(248, 248, 248, 0.5);
}

.checkbox-group:hover {
  background-color: rgba(139, 92, 246, 0.1);
}

.checkbox-group input {
  margin-right: 12px;
  accent-color: var(--primary);
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.checkbox-group:hover input {
  transform: scale(1.1);
}

.checkbox-group label {
  margin-bottom: 0;
  transition: all 0.3s ease;
}

.calculate-button {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background: var(--gradient-1);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
  margin-top: 2rem;
}

.calculate-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.calculate-button:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5);
  letter-spacing: 1px;
}

.calculate-button:hover::before {
  left: 100%;
}

.calculate-button:active {
  transform: translateY(2px);
}

/* Add scroll reveal animation */
@keyframes revealFromBottom {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  opacity: 0;
  animation: revealFromBottom 0.8s forwards;
  animation-play-state: paused;
}

.scroll-reveal.animated {
  animation-play-state: running;
}

/* Results Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal.show {
  opacity: 1;
}

.modal-content {
  position: relative;
  background-color: var(--card-bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 20%);
  border-radius: 20px;
  max-width: 600px;
  max-height: 80vh;
  width: 90%;
  padding: 2.5rem;
  box-shadow: 
    var(--box-shadow),
    0 20px 60px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  animation: modalPopIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow-y: auto;
  overflow-x: hidden;
  transform-style: preserve-3d;
  perspective: 1000px;
  border: 1px solid rgba(139, 92, 246, 0.1);
}

@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(30px) rotateX(10deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.05) translateY(-10px) rotateX(-5deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0) rotateX(0);
  }
}

.close-button {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  z-index: 10;
}

.close-button:hover {
  color: var(--primary);
  transform: rotate(90deg);
  background-color: rgba(139, 92, 246, 0.1);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.result-container {
  text-align: center;
  animation: fadeInUp 0.6s 0.2s both;
}

.result-amount {
  font-size: 4rem;
  font-weight: 800;
  color: var(--primary);
  margin: 1.5rem 0;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  animation: pulseGlow 3s infinite alternate;
  text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
  transform-style: preserve-3d;
}

.result-amount::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 30px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  bottom: -20px;
  left: -10%;
  border-radius: 50%;
  filter: blur(10px);
  animation: shadowPulse 3s infinite alternate;
  z-index: -1;
}

@keyframes shadowPulse {
  0% {
    opacity: 0.5;
    transform: scale(0.8);
  }
  100% {
    opacity: 0.8;
    transform: scale(1.2);
  }
}

@keyframes pulseGlow {
  0% {
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
    transform: scale(1);
  }
  100% {
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.7);
    transform: scale(1.05);
  }
}

#rupeeSymbol {
  margin-right: 0.3rem;
  display: inline-block;
  animation: flipIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes flipIn {
  0% {
    opacity: 0;
    transform: rotateY(90deg);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

.result-breakdown {
  margin-top: 2rem;
  text-align: left;
  background-color: rgba(248, 248, 248, 0.8);
  padding: 1.8rem;
  border-radius: 15px;
  box-shadow: 
    0 5px 15px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
  animation: slideInUp 0.6s 0.4s both;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

.result-breakdown::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  transform: rotate(30deg);
  z-index: -1;
  pointer-events: none;
}

.result-breakdown h3 {
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.result-breakdown h3::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 3px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-1);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 0.8s 0.8s forwards cubic-bezier(0.215, 0.61, 0.355, 1);
}

.result-breakdown ul {
  list-style: none;
}

.result-breakdown li {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px dashed rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
  animation: fadeInRight 0.5s calc(0.5s + var(--i, 0) * 0.1s) both;
  position: relative;
}

.result-breakdown li:hover {
  transform: translateX(5px);
  background-color: rgba(139, 92, 246, 0.05);
  border-radius: 8px;
  padding-left: 10px;
  padding-right: 10px;
}

.result-breakdown li:last-child {
  border-bottom: none;
  font-weight: 700;
}

.result-breakdown li span:first-child {
  color: var(--dark);
}

.result-breakdown li span:last-child {
  color: var(--primary);
  font-weight: 600;
}

.sharing-options {
  margin-top: 2.5rem;
  animation: fadeInUp 0.6s 0.6s both;
  position: relative;
}


.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.share-btn {
  padding: 0.8rem;
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceIn 0.5s calc(0.7s + var(--i, 0) * 0.2s) both;
  position: relative; /* Added position relative */
  overflow: hidden; /* Added overflow hidden */
}

.share-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: 1; /* Added z-index */
}

.share-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  position: relative; /* Added position relative */
  z-index: 2; /* Added z-index to appear above the pseudo-element */
}

.share-btn:hover i {
  transform: scale(1.2);
}

.share-btn:hover::before {
  left: 100%;
}

.share-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.share-btn:active {
  transform: translateY(2px) scale(0.95);
}

/* Social Media Button Styles */
.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  --i: 0;
  border: none;
}

.facebook {
  background: linear-gradient(135deg, #4267B2, #2B4170);
  color: #ffffff;
  --i: 1;
  border: none;
}

.twitter {
  background: linear-gradient(135deg, #1DA1F2, #0C85D0);
  color: #ffffff;
  --i: 2;
  border: none;
}

.whatsapp:hover,
.facebook:hover,
.twitter:hover {
  transform: translateY(-5px);
  filter: brightness(1.1);
}

.whatsapp:active,
.facebook:active,
.twitter:active {
  transform: translateY(2px);
}
/* Additional animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* Gold mode adjustments */
.gold-mode .modal-content {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 20%);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.gold-mode .close-button:hover {
  color: var(--gold-primary);
  background-color: rgba(212, 175, 55, 0.1);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.gold-mode .result-amount {
  background: var(--gold-gradient-1);
  -webkit-background-clip: text;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.gold-mode .result-amount::before {
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
}

.gold-mode .result-breakdown {
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.gold-mode .result-breakdown::before {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.gold-mode .result-breakdown h3::after {
  background: var(--gold-gradient-1);
}

.gold-mode .result-breakdown li {
  border-bottom: 1px dashed rgba(212, 175, 55, 0.2);
}

.gold-mode .result-breakdown li:hover {
  background-color: rgba(212, 175, 55, 0.05);
}

.gold-mode .result-breakdown li span:last-child {
  color: var(--gold-primary);
}

.gold-mode .sharing-options::before {
  background-color: var(--gold-primary);
  color: var(--gold-card);
}

/* Awareness Section Styles */
.awareness-section {
  padding: 80px 20px;
  background-color: var(--bg-color);
  position: relative;
  overflow: hidden;
}

.awareness-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 
  background-size: cover;
  background-position: center;
  opacity: 0.05;
  z-index: 0;
}

.awareness-section .section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.awareness-section .subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
}

/* Bento Grid Layout */
.bento-grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bento-card {
  background-color: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.bento-card.large {
  grid-column: span 8;
  grid-row: span 2;
}

.bento-card.medium {
  grid-column: span 4;
  grid-row: span 1;
}

.bento-card.small {
  grid-column: span 4;
  grid-row: span 1;
}

.card-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bento-card:hover .card-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.7));
}

.card-content {
  padding: 25px;
  flex: 1;
  display: flex;
  border: #116400 2px solid;
  flex-direction: column;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.bento-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 20px;
}
/* Enhanced History Card Styles */
.fancy-heading {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 15px;
}

.fancy-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), transparent);
}

.intro-text {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: var(--text-primary);
  border-left: 3px solid var(--primary-color);
  padding-left: 15px;
}

.highlight-keyword {
  font-weight: 600;
  color: var(--primary-color);
  background: linear-gradient(to bottom, transparent 50%, rgba(var(--primary-color-rgb), 0.1) 50%);
  padding: 0 3px;
}

.highlight-keyword.negative {
  color: #e74c3c;
  background: linear-gradient(to bottom, transparent 50%, rgba(231, 76, 60, 0.1) 50%);
}

.highlight-keyword.positive {
  color: #27ae60;
  background: linear-gradient(to bottom, transparent 50%, rgba(39, 174, 96, 0.1) 50%);
}

.timeline-container {
  margin: 30px 0;
  position: relative;
}

.timeline-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--text-primary);
  text-align: center;
  letter-spacing: 1px;
}

.timeline {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(var(--primary-color-rgb), 0.3);
  margin-left: 10px;
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 25px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--card-bg);
  border: 2px solid var(--primary-color);
  z-index: 1;
}

.timeline-date {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-color);
  display: block;
  margin-bottom: 10px;
}

.date-range {
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--text-secondary);
  font-style: italic;
}

.era-highlight {
  font-weight: 600;
  background-color: rgba(var(--primary-color-rgb), 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--primary-color);
}

.era-highlight.negative {
  background-color: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.variations-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 10px;
}

.variations-content {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.variation-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-top: 5px;
}

.region {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--primary-color);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.card-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 2;
}

/* Add these font imports to your head section */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@400;600;700&display=swap');
/* Enhanced Legal Framework Card Styles */
.section-heading {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
  font-weight: 700;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), transparent);
}

.law-intro {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-style: italic;
}

.legal-framework {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-height: 500px;
  overflow-y: auto;
  padding-right: 10px;
}

.legal-framework::-webkit-scrollbar {
  width: 6px;
}

.legal-framework::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.05);
  border-radius: 10px;
}

.legal-framework::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

.law-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  border-radius: 10px;
  background-color: rgb(179, 245, 218) ;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.law-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  background-color: rgb(220, 252, 239);
}

.law-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-color-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(var(--primary-color-rgb), 0.3);
}

.law-details {
  flex: 1;
}

.law-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
}

.law-details p {
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.highlight-text {
  font-weight: 600;
  color: var(--primary-color);
  background: linear-gradient(to bottom, transparent 50%, rgba(var(--primary-color-rgb), 0.1) 50%);
  padding: 0 3px;
}

.law-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.law-points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.law-points li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 1.2rem;
  line-height: 1;
}

.law-footer {
  margin-top: 20px;
  text-align: center;
  padding-top: 15px;
  border-top: 1px dashed rgba(var(--primary-color-rgb), 0.2);
}

.law-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.law-link:hover {
  color: var(--primary-color-dark);
  text-decoration: underline;
}

.law-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.law-link:hover i {
  transform: translateX(3px);
}

/* Add Font Awesome handcuffs icon if not already included */
.fa-handcuffs:before {
  content: "\f8b0";
}
/* Enhanced Statistics Card Styles */
.stats-heading {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  position: relative;
  font-weight: 700;
}

.stats-intro {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-style: italic;
  border-left: 3px solid var(--primary-color);
  padding-left: 10px;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 20px;
}

.stat-item {
  position: relative;
  padding: 20px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-item.severe {
  background-color: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.stat-item.critical {
  background-color: rgba(255, 87, 34, 0.08);
  border: 1px solid rgba(255, 87, 34, 0.2);
}

.stat-item.warning {
  background-color: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.2);
}

.stat-item.caution {
  background-color: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.2);
}

.stat-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stat-item.severe .stat-icon {
  color: #dc3545;
}

.stat-item.critical .stat-icon {
  color: #ff5722;
}

.stat-item.warning .stat-icon {
  color: #ffc107;
}

.stat-item.caution .stat-icon {
  color: #0d6efd;
}

.stat-number-container {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 5px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 5px;
  background-clip: text;
  -webkit-background-clip: text;
  transition: color 0.3s ease;
}

.stat-item.severe .stat-number {
  color: #dc3545;
  text-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.stat-item.critical .stat-number {
  color: #ff5722;
  text-shadow: 0 0 10px rgba(255, 87, 34, 0.3);
}

.stat-item.warning .stat-number {
  color: #ffc107;
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.3);
}

.stat-item.caution .stat-number {
  color: #0d6efd;
  text-shadow: 0 0 10px rgba(13, 110, 253, 0.3);
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 2px;
}

.stat-item.warning .stat-suffix {
  color: #ffc107;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 15px;
}

.stat-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0;
  transition: width 1.5s ease-in-out;
}

.stat-item.severe .stat-bar {
  background-color: #dc3545;
}

.stat-item.critical .stat-bar {
  background-color: #ff5722;
}

.stat-item.warning .stat-bar {
  background-color: #ffc107;
}

.stat-item.caution .stat-bar {
  background-color: #0d6efd;
}

.stats-source {
  margin-top: 15px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  padding-top: 15px;
}

.stats-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: 5px;
  transition: color 0.3s ease;
}

.stats-link:hover {
  color: var(--primary-color-dark);
}

.stats-link i {
  font-size: 0.8rem;
  margin-left: 3px;
}

/* Animation for stat bars */
.stat-item.animate .stat-bar {
  width: 100%;
}
/* Impact List Styles */
.impact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.impact-list li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
}

.impact-list li i {
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--primary-color);
}
/* Modern Forms Card - Colored Icons */
.modern-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  margin-right: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.form-item:hover .modern-icon {
  transform: scale(1.1);
}

.gift-icon {
  background: linear-gradient(135deg, #e91e63, #ad1457);
}

.plane-icon {
  background: linear-gradient(135deg, #2196f3, #0d47a1);
}

.car-icon {
  background: linear-gradient(135deg, #f44336, #b71c1c);
}

.edu-icon {
  background: linear-gradient(135deg, #9c27b0, #4a148c);
}

.home-icon {
  background: linear-gradient(135deg, #4caf50, #1b5e20);
}

.business-icon {
  background: linear-gradient(135deg, #ff9800, #e65100);
}
/* Modern Forms Styles */
.modern-forms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.form-item {
  text-align: center;
}

.form-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.form-item p {
  font-size: 0.9rem;
  margin-bottom: 0;
}
/* Enhanced Solutions Card Styles */
.solution-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(25, 135, 84, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.solution-heading {
  font-size: 1.6rem;
  color: #198754;
  margin-bottom: 5px;
  font-weight: 700;
}

.solution-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}

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

.solution-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.solution-item:hover {
  background-color: rgba(25, 135, 84, 0.05);
  transform: translateY(-3px);
}

.solution-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.solution-item:hover .solution-icon {
  transform: scale(1.1);
}

.solution-icon.education {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
}

.solution-icon.community {
  background: linear-gradient(135deg, #2196F3, #0D47A1);
}

.solution-icon.economic {
  background: linear-gradient(135deg, #9C27B0, #4A148C);
}

.solution-icon.reporting {
  background: linear-gradient(135deg, #F44336, #B71C1C);
}

.solution-icon.legal {
  background: linear-gradient(135deg, #FF9800, #E65100);
}

.solution-icon.media {
  background: linear-gradient(135deg, #00BCD4, #006064);
}

.solution-details {
  flex: 1;
}

.solution-details h4 {
  font-size: 0.95rem;
  margin: 0 0 3px 0;
  color: var(--text-primary);
  font-weight: 600;
}

.solution-details p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.solution-action {
  margin-top: 20px;
  text-align: center;
}

.action-button {
  
  background-color: #198754;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(25, 135, 84, 0.3); display: flex;
  flex-direction: row; /* Explicitly set to row */
  justify-content: center;
  align-items: center; /* Center items vertically */
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.action-button:hover {
  background-color: #146c43;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(25, 135, 84, 0.4);
}

.action-button i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.action-button:hover i {
  transform: translateX(3px);
}

/* Make sure the small bento card can fit the new content */
.bento-card.small {
  min-height: 450px;
}
/* Download Section Styles */
.download-section {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  border: #116400 2px solid;
}

.download-section h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.download-section p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.download-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.download-btn {
  display: flex;
  align-items: center;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.download-btn i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.ppt-btn {
  background-color: #D04423;
  color: white;
}

.pdf-btn {
  background-color: #F40F02;
  color: white;
}

.guide-btn {
  background-color: #2B579A;
  color: white;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .bento-card.large {
    grid-column: span 6;
  }
  
  .bento-card.medium {
    grid-column: span 6;
  }
  
  .bento-card.small {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .bento-grid-container {
    grid-template-columns: 1fr;
  }
  
  .bento-card.large,
  .bento-card.medium,
  .bento-card.small {
    grid-column: span 1;
  }
  
  .stats-container,
  .modern-forms,
  .solutions {
    grid-template-columns: 1fr;
  }
  
  .download-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .download-btn {
    width: 100%;
    justify-content: center;
  }
}


/* Fun Zone Section */
.fun-section {

  position: relative;
  overflow: hidden;
  padding: 4rem 2rem;
  margin: 3rem 2rem;
  border-radius: 30px;
  border: #fd6bff 3px solid;
  background-image: linear-gradient(135deg, rgba(255, 0, 0, 0.05) 0%, rgba(255, 0, 0, 0.05) 50%, rgba(0, 64, 255, 0.05) 100%);
}


.fun-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--gradient-3);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
  top: -100px;
  right: -100px;
  z-index: 0;
  animation: floatBubble 20s infinite alternate ease-in-out;
}

.fun-section::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: var(--gradient-1);
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
  bottom: -100px;
  left: -100px;
  z-index: 0;
  animation: floatBubble 15s infinite alternate-reverse ease-in-out;
}

.fun-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
  
}

.meme-generator, .meme-gallery {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.meme-generator::before, .meme-gallery::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  transform: rotate(30deg);
  z-index: -1;
  pointer-events: none;
  transition: all 0.8s ease;
}

.meme-generator:hover, .meme-gallery:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1),
    inset 0 0 20px rgba(139, 92, 246, 0.2),
    0 5px 0 rgba(139, 92, 246, 0.1);
}

.meme-generator:hover::before, .meme-gallery:hover::before {
  transform: rotate(0deg);
  opacity: 0.15;
}

.fun-button {
  margin-top: 1.5rem;
  padding: 0.9rem 1.8rem;
  background: linear-gradient(45deg, var(--secondary), #10b981);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(110, 231, 183, 0.3);
}

.fun-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.fun-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(110, 231, 183, 0.5);
  letter-spacing: 1px;
}

.fun-button:hover::before {
  left: 100%;
}

.fun-button:active {
  transform: translateY(2px) scale(0.95);
  box-shadow: 0 2px 5px rgba(110, 231, 183, 0.4);
}

.generated-content {
  margin-top: 2rem;
  padding: 2rem;
  background-color: rgba(248, 248, 248, 0.8);
  border-radius: 15px;
  min-height: 120px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(139, 92, 246, 0.1);
  transform: translateY(20px);
  opacity: 0;
  animation: contentAppear 0.8s forwards;
}

@keyframes contentAppear {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.generated-content::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  transform: rotate(30deg);
  z-index: -1;
  pointer-events: none;
}

/* Responsive styles for Fun Zone Section */

@media (max-width: 1200px) {
  .fun-section {
    padding: 3.5rem 1.8rem;
    margin: 2.5rem 1.5rem;
  }
  
  .fun-container {
    gap: 1.5rem;
  }
  
  .meme-generator, .meme-gallery {
    padding: 1.8rem;
  }
  
  .fun-button {
    padding: 0.8rem 1.6rem;
  }
}

@media (max-width: 992px) {
  .fun-section {
    padding: 3rem 1.5rem;
    margin: 2rem 1.2rem;
    border-radius: 25px;
  }
  
  .fun-section::before {
    width: 250px;
    height: 250px;
  }
  
  .fun-section::after {
    width: 200px;
    height: 200px;
  }
  
  .fun-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
  }
  
  .generated-content {
    padding: 1.8rem;
  }
}

@media (max-width: 768px) {
  .fun-section {
    padding: 2.5rem 1.2rem;
    margin: 1.8rem 1rem;
    border-radius: 20px;
  }
  
  .fun-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .meme-generator, .meme-gallery {
    padding: 1.5rem;
  }
  
  .meme-generator:hover, .meme-gallery:hover {
    transform: translateY(-5px);
  }
  
  .fun-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }
  
  .generated-content {
    padding: 1.5rem;
    min-height: 100px;
  }
}

@media (max-width: 576px) {
  .fun-section {
    padding: 2rem 1rem;
    margin: 1.5rem 0.8rem;
    border-radius: 15px;
  }
  
  .fun-section::before {
    width: 180px;
    height: 180px;
  }
  
  .fun-section::after {
    width: 150px;
    height: 150px;
  }
  
  .fun-container {
    margin-top: 2rem;
  }
  
  .meme-generator, .meme-gallery {
    padding: 1.2rem;
    border-radius: 15px;
  }
  
  .fun-button {
    padding: 0.7rem 1.3rem;
    font-size: 0.9rem;
    margin-top: 1.2rem;
  }
  
  .fun-button:hover {
    transform: translateY(-3px) scale(1.03);
    letter-spacing: 0.5px;
  }
  
  .generated-content {
    padding: 1.2rem;
    margin-top: 1.5rem;
    border-radius: 12px;
  }
}

@media (max-width: 400px) {
  .fun-section {
    padding: 1.8rem 0.8rem;
    margin: 1.2rem 0.5rem;
  }
  
  .meme-generator, .meme-gallery {
    padding: 1rem;
  }
  
  .fun-button {
    width: 100%;
    padding: 0.7rem 1rem;
  }
  
  .generated-content {
    padding: 1rem;
  }
}

/* Meme Gallery Styles */
.memes-container {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  perspective: 1000px;
  
}

.meme {
  background: var(--gradient-1);
  padding: 2.5rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: white;
  font-weight: 600;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(139, 92, 246, 0.2);
  transform-style: preserve-3d;
  transform: rotateX(5deg) scale(0.95);
  opacity: 0;
  animation: memeReveal 0.6s forwards;
  animation-delay: calc(var(--i, 0) * 0.1s);
}

@keyframes memeReveal {
  to {
    transform: rotateX(0) scale(1);
    opacity: 1;
  }
}

.meme::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.8s ease;
}

.meme:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.3);
}

.meme:hover::before {
  left: 100%;
}

/* Add 3D tilt effect on hover */
.meme-generator, .meme-gallery, .meme {
  --x: 0;
  --y: 0;
  --rotate: 0;
}

.tilt-effect {
  transform: perspective(1000px) 
    rotateX(calc(var(--y) * 1deg)) 
    rotateY(calc(var(--x) * -1deg))
    translateZ(20px);
  transition: transform 0.1s linear;
}

/* Add floating animation for fun elements */
@keyframes floatBubble {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.1); }
  100% { transform: translate(-20px, 40px) scale(0.9); }
}

/* Add confetti animation for fun interactions */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: var(--primary);
  opacity: 0.8;
  animation: confettiFall 5s linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(calc(100vh + 100px)) rotate(720deg);
    opacity: 0;
  }
}

/* Add pulse effect for interactive elements */
.pulse-effect {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(139, 92, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  }
}

/* Add shimmer effect for meme content */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shimmerEffect 3s infinite;
}

@keyframes shimmerEffect {
  0% {
    transform: rotate(30deg) translateX(-100%);
  }
  100% {
    transform: rotate(30deg) translateX(100%);
  }
}
/* Leaderboard Section */
.leaderboard-section {
  background: var(--gradient-1);
  color: white;
  border-radius: 30px;
  margin: 3rem 2rem;
  position: relative;
  overflow: hidden;
  border: #dd50f9 3px solid;
}

.leaderboard-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.leaderboard-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  z-index: 1;
}

.leaderboard-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  background-color: white;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}

.leaderboard-header {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.leaderboard-list {
  max-height: 400px;
  overflow-y: auto;
}

.leaderboard-item {
  display: grid;
  grid-template-columns: 0.5fr 1.5fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
}

.leaderboard-item:hover {
  transform: translateX(5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.leaderboard-item .rank {
  font-weight: 700;
  font-size: 1.2rem;
}

.leaderboard-item .name {
  font-weight: 600;
}

.leaderboard-item .value {
  font-weight: 600;
}

.leaderboard-item .badge {
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  background-color: var(--accent);
  border-radius: 50px;
  font-size: 0.8rem;
  white-space: nowrap;
  text-align: center;
}

.top-rank {
  background-color: rgba(255, 215, 0, 0.3);
}

.share-your-score {
  text-align: center;
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.leaderboard-cta {
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background-color: white;
  color: var(--primary);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.leaderboard-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Quiz Section - Redesigned with Pro Animations */
.quiz-section {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(110, 231, 183, 0.1));
  color: var(--dark);
  border-radius: 30px;
  margin: 3rem 2rem;
  position: relative;
  height: auto;
  border: #00bbff 3px solid;
  overflow: visible;
}

.quiz-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  z-index: 0;
}

.quiz-section::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(110, 231, 183, 0.2) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  border-radius: 50%;
  z-index: 0;
}

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.quiz-progress {
  height: 8px;
  background-color: rgba(229, 231, 235, 0.5);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    rgba(255, 255, 255, 0) 100%);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.quiz-start {
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeInScale 0.8s ease;
  position: relative;
  

}

.quiz-start h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

.quiz-start h3::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  bottom: -8px;
  left: 25%;
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: center;
  animation: underlineExpand 1s 0.5s forwards;
}

@keyframes underlineExpand {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

.quiz-start p {
  max-width: 80%;
  margin: 0 auto 2rem;
  line-height: 1.7;
  color: var(--muted);
  animation: fadeInUp 0.8s 0.3s both;
}

.quiz-btn {
  margin-top: 1.5rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
  animation: bounceIn 0.8s 0.6s both;
}

.quiz-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.6s ease;
}

.quiz-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(139, 92, 246, 0.5);
  letter-spacing: 1px;
}

.quiz-btn:hover::before {
  left: 100%;
}

.quiz-btn:active {
  transform: translateY(2px) scale(0.95);
}

.quiz-questions {
  padding: 2rem;
  min-height: 400px;
  position: relative;
}

.question {
  display: none;
  position: relative;
  width: 100%;
  padding: 2rem;
  transition: all 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.question.active {
  display: block;
  animation: fadeInRight 0.5s ease;
}

.question.exit-left {
  animation: fadeOutLeft 0.5s ease forwards;
}

.question.exit-right {
  animation: fadeOutRight 0.5s ease forwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px) rotateY(10deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0);
  }
}

@keyframes fadeOutLeft {
  from {
    opacity: 1;
    transform: translateX(0) rotateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50px) rotateY(-10deg);
  }
}

@keyframes fadeOutRight {
  from {
    opacity: 1;
    transform: translateX(0) rotateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(50px) rotateY(10deg);
  }
}

.question-emoji {
  font-size: 4rem;
  text-align: center;
  margin-bottom: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.question-number {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.question h3 {
  margin-bottom: 2rem;
  font-size: 1.6rem;
  color: var(--dark);
  text-align: center;
  line-height: 1.5;
  position: relative;
  padding-bottom: 1rem;
}

.question h3::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 3px;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 5;
}

.answer-option {
  padding: 1.2rem 1.5rem;
  background-color: rgba(243, 244, 246, 0.9);
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  border: 1px solid rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
  transform-origin: left;
  animation: slideInOptions 0.5s calc(0.1s * var(--i, 0)) both;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

@keyframes slideInOptions {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.answer-option:hover {
  transform: translateY(-3px) translateX(5px) scale(1.02);
  background-color: rgba(229, 231, 235, 0.9);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: rgba(139, 92, 246, 0.5);
}

.answer-option.selected {
  background: linear-gradient(90deg, var(--primary), rgba(139, 92, 246, 0.9));
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
  animation: pulse 0.5s;
}

.answer-option.selected .option-text {
  color: white;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

.option-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background-color: rgba(139, 92, 246, 0.2);
  border-radius: 50%;
  margin-right: 1rem;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.3s;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.answer-option.selected .option-number {
  background-color: white;
  color: var(--primary);
  transform: scale(1.1);
}

.option-text {
  flex-grow: 1;
  font-size: 1.05rem;
  color: var(--dark);
  font-weight: 500;
}

.answer-reaction {
  background-color: rgba(139, 92, 246, 0.1);
  padding: 1rem;
  border-radius: 16px;
  margin-top: 1.5rem;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  animation: bounceIn 0.5s;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.quiz-btn.prev-btn,
.quiz-btn.next-btn,
.quiz-btn.finish-btn {
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  min-width: 120px;
}

.quiz-btn.prev-btn {
  background: rgba(139, 92, 246, 0.1);
  color: var(--primary);
  box-shadow: none;
}

.quiz-btn.prev-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  transform: translateY(-3px);
}

.quiz-btn.next-btn:disabled,
.quiz-btn.finish-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.quiz-result {
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeInScale 0.8s ease;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.result-card {
  background-color: white;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.15);
  position: relative;
  overflow: hidden;
  animation: cardFloat 3s ease-in-out infinite;
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.result-header {
  margin-bottom: 2rem;
}

.result-emoji {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: bounce 2s infinite;
  display: inline-block;
}

.result-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  position: relative;
  display: block; /* Changed from inline-block to block */
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center; /* Added to center the text */

  
  width: fit-content; /* Added to make width fit the content */
}

.result-title::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  bottom: -10px;
  left: 15%; /* This keeps the underline centered relative to the text */
  border-radius: 4px;
}
.result-gif {
  margin: 2rem auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  height: auto;
  transform: perspective(1000px) rotateX(5deg);
  transition: all 0.5s;
}

.result-gif:hover {
  transform: perspective(1000px) rotateX(0);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.result-gif img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.5s;
}

.result-gif:hover img {
  transform: scale(1.05);
}

.result-description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 2rem 0;
  color: var(--dark);
  position: relative;
  padding: 0 1rem;
}

.result-badge {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(110, 231, 183, 0.1));
  padding: 1.5rem;
  border-radius: 16px;
  margin: 2.5rem 0;
  transform: translateZ(20px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  animation: badgePulse 3s infinite alternate;
}

@keyframes badgePulse {
  0% { box-shadow: 0 5px 15px rgba(139, 92, 246, 0.1); }
  100% { box-shadow: 0 5px 25px rgba(139, 92, 246, 0.3); }
}

.badge-icon {
  font-size: 3rem;
  margin-right: 1.5rem;
  animation: spin 10s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.badge-text {
  text-align: left;
}

.badge-text span {
  display: block;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.badge-text strong {
  font-size: 1.4rem;
  color: var(--primary);
  display: block;
}

.funny-advice {
  background-color: rgba(251, 191, 36, 0.1);
  padding: 1.5rem;
  border-radius: 16px;
  margin-top: 2rem;
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 500;
  position: relative;
  border-left: 4px solid var(--accent);
}

.funny-advice::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 3rem;
  color: rgba(251, 191, 36, 0.2);
  font-family: Georgia, serif;
}

.share-quiz-result {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(229, 231, 235, 0.5);
  animation: fadeInUp 0.8s 0.5s both;
}

.share-quiz-result h4 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap; /* Added to allow wrapping on smaller screens */
}

.share-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: bounceIn 0.5s calc(0.7s + var(--i, 0) * 0.2s) both;
}

.share-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.whatsapp {
  background-color: #25D366;
  color: white;
  --i: 0;
}

.facebook {
  background-color: #4267B2;
  color: white;
  --i: 1;
}

.twitter {
  background-color: #1DA1F2;
  color: white;
  --i: 2;
}

/* Additional animations for quiz interactions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes underlineGrow {
  0% {
    transform: scaleX(0);
  }
  100% {
    transform: scaleX(1);
  }
}

/* Confetti animation for quiz completion */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confetti-fall 6s linear forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
/* Base Responsive Styles for Quiz Section */

/* Large Screens (Default styles above 1200px) */
/* Most of your existing styles work well for this size */

/* Medium-Large Screens (992px to 1199px) */
@media (max-width: 1199px) {
  .quiz-container {
    max-width: 90%;
  }
  
  .quiz-start h3 {
    font-size: 2rem;
  }
  
  .result-title {
    font-size: 2.2rem;
  }
}

/* Medium Screens (768px to 991px) */
@media (max-width: 991px) {
  .quiz-section {
    margin: 2rem 1.5rem;
    overflow: visible;
  }
  
  .quiz-start {
    padding: 2.5rem 1.5rem;
  }
  
  .quiz-start h3 {
    font-size: 1.8rem;
  }
  
  .quiz-start p {
    max-width: 90%;
  }
  
  .quiz-btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
  }
  
  .question {
    padding: 1.5rem;
  }
  
  .question h3 {
    font-size: 1.4rem;
  }
  
  .result-emoji {
    font-size: 4rem;
  }
  
  .result-card {
    padding: 2rem;
  }
  
  .badge-icon {
    font-size: 2.5rem;
  }
  
  .badge-text strong {
    font-size: 1.2rem;
  }
}
/* Result Badge Responsive Fixes */

/* Large Desktop Screens (Default) */
.result-badge {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(110, 231, 183, 0.1));
  padding: 1.5rem;
  border-radius: 16px;
  margin: 2.5rem 0;
  transform: translateZ(20px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  animation: badgePulse 3s infinite alternate;
}

.badge-icon {
  font-size: 3rem;
  margin-right: 1.5rem;
  animation: spin 10s linear infinite;
  flex-shrink: 0; /* Prevent icon from shrinking */
}

.badge-text {
  text-align: left;
  flex: 1; /* Allow text to expand */
}

.badge-text span {
  display: block;
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  word-wrap: break-word; /* Ensure text wraps properly */
}

.badge-text strong {
  font-size: 1.4rem;
  color: var(--primary);
  display: block;
  word-wrap: break-word; /* Ensure text wraps properly */
}

/* Medium Large Screens (1199px and below) */
@media (max-width: 1199px) {
  .result-badge {
    padding: 1.3rem;
    margin: 2rem 0;
  }
  
  .badge-icon {
    font-size: 2.8rem;
    margin-right: 1.3rem;
  }
  
  .badge-text strong {
    font-size: 1.3rem;
  }
}

/* Medium Screens (991px and below) */
@media (max-width: 991px) {
  .result-badge {
    padding: 1.2rem;
    margin: 1.8rem 0;
  }
  
  .badge-icon {
    font-size: 2.5rem;
    margin-right: 1.2rem;
  }
  
  .badge-text span {
    font-size: 0.95rem;
  }
  
  .badge-text strong {
    font-size: 1.2rem;
  }
}

/* Small Screens (767px and below) */
@media (max-width: 767px) {
  .result-badge {
    padding: 1.5rem;
    margin: 1.5rem 0;
    flex-direction: row; /* Keep as row on small tablets */
    align-items: center;
    justify-content: flex-start;
  }
  
  .badge-icon {
    font-size: 2.2rem;
    margin-right: 1rem;
    margin-bottom: 0;
  }
  
  .badge-text {
    text-align: left;
  }
  
  .badge-text span {
    font-size: 0.9rem;
  }
  
  .badge-text strong {
    font-size: 1.1rem;
  }
}

/* Extra Small Screens (575px and below) */
@media (max-width: 575px) {
  .result-badge {
    padding: 1.2rem;
    flex-direction: column; /* Stack vertically on mobile */
    text-align: center;
    align-items: center;
  }
  
  .badge-icon {
    font-size: 2.5rem;
    margin-right: 0;
    margin-bottom: 0.8rem;
  }
  
  .badge-text {
    text-align: center;
    width: 100%;
  }
}

/* Very Small Screens (375px and below) */
@media (max-width: 375px) {
  .result-badge {
    padding: 1rem;
    margin: 1.2rem 0;
  }
  
  .badge-icon {
    font-size: 2.2rem;
    margin-bottom: 0.7rem;
  }
  
  .badge-text span {
    font-size: 0.8rem;
  }
  
  .badge-text strong {
    font-size: 1rem;
    word-break: break-word;
  }
}

/* Fix for potential animation performance issues on mobile */
@media (max-width: 767px) {
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  @keyframes badgePulse {
    0% { box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1); }
    100% { box-shadow: 0 2px 12px rgba(139, 92, 246, 0.2); }
  }
}
/* Small Screens (576px to 767px) */
@media (max-width: 767px) {
  .quiz-section {
    margin: 1.5rem 1rem;
    border-radius: 20px;
    height: auto;
    max-height: none; /* Remove any max-height limitations */
  }
  
  .quiz-container {
    border-radius: 15px;
    height: auto;
    overflow: visible;
    max-height: none; /* Remove any max-height limitations */
  }
  
  .quiz-start {
    padding: 2rem 1rem;
  }
  
  .quiz-start h3 {
    font-size: 1.6rem;
  }
  
  .quiz-start p {
    max-width: 100%;
    font-size: 0.95rem;
  }
  
  .quiz-questions {
    padding: 1.5rem 1rem;
    min-height: auto; /* Change from fixed min-height */
    height: auto;
  }
  
  .question {
    padding: 1rem;
    overflow: visible;
    height: auto;
  }
  
  .question-emoji {
    font-size: 3rem;
  }
  
  .question h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
  
  .answer-option {
    padding: 1rem;
  }
  
  .option-number {
    width: 30px;
    height: 30px;
    margin-right: 0.8rem;
  }
  
  .option-text {
    font-size: 0.95rem;
  }
  
  .quiz-navigation {
    margin-top: 1.5rem;
  }
  
  .quiz-btn.prev-btn,
  .quiz-btn.next-btn,
  .quiz-btn.finish-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    min-width: 100px;
  }
  
  .result-title {
    font-size: 1.8rem;
  }
  
  .result-description {
    font-size: 1.1rem;
    padding: 0;
  }
  
  .result-badge {
    padding: 1.2rem;
    flex-direction: column;
    text-align: center;
  }
  
  .badge-icon {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .badge-text {
    text-align: center;
  }
  
  .share-buttons {
    gap: 0.8rem;
  }
  
  .share-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Extra Small Screens (up to 575px) */
@media (max-width: 575px) {
  /* Fix for scrolling issues */
  html, body {
    overflow-y: auto;
  }
  
  .quiz-section {
    margin: 1rem 0.5rem;
    border-radius: 15px;
    height: auto;
    overflow: visible;
    position: static; /* Change from relative to avoid positioning issues */
  }
  
  /* Remove any transforms that might affect scrolling */
  .quiz-section::before,
  .quiz-section::after {
    transform: none;
  }
  
  .quiz-container {
    width: 95%;
    transform: none !important; /* Remove any 3D transforms */
    perspective: none;
    transform-style: flat;
    height: auto;
    overflow: visible;
  }
  
  /* Fix result card floating animation that could affect scrolling */
  .result-card {
    animation: none;
    transform: none !important;
    padding: 1.5rem 1rem;
  }
  
  .quiz-start {
    padding: 1.5rem 1rem;
  }
  
  .quiz-start h3 {
    font-size: 1.4rem;
  }
  
  .quiz-btn {
    padding: 0.8rem 1.8rem;
    font-size: 0.9rem;
  }
  
  .questions {
    min-height: auto;
    height: auto;
  }
  
  .question-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .question h3 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
  }
  
  .quiz-navigation {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .quiz-btn.prev-btn,
  .quiz-btn.next-btn,
  .quiz-btn.finish-btn {
    width: 100%;
  }
  
  .result-emoji {
    font-size: 3.5rem;
  }
  
  .result-title {
    font-size: 1.5rem;
  }
  
  .result-title::after {
    bottom: -5px;
    height: 3px;
  }
  
  .funny-advice {
    padding: 1.2rem 1rem 1.2rem 2rem;
    font-size: 0.95rem;
  }
  
  .funny-advice::before {
    font-size: 2rem;
    top: 5px;
    left: 10px;
  }
  
  .share-quiz-result {
    padding: 1.5rem 1rem;
  }
  
  .share-quiz-result h4 {
    font-size: 1.1rem;
  }
  
  .share-buttons {
    flex-wrap: wrap;
  }
  
  .share-btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Simplify animations on mobile to prevent performance issues */
  @keyframes bounceIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }
  
  @keyframes fadeInRight {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  @keyframes fadeOutLeft {
    from { opacity: 1; }
    to { opacity: 0; }
  }
}

/* Very Small Screens (375px and below) */
@media (max-width: 375px) {
  /* Additional fixes for tiny screens */
  .confetti-container {
    display: none; /* Hide confetti on very small screens to improve performance */
  }
  
  .quiz-section {
    margin: 0.8rem 0.3rem;
  }
  
  .quiz-start h3 {
    font-size: 1.3rem;
  }
  
  .quiz-start p {
    font-size: 0.9rem;
  }
  
  .question-number {
    font-size: 0.8rem;
  }
  
  .question h3 {
    font-size: 1.1rem;
  }
  
  .answer-option {
    padding: 0.9rem 0.7rem;
  }
  
  .option-number {
    width: 25px;
    height: 25px;
    margin-right: 0.6rem;
    font-size: 0.8rem;
  }
  
  .option-text {
    font-size: 0.9rem;
  }
  
  .result-title {
    font-size: 1.3rem;
    width: auto; /* Override fit-content which might cause issues */
    max-width: 100%;
  }
  
  .result-description {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .badge-text span {
    font-size: 0.9rem;
  }
  
  .badge-text strong {
    font-size: 1.1rem;
  }
}

/* Fix iOS Safari specific issues with scrolling */
@supports (-webkit-touch-callout: none) {
  .quiz-section, 
  .quiz-container, 
  .quiz-questions, 
  .question, 
  .result-card {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  
  body {
    -webkit-overflow-scrolling: touch;
  }
}

/* Fix any element that might use position:fixed and block scrolling */
.confetti-container {
  pointer-events: none;
  z-index: 9999;
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
}
/* Fun Zone & Demand Generator */
.fun-section {
  background-color: var(--background);
}

.generator-inputs {
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.share-demand {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed #ddd;
}

.fun-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.meme-generator, .meme-gallery {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s;
}

.meme-generator:hover, .meme-gallery:hover {
  transform: translateY(-5px);
}

.fun-button {
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background-color: var(--secondary);
  color: var(--dark);
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.fun-button:hover {
  background-color: #34d399;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(110, 231, 183, 0.4);
}

.generated-content {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background-color: #f8f8f8;
  border-radius: 15px;
  min-height: 100px;
}

.demand-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.5s ease;
  animation-fill-mode: both;
}

.demand-item:hover {
  transform: translateX(5px);
}

.demand-emoji {
  margin-right: 10px;
  font-size: 1.2rem;
}

.memes-container {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
 
}

.meme {
  background: var(--gradient-1);
  padding: 2rem;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: white;
  font-weight: 600;
  text-align: center;
  transition: transform 0.3s;
  border: rgb(208, 65, 255) 2px solid;
}

.meme:hover {
  transform: scale(1.02);
}

/* Awareness Section */
.awareness-section {
  background: var(--gradient-2);
  color: var(--dark);
  border-radius: 30px;
  margin: 3rem 2rem;
  border: #84ff00 3px solid;
}

.awareness-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.awareness-card {
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.awareness-card:hover {
  transform: translateY(-5px);
}

.awareness-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark);
}
/* Enhanced Footer Styles */
.site-footer {
  background-color: rgb(246, 222, 226);
  color: var(--text-secondary);
  padding: 60px 0 30px;
  margin-top: 80px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #dc3545, #fd7e14, #ffc107, #20c997, #0d6efd);
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.footer-logo {
  position: relative;
  padding-left: 15px;
  transition: transform 0.3s ease;
}

.footer-logo:hover {
  transform: translateY(-5px);
}

.footer-logo::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 5px;
  background: linear-gradient(to bottom, #dc3545, #fd7e14);
  border-radius: 3px;
}

.footer-logo h3 {
  font-size: 2rem;
  background: linear-gradient(90deg, #dc3545, #fd7e14);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 10px 0;
  position: relative;
  display: inline-block;
}

.footer-logo .tagline {
  font-size: 0.9rem;
  opacity: 0.8;
  margin: 0;
  font-style: italic;
  color: #6c757d;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-column {
  transition: transform 0.3s ease;
}

.footer-column:hover {
  transform: translateY(-5px);
}

.footer-column h4 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  position: relative;
  padding-bottom: 10px;
  font-weight: 700;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #dc3545, #fd7e14);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.footer-column:hover h4::after {
  width: 70px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 15px;
  transition: all 0.3s ease;
}

.footer-column ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: 0;
  color: #dc3545;
  font-weight: bold;
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.footer-column ul li:hover {
  padding-left: 20px;
}

.footer-column ul li:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-column ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
  position: relative;
  display: inline-block;
}

.footer-column ul li a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #dc3545;
  transition: width 0.3s ease;
}

.footer-column ul li a:hover {
  color: #dc3545;
}

.footer-column ul li a:hover::after {
  width: 100%;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #dc3545, #fd7e14);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.social-link:hover {
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.social-link:hover::before {
  opacity: 1;
}

.social-link i {
  transition: transform 0.3s ease;
}

.social-link:hover i {
  transform: scale(1.2);
}

.footer-disclaimer {
  background: linear-gradient(135deg, rgb(255 0 24 / 5%), rgb(243 112 2 / 15%));
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 30px;
  position: relative;
  border-left: 4px solid #dc3545;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.footer-disclaimer:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.footer-disclaimer h4 {
  font-size: 1.2rem;
  color: #dc3545;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.footer-disclaimer h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #dc3545, transparent);
}

.footer-disclaimer p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
  color: #495057;
  position: relative;
  padding-left: 20px;
}

.footer-disclaimer p::before {
  content: '!';
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  background-color: #dc3545;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.footer-disclaimer p a {
  color: #dc3545;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.footer-disclaimer p a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #dc3545;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-disclaimer p a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.footer-bottom::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, #dc3545, transparent);
}

.copyright p {
  font-size: 0.85rem;
  margin: 0 0 5px 0;
  color: #6c757d;
}

.copyright p:first-child {
  font-weight: 600;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  font-size: 0.85rem;
  color: #6c757d;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.footer-legal a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #dc3545;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.footer-legal a:hover {
  color: #dc3545;
}

.footer-legal a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Responsive adjustments for footer */
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-legal {
    justify-content: center;
  }
  
  .footer-logo::before {
    height: 50px;
  }
  
  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .footer-column:hover h4::after {
    width: 70px;
  }
  
  .footer-column ul li {
    text-align: center;
    padding-left: 0;
  }
  
  .footer-column ul li::before {
    display: none;
  }
  
  .footer-column ul li:hover {
    padding-left: 0;
  }
  
  .footer-disclaimer {
    text-align: center;
    border-left: none;
    border-top: 4px solid #dc3545;
  }
  
  .footer-disclaimer p {
    padding-left: 0;
  }
  
  .footer-disclaimer p::before {
    display: none;
  }
  
  .footer-bottom::before {
    width: 100px;
    left: 50%;
    transform: translateX(-50%);
  }
}
/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(2deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
  100% {
    transform: translateY(0px) rotate(2deg);
  }
}

/* Scroll animation classes */
.fade-in-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    padding: 1rem;
    order: 2;
  }
  
  .hero-image {
    order: 1;
    margin-bottom: 2rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  section h2 {
    font-size: 2.2rem;
  }

  .leaderboard-header {
    grid-template-columns: 0.5fr 1.5fr 1fr;
  }
  
  .leaderboard-item {
    grid-template-columns: 0.5fr 1.5fr 1fr;
  }
  
  .leaderboard-item .badge {
    display: none;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem;
  }
  
  nav ul {
    margin-top: 1rem;
  }
  
  nav ul li {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  section {
    padding: 3rem 1rem;
  }
  
  .awareness-section,
  .quiz-section,
  .leaderboard-section,
  footer {
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: 20px;
  }

  .chat-modes {
    overflow-x: auto;
    padding: 0.5rem;
  }
  
  .mode-btn {
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }
  
  .leaderboard-tabs {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
  
  .calculator-container,
  .leaderboard-container,
  .chatbot-container,
  .quiz-container {
    padding: 1.5rem 1rem;
  }

  .leaderboard-header {
    grid-template-columns: 0.5fr 1.5fr;
  }
  
  .leaderboard-item {
    grid-template-columns: 0.5fr 1.5fr;
  }
  
  .leaderboard-item .value {
    display: none;
  }
  
  .share-buttons {
    flex-wrap: wrap;
  }
}

/* Pledge Section Styles - Enhanced */
.pledge-section {
  background: linear-gradient(135deg, #fff8e1 0%, #fff1d6 50%, #ffe9a6 100%);
  color: var(--dark);
  border-radius: 30px;
  margin: 3rem 2rem;
  position: relative;
  padding: 80px 20px;
  border:#ffff05 3px solid;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.05);
}

.pledge-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a017' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.2;
  z-index: 0;
}

.pledge-section h2 {
  text-align: center;
  color: black;
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  animation: fadeInDown 0.8s ease;
}

.pledge-section h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: var(--gradient-1);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
  animation: expandWidth 1s ease-out 0.3s forwards;
  transform-origin: center;
  width: 0;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 80px; }
}

.pledge-section .subtitle {
  text-align: center;
  color: var(--dark);
  font-size: 1.2rem;
  margin-bottom: 50px;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s ease 0.2s both;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.pledge-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Certificate Styles - Enhanced */
.pledge-form {
  background-color:#fffdc6;;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 6px solid rgb(249, 178, 0);
}

.pledge-form:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.pledge-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pledge-form:hover::before {
  transform: scaleX(1);
}

.pledge-form h3 {
  text-align: center;
  color: var(--accent);
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.pledge-form h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #fbbf24);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.pledge-form:hover h3::after {
  width: 100px;
}

.pledge-certificate {
  background-color: #fff9f0;
  border: 3px solid #e0c9a6;
  border-radius: 15px;
  padding: 40px 30px;
  margin-bottom: 30px;
  position: relative;
  box-shadow: 0 10px 25px rgba(224, 201, 166, 0.2);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform: rotate(-2deg);
  overflow: hidden;
}

.pledge-certificate::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid #e0c9a6;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0.6;
}

.pledge-certificate::after {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath fill='%23e0c9a6' fill-opacity='0.1' d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z'%3E%3C/path%3E%3C/svg%3E");
  right: -50px;
  bottom: -50px;
  opacity: 0.1;
  transform: rotate(15deg);
}

.pledge-certificate:hover {
  transform: rotate(0) scale(1.02);
  box-shadow: 0 15px 35px rgba(224, 201, 166, 0.3);
  border-color: #d4a017;
}

.certificate-content {
  text-align: center;
  color: #5d4037;
  font-family: 'Cormorant Garamond', serif;
  position: relative;
  z-index: 1;
}

.certificate-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
  position: relative;
}

.certificate-header::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e0c9a6, transparent);
}

.certificate-header h4 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #5d4037;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: linear-gradient(45deg, #5d4037, #8b6b61);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.certificate-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.certificate-icon::before {
  content: '';
  position: absolute;
  width: 50px;
  height: 50px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.3; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
}

.certificate-content p {
  font-size: 1.2rem;
  margin: 15px 0;
  line-height: 1.5;
  color: #6d4c41;
}

.certificate-name {
  font-size: 2rem;
  font-weight: bold;
  color: var(--accent);
  margin: 20px 0;
  padding: 10px 0;
  position: relative;
  display: inline-block;
  min-width: 250px;
}

.certificate-name::before,
.certificate-name::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: #e0c9a6;
  top: 0;
}

.certificate-name::before {
  left: 0;
}

.certificate-name::after {
  right: 0;
}

.certificate-name span {
  position: relative;
  z-index: 1;
}

.certificate-name::after {
  top: auto;
  bottom: 0;
}

.certificate-date {
  font-size: 1.1rem;
  margin-top: 25px;
  font-style: italic;
  color: #8d6e63;
  position: relative;
  display: inline-block;
  padding: 5px 20px;
}

.certificate-date::before,
.certificate-date::after {
  content: '•';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #e0c9a6;
  font-style: normal;
}

.certificate-date::before {
  left: 0;
}

.certificate-date::after {
  right: 0;
}

/* Certificate Animation when pledge is taken */
@keyframes certificateSuccess {
  0% { transform: scale(1) rotate(-2deg); box-shadow: 0 10px 25px rgba(224, 201, 166, 0.2); }
  25% { transform: scale(1.05) rotate(0deg); box-shadow: 0 20px 35px rgba(224, 201, 166, 0.3); }
  50% { transform: scale(1.08) rotate(1deg); box-shadow: 0 25px 40px rgba(224, 201, 166, 0.35); }
  75% { transform: scale(1.05) rotate(0deg); box-shadow: 0 20px 35px rgba(224, 201, 166, 0.3); }
  100% { transform: scale(1) rotate(0deg); box-shadow: 0 15px 30px rgba(224, 201, 166, 0.25); }
}

.certificate-success {
  animation: certificateSuccess 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-color: var(--accent);
  background-color: #fff9f0;
  transform: rotate(0deg);
}

/* Form Input Styles - Enhanced */
.pledge-inputs {
  margin-top: 30px;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--dark);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.form-group:focus-within label {
  color: var(--accent);
}

.form-group input[type="text"] {
  width: 100%;
  padding: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f9fafb;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.form-group input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.03);
  outline: none;
  background-color: white;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.checkbox-group:hover {
  background-color: rgba(248, 248, 248, 0.66);
}

.checkbox-group input[type="checkbox"] {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.checkbox-group input[type="checkbox"]:checked {
  transform: scale(1.1);
}

.checkbox-group label {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0;
  cursor: pointer;
  color: #4b5563;
  transition: color 0.3s ease;
}

.checkbox-group:hover label {
  color: var(--dark);
}

.pledge-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--accent), #fbbf24);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 15px;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 15px rgba(251, 191, 36, 0.2);
  opacity: 0.7;
}

.pledge-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: 1;
}

.pledge-btn:enabled {
  opacity: 1;
}

.pledge-btn:enabled:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.pledge-btn:enabled:hover::before {
  left: 100%;
}

.pledge-btn:enabled:active {
  transform: translateY(-2px);
}

.pledge-btn:disabled {
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  cursor: not-allowed;
  box-shadow: none;
}

/* Wall of Heroes Styles - Enhanced */
.pledge-wall {
  background-color: #fffdc6;;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 6px solid rgb(249, 178, 0);
}

.pledge-wall:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.pledge-wall::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;

  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.pledge-wall:hover::before {
  transform: scaleX(1);
}

.pledge-wall h3 {
  text-align: center;
  color: var(--accent);
  margin-bottom: 20px;
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.pledge-wall h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #fbbf24);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.pledge-wall:hover h3::after {
  width: 100px;
}

.pledge-wall > p {
  text-align: center;
  color: #4b5563;
  margin-bottom: 25px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.heroes-list {
  max-height: 350px;
  overflow-y: auto;
  margin: 25px 0;
  padding: 5px 15px 5px 5px;
  border-radius: 15px;
  background-color: #f9fafb;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
  scrollbar-width: thin;
  scrollbar-color: var(--accent) #f1f1f1;
  position: relative;
  z-index: 1;
}

.heroes-list::-webkit-scrollbar {
  width: 8px;
}

.heroes-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.heroes-list::-webkit-scrollbar-thumb {
  background-color: var(--accent);
  border-radius: 10px;
  border: 2px solid #f1f1f1;
}

.heroes-list::-webkit-scrollbar-thumb:hover {
  background-color: #d97706;
}

.hero-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #faff81;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.hero-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), #fbbf24);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.hero-item:hover::before {
  opacity: 1;
}

.hero-name {
  font-weight: 600;
  color: var(--dark);
  transition: color 0.3s ease;
  position: relative;
  padding-left: 10px;
}

.hero-name::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-item:hover .hero-name {
  color: var(--accent);
}

.hero-item:hover .hero-name::before {
  opacity: 1;
}

.hero-badge {
  background-color: rgba(251, 191, 36, 0.1);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.hero-item:hover .hero-badge {
  background-color: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: scale(1.05);
}

/* Hero item animation when added */
@keyframes newHeroAdded {
  0% { transform: translateX(-30px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.new-hero {
  animation: newHeroAdded 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Share Pledge Styles - Enhanced */
.share-pledge {
  text-align: center;
  padding-top: 25px;
  border-top: 1px dashed #e5e7eb;
  margin-top: 10px;
}

.share-pledge h4 {
  color: var(--dark);
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 600;
}

.share-pledge p {
  color: #6b7280;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.share-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.share-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.share-btn:hover::before {
  opacity: 1;
}

.share-btn:active {
  transform: translateY(0) scale(0.95);
}

.share-btn.whatsapp {
  background-color: #25D366;
}

.share-btn.facebook {
  background-color: #1877F2;
}

.share-btn.instagram {
  background-color: #1DA1F2;
}

/* Download Button Styles */
.download-btn {
  background-color: #27ae60;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(39, 174, 96, 0.2);
  position: relative;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: 1;
}

.download-btn:hover {
  background-color: #219653;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(39, 174, 96, 0.3);
}

.download-btn:hover::before {
  left: 100%;
}

.download-btn:active {
  transform: translateY(-2px);
}

.certificate-capture {
  box-shadow: 0 0 0 15px white, 0 10px 40px rgba(0, 0, 0, 0.15);
  background-color: white !important;
  border-color: #d4a017 !important;
  transform: scale(1) rotate(0deg) !important;
  margin: 15px;
}

/* Add these responsive styles for the pledge section */
@media (max-width: 1024px) {
  .pledge-section {
    padding: 60px 15px;
    margin: 2.5rem 1.5rem;
  }
  
  .pledge-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .pledge-section h2 {
    font-size: 2.2rem;
  }
  
  .certificate-header h4 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .pledge-section {
    padding: 40px 15px;
    margin: 2rem 1rem;
    border-radius: 20px;
  }
  
  .pledge-section h2 {
    font-size: 2rem;
  }
  
  .pledge-section .subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  
  .pledge-certificate {
    padding: 30px 20px;
  }
  
  .certificate-name {
    font-size: 1.6rem;
    min-width: 200px;
  }
  
  .certificate-icon {
    font-size: 2.5rem;
  }
}

@media (max-width: 480px) {
  .pledge-section {
    padding: 30px 12px;
    margin: 1.5rem 0.8rem;
  }
  
  .pledge-form, .pledge-wall {
    padding: 20px 15px;
    border-width: 4px;
  }
  
  .pledge-section h2 {
    font-size: 1.8rem;
  }
  
  .pledge-form h3, .pledge-wall h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .certificate-header h4 {
    font-size: 1.5rem;
  }
  
  .certificate-content p {
    font-size: 1rem;
  }
  
  .certificate-name {
    font-size: 1.4rem;
    min-width: 180px;
  }
  
  .heroes-list {
    max-height: 300px;
  }
  
  .hero-item {
    padding: 12px 10px;
  }
  
  .share-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}

@media (max-width: 360px) {
  .pledge-section {
    padding: 25px 10px;
    margin: 1rem 0.5rem;
  }
  
  .pledge-certificate {
    padding: 20px 15px;
  }
  
  .certificate-name {
    font-size: 1.2rem;
    min-width: 150px;
  }
  
  .certificate-date {
    font-size: 0.9rem;
  }
  
  .pledge-btn {
    padding: 12px;
    font-size: 1rem;
  }
}
/* Scam Alert Section Styles - Enhanced */
.scam-alert-section {
  background-color: pink;
  background-image: linear-gradient(135deg, rgba(239, 68, 68, 0.03) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(239, 68, 68, 0.03) 100%);
  padding: 5rem 2rem;
  position: relative;
  overflow: hidden;
  margin: 3rem 2rem;
  border-radius: 30px;
  border:#ff056d 3px solid;
}

.scam-alert-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.05) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  z-index: 0;
  animation: floatBubble 15s infinite alternate ease-in-out;
}

.scam-alert-section::after {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.05) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  border-radius: 50%;
  z-index: 0;
  animation: floatBubble 12s infinite alternate-reverse ease-in-out;
}

@keyframes floatBubble {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, 15px) scale(1.1); }
  100% { transform: translate(-15px, 30px) scale(0.95); }
}

.scam-alert-container {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  position: relative;
  border: palevioletred 2px solid;
  border-radius: 20px;
  z-index: 1;
}

.scam-detector {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border-left: 4px solid transparent;
}

.scam-detector:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--danger);
}

.scam-detector::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--danger), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.scam-detector:hover::before {
  transform: scaleX(1);
}

.scam-results {
  background-color: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  animation: scaleIn 0.5s;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border-left: 4px solid transparent;
}

.scam-results:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-left: 4px solid var(--danger);
}

.scam-results::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--danger), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.scam-results:hover::before {
  transform: scaleX(1);
}

.detector-form textarea {
  width: 100%;
  height: 120px;
  padding: 1rem 1.2rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Quicksand', sans-serif;
  resize: vertical;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.detector-form textarea:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.05);
  outline: none;
}

.analyze-btn {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: var(--gradient-4);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.analyze-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.analyze-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.4);
}

.analyze-btn:hover::before {
  left: 100%;
}

.analyze-btn:active {
  transform: translateY(2px);
}

.risk-meter-container {
  display: flex;
  align-items: center;
  margin: 2.5rem 0;
  animation: fadeInUp 0.8s 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.risk-meter {
  flex: 1;
  height: 24px;
  background-color: #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-right: 1.2rem;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.risk-meter::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0) 20%, 
    rgba(255, 255, 255, 0.2) 40%, 
    rgba(255, 255, 255, 0) 60%, 
    rgba(255, 255, 255, 0.2) 80%, 
    rgba(255, 255, 255, 0) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.risk-meter:hover::after {
  opacity: 1;
  animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.risk-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.risk-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.2) 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.risk-percentage {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--danger);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: countUp 2s ease-out;
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.risk-verdict {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
  padding: 1.2rem;
  border-radius: 12px;
  text-align: center;
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.1);
  transition: all 0.3s ease;
  animation: fadeIn 0.8s 0.4s both;
  position: relative;
  overflow: hidden;
}

.risk-verdict::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shimmerEffect 4s infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.risk-verdict:hover::after {
  opacity: 1;
}

@keyframes shimmerEffect {
  0% { transform: rotate(30deg) translateX(-100%); }
  100% { transform: rotate(30deg) translateX(100%); }
}

.risk-verdict:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.15);
}

.risk-factors {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 1.8rem;
  margin-bottom: 1.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: fadeIn 0.8s 0.6s both;
  border-left: 3px solid var(--danger);
}

.risk-factors:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  background-color: #fff;
}

.risk-factors h3 {
  color: var(--danger);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.risk-factors h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--danger), transparent);
  transition: width 0.3s ease;
}

.risk-factors:hover h3::after {
  width: 100px;
}

.risk-factors ul {
  list-style: none;
  margin-top: 1.2rem;
}

.risk-factors li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  animation: slideInRight 0.5s calc(0.1s * var(--i, 0)) both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.risk-factors li:hover {
  transform: translateX(5px);
  color: var(--danger);
}

.risk-factors li::before {
  content: '⚠️';
  position: absolute;
  left: 0;
  top: 0;
  transition: all 0.3s ease;
}

.risk-factors li:hover::before {
  transform: scale(1.2) rotate(10deg);
}

.report-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background-color: var(--danger);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-bottom: 1.8rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.2);
  animation: fadeIn 0.8s 0.8s both;
}

.report-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.report-btn:hover {
  background-color: #dc2626;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.report-btn:hover::before {
  left: 100%;
}

.report-btn:active {
  transform: translateY(2px);
}

.legal-resources {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 1.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  animation: fadeIn 0.8s 1s both;
  border-left: 3px solid var(--info);
}

.legal-resources:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  background-color: #fff;
}

.legal-resources h3 {
  color: var(--info);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.legal-resources h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--info), transparent);
  transition: width 0.3s ease;
}

.legal-resources:hover h3::after {
  width: 100px;
}

.legal-resources ul {
  list-style: none;
  margin-top: 1.2rem;
}

.legal-resources li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1.5rem;
  transition: all 0.3s ease;
  animation: slideInRight 0.5s calc(0.1s * var(--i, 0)) both;
}

.legal-resources li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--info);
  transition: all 0.3s ease;
  opacity: 0.7;
}

.legal-resources li:hover {
  transform: translateX(5px);
}

.legal-resources li:hover::before {
  transform: translateX(3px);
  opacity: 1;
}

.legal-resources a {
  color: var(--info);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.legal-resources a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--info);
  transition: width 0.3s ease;
}

.legal-resources a:hover {
  color: #2563eb;
}

.legal-resources a:hover::after {
  width: 100%;
}

/* Theme Toggle */
.theme-toggle {
  margin-top: 1.5rem;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--card-bg);
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 20px;
}

.theme-toggle-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

/* Gold Mode Styles */
.gold-mode {
  background-color: var(--gold-background);
  color: var(--gold-text);
}

.gold-mode header {
  background-color: var(--gold-card);
}

.gold-mode .logo {
  color: var(--gold-primary);
}

.gold-mode nav ul li a {
  color: var(--gold-text);
}

.gold-mode nav ul li a::after {
  background-color: var(--gold-primary);
}

.gold-mode .hero {
  background: var(--gold-gradient);
  color: var(--gold-card);
}

.gold-mode .cta-button {
  background-color: var(--gold-card);
  color: var(--gold-primary);
}

.gold-mode section h2 {
  color: var(--gold-text);
}

.gold-mode section h2::after {
  background: var(--gold-gradient);
}

.gold-mode .subtitle {
  color: var(--gold-muted);
}

.gold-mode .calculator-container,
.gold-mode .chatbot-container,
.gold-mode .quiz-container,
.gold-mode .meme-generator, 
.gold-mode .meme-gallery,
.gold-mode .pledge-form,
.gold-mode .pledge-wall,
.gold-mode .scam-detector,
.gold-mode .scam-results {
  background-color: var(--gold-card);
  color: var(--gold-text);
}

.gold-mode .form-group input[type="text"],
.gold-mode .form-group input[type="number"],
.gold-mode .form-group select,
.gold-mode .form-group textarea,
.gold-mode .chat-input input {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--gold-muted);
  color: var(--gold-text);
}

.gold-mode .form-group input:focus,
.gold-mode .form-group select:focus,
.gold-mode .form-group textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.gold-mode .calculate-button,
.gold-mode .pledge-btn:enabled,
.gold-mode .analyze-btn {
  background: var(--gold-gradient);
  color: var(--dark);
}

.gold-mode .message-content {
  background-color: rgba(255, 255, 255, 0.05);
}

.gold-mode .message.user .message-content {
  background-color: var(--gold-primary);
  color: var(--dark);
}

.gold-mode .message.user .avatar {
  background-color: var(--gold-primary);
}

.gold-mode .stories-section {
  background: var(--gold-gradient);
  color: var(--dark);
}

.gold-mode .story-card {
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--gold-text);
}

.gold-mode .success-story {
  background-color: rgba(255, 215, 0, 0.2);
}

.gold-mode .footer {
  background-color: var(--gold-card);
}

/* Responsive Adjustments for New Sections */
@media (max-width: 768px) {
  .pledge-section,
  .scam-alert-section,
  .stories-section {
    margin: 2rem 1rem;
    border-radius: 20px;
    padding: 3rem 1rem;
  }
  
  .certificate-name {
    font-size: 1.5rem;
  }
  
  .stories-tabs {
    padding: 0.5rem;
    overflow-x: auto;
  }
  
  .tab-btn {
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }
  
  .story-card {
    padding: 1rem;
  }
}
/* Dowry Facts Section - Shock & Learn Panel */
.shock-facts-section {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgb(231 142 176) 0%, rgb(226 177 236) 100%);
  position: relative;
  overflow: hidden;
  margin: 3rem 2rem;
  border-radius: 30px;
  border: #ff00ac 3px solid;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.05);
}

.shock-facts-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.05) 0%, transparent 70%);
  top: -200px;
  right: -200px;
  border-radius: 50%;
  z-index: 0;
  animation: floatBubble 20s infinite alternate ease-in-out;
}

.shock-facts-section::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.03) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
  border-radius: 50%;
  z-index: 0;
  animation: floatBubble 15s infinite alternate-reverse ease-in-out;
}

.shock-facts-section h2 {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
  color: #333;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shock-facts-section h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #ef4444, #f87171);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
  animation: expandWidth 1s ease-out 0.3s forwards;
  transform-origin: center;
  width: 0;
}

@keyframes expandWidth {
  from { width: 0; }
  to { width: 80px; }
}

.shock-facts-section .subtitle {
  text-align: center;
  color: #666;
  font-size: 1.2rem;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
  animation: fadeIn 0.8s ease 0.2s both;
  line-height: 1.6;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.facts-slider-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px;
  z-index: 2;
}

.facts-slider {
  display: flex;
  scroll-behavior: smooth;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  gap: 25px;
  padding: 30px 10px;
  margin: 0 -10px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.facts-slider::-webkit-scrollbar {
  height: 8px;
}

.facts-slider::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 20px;
}

.facts-slider::-webkit-scrollbar-thumb {
  background-color: #ef4444;
  border-radius: 20px;
}

.fact-card {
  flex: 0 0 350px;
  scroll-snap-align: start;
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  transform: translateY(0) scale(1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: cardEntrance 0.8s calc(0.1s * var(--i, 0)) both;
  transform-style: preserve-3d;
  perspective: 1000px;
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.fact-card:hover {
  transform: translateY(-15px) scale(1.02) rotateX(5deg);
  box-shadow: 0 25px 50px rgba(239, 68, 68, 0.15),
              0 10px 20px rgba(0, 0, 0, 0.05);
  z-index: 5;
}

.fact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #ef4444, #f87171);
  opacity: 0.7;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fact-card:hover::before {
  width: 8px;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.fact-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.fact-card:hover::after {
  opacity: 1;
}

.fact-number {
  position: absolute;
  top: 5px;
  right: 15px;
  font-size: 14px;
  font-weight: 700;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 5px 12px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.1);
  backdrop-filter: blur(5px);
}

.fact-card:hover .fact-number {
  background: rgba(239, 68, 68, 0.2);
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.2);
}

.fact-title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 10px;
}

.fact-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, transparent);
  transition: width 0.3s ease;
}

.fact-card:hover .fact-title {
  color: #ef4444;
}

.fact-card:hover .fact-title::after {
  width: 100%;
}

.fact-stat {
  font-size: 16px;
  font-weight: 600;
  color: #ef4444;
  margin-bottom: 20px;
  padding: 12px 18px;
  background: rgba(239, 68, 68, 0.08);
  border-radius: 10px;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(239, 68, 68, 0.05);
  transform: translateY(0);
}

.fact-card:hover .fact-stat {
  background: rgba(239, 68, 68, 0.12);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.1);
}

.fact-description {
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.fact-card:hover .fact-description {
  color: #444;
  transform: translateY(-3px);
}

.fact-reactions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  transform: translateY(0);
}

.fact-card:hover .fact-reactions {
  transform: translateY(-3px);
}

.reaction-btn {
  background: none;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  padding: 8px 15px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.reaction-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: -1;
}

.reaction-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  transform: scale(1.05);
  border-color: rgba(239, 68, 68, 0.3);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.1);
}

.reaction-btn:hover::before {
  left: 100%;
}

.reaction-btn.active {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.15);
}

.reaction-btn i {
  transition: all 0.3s ease;
}

.reaction-btn:hover i {
  transform: scale(1.2);
}

.reaction-count {
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.reaction-btn:hover .reaction-count {
  color: #ef4444;
}

.reaction-btn.shocked i {
  color: #ef4444;
}

.reaction-btn.sad i {
  color: #3b82f6;
}

.reaction-btn.angry i {
  color: #f59e0b;
}

.learn-more-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  color: #ef4444;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.learn-more-link i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.learn-more-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ef4444, transparent);
  bottom: 0;
  left: 0;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.3s ease;
  opacity: 0.5;
}

.learn-more-link:hover {
  color: #dc2626;
  letter-spacing: 0.5px;
}

.learn-more-link:hover i {
  transform: translateX(5px);
}

.learn-more-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

.fact-card.severe {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 226, 226, 0.95) 100%);
  border-top: 3px solid #ef4444;
}

.fact-card.moderate {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 240, 226, 0.95) 100%);
  border-top: 3px solid #f59e0b;
}

.fact-card.mild {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(236, 254, 226, 0.95) 100%);
  border-top: 3px solid #10b981;
}

.slider-controls {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
  animation: fadeIn 0.8s ease 0.6s both;
}

.slider-btn {
  background: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  font-size: 1.2rem;
}

.slider-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.8) 0%, rgba(248, 113, 113, 0.8) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.slider-btn:hover {
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 15px 30px rgba(239, 68, 68, 0.2);
}

.slider-btn:hover::before {
  opacity: 1;
}

.slider-btn:active {
  transform: translateY(2px) scale(0.95);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.15);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.slider-dot:hover {
  background: rgba(239, 68, 68, 0.4);
  transform: scale(1.2);
}

.slider-dot.active {
  background: #ef4444;
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
  border: 2px solid white;
}

.fact-source {
  font-size: 12px;
  color: #888;
  margin-top: 15px;
  font-style: italic;
  transition: all 0.3s ease;
}

.fact-card:hover .fact-source {
  color: #666;
}

.fact-share {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(10px);
}

.fact-card:hover .fact-share {
  opacity: 1;
  transform: translateY(0);
}

.fact-share:hover {
  background: #ef4444;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(239, 68, 68, 0.2);
}

.fact-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.fact-tag.severe {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.fact-tag.moderate {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.fact-tag.mild {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.fact-card:hover .fact-tag {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.fact-card:hover .fact-tag.severe {
  background: rgba(239, 68, 68, 0.15);
}

.fact-card:hover .fact-tag.moderate {
  background: rgba(245, 158, 11, 0.15);
}

.fact-card:hover .fact-tag.mild {
  background: rgba(16, 185, 129, 0.15);
}

/* Add a premium glass morphism effect */
.premium-glass {
  position: relative;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Add a floating animation for cards */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating-animation {
  animation: float 6s ease-in-out infinite;
}

/* Add a shine effect for premium elements */
.premium-shine {
  position: relative;
  overflow: hidden;
}

.premium-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shine 6s infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.premium-shine:hover::after {
  opacity: 1;
}

@keyframes shine {
  0% { transform: rotate(30deg) translateX(-100%); }
  100% { transform: rotate(30deg) translateX(100%); }
}

/* Add a call-to-action button at the bottom */
.facts-cta {
  text-align: center;
  margin-top: 60px;
  position: relative;
  z-index: 2;
  animation: fadeIn 0.8s ease 0.8s both;
}

.facts-cta-btn {
  background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.facts-cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: 1;
}

.facts-cta-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.4);
  letter-spacing: 1px;
}

.facts-cta-btn:hover::before {
  left: 100%;
}

.facts-cta-btn:active {
  transform: translateY(2px) scale(0.98);
}

.facts-cta-btn i {
  font-size: 20px;
  transition: all 0.3s ease;
}

.facts-cta-btn:hover i {
  transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .shock-facts-section {
    padding: 60px 15px;
    margin: 2rem 1rem;
  }
  
  .shock-facts-section h2 {
    font-size: 2rem;
  }
  
  .fact-card {
    flex: 0 0 300px;
    padding: 25px;
  }
  
  .slider-btn {
    width: 50px;
    height: 50px;
  }
  
  .facts-cta-btn {
    padding: 12px 25px;
    font-size: 16px;
  }
}

/* Terms of Use Overlay Styles */
.legal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow-y: auto;
}

.legal-overlay.active {
  display: block;
  opacity: 1;
}

.terms-container {
  max-width: 900px;
  margin: 50px auto;
  background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  padding: 40px;
  position: relative;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  height: 80vh; /* Added fixed height */
  max-height: 800px; /* Added max-height for larger screens */
  display: flex;
  flex-direction: column;
}

.legal-overlay.active .terms-container {
  transform: translateY(0);
  opacity: 1;
}

.close-terms-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(239, 68, 68, 0.1);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 5;
}

.close-terms-btn i {
  font-size: 20px;
  color: #ef4444;
  transition: all 0.3s ease;
}

.close-terms-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: rotate(90deg);
}

.terms-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
}

.terms-header:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  border-radius: 3px;
}

.terms-header h2 {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 10px;
  font-weight: 700;
}

.terms-subtitle {
  color: #64748b;
  font-size: 1rem;
}

.terms-content {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 15px;
  margin-bottom: 30px;
  scroll-behavior: smooth;
}

.terms-content::-webkit-scrollbar {
  width: 8px;
}

.terms-content::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.terms-content::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 10px;
}

.terms-content::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

.terms-intro {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #334155;
}

.terms-note {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(59, 130, 246, 0.05);
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 20px;
}

.terms-note i {
  font-size: 24px;
  color: #3b82f6;
  margin-top: 3px;
}

.terms-note p {
  margin: 0;
  font-style: italic;
}

.terms-section {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
}

.terms-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-number {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 10px 15px rgba(37, 99, 235, 0.2);
}

.section-content {
  flex-grow: 1;
}

.section-content h3 {
  color: #1e293b;
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.section-content p {
  color: #475569;
  line-height: 1.7;
  margin-bottom: 15px;
}

.highlight-text {
  color: #3b82f6;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.highlight-text:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(59, 130, 246, 0.2);
  border-radius: 2px;
}

.highlight-warning {
  color: #ef4444;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.highlight-warning:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 2px;
}

.terms-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.terms-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  padding-left: 5px;
  color: #475569;
  transition: transform 0.3s ease;
}

.terms-list li:hover {
  transform: translateX(5px);
}

.terms-list li i {
  color: #10b981;
  font-size: 18px;
  margin-top: 2px;
}

.important-clause {
  background: rgba(239, 68, 68, 0.05);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  border-left: 4px solid #ef4444;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

.important-clause h4 {
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.important-clause h4 i {
  font-size: 18px;
}

.important-clause p {
  margin: 0;
}

.terms-footer {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.accept-terms-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.accept-terms-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(37, 99, 235, 0.4);
}

.accept-terms-btn:active {
  transform: translateY(1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .terms-container {
    margin: 30px 15px;
    padding: 25px;
  }
  
  .terms-header h2 {
    font-size: 2rem;
  }
  
  .section-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .section-content h3 {
    font-size: 1.3rem;
  }
  
  .terms-content {
    max-height: 50vh;
  }
}


/* Dahej Dialogue Simulator Section Styles */
.dialogue-simulator-section {
  padding: 4rem 0;
  background-color: var(--background);
  background:linear-gradient(135deg, rgb(255 0 0 / 15%) 0%, rgb(0 255 237 / 15%) 100%);
  position: relative;
  overflow: hidden;
  margin: 3rem 2rem;
  border-radius: 30px;
  border: #ff6b6b 3px solid; /* Width is important here */

}

.dialogue-simulator-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  z-index: 0;
  animation: floatBubble 15s infinite alternate ease-in-out;
}

.dialogue-simulator-section::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
  bottom: -50px;
  left: -50px;
  border-radius: 50%;
  z-index: 0;
  animation: floatBubble 12s infinite alternate-reverse ease-in-out;
}

@keyframes floatBubble {
  0% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
  100% { transform: translate(0, 0); }
}

.dialogue-simulator-section .section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  animation: fadeInDown 0.8s ease;
}

.dialogue-simulator-section .subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 800px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
  animation: fadeIn 0.8s ease 0.2s both;
}

.dialogue-container {
  max-width: 900px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  overflow: hidden;
  position: relative;
  z-index: 1;
  animation: slideUpIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center bottom;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dialogue-header {
  background: linear-gradient(90deg, var(--primary), #d8b4fe);
  color: white;
  padding: 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dialogue-header::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shimmerEffect 6s infinite;
}

@keyframes shimmerEffect {
  0% { transform: rotate(30deg) translateX(-100%); }
  100% { transform: rotate(30deg) translateX(100%); }
}

.dialogue-header h3 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.dialogue-subtitle {
  font-size: 1rem;
  opacity: 0.9;
}

/* Mode selector styles with different colors */
.mode-selector {
  display: flex;
  padding: 1rem;
  background-color: #f1f3f5;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.mode-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 20px;
  background-color: white;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.mode-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: 1;
}

.mode-btn:hover::before {
  left: 100%;
}

/* Bride mode colors */
#bride-mode {
  color: var(--danger);
}

#bride-mode:hover {
  background-color: #ff8e8e;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

#bride-mode.active {
  background-color: var(--danger);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Groom mode colors */
#groom-mode {
  color: var(--success);
}

#groom-mode:hover {
  background-color: #5fdfd7;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

#groom-mode.active {
  background-color: var(--success);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

/* Negotiation Score Styles */
.score-container {
  padding: 1rem;
  background-color: var(--card-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease 0.4s both;
}

.score-display {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}

.score-label {
  font-weight: 500;
  min-width: 120px;
}

.score-bar-container {
  flex-grow: 1;
  height: 12px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

#negotiation-score {
  height: 100%;
  width: 50%;
  background: linear-gradient(to right, var(--danger), var(--warning), var(--success));
  transition: width 1s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

#negotiation-score::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    rgba(255, 255, 255, 0) 100%);
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.score-value {
  font-weight: 600;
  min-width: 40px;
  text-align: right;
  transition: all 0.5s ease;
}

.score-message {
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  transition: all 0.5s ease;
  animation: pulseText 1.5s infinite;
}

@keyframes pulseText {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.chat-container {
  height: 350px;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.8s ease 0.6s both;
}

.chat-messages {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  background-color: #f1f3f5;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Message styles with avatars */
.cxl2p9 {
  max-width: 80%;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border-radius: 1rem;
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.cxl2p9:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

/* Bot/AI avatar */
.aqj4k1 {
  align-self: flex-start;
  background-color: #e9ecef;
  border-bottom-left-radius: 0.2rem;
}

.aqj4k1::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-image: url('https://api.dicebear.com/6.x/bottts/svg?seed=groom');
  background-size: cover;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* User avatar */
.plt8m3 {
  align-self: flex-end;
  background-color: var(--primary);
  color: white;
  border-bottom-right-radius: 0.2rem;
  padding: 0.8rem 3rem 0.8rem 1rem;
}

.plt8m3::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-image: url('https://api.dicebear.com/6.x/personas/svg?seed=bride');
  background-size: cover;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Mode-specific avatar changes */
.bride-mode .aqj4k1::before {
  background-image: url('https://api.dicebear.com/6.x/bottts/svg?seed=groom');
}

.bride-mode .plt8m3::after {
  background-image: url('https://api.dicebear.com/6.x/personas/svg?seed=bride');
}

.groom-mode .aqj4k1::before {
  background-image: url('https://api.dicebear.com/6.x/bottts/svg?seed=bride');
}

.groom-mode .plt8m3::after {
  background-image: url('https://api.dicebear.com/6.x/personas/svg?seed=groom');
}

/* Typing indicator with animation */
.wzx9c5 {
  display: inline-block;
  padding: 0.8rem 1rem 0.8rem 3rem;
  background-color: #e9ecef;
  border-radius: 1rem;
  margin-bottom: 10px;
  border-bottom-left-radius: 0.2rem;
  position: relative;
  align-self: flex-start;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  animation: pulseMessage 1.5s infinite;
}

@keyframes pulseMessage {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.98); }
}

.wzx9c5::before {
  content: '';
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-image: url('https://api.dicebear.com/6.x/bottts/svg?seed=groom');
  background-size: cover;
  border-radius: 50%;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.wzx9c5::after {
  content: "...";
  animation: typing 1s infinite;
}

@keyframes typing {
  0% { content: "."; }
  33% { content: ".."; }
  66% { content: "..."; }
}

.message-input-container {
  display: flex;
  padding: 1rem;
  background-color: var(--card-bg);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  gap: 0.5rem;
}

#message-input {
  flex-grow: 1;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: none;
  font-family: inherit;
  font-size: 0.9rem;
  min-height: 50px;
  max-height: 120px;
  outline: none;
  transition: all 0.3s ease;
}

#message-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.groom-mode #message-input:focus {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

#send-button {
  padding: 0 1.5rem;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  align-self: flex-end;
  height: 50px;
  position: relative;
  overflow: hidden;
}

#send-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: all 0.6s ease;
  z-index: 1;
}

#send-button:hover {
  background-color: #7c3aed;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

#send-button:hover::before {
  left: 100%;
}

#send-button:active {
  transform: translateY(1px);
}

.groom-mode #send-button {
  background-color: var(--success);
}

.groom-mode #send-button:hover {
  background-color: #3dbeb5;
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

#send-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.dialogue-info {
  padding: 1.5rem;
  background-color: #f1f3f5;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease 0.8s both;
}

.dialogue-info h3 {
  margin-bottom: 0.5rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.dialogue-info h3::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.groom-mode .dialogue-info h3::after {
  background: linear-gradient(90deg, var(--success), transparent);
}

.dialogue-info p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: var(--text);
}

/* Bride Mode Theme (Default) */
.bride-mode .dialogue-header {
  background: linear-gradient(90deg, var(--danger), #ff8e8e);
}

.bride-mode .dialogue-header h3::after,
.bride-mode .dialogue-info h3::after {
  background: linear-gradient(90deg, var(--danger), transparent);
}

.bride-mode #send-button {
  background-color: var(--danger);
}

.bride-mode #send-button:hover {
  background-color: #ff5252;
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.bride-mode .plt8m3 {
  background-color: var(--danger);
}

.bride-mode #message-input:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.bride-mode .score-bar-container #negotiation-score {
  background: linear-gradient(to right, var(--danger), var(--warning), var(--success));
}

/* Groom Mode Theme */
.groom-mode .dialogue-header {
  background: linear-gradient(90deg, var(--success), #5fdfd7);
}

.groom-mode .dialogue-header h3::after,
.groom-mode .dialogue-info h3::after {
  background: linear-gradient(90deg, var(--success), transparent);
}

.groom-mode #send-button {
  background-color: var(--success);
}

.groom-mode #send-button:hover {
  background-color: #3dbeb5;
  box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.groom-mode .plt8m3 {
  background-color: var(--success);
}

.groom-mode #message-input:focus {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.groom-mode .score-bar-container #negotiation-score {
  background: linear-gradient(to right, var(--success), var(--warning), var(--danger));
}

/* Mode transition animations */
.mode-transition {
  animation: modeSwitch 0.5s ease;
}

@keyframes modeSwitch {
  0% { transform: scale(0.98); opacity: 0.8; }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

/* Gold mode adjustments */
.gold-mode .dialogue-simulator-section::before,
.gold-mode .dialogue-simulator-section::after {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
}

.gold-mode .dialogue-header {
  background: var(--gold-gradient-1);
}

.gold-mode .bride-mode .dialogue-header {
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-secondary));
}

.gold-mode .groom-mode .dialogue-header {
  background: linear-gradient(90deg, var(--gold-accent), #c77dff);
}

.gold-mode .bride-mode #send-button,
.gold-mode .bride-mode .plt8m3 {
  background-color: var(--gold-primary);
}

.gold-mode .groom-mode #send-button,
.gold-mode .groom-mode .plt8m3 {
  background-color: var(--gold-accent);
}

.gold-mode .bride-mode #send-button:hover {
  background-color: var(--gold-secondary);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.gold-mode .groom-mode #send-button:hover {
  background-color: #c77dff;
  box-shadow: 0 5px 15px rgba(157, 78, 221, 0.3);
}

.gold-mode #bride-mode.active {
  background-color: var(--gold-primary);
  color: var(--gold-card);
}

.gold-mode #groom-mode.active {
  background-color: var(--gold-accent);
  color: var(--gold-card);
}

.gold-mode .bride-mode .dialogue-info h3::after {
  background: linear-gradient(90deg, var(--gold-primary), transparent);
}

.gold-mode .groom-mode .dialogue-info h3::after {
  background: linear-gradient(90deg, var(--gold-accent), transparent);
}

/* Responsive design */
@media (max-width: 768px) {
  .dialogue-header h3 {
    font-size: 1.8rem;
  }
  
  .cxl2p9 {
    max-width: 90%;
  }
  
  .mode-btn {
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .score-display {
    flex-direction: column;
    align-items: stretch;
  }
  
  .score-label, .score-value {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .dialogue-simulator-section {
    padding: 2rem 0;
  }
  
  .dialogue-container {
    border-radius: 8px;
    margin: 0 10px;
  }
  
  .dialogue-header h3 {
    font-size: 1.5rem;
  }
  
  .dialogue-subtitle {
    font-size: 0.9rem;
  }
  
  .dialogue-info {
    padding: 1rem;
  }
  
  .chat-container {
    height: 300px;
  }
  
  .cxl2p9 {
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
  }
  
  .plt8m3 {
    padding: 0.8rem 2.5rem 0.8rem 0.8rem;
  }
  
  .aqj4k1::before, .plt8m3::after, .wzx9c5::before {
    width: 30px;
    height: 30px;
  }
}



/* Dahej Stories Section Styles */
.stories-section {
  padding: 5rem 2rem;
  background-color: #e0f7fa; /* Changed from paleturquoise to a light teal color */
  background-image: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%); /* Added gradient background */
  margin: 3rem 2rem;
  border-radius: 30px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.5s ease;
  border:#0599ff  3px solid;
  animation: gradientBg 15s ease infinite alternate;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Added shadow for depth */
}
@keyframes gradientBg {
  0% { background-color: #f8f9fa; }
  50% { background-color: #f1f5f9; }
  100% { background-color: #f8fafc; }
}

.stories-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  
  background-size: 200px;
  opacity: 0.05;
  z-index: 0;
  animation: patternFloat 30s linear infinite;
}

@keyframes patternFloat {
  0% { background-position: 0 0; }
  100% { background-position: 200px 200px; }
}

.stories-section .container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  border: #006064 2px solid;
  overflow: hidden;
}

.stories-section .container::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(19, 128, 134, 0.03) 0%, transparent 70%);
  z-index: -1;
  animation: pulseGlow 10s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.2); opacity: 0.8; }
}

.stories-section .header {
  text-align: center;
  margin-bottom: 2.5rem;
  animation: fadeInDown 0.8s ease-out;
}

.stories-section .header h1 {
  font-size: 2.8rem;
  color: #1e293b;
  margin-bottom: 0.8rem;
  position: relative;
  display: inline-block;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stories-section .header h1:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #138086, #534666);
  border-radius: 2px;
  transition: width 0.3s ease, background 0.3s ease;
}

.stories-section .header:hover h1:after {
  width: 120px;
  background: linear-gradient(90deg, #534666, #138086, #534666);
  animation: shimmerGradient 2s infinite;
}

@keyframes shimmerGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.stories-section .header p {
  color: #64748b;
  font-size: 1.2rem;
  transition: color 0.3s ease;
  max-width: 600px;
  margin: 1rem auto 0;
}

.decorative-border {
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #138086 20%, 
    #534666 50%, 
    #138086 80%, 
    transparent 100%);
  margin: 0 auto 2.5rem;
  width: 80%;
  opacity: 0.7;
  animation: shimmer 3s infinite linear;
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: 200px 0; }
}

/* Story Form Styles */
.story-form {
  background-color: rgb(218 231 243);
  padding: 2.5rem;
  border-radius: 12px;
  margin-bottom: 3rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 0.8s ease-out;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;


}

.story-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #138086, #534666);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.story-form:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

.story-form:hover::before {
  opacity: 1;
}

.story-form h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.story-form h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: #138086;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.story-form:hover h2::after {
  width: 100%;
  background-color: #534666;
}

.form-group {
  margin-bottom: 1.8rem;
  transition: transform 0.2s ease;
}

.form-group:focus-within {
  transform: translateX(5px);
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 500;
  color: #334155;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.form-control {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: white;
  color: #1e293b;
}

.form-control:focus {
  outline: none;
  border-color: #138086;
  box-shadow: 0 0 0 3px rgba(19, 128, 134, 0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.story-form .btn {
  background: linear-gradient(135deg, #138086 0%, #534666 100%);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 2rem auto 0;
  position: relative;
  overflow: hidden;
}

.story-form .btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  transition: all 0.6s ease;
}

.story-form .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(19, 128, 134, 0.3);
}

.story-form .btn:hover:before {
  left: 100%;
}

.story-form .btn:active {
  transform: translateY(1px);
}

/* Tab Container Styles */
.tab-container {
  margin-bottom: 2.5rem;
  animation: fadeIn 1s ease-out;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.tab-btn {
  background-color: #f1f5f9;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.tab-btn:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #138086;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.tab-btn:hover {
  background-color: #e2e8f0;
  color: #334155;
  transform: translateY(-2px);
}

.tab-btn:hover:after {
  width: 80%;
}

.tab-btn.active {
  background-color: #138086;
  color: white;
  box-shadow: 0 3px 10px rgba(19, 128, 134, 0.2);
  transform: translateY(-2px);
}

.tab-btn[data-category="funny"].active {
  background-color: #f97316;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.2);
}

.tab-btn[data-category="weird"].active {
  background-color: #8b5cf6;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.2);
}

.tab-btn[data-category="success"].active {
  background-color: #10b981;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.2);
}

.tab-btn.active:after {
  width: 0;
}

/* Stories Container Styles */
.stories-container {
  position: relative;
  min-height: 200px;
}

.story-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}

.story-card {
  background-color: white; /* Changed from wheat to white */
  background-image: linear-gradient(135deg, 
    rgba(249, 115, 22, 0.15) 0%, 
    rgba(139, 92, 246, 0.15) 50%, 
    rgba(16, 185, 129, 0.15) 100%); /* Added light gradient of the three colors */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  height: 100%;
  position: relative;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.story-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.story-card:hover::before {
  opacity: 0.4;
}

.story-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #f8fafc;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 2;
}

.story-card:hover .story-header {
  background-color: #f1f5f9;
}

.story-title {
  font-size: 1.3rem;
  color: #1e293b;
  margin: 0 0 0.8rem 0;
  font-weight: 600;
  transition: color 0.3s ease;
  line-height: 1.4;
}

.story-card:hover .story-title {
  color: #138086;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #64748b;
}

.story-author {
  font-weight: 500;
}

.story-date {
  opacity: 0.8;
}

/* Enhanced Category Styles with Different Colors */
.story-category {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.8rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Funny category - Orange theme */
.story-category.funny {
  background-color: rgba(249, 115, 22, 0.15);
  color: #e45c0a;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

/* Weird category - Purple theme */
.story-category.weird {
  background-color: rgba(139, 92, 246, 0.15);
  color: #7c3aed;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Success category - Green theme */
.story-category.success {
  background-color: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Hover effects for each category */
.story-card:hover .story-category.funny {
  background-color: rgba(249, 115, 22, 0.25);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.15);
  transform: translateY(-2px);
}

.story-card:hover .story-category.weird {
  background-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.15);
  transform: translateY(-2px);
}

.story-card:hover .story-category.success {
  background-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
  transform: translateY(-2px);
}

.story-content {
  padding: 1.5rem;
  flex-grow: 1;
  color: #475569;
  line-height: 1.7;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

.story-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
  transition: background-color 0.3s ease;
  position: relative;
  z-index: 2;
}

.story-card:hover .story-footer {
  background-color: #f1f5f9;
}

.story-actions {
  display: flex;
  gap: 1.2rem;
}

.action-btn {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  padding: 0.5rem;
}

.action-btn:hover {
  color: #138086;
}

.action-btn i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.action-btn:hover i {
  transform: scale(1.2);
}

.like-btn:hover i {
  color: #ef4444;
}

.comment-btn:hover i {
  color: #3b82f6;
}

.share-btn:hover i {
  color: #10b981;
}

/* Reaction Effects */
.story-card.liked {
  animation: likedPulse 0.5s ease;
}

@keyframes likedPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.like-btn.active i {
  color: #ef4444;
  animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1); }
  75% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.comment-btn.active i {
  color: #3b82f6;
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.share-btn.active i {
  color: #10b981;
  animation: spin 0.5s ease;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Empty State Styles */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  color: #64748b;
  background-color: #f8fafc;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(203, 213, 225, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(203, 213, 225, 0); }
  100% { box-shadow: 0 0 0 0 rgba(203, 213, 225, 0); }
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: #334155;
}

.empty-state p {
  font-size: 1.1rem;
  max-width: 400px;
  margin: 0 auto;
}

/* Gold Mode Styles */
.gold-mode .stories-section {
  background-color: #0f172a;
  animation: goldGradientBg 15s ease infinite alternate;
}

@keyframes goldGradientBg {
  0% { background-color: #0f172a; }
  50% { background-color: #1e293b; }
  100% { background-color: #0f172a; }
}

.gold-mode .stories-section::before {

  opacity: 0.1;
}

.gold-mode .stories-section .container {
  background-color: #1e293b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(218, 165, 32, 0.1);
}

.gold-mode .stories-section .container::after {
  background: radial-gradient(circle, rgba(218, 165, 32, 0.05) 0%, transparent 70%);
}

.gold-mode .stories-section .header h1 {
  color: #f1f5f9;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.gold-mode .stories-section .header h1:after {
  background: linear-gradient(90deg, #DAA520, #B8860B);
}

.gold-mode .stories-section .header h1:hover:after {
  background: linear-gradient(90deg, #B8860B, #DAA520, #B8860B);
}

.gold-mode .stories-section .header p {
  color: #cbd5e1;
}

.gold-mode .decorative-border {
  background: linear-gradient(90deg, 
    transparent 0%, 
    #DAA520 20%, 
    #B8860B 50%, 
    #DAA520 80%, 
    transparent 100%);
}

.gold-mode .story-form {
  background-color: #0f172a;
  border: 1px solid rgba(218, 165, 32, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gold-mode .story-form::before {
  background: linear-gradient(90deg, #DAA520, #B8860B);
}

.gold-mode .story-form:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.gold-mode .story-form h2 {
  color: #DAA520;
}

.gold-mode .story-form h2::after {
  background-color: #DAA520;
}

.gold-mode .story-form:hover h2::after {
  background-color: #B8860B;
}

.gold-mode .form-group label {
  color: #e2e8f0;
}

.gold-mode .form-control {
  border-color: #334155;
  background-color: #1e293b;
  color: #f1f5f9;
}

.gold-mode .form-control:focus {
  border-color: #DAA520;
  box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.gold-mode .story-form .btn {
  background: linear-gradient(135deg, #DAA520 0%, #B8860B 100%);
  color: #0f172a;
}

.gold-mode .story-form .btn:hover {
  box-shadow: 0 5px 15px rgba(218, 165, 32, 0.3);
}

.gold-mode .tab-btn {
  background-color: #1e293b;
  color: #cbd5e1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gold-mode .tab-btn:after {
  background-color: #DAA520;
}

.gold-mode .tab-btn:hover {
  background-color: #334155;
  color: #f1f5f9;
}

.gold-mode .tab-btn.active {
  background-color: #DAA520;
  color: #0f172a;
  box-shadow: 0 3px 10px rgba(218, 165, 32, 0.3);
}

.gold-mode .tab-btn[data-category="funny"].active {
  background-color: #f97316;
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.3);
}

.gold-mode .tab-btn[data-category="weird"].active {
  background-color: #8b5cf6;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
}

.gold-mode .tab-btn[data-category="success"].active {
  background-color: #10b981;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
}

.gold-mode .story-card {
  background-color: #1e293b;
  border: 1px solid rgba(218, 165, 32, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gold-mode .story-card::before {
  background: radial-gradient(circle at top right, rgba(218, 165, 32, 0.1), transparent);
}

.gold-mode .story-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.gold-mode .story-header {
  background-color: #0f172a;
  border-bottom: 1px solid rgba(218, 165, 32, 0.1);
}

.gold-mode .story-card:hover .story-header {
  background-color: #1e293b;
}

.gold-mode .story-title {
  color: #f1f5f9;
}

.gold-mode .story-card:hover .story-title {
  color: #DAA520;
}

.gold-mode .story-meta {
  color: #cbd5e1;
}

/* Gold mode category styles */
.gold-mode .story-category.funny {
  background-color: rgba(249, 115, 22, 0.25);
  color: #fdba74;
  border: 1px solid rgba(249, 115, 22, 0.4);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.gold-mode .story-category.weird {
  background-color: rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.gold-mode .story-category.success {
  background-color: rgba(16, 185, 129, 0.25);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Gold mode hover effects */
.gold-mode .story-card:hover .story-category.funny {
  background-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.6);
}

.gold-mode .story-card:hover .story-category.weird {
  background-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.6);
}

.gold-mode .story-card:hover .story-category.success {
  background-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.6);
}

.gold-mode .story-content {
  color: #cbd5e1;
}

.gold-mode .story-footer {
  background-color: #0f172a;
  border-top: 1px solid rgba(218, 165, 32, 0.1);
}

.gold-mode .story-card:hover .story-footer {
  background-color: #1e293b;
}

.gold-mode .action-btn {
  color: #cbd5e1;
}

.gold-mode .action-btn:hover {
  color: #DAA520;
}

.gold-mode .like-btn:hover i {
  color: #ef4444;
}

.gold-mode .comment-btn:hover i {
  color: #60a5fa;
}

.gold-mode .share-btn:hover i {
  color: #34d399;
}

.gold-mode .empty-state {
  background-color: #0f172a;
  border: 1px dashed #334155;
  color: #cbd5e1;
}

.gold-mode .empty-state h3 {
  color: #f1f5f9;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .stories-section {
    padding: 4rem 1.5rem;
  }
  
  .stories-section .container {
    padding: 2rem;
  }
  
  .stories-section .header h1 {
    font-size: 2.4rem;
  }
  
  .story-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  .story-form {
    padding: 2rem;
  }
  
  .decorative-border {
    width: 90%;
  }
}

@media (max-width: 768px) {
  .stories-section {
    padding: 3rem 1rem;
    margin: 2rem 1rem;
  }
  
  .stories-section .container {
    padding: 1.5rem;
  }
  
  .stories-section .header h1 {
    font-size: 2.2rem;
  }
  
  .stories-section .header p {
    font-size: 1.1rem;
  }
  
  .story-form {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .story-form h2 {
    font-size: 1.6rem;
  }
  
  .story-list {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .tab-buttons {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  
  .tab-btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .story-card {
    max-width: 100%;
  }
  
  .story-header {
    padding: 1.2rem;
  }
  
  .story-title {
    font-size: 1.2rem;
  }
  
  .story-content {
    padding: 1.2rem;
  }
  
  .story-footer {
    padding: 1rem 1.2rem;
  }
  
  .form-group {
    margin-bottom: 1.5rem;
  }
  
  .form-control {
    padding: 0.8rem 1rem;
  }
  
  .story-form .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .stories-section {
    padding: 2.5rem 0.8rem;
    margin: 1.5rem 0.8rem;
  }
  
  .stories-section .container {
    padding: 1.2rem;
    border-radius: 12px;
  }
  
  .stories-section .header h1 {
    font-size: 1.8rem;
  }
  
  .stories-section .header p {
    font-size: 1rem;
    max-width: 100%;
  }
  
  .decorative-border {
    margin-bottom: 1.5rem;
  }
  
  .story-form {
    padding: 1.2rem;
    border-radius: 10px;
  }
  
  .story-form h2 {
    font-size: 1.4rem;
  }
  
  .story-form h2::after {
    height: 2px;
  }
  
  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }
  
  .form-control {
    padding: 0.7rem 0.9rem;
    font-size: 0.9rem;
  }
  
  textarea.form-control {
    min-height: 120px;
  }
  
  .story-form .btn {
    width: 100%;
    padding: 0.8rem;
    margin-top: 1.5rem;
  }
  
  .tab-buttons {
    margin-bottom: 1.5rem;
  }
  
  .tab-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    flex-grow: 1;
    text-align: center;
    min-width: 45%;
  }
  
  .story-card {
    border-radius: 10px;
  }
  
  .story-header {
    padding: 1rem;
  }
  
  .story-title {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
  }
  
  .story-meta {
    font-size: 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }
  
  .story-category {
    padding: 0.3rem 0.8rem;
    font-size: 0.7rem;
  }
  
  .story-content {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .story-footer {
    padding: 0.8rem 1rem;
  }
  
  .story-actions {
    gap: 0.8rem;
  }
  
  .action-btn {
    font-size: 0.8rem;
    padding: 0.4rem;
  }
  
  .action-btn i {
    font-size: 1rem;
  }
  
  .empty-state {
    padding: 3rem 1rem;
  }
  
  .empty-state h3 {
    font-size: 1.3rem;
  }
  
  .empty-state p {
    font-size: 0.9rem;
  }
}

@media (max-width: 375px) {
  .stories-section {
    padding: 2rem 0.5rem;
    margin: 1rem 0.5rem;
  }
  
  .stories-section .container {
    padding: 1rem;
    border-radius: 10px;
  }
  
  .stories-section .header h1 {
    font-size: 1.6rem;
  }
  
  .stories-section .header p {
    font-size: 0.9rem;
  }
  
  .story-form {
    padding: 1rem;
  }
  
  .story-form h2 {
    font-size: 1.3rem;
  }
  
  .tab-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
    min-width: 45%;
  }
  
  .story-title {
    font-size: 1rem;
  }
  
  .story-content {
    font-size: 0.85rem;
  }
  
  .action-btn {
    font-size: 0.75rem;
  }
  
  .action-btn i {
    font-size: 0.9rem;
  }
}

/*face analyzer */
/* Face Analyzer Section Styles */
.face-analyzer-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
  border-radius: 30px;
  margin: 3rem 2rem;
  position: relative;
  overflow: hidden;
  border:  3px solid rgb(173 0 255);
}

.face-analyzer-section .container {
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: plum 2px solid;
}

.face-analyzer-section header {
  text-align: center;
  margin-bottom: 2rem;
}

.face-analyzer-section h1 {
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.face-analyzer-section .tagline {
  font-style: italic;
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.face-analyzer-section .disclaimer {
  background-color: rgba(229, 62, 62, 0.1);
  padding: 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  margin-bottom: 20px;
  text-align: center;
  color: #e53e3e;
}

.camera-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 20px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--primary);
  aspect-ratio: 1/1; /* Make container square */
  
}

#video, #canvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

/* Face detection square overlay */
.face-detection-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  border: 3px dashed var(--primary);
  border-radius: 10px;
  box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.3);
  z-index: 5;
  pointer-events: none;
}

.face-detection-overlay::before,
.face-detection-overlay::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--secondary);
  border-style: solid;
}

.face-detection-overlay::before {
  top: -3px;
  left: -3px;
  border-width: 3px 0 0 3px;
  border-radius: 5px 0 0 0;
}

.face-detection-overlay::after {
  bottom: -3px;
  right: -3px;
  border-width: 0 3px 3px 0;
  border-radius: 0 0 5px 0;
}

.face-detection-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  z-index: 6;
  pointer-events: none;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.controls button {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.controls button:hover {
  transform: translateY(-3px);
  background-color: var(--secondary);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.controls button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#captureBtn {
  background: var(--gradient-1);
}

#fileInput {
  display: none;
}

.upload-btn {
  background: var(--gradient-2) !important;
}

.error-message {
  background-color: var(--danger);
  color: white;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
  text-align: center;
  display: none;
}

.loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
}

.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid var(--primary);
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.results-container {
  background-color: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
  display: none;
  animation: fadeIn 0.7s ease-out;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.results-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.15);
}

.results-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-header {
  margin-bottom: 30px;
  display: block;
  width: 100%;
  position: relative;
  padding-bottom: 15px;
}

.result-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

.result-header h2 {
  color: var(--primary);
  margin-bottom: 10px;
  text-align: center;
  width: 100%;
  font-weight: 700;
  font-size: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.result-header p {
  text-align: center;
  color: #4b5563;
  font-size: 1.1rem;
  margin: 0 auto;
  max-width: 80%;
}

.dowry-amount {
  text-align: center;
  margin-bottom: 35px;
  padding: 25px;
  background: linear-gradient(135deg, 
    rgba(249, 115, 22, 0.05) 0%, 
    rgba(139, 92, 246, 0.05) 50%, 
    rgba(16, 185, 129, 0.05) 100%);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(139, 92, 246, 0.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dowry-amount:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.2);
}

.dowry-amount::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.dowry-amount:hover::before {
  opacity: 1;
}

.amount-label {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #4b5563;
  font-weight: 500;
}

.amount-value {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
  position: relative;
  display: inline-block;
}

.amount-value::before, .amount-value::after {
  content: '₹';
  position: absolute;
  font-size: 1.5rem;
  color: var(--secondary);
  opacity: 0.7;
}

.amount-value::before {
  left: -20px;
  top: 5px;
}

.amount-value::after {
  right: -20px;
  top: 5px;
}

.amount-disclaimer {
  display: block;
  font-size: 0.95rem;
  color: #e53e3e;
  font-style: italic;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: rgba(229, 62, 62, 0.05);
  border-radius: 8px;
  display: inline-block;
}

.metrics-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background-color:#f1ebf9;;
  padding: 25px;
  border-radius: 12px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
  
}

.metric {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: white;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.metric:nth-child(1) {
  border-left-color: #f97316;
}

.metric:nth-child(2) {
  border-left-color: #8b5cf6;
}

.metric:nth-child(3) {
  border-left-color: #10b981;
}

.metric:nth-child(4) {
  border-left-color: #3b82f6;
}

.metric:nth-child(5) {
  border-left-color: #ec4899;
}

.metric:hover {
  transform: translateY(-5px) translateX(5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.metric-name {
  width: 30%;
  font-weight: 600;
  color: #1f2937;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

.metric:hover .metric-name {
  color: var(--primary);
}

.metric-bar {
  flex-grow: 1;
  height: 12px;
  background-color: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.metric-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 6px;
  transition: width 1.2s cubic-bezier(0.19, 1, 0.22, 1);
  position: relative;
  overflow: hidden;
}

.metric-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    rgba(255, 255, 255, 0) 100%);
  animation: shimmer 2s infinite;
  transform: translateX(-100%);
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

.metric-value {
  width: 60px;
  text-align: right;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.metric:hover .metric-value {
  transform: scale(1.1);
}

.analysis-text {
  margin-top: 35px;
  padding: 25px;
  background-color: #f9fafb;
  border-radius: 12px;
  border-left: 5px solid var(--primary);
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.analysis-text:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.analysis-text h3 {
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 600;
}

.analysis-text p {
  margin-bottom: 12px;
  line-height: 1.7;
  color: #4b5563;
  font-size: 1.05rem;
}

#resetBtn {
  background: var(--gradient-2);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
  margin-top: 25px;
  position: relative;
  overflow: hidden;
}

#resetBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  transition: all 0.6s ease;
}

#resetBtn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
}

#resetBtn:hover::before {
  left: 100%;
}

#resetBtn:active {
  transform: translateY(-2px);
}
.keyboard-shortcuts {
  text-align: center;
  margin: 15px auto;
  padding: 10px 15px;
  background-color: rgba(139, 92, 246, 0.05);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #4b5563;
  max-width: 500px;
  border: 1px dashed rgba(139, 92, 246, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.keyboard-shortcuts:hover {
  background-color: rgba(139, 92, 246, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.keyboard-shortcuts span {
  display: inline-block;
  padding: 3px 8px;
  margin: 0 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.keyboard-shortcuts span:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 4px 8px rgba(139, 92, 246, 0.4);
}

@media (max-width: 768px) {
  .keyboard-shortcuts {
    font-size: 0.8rem;
    padding: 8px 10px;
    max-width: 90%;
  }
  
  .keyboard-shortcuts span {
    padding: 2px 6px;
    font-size: 0.75rem;
    margin: 0 2px;
  }
}
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;

}

.action-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: white;
}

.action-button svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.action-button:hover svg {
  transform: scale(1.2);
}

.share-btn {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 50%;
}

.share-btn:hover {
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(139, 92, 246, 0.3);
}

.download-btn {
  background: linear-gradient(135deg, #10b981, #059669);
}

.download-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

.action-button:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
@media (max-width: 768px) {
  .face-analyzer-section {
    padding: 2rem 1rem;
    margin: 2rem 1rem;
  }
  
  .face-analyzer-section .container {
    padding: 1.5rem;
  }
  
  .face-analyzer-section h1 {
    font-size: 1.8rem;
  }
  
  .controls {
    flex-direction: column;
    align-items: center;
  }
  
  .controls button {
    width: 100%;
    max-width: 250px;
  }
  
  .metric {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  
  .metric-name {
    width: 100%;
  }
  
  .metric-bar {
    width: 100%;
  }
  
  .metric-value {
    width: 100%;
    text-align: left;
  }
}
/* Tagline Separator Styles with Animation */
.tagline-separator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60px auto 40px;
  max-width: 90%;
  position: relative;
  padding-bottom: 15px;
}

.tagline-line {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0.6;
}

.tagline-text {
  padding: 0.5rem 1.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  white-space: nowrap;
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.5px;
  background-color: rgba(139, 92, 246, 0.08);
  border-radius: 30px;
  box-shadow: 0 3px 10px rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
  animation: pulseHighlight 2s infinite alternate;
  cursor: none; /* Hide default cursor */
  --cursor-x: 50%;
  --cursor-y: 50%;
}

.tagline-text:hover {
  background-color: rgba(139, 92, 246, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.25);
}

/* Neon cursor effect */

.tagline-text::before {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  left: var(--cursor-x, 50%);
  top: var(--cursor-y, 50%);
  background: radial-gradient(circle, 
    rgba(139, 92, 246, 0.8) 0%, 
    rgba(139, 92, 246, 0.4) 40%, 
    rgba(139, 92, 246, 0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  filter: blur(2px);
  box-shadow: 0 0 10px 2px rgba(139, 92, 246, 0.7);
  transition: opacity 0.2s ease;
}

.tagline-text:hover::before {
  opacity: 1;
  animation: neonPulse 1.5s infinite alternate;
}

@keyframes neonPulse {
  0% {
    width: 30px;
    height: 30px;
    filter: blur(2px);
  }
  100% {
    width: 40px;
    height: 40px;
    filter: blur(4px);
  }
}

@keyframes pulseHighlight {
  0% {
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.15);
    transform: translateY(0);
  }
  100% {
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
  }
}

/* Animated underline effect */
.tagline-separator::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: translateX(-50%);
  animation: underlineExpand 2s ease-in-out infinite alternate;
  border-radius: 2px;
}

@keyframes underlineExpand {
  0% {
    width: 0;
    opacity: 0.5;
  }
  100% {
    width: 80%;
    opacity: 1;
  }
}

/* Gold mode styles */
.gold-mode .tagline-line {
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.gold-mode .tagline-text {
  color: var(--gold-primary);
  background-color: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.15);
}

.gold-mode .tagline-text:hover {
  background-color: rgba(212, 175, 55, 0.15);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.25);
}

/* Gold mode neon cursor */
.gold-mode .tagline-text::before {
  background: radial-gradient(circle, 
    rgba(212, 175, 55, 0.8) 0%, 
    rgba(212, 175, 55, 0.4) 40%, 
    rgba(212, 175, 55, 0) 70%);
  box-shadow: 0 0 10px 2px rgba(212, 175, 55, 0.7);
}

.gold-mode .tagline-separator::after {
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-secondary));
}

@media (max-width: 768px) {
  .tagline-separator {
    flex-direction: column;
    gap: 10px;
    margin: 40px auto 30px;
  }
  
  .tagline-line {
    width: 80%;
    max-width: 200px;
  }
  
  .tagline-text {
    font-size: 1rem;
    padding: 0.4rem 1.2rem;
    white-space: normal;
    max-width: 90%;
  }
}

/* Scroll Buttons for Quiz Section */
.scroll-buttons-container {
  position: fixed;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scroll-buttons-container.active {
  opacity: 1;
  visibility: visible;
}

.scroll-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary, #8b5cf6);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.scroll-button.visible {
  opacity: 0.8;
  transform: scale(1);
}

.scroll-button:hover {
  opacity: 1;
  background-color: var(--secondary, #f97316);
}

.scroll-button i {
  font-size: 16px;
}

.scroll-indicator {
  height: 60px;
  width: 3px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.scroll-indicator-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, var(--primary, #8b5cf6), var(--secondary, #f97316));
  border-radius: 3px;
  transition: height 0.3s ease;
}

/* Hide on desktop */
@media (min-width: 769px) {
  .scroll-buttons-container {
    display: none;
  }
}
/* Quiz Loading Animation */
.quiz-loading-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f2e0ff ;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
  border-radius: inherit;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quiz-loading-container.active {
  opacity: 1;
  visibility: visible;
}

.quiz-loading-spinner {
  width: 70px;
  height: 70px;
  border: 5px solid rgba(139, 92, 246, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary, #8b5cf6);
  animation: quiz-spinner 1.2s linear infinite;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.2);
}

@keyframes quiz-spinner {
  to {
    transform: rotate(360deg);
  }
}

.quiz-loading-text {
  font-size: 1.2rem;
  color: var(--primary, #8b5cf6);
  font-weight: 600;
  text-align: center;
  margin-bottom: 15px;
}

.quiz-loading-progress {
  width: 80%;
  max-width: 300px;
  height: 8px;
  background-color: rgba(139, 92, 246, 0.1);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quiz-loading-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary, #8b5cf6), var(--secondary, #f97316));
  border-radius: 4px;
  transition: width 0.1s linear;
}

.quiz-loading-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    rgba(255, 255, 255, 0) 100%);
  animation: shimmer-progress 1.5s infinite;
}

@keyframes shimmer-progress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.quiz-loading-status {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 10px;
  font-style: italic;
}

/* Gold mode styles for quiz loading */
.gold-mode .quiz-loading-container {
  background-color: rgba(15, 23, 42, 0.95);
}

.gold-mode .quiz-loading-spinner {
  border-color: rgba(218, 165, 32, 0.2);
  border-top-color: var(--gold-primary, #DAA520);
  box-shadow: 0 5px 15px rgba(218, 165, 32, 0.2);
}

.gold-mode .quiz-loading-text {
  color: var(--gold-primary, #DAA520);
}

.gold-mode .quiz-loading-progress {
  background-color: rgba(218, 165, 32, 0.1);
}

.gold-mode .quiz-loading-progress-bar {
  background: linear-gradient(90deg, var(--gold-primary, #DAA520), var(--gold-secondary, #B8860B));
}

.gold-mode .quiz-loading-status {
  color: #cbd5e1;
}

/* Preloader Base Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: plum;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.loader-content {
  text-align: center;
  color: #fff;
  z-index: 2;
}

.loader-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: purple;
  text-shadow: 0 0 10px rgba(255, 191, 0, 0.6);
  animation: pulse 2s infinite;
}

.loader-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #fff;
  opacity: 0.8;
}

/* Progress Bar Styles */
.loader-progress {
  width: 300px;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #ffbf00, #ff4500);
  border-radius: 10px;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.loader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmer 1.5s infinite;
}

.loader-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

/* Money Rain Animation */
.money-rain-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.money {
  position: absolute;
  top: -50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Crect width='100' height='50' rx='5' fill='%23009b77'/%3E%3Ctext x='50' y='30' font-family='Arial' font-size='20' fill='%23fff' text-anchor='middle'%3E₹%3C/text%3E%3C/svg%3E");
  background-size: contain;
  animation: rain linear infinite;
  opacity: 0.7;
}

/* Every fifth money element will be a coin instead of a note */
.money:nth-child(5n) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='%23ffd700'/%3E%3Ccircle cx='50' cy='50' r='35' fill='%23ffcc00'/%3E%3Ctext x='50' y='60' font-family='Arial' font-size='30' fill='%23996515' text-anchor='middle'%3E₹%3C/text%3E%3C/svg%3E");
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: coinFall linear infinite, coinRotate linear infinite;
}

/* 3D Cube Styles */
.cube-container {
  width: 150px;
  height: 150px;
  perspective: 800px;
  margin: 2rem auto;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: cubeRotate 15s infinite linear;
}

.cube-face {
  position: absolute;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-color: pink;
  box-shadow: 0 0 15px rgba(255, 191, 0, 0.5) inset;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.cube-face:hover {
  background-color: rgba(255, 191, 0, 0.9);
}

/* Position the faces */
.cube-face.front {
  transform: translateZ(75px);
}

.cube-face.back {
  transform: rotateY(180deg) translateZ(75px);
}

.cube-face.right {
  transform: rotateY(90deg) translateZ(75px);
}

.cube-face.left {
  transform: rotateY(-90deg) translateZ(75px);
}

.cube-face.top {
  transform: rotateX(90deg) translateZ(75px);
}

.cube-face.bottom {
  transform: rotateX(-90deg) translateZ(75px);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes rain {
  0% {
    transform: translateY(-50px) rotate(0deg);
  }
  100% {
    transform: translateY(calc(100vh + 50px)) rotate(60deg);
  }
}

@keyframes coinFall {
  0% {
    transform: translateY(-50px);
  }
  100% {
    transform: translateY(calc(100vh + 50px));
  }
}

@keyframes coinRotate {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

@keyframes cubeRotate {
  0% { transform: rotateX(0deg) rotateY(0deg); }
  100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .loader-title {
    font-size: 2rem;
  }
  
  .loader-subtitle {
    font-size: 1rem;
  }
  
  .loader-progress {
    width: 250px;
  }
  
  .cube-container {
    width: 100px;
    height: 100px;
  }
  
  .cube-face {
    width: 100px;
    height: 100px;
    font-size: 1.2rem;
  }
  
  .cube-face.front { transform: translateZ(50px); }
  .cube-face.back { transform: rotateY(180deg) translateZ(50px); }
  .cube-face.right { transform: rotateY(90deg) translateZ(50px); }
  .cube-face.left { transform: rotateY(-90deg) translateZ(50px); }
  .cube-face.top { transform: rotateX(90deg) translateZ(50px); }
  .cube-face.bottom { transform: rotateX(-90deg) translateZ(50px); }
}

/* Scroll to top button - only visible on desktop */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
  overflow: hidden;
}

#scrollToTop::before {
  content: '↑';
  font-size: 24px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
}

#scrollToTop:hover {
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* Hide on mobile devices */
@media screen and (max-width: 1024px) {
  #scrollToTop {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
}