/* Custom Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Smooth Transitions */
* {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #14b8a6;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #0d9488;
}

/* Form Input Focus States */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* Custom Button Hover Effects */
button,
a.button {
  position: relative;
  overflow: hidden;
}

button::before,
a.button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before,
a.button:hover::before {
  width: 300px;
  height: 300px;
}

/* Card Hover Effects */
.bg-white.rounded-xl {
  transition: all 0.3s ease;
}

.bg-white.rounded-xl:hover {
  transform: translateY(-5px);
}

/* Image Hover Effects */
img {
  transition: transform 0.5s ease;
}

/* Loading Animation for Images */
img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

img[src] {
  animation: none;
  background: none;
}

/* Mobile Menu Animation */
#mobileMenu {
  transition: all 0.3s ease-in-out;
  max-height: 0;
  overflow: hidden;
}

#mobileMenu:not(.hidden) {
  max-height: 500px;
}

/* Form Error States */
input.border-red-500,
textarea.border-red-500 {
  border-color: #ef4444 !important;
  animation: shake 0.3s;
}

input.border-green-500,
textarea.border-green-500 {
  border-color: #10b981 !important;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* Cookie Popup Animation */
#cookiePopup {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(135deg, #14b8a6 0%, #0891b2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Dividers */
section {
  position: relative;
}

/* Hero Section Enhancements */
#hero {
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, transparent 70%);
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(50px, 50px) rotate(180deg);
  }
}

/* Team Section Icon Animations */
.w-32.h-32 {
  transition: all 0.3s ease;
}

.w-32.h-32:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Map Container */
iframe {
  filter: grayscale(20%);
  transition: filter 0.3s ease;
}

iframe:hover {
  filter: grayscale(0%);
}

/* Footer Links */
footer a {
  position: relative;
}

footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #14b8a6;
  transition: width 0.3s ease;
}

footer a:hover::after {
  width: 100%;
}

/* Responsive Typography */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }
}

/* Print Styles */
@media print {
  header,
  footer,
  #cookiePopup,
  button {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }
}

/* Accessibility Improvements */
.focus-visible:focus {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }
}

/* Dark Mode Preparation */
@media (prefers-color-scheme: dark) {
  /* Future dark mode styles can be added here */
}

/* Custom Utility Classes */
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

/* Loading State */
.loading {
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #14b8a6;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Candy Pop Pack color variables and utility classes */
:root {
  --bubble-pink: #ff4fa1;
  --cotton-candy: #ff9ecf;
  --pastel-peach: #ffd1dc;
  --milky-white: #fff9fb;
  --licorice-black: #1d1b1c;
}

.bg-milky-white {
  background-color: var(--milky-white);
}

.text-licorice {
  color: var(--licorice-black);
}

.text-bubble-pink {
  color: var(--bubble-pink);
}

.text-cotton-candy {
  color: var(--cotton-candy);
}

.border-pastel-peach {
  border-color: var(--pastel-peach);
}

.gradient-candy {
  background: linear-gradient(135deg, var(--bubble-pink) 0%, var(--cotton-candy) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glossy-text {
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

.bubble-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--bubble-pink);
  font-weight: 700;
  border-radius: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 79, 161, 0.2);
  border: 2px solid transparent;
}

.bubble-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(255, 79, 161, 0.4);
  background: white;
}

.bubble-btn-primary {
  background: linear-gradient(135deg, var(--bubble-pink), var(--cotton-candy));
  color: white;
  box-shadow: 0 4px 20px rgba(255, 79, 161, 0.4);
}

.bubble-btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(255, 79, 161, 0.6);
}

.bubble-btn-secondary {
  background: white;
  color: var(--bubble-pink);
  border: 2px solid var(--cotton-candy);
}

.bubble-btn-secondary:hover {
  background: var(--pastel-peach);
  border-color: var(--bubble-pink);
}

.bubble-btn-submit {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--bubble-pink), var(--cotton-candy));
  color: white;
  font-weight: 700;
  font-size: 1.125rem;
  border-radius: 2rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 25px rgba(255, 79, 161, 0.4);
  border: none;
  cursor: pointer;
}

.bubble-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(255, 79, 161, 0.6);
}

.bubble-btn-icon {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.9);
  color: var(--bubble-pink);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 79, 161, 0.2);
}

.bubble-btn-icon:hover {
  transform: scale(1.1);
  background: white;
}

