/* Template 31 - Carnival Festival / Playful Circus */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Baloo+2:wght@400;500;700;800&display=swap");

:root {
  --gradient-1: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
  --gradient-2: linear-gradient(135deg, #48dbfb 0%, #0abde3 100%);
  --gradient-3: linear-gradient(135deg, #ff9ff3 0%, #feca57 100%);
  --gradient-4: linear-gradient(135deg, #54a0ff 0%, #00d2d3 100%);
  --gradient-5: linear-gradient(135deg, #ff6348 0%, #ff9ff3 100%);

  --bg-primary: #fff9e6;
  --bg-secondary: #fff3d4;
  --glass-bg: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 107, 107, 0.3);

  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-muted: #b2bec3;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Fredoka", sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-primary);
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
      45deg,
      transparent,
      transparent 50px,
      rgba(255, 107, 107, 0.03) 50px,
      rgba(255, 107, 107, 0.03) 100px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 50px,
      rgba(72, 219, 251, 0.03) 50px,
      rgba(72, 219, 251, 0.03) 100px
    );
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header with Playful Design */
.site-header {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 4px solid;
  border-image: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3) 1;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(255, 107, 107, 0.2);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-family: "Baloo 2", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: rainbow 3s linear infinite;
  background-size: 200% 100%;
}

@keyframes rainbow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

.site-logo a:hover {
  transform: scale(1.1) rotate(-2deg);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.6rem 1.3rem;
  border-radius: 30px;
  border: 2px solid transparent;
}

.site-nav a:hover {
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  border-color: #ff6b6b;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Hero Section */
.section.head {
  padding: 7rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.section.head h1 {
  font-family: "Baloo 2", sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: bounce 2s ease-in-out infinite;
  background-size: 300% 100%;
}

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

.section.head p {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 1000px;
  margin: 0 auto;
  font-weight: 500;
}

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

.section header {
  text-align: center;
  margin-bottom: 4rem;
}

.section header h2 {
  font-family: "Baloo 2", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ff6b6b, #48dbfb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.section header h2::before {
  content: "🎪";
  position: absolute;
  left: -60px;
  font-size: 2rem;
}

.section header h2::after {
  content: "🎡";
  position: absolute;
  right: -60px;
  font-size: 2rem;
}

.section header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 3rem 0 1rem;
  border-top: 4px solid;
  border-image: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3) 1;
  margin-top: 5rem;
}

.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.footer-about {
  flex: 1;
  max-width: 400px;
}

.footer-tagline {
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-links ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ff6b6b;
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px dashed rgba(255, 107, 107, 0.3);
}

.copyright a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Animations */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(40px) rotate(-5deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

.fade-in {
  opacity: 0;
  animation: floatIn 0.7s ease forwards;
}

.fade-in:nth-child(1) {
  animation-delay: 0.1s;
}
.fade-in:nth-child(2) {
  animation-delay: 0.2s;
}
.fade-in:nth-child(3) {
  animation-delay: 0.3s;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

body:not(.faq) h3,
:not(section.faq) h3 {
  font-size: 1.8rem;
  background: linear-gradient(90deg, #ff6b6b, #48dbfb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 15px;
  margin-bottom: 10px;
  text-align: left;
  font-family: "Baloo 2", sans-serif;
}
