/* ============================================================
   JoJo Jelly — Design tokens
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,500&display=swap');

:root{
  /* candy-jelly palette */
  --grape:      #7C3AED;
  --grape-dark: #5B21B6;
  --bubblegum:  #EC4899;
  --tangerine:  #FB923C;
  --lemon:      #FACC15;
  --sky:        #38BDF8;
  --ink:        #1B1030;
  --ink-soft:   #4A3F63;
  --cream:      #FFFBF3;
  --cream-dim:  #FBF3E7;
  --white:      #FFFFFF;

  --grad-jelly: linear-gradient(120deg, var(--grape) 0%, var(--bubblegum) 52%, var(--tangerine) 100%);
  --grad-sky:   linear-gradient(120deg, var(--sky) 0%, var(--grape) 100%);
  --grad-warm:  linear-gradient(120deg, var(--tangerine) 0%, var(--lemon) 100%);

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --radius-blob-1: 42% 58% 70% 30% / 45% 45% 55% 55%;
  --radius-blob-2: 60% 40% 30% 70% / 50% 60% 40% 50%;
  --radius-blob-3: 30% 70% 65% 35% / 55% 35% 65% 45%;

  --container: 1180px;
  --shadow-soft: 0 20px 45px -20px rgba(124,58,237,.35);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family: var(--font-display); font-weight:600; margin:0; line-height:1.08; }
p{ margin:0; }

.wrap{ max-width: var(--container); margin:0 auto; padding:0 28px; }
section{ position:relative; }

.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--font-body); font-weight:700; font-size:.78rem;
  letter-spacing:.14em; text-transform:uppercase;
  color: var(--grape-dark);
  background: rgba(124,58,237,.08);
  border: 1px solid rgba(124,58,237,.18);
  padding:7px 16px; border-radius:999px;
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background: var(--bubblegum); animation: pulse-dot 1.8s ease-in-out infinite; }
@keyframes pulse-dot{ 0%,100%{ transform:scale(1); opacity:1; } 50%{ transform:scale(1.5); opacity:.55; } }

.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--font-body); font-weight:700; font-size:.95rem;
  padding:14px 26px; border-radius:999px; border:none; cursor:pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
  white-space:nowrap;
}
.btn:hover{ transform: translateY(-3px) scale(1.02); }
.btn:focus-visible{ outline:3px solid var(--sky); outline-offset:3px; }
.btn-primary{ background: var(--grad-jelly); color:var(--white); box-shadow: var(--shadow-soft); }
.btn-ghost{ background: var(--white); color:var(--ink); border:2px solid rgba(27,16,48,.12); }
.btn-ghost:hover{ border-color: var(--grape); }
.btn-block{ width:100%; justify-content:center; }
.btn svg{ width:18px; height:18px; flex:none; }

/* ============================================================
   Nav
   ============================================================ */