.glossy-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 2rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(255, 79, 161, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.glossy-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(255, 79, 161, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.pop-border {
  border: 4px solid transparent;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, var(--bubble-pink), var(--cotton-candy), var(--pastel-peach)) border-box;
}

.sticker-label {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--pastel-peach), var(--cotton-candy));
  color: var(--licorice-black);
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 15px rgba(255, 158, 207, 0.3);
  transform: rotate(-2deg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.neon-sparkle {
  width: 20px;
  height: 20px;
  background: radial-gradient(circle, var(--cotton-candy), var(--bubble-pink));
  border-radius: 50%;
  box-shadow: 0 0 20px var(--bubble-pink), 0 0 40px var(--cotton-candy);
  animation: sparkle 2s infinite ease-in-out;
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

.curved-section {
  background: linear-gradient(180deg, var(--milky-white) 0%, var(--pastel-peach) 50%, var(--milky-white) 100%);
  position: relative;
}

.pink-panel {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 6px 25px rgba(255, 158, 207, 0.2);
  border: 3px solid var(--pastel-peach);
  transition: all 0.3s ease;
}

.pink-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(255, 158, 207, 0.3);
}

.pop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.bubble-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 5px solid var(--cotton-candy);
  box-shadow: 0 8px 30px rgba(255, 79, 161, 0.3);
  overflow: hidden;
  transition: all 0.3s ease;
}

.bubble-avatar:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 40px rgba(255, 79, 161, 0.5);
}

.bubble-avatar-large {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 6px solid var(--bubble-pink);
  box-shadow: 0 10px 40px rgba(255, 79, 161, 0.4);
  overflow: hidden;
}

.note-sticker {
  background: var(--pastel-peach);
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(255, 209, 220, 0.4);
  transform: rotate(-1deg);
  display: inline-block;
}

.magazine-spread {
  background: white;
  padding: 3rem;
  border-radius: 2rem;
  box-shadow: 0 10px 40px rgba(255, 79, 161, 0.15);
  border: 4px solid var(--pastel-peach);
}

.bubble-quote {
  background: linear-gradient(135deg, var(--cotton-candy), var(--pastel-peach));
  padding: 1.5rem 2rem;
  border-radius: 2rem;
  box-shadow: 0 6px 25px rgba(255, 158, 207, 0.3);
  position: relative;
  color: var(--licorice-black);
}

.bubble-quote::before {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 30px;
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 15px solid var(--pastel-peach);
}

.sparkle-bg {
  background: linear-gradient(135deg, var(--milky-white) 0%, var(--pastel-peach) 50%, var(--milky-white) 100%);
  position: relative;
  overflow: hidden;
}

.sparkle-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle, var(--cotton-candy) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.1;
  animation: sparkle-move 20s linear infinite;
}

@keyframes sparkle-move {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.bubble-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--pastel-peach), var(--cotton-candy));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 158, 207, 0.3);
  flex-shrink: 0;
}

.candy-envelope {
  background: linear-gradient(135deg, rgba(255, 249, 251, 0.95), rgba(255, 209, 220, 0.95));
  padding: 2.5rem;
  border-radius: 2rem;
  box-shadow: 0 10px 40px rgba(255, 79, 161, 0.2);
  border: 4px solid var(--cotton-candy);
}

.candy-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 3px solid var(--pastel-peach);
  border-radius: 1.5rem;
  background: white;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.candy-input:focus {
  outline: none;
  border-color: var(--bubble-pink);
  box-shadow: 0 0 0 4px rgba(255, 79, 161, 0.1);
  background: var(--milky-white);
}

.candy-input::placeholder {
  color: var(--cotton-candy);
}

.footer-candy {
  background: linear-gradient(135deg, var(--bubble-pink), var(--cotton-candy));
  position: relative;
  overflow: hidden;
}

.footer-candy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, white, var(--pastel-peach), white);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
}

.footer-link {
  color: white;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--pastel-peach);
  transform: translateX(5px);
}

.bubble-social {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.bubble-social:hover {
  background: white;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

.cookie-candy {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--licorice-black), var(--bubble-pink));
  padding: 1.5rem;
  box-shadow: 0 -4px 30px rgba(255, 79, 161, 0.4);
  z-index: 50;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.mobile-menu-panel {
  background: linear-gradient(135deg, rgba(255, 249, 251, 0.98), rgba(255, 209, 220, 0.98));
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: 0 8px 30px rgba(255, 79, 161, 0.2);
}

#mainHeader {
  background: linear-gradient(135deg, var(--bubble-pink), var(--cotton-candy));
  box-shadow: 0 4px 20px rgba(255, 79, 161, 0.3);
}

#mainHeader.shrink {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
