/* =============================================
   BrubsEduca — style.css
   ============================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal-deep:    #0a4a62;
  --teal-mid:     #0e6a8a;
  --teal-bright:  #17a4cf;
  --teal-light:   #5dcfef;
  --teal-glow:    #a0eff8;
  --aqua:         #7fffd4;
  --amber:        #f9c784;
  --coral:        #ff8b8b;
  --white:        #ffffff;
  --glass-bg:     rgba(255,255,255,0.10);
  --glass-border: rgba(255,255,255,0.20);
  --font-main:    'Space Grotesk', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

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

body {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-mid) 40%, #0d8aac 70%, #10a8c8 100%);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

/* ---------- Organic blobs ---------- */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}
.blob-a {
  width: 520px; height: 520px;
  background: var(--teal-light);
  top: -140px; left: -160px;
  animation: blobDrift 14s ease-in-out infinite alternate;
}
.blob-b {
  width: 380px; height: 380px;
  background: var(--aqua);
  bottom: 60px; right: -100px;
  animation: blobDrift 18s ease-in-out infinite alternate-reverse;
}
.blob-c {
  width: 280px; height: 280px;
  background: var(--amber);
  top: 55%; left: 42%;
  animation: blobDrift 22s ease-in-out infinite alternate;
}

@keyframes blobDrift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 24px) scale(1.06); }
}

/* ---------- Floating pixel dots ---------- */
.pixel-field { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.px {
  position: absolute;
  display: block;
  border-radius: 3px;
  opacity: 0.35;
  animation: floatUp linear infinite;
}
.px1  { width:8px;  height:8px;  background:var(--teal-glow); left:6%;   bottom:-10%; animation-duration:12s; animation-delay:0s; }
.px2  { width:5px;  height:5px;  background:var(--aqua);       left:18%;  bottom:-10%; animation-duration:16s; animation-delay:2s; }
.px3  { width:10px; height:10px; background:var(--amber);      left:35%;  bottom:-10%; animation-duration:10s; animation-delay:4s; }
.px4  { width:6px;  height:6px;  background:var(--teal-glow);  left:52%;  bottom:-10%; animation-duration:14s; animation-delay:1s; }
.px5  { width:9px;  height:9px;  background:var(--aqua);       left:68%;  bottom:-10%; animation-duration:11s; animation-delay:6s; }
.px6  { width:5px;  height:5px;  background:var(--coral);      left:80%;  bottom:-10%; animation-duration:18s; animation-delay:3s; }
.px7  { width:7px;  height:7px;  background:var(--amber);      left:91%;  bottom:-10%; animation-duration:13s; animation-delay:5s; }
.px8  { width:4px;  height:4px;  background:var(--teal-glow);  left:44%;  bottom:-10%; animation-duration:20s; animation-delay:7s; }

@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg);    opacity: 0; }
  10%  { opacity: 0.35; }
  90%  { opacity: 0.20; }
  100% { transform: translateY(-105vh) rotate(270deg); opacity: 0; }
}

/* ---------- Animate-in utility ---------- */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate-in.visible { opacity: 1; transform: translateY(0); }

.delay-1  { transition-delay: 0.05s; }
.delay-2  { transition-delay: 0.15s; }
.delay-3  { transition-delay: 0.25s; }
.delay-4  { transition-delay: 0.35s; }
.delay-5  { transition-delay: 0.50s; }
.delay-6  { transition-delay: 0.65s; }
.delay-7  { transition-delay: 0.80s; }

/* ---------- Layout ---------- */
main { position: relative; z-index: 1; }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  align-items: center;
  justify-items: center;
  gap: 2.4rem;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

/* ---------- Brand badge ---------- */
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 0.45rem 1.1rem;
  border-radius: 99px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-glow);
}
.badge-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 8px var(--aqua);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.5); opacity: 0.6; }
}

/* ---------- Illustration card ---------- */
.illustration-card {
  position: relative;
  width: min(340px, 90vw);
  height: min(340px, 90vw);
}

.illus-bg {
  position: absolute;
  inset: 0;
  border-radius: 38% 62% 55% 45% / 45% 38% 62% 55%;
  background: linear-gradient(140deg, rgba(23,164,207,0.35) 0%, rgba(127,255,212,0.15) 100%);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  animation: morphBlob 10s ease-in-out infinite alternate;
}
@keyframes morphBlob {
  0%  { border-radius: 38% 62% 55% 45% / 45% 38% 62% 55%; }
  50% { border-radius: 55% 45% 38% 62% / 60% 50% 50% 40%; }
  100%{ border-radius: 45% 55% 62% 38% / 38% 62% 45% 55%; }
}

