/* =========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================= */
/* v2.0 - Forced Refresh */
:root {
  /* Colors */
  --color-primary: #004A69;      /* Deep impose Blue (kept for header) */
  --color-primary-light: #006994; /* Lighter Clinical Blue */

  /* Autism Theme Colors */
  --color-autism-yellow: #FFC107; /* Amarelo Ouro (Predominant) */
  --color-autism-purple: #9C27B0;
  --color-autism-blue: #03A9F4;
  --color-autism-green: #4CAF50;
  --color-autism-red: #F44336;

  /* Accent uses predominant yellow */
  --color-accent: var(--color-autism-yellow);
  --color-accent-light: #FFD54F;
  
  --color-dark: #0f172a;          /* Rich Dark Text */
  --color-text: #334155;          /* Body Text */
  --color-text-light: #64748b;    /* Muted Text */
  
  --color-bg: #f8fafc;            /* Off-white background */
  --color-surface: #ffffff;       /* Pure White Cards */
  --color-surface-mixed: #f1f5f9; /* Slightly darker surface */

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================================
   RESET & BASE STYLES
   ========================================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* =========================================================================
   UTILITIES
   ========================================================================= */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.mt-lg { margin-top: var(--spacing-lg); }

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  position: relative;
  display: inline-block;
  color: var(--color-dark);
}

.section-title::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
}

.section-subtitle {
  color: var(--color-text-light);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 1.5rem auto var(--spacing-lg);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 74, 105, 0.3);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 105, 148, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline:hover {
  background-color: #fff;
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-nav {
  padding: 0.5rem 1.5rem;
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 600;
}

.btn-nav:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* =========================================================================
   HEADER / NAVBAR
   ========================================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all var(--transition-slow);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand img {
  height: 60px;
  width: auto;
  transition: all var(--transition-normal);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.navbar.scrolled .navbar-brand img {
  height: 50px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-dark);
  position: relative;
}

/* Adjust colors when not scrolled on hero */
.navbar:not(.scrolled) .nav-link,
.navbar:not(.scrolled) .social-link i {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.navbar:not(.scrolled) .btn-nav {
  border-color: #fff;
  color: #fff;
  text-shadow: none;
}
.navbar:not(.scrolled) .btn-nav:hover {
  background-color: #fff;
  color: var(--color-primary);
}

/* Nav Link Hover Effect */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

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

.social-link {
  font-size: 1.25rem;
  color: var(--color-dark);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.social-link:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-dark);
  cursor: pointer;
}

.navbar:not(.scrolled) .menu-toggle {
  color: #fff;
}


/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Space for navbar */
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/img/slide3.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.05); /* Slight scale for parallax effect feel */
}

/* Premium Gradient Overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right, 
    rgba(0, 74, 105, 0.95) 0%, 
    rgba(0, 105, 148, 0.8) 50%, 
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: -1;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 650px;
  color: #fff;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s forwards 0.3s;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: #fff;
  letter-spacing: -1px;
}

.hero-title span {
  display: inline-block;
  color: var(--color-accent-light);
}

.hero-title .emoji {
  font-size: 0.8em;
  vertical-align: middle;
}

.hero-desc {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================================================
   MATERIALS / FORMS SECTION
   ========================================================================= */
.materials {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-bg);
  position: relative;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.material-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-slow);
  height: 100%;
  position: relative;
}

.material-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.material-img-box {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.material-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.material-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
  align-items: center;
}

.material-title {
  font-size: 1.5rem;
  color: var(--color-autism-purple);
  margin-bottom: 1rem;
}

.material-desc {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.material-card .btn-outline {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.material-card .btn-outline:hover {
  background-color: var(--color-primary);
  color: #fff;
}

.material-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
  z-index: 2;
}

.material-card:hover::before {
  transform: scaleX(1);
}

/* =========================================================================
   THERAPIES BANNER & GRID
   ========================================================================= */
.therapies-banner {
  background: var(--color-autism-yellow);
  padding: var(--spacing-lg) 0;
  text-align: center;
  color: var(--color-dark);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  margin-top: -40px; /* Overlap previous section slightly */
  position: relative;
  z-index: 10;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
}

.therapies-banner h2 {
  color: var(--color-dark);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.therapies-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--color-surface);
}

/* Highlight Horizontal Card */
.highlight-card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--spacing-xl);
  border: 1px solid rgba(0,0,0,0.02);
}

.highlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

.highlight-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.highlight-title {
  font-size: 2.25rem;
  color: var(--color-autism-blue);
  margin-bottom: 1.5rem;
}

