@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --color-saffron: #e31e24;
  --color-saffron-dark: #b51217;
  --color-saffron-light: #ffebee;
  --color-gold: #c99c33;
  --color-gold-dark: #a87e24;
  --color-gold-light: #fbf8f0;
  --color-cream: #faf7f2;
  --color-ivory: #fdfdfb;
  --color-charcoal: #1a1a1a;
  
  --glass-border: rgba(201, 156, 51, 0.15);
  --glass-shadow: 0 8px 32px 0 rgba(168, 126, 36, 0.06);
}

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

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

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

@keyframes pulseGold {
  0% { opacity: 0.3; transform: scale(0.95); }
  100% { opacity: 0.7; transform: scale(1.05); }
}

@keyframes rotateKolam {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes drawPath {
  to { stroke-dashoffset: 0; }
}

@keyframes flickerFlame {
  0% {
    transform: scale(0.96, 0.98) skewX(-1deg);
    filter: brightness(0.95);
  }
  25% {
    transform: scale(1.02, 1.05) skewX(1deg) translateY(-0.5px);
  }
  50% {
    transform: scale(0.98, 0.95) skewX(-0.5deg);
    filter: brightness(1.05);
  }
  75% {
    transform: scale(1.04, 1.02) skewX(0.5deg) translateY(0.5px);
  }
  100% {
    transform: scale(1, 1.06) skewX(0deg);
    filter: brightness(1);
  }
}

@keyframes floatPetals {
  0% {
    transform: translateY(0) rotate(0deg) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(105vh) rotate(360deg) translateX(50px);
    opacity: 0;
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
  animation: float 5s ease-in-out infinite;
}

/* Background elements */
.bg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.fg-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 40;
}

.kolam-container {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 580px;
  height: 580px;
  opacity: 0.12;
  transform-origin: center center;
  animation: rotateKolam 45s linear infinite;
  pointer-events: none;
}

.kolam-svg {
  width: 100%;
  height: 100%;
}

.kolam-svg path, 
.kolam-svg rect {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawPath 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.kolam-svg rect:nth-child(2) { animation-delay: 0.2s; }
.kolam-svg rect:nth-child(3) { animation-delay: 0.4s; }
.kolam-svg rect:nth-child(4) { animation-delay: 0.6s; }
.kolam-svg rect:nth-child(5) { animation-delay: 0.8s; }
.kolam-svg rect:nth-child(6) { animation-delay: 1s; }

.kalasha-container {
  position: absolute;
  bottom: 80px;
  left: 3%;
  width: 140px;
  height: 168px;
  opacity: 0.09;
  pointer-events: none;
  transform: rotate(-10deg);
  transition: all 0.4s ease;
}

.diya-container {
  position: absolute;
  bottom: 40px;
  width: 70px;
  height: 56px;
  opacity: 0.35;
  filter: drop-shadow(0 0 10px rgba(201, 156, 51, 0.3));
  pointer-events: none;
}

.diya-left {
  left: 6%;
}

.diya-right {
  right: 6%;
}

.flame-group {
  transform-origin: 50px 32px;
  animation: flickerFlame 1.5s ease-in-out infinite alternate;
}

.petals-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -20px;
  pointer-events: none;
  animation: floatPetals 12s linear infinite;
}

.marigold {
  background: radial-gradient(circle, #ffa834 30%, #ff4b1f 100%);
  border-radius: 60% 30% 60% 20%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.jasmine {
  background: #fcfbf7;
  border-radius: 50% 10% 50% 10%;
  box-shadow: 0 0 4px rgba(255,255,255,0.9);
  opacity: 0.85;
}

/* Page Banner custom styles */
.page-banner {
  padding: 140px 0 100px 0;
  position: relative;
  text-align: center;
  overflow: hidden;
  border-bottom: 3px solid var(--color-gold);
}

.page-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 15% 30%, rgba(201, 156, 51, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 85% 70%, rgba(227, 30, 36, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.page-banner::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(201, 156, 51, 0.03) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: pulseGold 8s ease-in-out infinite alternate;
}

.page-banner h1 {
  font-family: var(--font-title);
  color: var(--color-charcoal);
  font-size: 3.8rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
  text-shadow: none;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-banner p {
  color: var(--color-gold-dark);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: none;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Header scroll transitions */
header {
  transition: all 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-cream);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-saffron);
}

/* Base custom resets */
html, body {
  scroll-behavior: smooth;
}

/* Media Queries */
@media (max-width: 991px) {
  .kolam-container {
    width: 400px;
    height: 400px;
    top: -50px;
    right: -50px;
    opacity: 0.08;
  }
  .kalasha-container {
    width: 100px;
    height: 120px;
    left: 2%;
    bottom: 30px;
  }
  .diya-container {
    width: 50px;
    height: 40px;
    bottom: 20px;
  }
  .diya-left { left: 4%; }
  .diya-right { right: 4%; }
  .page-banner {
    padding: 110px 0 70px 0;
  }
  .page-banner h1 {
    font-size: 2.1rem;
  }
  .page-banner p {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .kolam-container {
    width: 320px;
    height: 320px;
    top: -30px;
    right: -30px;
  }
  .kalasha-container { display: none; }
  .diya-container { display: none; }
  .page-banner h1 {
    font-size: 1.75rem;
  }
  .page-banner p {
    font-size: 0.85rem;
  }
}