.illus-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pixel grid decoration */
.pixel-grid {
  position: absolute;
  bottom: 24px; left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.grid-row { display: flex; gap: 4px; }
.g {
  width: 8px; height: 8px;
  border-radius: 2px;
}
.g.on  { background: var(--aqua); opacity: 0.7; }
.g.off { background: rgba(255,255,255,0.15); }

/* Avatar */
.avatar-wrap { position: relative; z-index: 2; }
.avatar-svg  { width: min(200px, 56vw); height: auto; filter: drop-shadow(0 12px 32px rgba(0,0,0,0.25)); }

/* Mini floating badges */
.mini-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  border-radius: 99px;
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  color: var(--white);
  white-space: nowrap;
  z-index: 3;
}
.mb-icon { font-size: 0.65rem; opacity: 0.8; }
.mb1 { top: 12%;  right: -12%; animation: floatBadge 5s ease-in-out infinite; }
.mb2 { top: 50%;  right: -16%; animation: floatBadge 6s ease-in-out infinite 1s; }
.mb3 { bottom: 14%; left: -10%; animation: floatBadge 4.5s ease-in-out infinite 0.5s; }

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

/* ---------- Hero text content ---------- */
.hero-content { max-width: 560px; width: 100%; }

.tagline {
  font-family: var(--font-main);
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: 500;
  color: var(--teal-glow);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.hero-name {
  font-family: var(--font-main);
  font-size: clamp(3.2rem, 11vw, 6.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.8rem;
  text-shadow: 0 4px 32px rgba(0,0,0,0.18);
}

/* ---------- Glass card ---------- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 2rem;
}

.bio {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2.4vw, 1.05rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.88);
}
.bio strong { color: var(--aqua); font-weight: 600; }

/* ---------- Social buttons ---------- */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 1.5rem;
  border-radius: 99px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.25s ease,
              filter 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.2s ease;
}
.btn:hover::after { background: rgba(255,255,255,0.12); }
.btn:hover { transform: translateY(-4px) scale(1.03); }
.btn:active { transform: translateY(-1px) scale(0.99); }

.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

/* Instagram */
.btn-instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #8134af 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(221,42,123,0.4);
}
.btn-instagram:hover { box-shadow: 0 8px 30px rgba(221,42,123,0.55); filter: brightness(1.08); }

/* WhatsApp */
.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover { box-shadow: 0 8px 30px rgba(37,211,102,0.5); filter: brightness(1.08); }

/* E-mail */
.btn-email {
  background: linear-gradient(135deg, var(--teal-bright) 0%, var(--teal-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(23,164,207,0.35);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-email:hover { box-shadow: 0 8px 30px rgba(23,164,207,0.5); filter: brightness(1.1); }

/* TikTok */
.btn-tiktok {
  background: linear-gradient(135deg, #010101 0%, #2d2d2d 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-tiktok:hover { box-shadow: 0 8px 30px rgba(105,201,208,0.4); filter: brightness(1.15); }

/* LinkedIn */
.btn-linkedin {
  background: linear-gradient(135deg, #0a66c2 0%, #004e8f 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(10,102,194,0.4);
}
.btn-linkedin:hover { box-shadow: 0 8px 30px rgba(10,102,194,0.55); filter: brightness(1.1); }

/* EducaMarket */
.btn-educamarket {
  background: linear-gradient(135deg, #f97316 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(249,115,22,0.4);
}
.btn-educamarket:hover { box-shadow: 0 8px 30px rgba(249,115,22,0.55); filter: brightness(1.08); }

/* Já Tá Pronto */
.btn-jatapronto {
  background: linear-gradient(135deg, #7c3aed 0%, #4f1a9c 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}
.btn-jatapronto:hover { box-shadow: 0 8px 30px rgba(124,58,237,0.55); filter: brightness(1.08); }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.10);
}

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

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  color: var(--teal-glow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.footer-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--aqua);
  display: inline-block;
  transform: rotate(45deg);
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  margin-top: 0.4rem;
}

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "badge  badge"
      "illus  content";
    text-align: left;
    padding: 6rem 8vw 5rem;
    gap: 0 4rem;
  }

  .brand-badge    { grid-area: badge; justify-self: start; }
  .illustration-card { grid-area: illus; justify-self: center; }
  .hero-content   { grid-area: content; max-width: 100%; }

  .social-buttons { justify-content: flex-start; }
  .tagline        { text-align: left; }
}

@media (max-width: 480px) {
  .mb1, .mb2, .mb3 { display: none; }
  .pixel-grid { display: none; }
}