.nav{
  position:sticky; top:0; z-index:50;
  background: rgba(255,251,243,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(27,16,48,.06);
}
.nav .wrap{ display:flex; align-items:center; justify-content:space-between; padding-top:16px; padding-bottom:16px; }
.brand{ display:flex; align-items:center; gap:10px; font-family:var(--font-display); font-weight:700; font-size:1.3rem; color:var(--ink); }
.brand .blob-logo{ width:36px; height:36px; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{ font-weight:600; font-size:.95rem; color:var(--ink-soft); transition: color .2s ease; }
.nav-links a:hover{ color: var(--grape); }
.nav-cta{ display:flex; align-items:center; gap:14px; }
.nav-social{ display:flex; gap:10px; }
.nav-social a{
  width:36px; height:36px; border-radius:50%; display:grid; place-items:center;
  background: var(--white); border:1px solid rgba(27,16,48,.1); color:var(--ink-soft);
  transition: all .2s ease;
}
.nav-social a:hover{ background: var(--grad-jelly); color:var(--white); border-color:transparent; transform: translateY(-2px); }
.nav-social svg{ width:16px; height:16px; }
.nav-toggle{ display:none; }

/* ============================================================
   Hero
   ============================================================ */
.hero{ padding: 76px 0 40px; position:relative; }
.hero .wrap{ display:grid; grid-template-columns: 1.05fr .95fr; gap:40px; align-items:center; }
.hero h1{ font-size: clamp(2.4rem, 4.6vw, 3.7rem); margin:20px 0 22px; color:var(--ink); }
.hero h1 em{
  font-style:normal; background:var(--grad-jelly); background-size:220% auto;
  -webkit-background-clip:text; background-clip:text; color:transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer{ to{ background-position: -220% center; } }
.hero p.lead{ font-size:1.13rem; color:var(--ink-soft); max-width:52ch; margin-bottom:32px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:38px; }
.hero-tags{ display:flex; gap:10px; flex-wrap:wrap; }
.hero-tags span{
  font-size:.82rem; font-weight:600; color:var(--ink-soft);
  background:var(--white); border:1px solid rgba(27,16,48,.08);
  padding:7px 14px; border-radius:999px;
}

.hero-art{ position:relative; height:460px; }
.hero-art .blob{ position:relative; }
.blob-wobble{ animation: wobble 9s ease-in-out infinite; }
.blob-wobble.delay{ animation-duration: 11s; animation-delay: -3s; }
.blob-wobble.delay2{ animation-duration: 7.5s; animation-delay: -1.5s; }
@keyframes wobble{
  0%,100%{ border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; transform: rotate(0deg) scale(1); }
  33%{ border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; transform: rotate(6deg) scale(1.03); }
  66%{ border-radius: 30% 70% 65% 35% / 55% 35% 65% 45%; transform: rotate(-5deg) scale(.98); }
}
@media (prefers-reduced-motion: reduce){
  .blob-wobble, .blob-wobble.delay, .blob-wobble.delay2{ animation: none; }
}

/* ============================================================
   Section headings
   ============================================================ */
.section-head{ max-width:640px; margin: 0 auto 48px; text-align:center; }
.section-head h2{ font-size: clamp(1.9rem,3vw,2.6rem); margin:16px 0 14px; }
.section-head p{ color: var(--ink-soft); font-size:1.05rem; }
.section-pad{ padding: 96px 0; }
.on-dark{ color: var(--cream); }
.on-dark .section-head p{ color: rgba(255,251,243,.75); }

/* ============================================================
   Channels
   ============================================================ */
.channel-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:24px; }
.channel-card{
  position:relative; padding:30px 24px; background: var(--white);
  border-radius: var(--radius-blob-1);
  border:1px solid rgba(27,16,48,.06);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-radius .4s ease, box-shadow .3s ease;
  display:flex; flex-direction:column; gap:14px; min-height:250px;
}
.channel-card:hover{ transform: translateY(-8px); border-radius: var(--radius-blob-2); box-shadow: var(--shadow-soft); }
.channel-card .icon{
  width:52px; height:52px; border-radius:50%; display:grid; place-items:center; color:var(--white); flex:none;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.channel-card:hover .icon{ transform: scale(1.12) rotate(6deg); }
.channel-card .icon svg{ width:26px; height:26px; }
.icon-youtube{ background:#FF3B5C; }
.icon-instagram{ background: linear-gradient(135deg,#F58529,#DD2A7B 45%,#8134AF 75%,#515BD4); }
.icon-facebook{ background:#3B6FF7; }
.channel-card h3{ font-size:1.15rem; }
.channel-card p{ color:var(--ink-soft); font-size:.92rem; flex:1; }
.channel-card .go{ font-weight:700; font-size:.88rem; color:var(--grape-dark); display:inline-flex; align-items:center; gap:6px; }
.channel-card .go svg{ width:14px; height:14px; transition: transform .2s ease; }
.channel-card:hover .go svg{ transform: translateX(4px); }

/* ============================================================
   Services
   ============================================================ */
.services{ background: var(--ink); }
.service-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:22px; }
.service-card{
  padding:32px 26px; border-radius:28px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.09);
  transition: transform .3s ease, background .3s ease;
}
.service-card:hover{ transform: translateY(-6px); background: rgba(255,255,255,.07); }
.service-card .num{ font-family:var(--font-display); font-size:.85rem; color: var(--lemon); letter-spacing:.08em; }
.service-card .icon-badge{
  width:50px; height:50px; border-radius:16px; margin:14px 0 18px;
  display:grid; place-items:center; background: var(--grad-jelly);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), border-radius .4s ease;
}
.service-card:hover .icon-badge{ transform: rotate(-8deg) scale(1.08); border-radius: var(--radius-blob-1); }
.service-card .icon-badge svg{ width:24px; height:24px; color:var(--white); }
.service-card h3{ color:var(--cream); font-size:1.18rem; margin-bottom:10px; }
.service-card p{ color: rgba(255,251,243,.68); font-size:.94rem; line-height:1.55; }

/* ============================================================
   Internships & Learning — subject chips
   ============================================================ */
.subject-grid{ display:grid; grid-template-columns: repeat(5,1fr); gap:16px; }
.subject-chip{
  display:flex; flex-direction:column; align-items:flex-start; gap:14px;
  padding:22px 18px; border-radius:22px; color:var(--white);
  font-family:var(--font-body); font-weight:700; font-size:.95rem; line-height:1.35;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-radius .4s ease;
}
.subject-chip:hover{ transform: translateY(-6px) scale(1.02); }
.subject-chip .icn{
  width:38px; height:38px; border-radius:12px; flex:none;
  display:grid; place-items:center; background: rgba(255,255,255,.22);
}
.subject-chip .icn svg{ width:20px; height:20px; }
.subject-chip:nth-child(5n+1){ background: var(--grad-jelly); }
.subject-chip:nth-child(5n+2){ background: var(--grad-sky); }
.subject-chip:nth-child(5n+3){ background: linear-gradient(120deg, var(--bubblegum), var(--lemon)); }
.subject-chip:nth-child(5n+4){ background: linear-gradient(120deg, var(--tangerine), var(--grape)); }
.subject-chip:nth-child(5n+5){ background: linear-gradient(120deg, var(--sky), var(--bubblegum)); }

/* ============================================================
   Process
   ============================================================ */
.process-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:20px; counter-reset:step; }
.process-step{ text-align:center; padding:0 10px; }
.process-step .step-badge{
  width:64px; height:64px; margin:0 auto 18px; border-radius: var(--radius-blob-3);
  display:grid; place-items:center; font-family:var(--font-display); font-weight:600; font-size:1.3rem;
  background: var(--grad-warm); color:var(--ink);
}
.process-step h4{ font-size:1.05rem; margin-bottom:8px; }
.process-step p{ font-size:.9rem; color:var(--ink-soft); }

/* ============================================================
   Feedback / testimonials
   ============================================================ */
.feedback-layout{ display:grid; grid-template-columns: .85fr 1.15fr; gap:44px; align-items:start; }
.feedback-form{
  background:var(--white); border-radius:28px; padding:32px; border:1px solid rgba(27,16,48,.06); box-shadow: var(--shadow-soft);
}
.field{ margin-bottom:16px; }
.field label{ display:block; font-weight:700; font-size:.84rem; margin-bottom:7px; color:var(--ink); }
.field input, .field textarea, .field select{
  width:100%; padding:13px 15px; border-radius:14px; border:1.5px solid rgba(27,16,48,.14);
  font-family:var(--font-body); font-size:.95rem; background:var(--cream-dim); color:var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline:none; border-color: var(--grape); background:var(--white);
}
.field textarea{ resize:vertical; min-height:96px; }
.star-rate{ display:flex; gap:6px; }
.star-rate button{
  background:none; border:none; cursor:pointer; padding:2px; color: rgba(27,16,48,.22); transition: color .15s ease, transform .15s ease;
}
.star-rate button svg{ width:26px; height:26px; }
.star-rate button.active, .star-rate button:hover{ color: var(--lemon); transform: scale(1.12); }
.form-msg{ font-size:.88rem; font-weight:600; margin-top:12px; min-height:20px; }
.form-msg.ok{ color:#0F9D58; }
.form-msg.err{ color:#E11D48; }

.feedback-wall{ display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.feedback-card{
  background:var(--white); border-radius:22px; padding:22px; border:1px solid rgba(27,16,48,.06);
}
.feedback-card .stars{ display:flex; gap:3px; color:var(--lemon); margin-bottom:10px; }
.feedback-card .stars svg{ width:15px; height:15px; }
.feedback-card p.msg{ font-size:.92rem; color:var(--ink-soft); margin-bottom:14px; line-height:1.55; }
.feedback-card .who{ font-weight:700; font-size:.88rem; }
.feedback-empty{ grid-column:1/-1; text-align:center; padding:40px 20px; color:var(--ink-soft); font-size:.92rem; background:var(--cream-dim); border-radius:20px; }

/* ============================================================
   Contact
   ============================================================ */
.contact{ background: var(--grad-jelly); }
.contact-layout{ display:grid; grid-template-columns: .9fr 1.1fr; gap:44px; align-items:flex-start; }
.contact-info h2{ color:var(--white); font-size: clamp(1.8rem,3vw,2.4rem); margin-bottom:16px; }
.contact-info p{ color: rgba(255,255,255,.85); margin-bottom:28px; }
.contact-list{ display:flex; flex-direction:column; gap:16px; }
.contact-list li{ display:flex; align-items:center; gap:14px; color:var(--white); font-weight:600; }
.contact-list .ic{ width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,.18); display:grid; place-items:center; flex:none; }
.contact-list .ic svg{ width:19px; height:19px; }
.contact-form{ background:var(--white); border-radius:28px; padding:34px; box-shadow: 0 30px 60px -20px rgba(27,16,48,.4); }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }

/* ============================================================
   Footer
   ============================================================ */
footer{ background: var(--ink); color: rgba(255,251,243,.7); padding:56px 0 28px; }
.footer-top{ display:grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap:32px; padding-bottom:36px; border-bottom:1px solid rgba(255,255,255,.08); }
.footer-brand .brand{ color:var(--cream); }
.footer-brand p{ margin-top:14px; font-size:.9rem; line-height:1.6; max-width:32ch; }
footer h5{ color:var(--cream); font-family:var(--font-body); font-size:.85rem; letter-spacing:.06em; text-transform:uppercase; margin-bottom:16px; }
footer ul li{ margin-bottom:11px; font-size:.92rem; }
footer ul li a:hover{ color: var(--lemon); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; padding-top:24px; font-size:.85rem; flex-wrap:wrap; gap:12px; }
.footer-social{ display:flex; gap:10px; }
.footer-social a{ width:34px; height:34px; border-radius:50%; background:rgba(255,255,255,.07); display:grid; place-items:center; }
.footer-social a svg{ width:15px; height:15px; }
.footer-social a:hover{ background: var(--grad-jelly); }

/* ============================================================
   Scroll progress bar
   ============================================================ */
#scroll-progress{
  position:fixed; top:0; left:0; height:4px; width:0%;
  background: var(--grad-jelly); z-index:80;
  transition: width .08s linear;
}

/* ============================================================
   Nav — shrinks & gains shadow once you scroll
   ============================================================ */
.nav{ transition: padding .3s ease, box-shadow .3s ease, background .3s ease; }
.nav .wrap{ transition: padding .3s ease; }
.nav.scrolled{ box-shadow: 0 8px 30px -18px rgba(27,16,48,.35); background: rgba(255,251,243,.96); }
.nav.scrolled .wrap{ padding-top:10px; padding-bottom:10px; }

/* ============================================================
   Hero parallax + scroll cue
   ============================================================ */
.blob-parallax{ position:absolute; will-change: transform; }
.hero-logo-badge{ width:100%; height:100%; animation: bob 5s ease-in-out infinite; }
.hero-logo-img{
  width:100%; height:100%; border-radius:50%; object-fit:cover;
  border:5px solid var(--white); box-shadow: 0 22px 44px -14px rgba(27,16,48,.5);
}
@keyframes bob{ 0%,100%{ transform:translateY(0) rotate(-2deg); } 50%{ transform:translateY(-14px) rotate(2deg); } }
.scroll-cue{
  position:absolute; left:50%; bottom:-46px; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:6px;
  color: var(--ink-soft); font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  opacity:.6;
}
.scroll-cue svg{ width:16px; height:16px; animation: cue-bounce 1.8s ease-in-out infinite; }
@keyframes cue-bounce{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(8px); } }

/* ============================================================
   Back-to-top button
   ============================================================ */
.back-to-top{
  position:fixed; right:22px; bottom:22px; z-index:70;
  width:52px; height:52px; border-radius: var(--radius-blob-1);
  background: var(--grad-jelly); color:var(--white); border:none; cursor:pointer;
  display:grid; place-items:center; box-shadow: var(--shadow-soft);
  opacity:0; transform: translateY(20px) scale(.7); pointer-events:none;
  transition: opacity .3s ease, transform .3s cubic-bezier(.34,1.56,.64,1), border-radius .4s ease;
}
.back-to-top.show{ opacity:1; transform:none; pointer-events:auto; }
.back-to-top:hover{ border-radius: var(--radius-blob-2); transform: translateY(-4px) scale(1.05); }
.back-to-top svg{ width:22px; height:22px; }

/* ============================================================
   Brand logo slot (swaps to real profile photo if images/logo.png exists)
   ============================================================ */
.brand-logo-slot{ display:inline-flex; width:36px; height:36px; flex:none; }
.logo-img{ width:36px; height:36px; border-radius:50%; object-fit:cover; border:2px solid rgba(255,255,255,.6); box-shadow:0 4px 14px -4px rgba(27,16,48,.4); }

/* ============================================================
   Reveal on scroll — replays both scrolling down AND up
   ============================================================ */
.reveal{
  opacity:0; transform: translateY(34px) scale(.97);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
.reveal.in{ opacity:1; transform:none; }

.reveal[data-reveal="left"]{ transform: translateX(-46px); }
.reveal[data-reveal="left"].in{ transform:none; }

.reveal[data-reveal="right"]{ transform: translateX(46px); }
.reveal[data-reveal="right"].in{ transform:none; }

.reveal[data-reveal="scale"]{ transform: scale(.82); }
.reveal[data-reveal="scale"].in{ transform:none; }

.reveal[data-reveal="up"]{ transform: translateY(46px); }
.reveal[data-reveal="up"].in{ transform:none; }

@media (prefers-reduced-motion: reduce){
  .reveal, .reveal[data-reveal]{ opacity:1 !important; transform:none !important; transition:none !important; }
  .blob-parallax{ transform:none !important; }
  .hero-logo-badge{ animation:none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-art{ height:340px; order:-1; }
  .channel-grid{ grid-template-columns: repeat(2,1fr); }
  .service-grid{ grid-template-columns: repeat(2,1fr); }
  .subject-grid{ grid-template-columns: repeat(3,1fr); }
  .process-grid{ grid-template-columns: repeat(2,1fr); row-gap:36px; }
  .feedback-layout, .contact-layout{ grid-template-columns:1fr; }
  .feedback-wall{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr 1fr; row-gap:28px; }
}
@media (max-width: 680px){
  .nav-links, .nav-social{ display:none; }
  .channel-grid, .service-grid{ grid-template-columns:1fr; }
  .subject-grid{ grid-template-columns: repeat(2,1fr); }
  .process-grid{ grid-template-columns:1fr; }
  .field-row{ grid-template-columns:1fr; }
  .section-pad{ padding:64px 0; }
  .footer-top{ grid-template-columns:1fr; }
  .footer-bottom{ flex-direction:column; align-items:flex-start; }
}