.highlight-desc {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-text);
}

/* Grid Menu */
.therapies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.therapy-card {
  background: var(--color-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  border: 1px solid rgba(0,0,0,0.03);
  border-top: 4px solid transparent;
}

/* Cyclic Colors for Autism Theme Cards */
.therapy-card:nth-child(8n+1) { border-top-color: var(--color-autism-blue); }
.therapy-card:nth-child(8n+2) { border-top-color: var(--color-autism-yellow); }
.therapy-card:nth-child(8n+3) { border-top-color: var(--color-autism-red); }
.therapy-card:nth-child(8n+4) { border-top-color: var(--color-autism-green); }
.therapy-card:nth-child(8n+5) { border-top-color: var(--color-autism-purple); }
.therapy-card:nth-child(8n+6) { border-top-color: var(--color-autism-blue); }
.therapy-card:nth-child(8n+7) { border-top-color: var(--color-autism-yellow); }
.therapy-card:nth-child(8n+8) { border-top-color: var(--color-autism-green); }

.therapy-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  background: var(--color-surface);
}

.therapy-img-box {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.therapy-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.therapy-card:hover .therapy-img-box img {
  transform: scale(1.08);
}

/* Overlays on hover with theme colors */
.therapy-img-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.therapy-card:nth-child(8n+1):hover .therapy-img-box::after { background: linear-gradient(to top, rgba(3,169,244,0.4), transparent); opacity: 1; }
.therapy-card:nth-child(8n+2):hover .therapy-img-box::after { background: linear-gradient(to top, rgba(255,193,7,0.4), transparent); opacity: 1; }
.therapy-card:nth-child(8n+3):hover .therapy-img-box::after { background: linear-gradient(to top, rgba(244,67,54,0.4), transparent); opacity: 1; }
.therapy-card:nth-child(8n+4):hover .therapy-img-box::after { background: linear-gradient(to top, rgba(76,175,80,0.4), transparent); opacity: 1; }
.therapy-card:nth-child(8n+5):hover .therapy-img-box::after { background: linear-gradient(to top, rgba(156,39,176,0.4), transparent); opacity: 1; }
.therapy-card:nth-child(8n+6):hover .therapy-img-box::after { background: linear-gradient(to top, rgba(3,169,244,0.4), transparent); opacity: 1; }
.therapy-card:nth-child(8n+7):hover .therapy-img-box::after { background: linear-gradient(to top, rgba(255,193,7,0.4), transparent); opacity: 1; }
.therapy-card:nth-child(8n+8):hover .therapy-img-box::after { background: linear-gradient(to top, rgba(76,175,80,0.4), transparent); opacity: 1; }


.therapy-info {
  padding: 1.5rem;
  text-align: center;
}

.therapy-title {
  font-size: 1.25rem;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.therapy-card:nth-child(8n+1):hover .therapy-title { color: var(--color-autism-blue); }
.therapy-card:nth-child(8n+2):hover .therapy-title { color: #d39e00; } /* Darker yellow for text readability */
.therapy-card:nth-child(8n+3):hover .therapy-title { color: var(--color-autism-red); }
.therapy-card:nth-child(8n+4):hover .therapy-title { color: var(--color-autism-green); }
.therapy-card:nth-child(8n+5):hover .therapy-title { color: var(--color-autism-purple); }
.therapy-card:nth-child(8n+6):hover .therapy-title { color: var(--color-autism-blue); }
.therapy-card:nth-child(8n+7):hover .therapy-title { color: #d39e00; }
.therapy-card:nth-child(8n+8):hover .therapy-title { color: var(--color-autism-green); }

.therapy-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.5;
}


/* =========================================================================
   MAP SECTION
   ========================================================================= */
.map-section {
  height: 450px;
  width: 100%;
  position: relative;
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(10%) contrast(1.1); /* Subtle map styling */
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
  background-color: var(--color-primary);
  color: #fff;
  padding-top: var(--spacing-xl);
  font-family: var(--font-body);
}

.footer-top {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.footer-brand {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 1rem;
}

.footer-brand span {
  color: var(--color-accent);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-normal);
}

.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-dark);
  transform: translateY(-3px);
}

.footer-content {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--spacing-md) 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.footer-logo {
  height: 140px;
  margin: 0 auto;
  display: block;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
}

.contact-item i {
  color: var(--color-accent);
  font-size: 1.25rem;
}

.footer-info {
  text-align: right;
  color: rgba(255,255,255,0.9);
}

.footer-info p {
  margin-bottom: 0.5rem;
}

.footer-info strong {
  color: #fff;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: var(--color-accent);
}

.whatsapp-dev {
  color: #25d366 !important;
  text-decoration: none !important;
  font-size: 1.1rem;
  margin-left: 0.25rem;
}

/* =========================================================================
   FLOATING WHATSAPP
   ========================================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all var(--transition-fast);
  animation: pulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}

.whatsapp-float:hover {
  background-color: #1ebe5d;
  transform: scale(1.1);
  animation: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

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

/* SCROLL REVEAL ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================= */
@media (max-width: 992px) {
  .hero-title { font-size: 3rem; }
  
  .materials-grid {
    grid-template-columns: 1fr;
  }
  
  .highlight-card {
    grid-template-columns: 1fr;
  }
  
  .highlight-img {
    height: 300px;
    min-height: auto;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .footer-info {
    text-align: center;
  }
  
  .navbar-nav {
    display: none; /* Hide for mobile initially */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
  }

  .navbar-nav.show {
    display: flex;
  }

  .navbar:not(.scrolled) .navbar-nav .nav-link {
    color: var(--color-dark);
    text-shadow: none;
  }

  .nav-actions {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero {
    min-height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden;
    padding-top: 80px;
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
    border-bottom: none;
  }

  .navbar .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 4rem;
    --spacing-lg: 3rem;
  }
  
  /* .hero height handled by the mobile-menu media query above */
  
  .hero-title { font-size: 2.25rem; }
  .hero-desc { font-size: 1.1rem; }
  
  .therapies-banner h2 { font-size: 1.75rem; }
  
  .highlight-content { padding: 2rem; }
  .highlight-title { font-size: 1.75rem; }
  
  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-height: 550px) and (orientation: landscape) {
  .hero {
    height: auto !important; /* Libera a altura fixa para permitir scroll */
    min-height: 120vh !important;
    padding-top: 60px !important;
    padding-bottom: 40px;
    align-items: flex-start; /* Alinha no topo para não sumir com o texto */
  }
  .hero-title {
    font-size: 1.5rem !important;
    margin-bottom: 0.5rem;
  }
  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }
  .navbar {
    padding: 0.25rem 0 !important;
  }
  .navbar-brand img {
    height: 30px !important;
  }
  .hero-buttons {
    gap: 0.5rem;
  }
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* =========================================================================
   EASTER EGGS (CSS)
   ========================================================================= */
.easter-egg-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100dvh !important;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000000; /* Força acima de qualquer contexto */
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}
.easter-egg-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.easter-egg-close {
  position: absolute;
  top: 15px; right: 20px;
  width: 45px; height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  border: 2px solid #fff;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.easter-egg-close:hover {
  transform: scale(1.1);
  background: var(--color-autism-red);
  border-color: var(--color-autism-red);
}
.easter-egg-title {
  font-size: 2rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-align: center;
  background: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 10000;
}
.ee-item {
  position: absolute;
  bottom: -150px; /* Garante que nasça fora da área visível */
  cursor: pointer;
  animation: floatUp 6s linear forwards;
  transition: transform 0.2s;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  z-index: 10000;
}
.ee-bubble {
  width: 120px; height: 120px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 30%),
              radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%),
              radial-gradient(circle at center, var(--bubble-color-alpha) 0%, rgba(255,255,255,0.1) 100%);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.4), 
              inset 10px 0 30px var(--bubble-color-alpha), 
              inset -10px 0 20px var(--bubble-color-alpha), 
              0 4px 10px rgba(0,0,0,0.1);
  backdrop-filter: blur(2px);
}
.ee-item:hover {
  transform: scale(1.15);
}
.ee-pop {
  transform: scale(1.5) !important;
  opacity: 0 !important;
  transition: all 0.05s ease-out !important;
}
@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-120vh) rotate(180deg); opacity: 0; }
}
.ee-item.ee-down {
  top: -100px;
  bottom: auto;
  animation-name: floatDown;
}
@keyframes floatDown {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(120vh) rotate(180deg); opacity: 0; }
}

/* Modo Magia */
.magia-spin {
  animation: spinMagia 3s infinite ease-in-out alternate !important;
}
@keyframes spinMagia {
  0% { transform: perspective(1000px) rotateY(-10deg) scale(0.95); filter: hue-rotate(0deg); }
  100% { transform: perspective(1000px) rotateY(10deg) scale(1.05); filter: hue-rotate(60deg); }
}
