/* =========================================================
   TinkerSpace.in — Stylesheet
   Theme: Navy + Orange, playful-but-credible STEM brand
   ========================================================= */

:root {
  --navy: #0B1E3F;
  --navy-soft: #12294F;
  --orange: #F5821E;
  --orange-soft: #FFB877;
  --white: #FFFFFF;
  --bg-light: #F8F9FC;
  --bg-card: #FFFFFF;
  --text-dark: #16213E;
  --text-muted: #6B7280;
  --green: #2FAE4E;
  --star: #FFB400;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(11, 30, 63, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 30, 63, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 30, 63, 0.18);

  --nav-height: 76px;
  --container: 1200px;

  --ease: cubic-bezier(.22,.9,.32,1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-font {
  font-family: 'Baloo 2', 'Poppins', sans-serif;
  color: var(--navy);
  margin: 0;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

.section {
  padding: 90px 0;
  position: relative;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-head h2 { font-size: clamp(26px, 4vw, 38px); }
.accent { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-soft); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn-accent { background: var(--orange); color: var(--white); }
.btn-accent:hover { background: #E0740F; box-shadow: 0 12px 28px rgba(245,130,30,.35); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* =========================
   Floating Navbar
   ========================= */
.navbar-wrap {
  position: fixed;
  top: 18px;
  left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  transition: top .3s var(--ease);
}
.navbar {
  width: 100%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  transition: padding .25s var(--ease), background .25s var(--ease);
}
.navbar-wrap.scrolled .navbar {
  padding: 8px 22px;
  background: rgba(255, 255, 255, 0.92);
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); font-size: 18px; }
.nav-logo .bulb { color: var(--orange); font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.nav-links a.active { color: var(--orange); }
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .25s var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; font-size: 22px; color: var(--navy); }

.mobile-panel {
  display: none;
  position: fixed;
  top: calc(var(--nav-height) + 24px);
  left: 16px; right: 16px;
  z-index: 999;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  flex-direction: column;
  gap: 4px;
}
.mobile-panel.open { display: flex; }
.mobile-panel a {
  padding: 12px 10px;
  font-weight: 600;
  color: var(--navy);
  border-radius: var(--radius-sm);
}
.mobile-panel a:hover { background: var(--bg-light); }

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 55%, var(--navy-soft) 100%);
  border-radius: 0 0 40px 40px;
  padding: calc(var(--nav-height) + 70px) 0 90px;
  overflow: hidden;
  color: var(--white);
}
.hero::before {
  content:'';
  position:absolute; inset:0;
  background-image: radial-gradient(circle, rgba(255,255,255,.18) 1px, transparent 1.5px);
  background-size: 26px 26px;
  opacity:.35;
  pointer-events:none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.hero-copy .eyebrow { color: var(--orange-soft); }
.hero-copy h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
}
.hero-copy p {
  color: rgba(255,255,255,.82);
  font-size: 17px;
  max-width: 480px;
  margin: 18px 0 30px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-outline { color: var(--white); border-color: rgba(255,255,255,.6); }
.hero-actions .btn-outline:hover { background: var(--white); color: var(--navy); }

.hero-badges {
  display: flex;
  gap: 26px;
  margin-top: 42px;
  flex-wrap: wrap;
}
.hero-badge { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }
.hero-badge i { color: var(--orange); font-size: 16px; }

.hero-art { position: relative; height: 420px; }
.hero-art svg { position: absolute; }
.float-y { animation: floatY 4.5s ease-in-out infinite; }
.float-y-slow { animation: floatY 6s ease-in-out infinite; }
.float-y-delay { animation: floatY 5s ease-in-out infinite; animation-delay: .8s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.spin-slow { animation: spinSlow 14s linear infinite; transform-origin: center; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* =========================
   Feature Cards
   ========================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 20px;
  background: var(--icon-bg, #EAF1FF);
  color: var(--icon-fg, var(--navy));
}
.feature-card h4 { font-size: 15px; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* =========================
   Courses Carousel
   ========================= */
.courses-section { background: var(--bg-light); }
.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 20px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.course-card {
  scroll-snap-align: start;
  flex: 0 0 260px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.course-thumb {
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--white);
}
.course-body { padding: 18px; }
.course-body h4 { font-size: 16px; margin-bottom: 4px; }
.course-age { font-size: 12px; color: var(--orange); font-weight: 700; margin-bottom: 8px; }
.course-body p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; min-height: 36px; }
.course-body a { font-size: 13px; font-weight: 700; color: var(--navy); }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); z-index: 5;
}
.carousel-arrow.prev { left: -10px; }
.carousel-arrow.next { right: -10px; }
.carousel-arrow:hover { background: var(--orange); color: var(--white); }
.courses-cta { text-align: center; margin-top: 30px; }

/* =========================
   Stats Band
   ========================= */
.stats-band {
  background: var(--navy);
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 36px 30px;
  max-width: calc(var(--container) - 48px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  color: var(--white);
}
.stat { display: flex; align-items: center; gap: 14px; }
.stat i { font-size: 26px; color: var(--orange); }
.stat .num { font-size: 24px; font-weight: 800; display: block; }
.stat .label { font-size: 12.5px; color: rgba(255,255,255,.75); }

/* =========================
   Projects Gallery
   ========================= */
.filter-row {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 34px;
}
.filter-pill {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  transition: all .2s;
}
.filter-pill.active, .filter-pill:hover { background: var(--navy); color: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; color: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease);
  cursor: pointer;
}
.gallery-item:hover { transform: scale(1.04); }
.gallery-item.hidden { display: none; }
.gallery-cta { text-align: center; margin-top: 30px; }

/* =========================
   Testimonials
   ========================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quote-mark { color: var(--orange); font-size: 26px; }
.testimonial-card p { font-size: 13.5px; color: var(--text-dark); margin: 10px 0 18px; min-height: 78px; }
.t-person { display: flex; align-items: center; gap: 10px; }
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: var(--navy); color:var(--white); font-weight:700; font-size:14px;
}
.t-name { font-size: 13.5px; font-weight: 700; }
.t-role { font-size: 12px; color: var(--text-muted); }
.t-stars { color: var(--star); font-size: 12px; margin-top: 4px; }

/* =========================
   Events
   ========================= */
.events-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.event-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease);
}
.event-card:hover { transform: translateY(-4px); }
.event-date {
  display: inline-flex; flex-direction: column; align-items: center;
  background: var(--navy); color: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  margin-bottom: 14px;
}
.event-date .mon { font-size: 11px; letter-spacing: 1px; color: var(--orange-soft); }
.event-date .day { font-size: 20px; font-weight: 800; line-height: 1; }
.event-card h4 { font-size: 15px; margin-bottom: 6px; }
.event-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; min-height: 40px; }
.event-meta { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.event-meta i { color: var(--orange); width: 14px; }

/* =========================
   CTA Banner
   ========================= */
.cta-banner {
  background: linear-gradient(120deg, var(--navy) 60%, #17356B 100%);
  border-radius: var(--radius-lg);
  margin: 0 24px;
  max-width: calc(var(--container) - 48px);
  margin-inline: auto;
  padding: 46px 50px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner h3 { color: var(--white); font-size: clamp(20px, 3vw, 28px); }
.cta-banner p { color: rgba(255,255,255,.75); margin: 8px 0 0; font-size: 14px; }
.cta-icon { font-size: 46px; color: var(--orange); }

/* =========================
   Ideation Section
   ========================= */
.ideation-section {
  background: linear-gradient(180deg, #FDECD9 0%, #FBF6ED 100%);
  border-radius: var(--radius-lg);
  margin: 60px 24px;
  max-width: calc(var(--container) - 48px);
  margin-inline: auto;
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}
.ideation-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
}
.idea-form { display: grid; gap: 16px; }
.idea-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #E5DCCB;
  background: var(--white);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  transition: border-color .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-error { color: #D9483C; font-size: 12px; margin-top: 4px; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D9483C; }
.field.has-error .field-error { display: block; }
.confirm-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.confirm-row input { width: auto; }
.form-submit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-size: 12px; color: var(--text-muted); }

.idea-success {
  display: none;
  background: #E9F9EE;
  border: 1.5px solid var(--green);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
}
.idea-success.show { display: block; }
.idea-success i { font-size: 32px; color: var(--green); margin-bottom: 10px; }
.idea-success h4 { margin-bottom: 6px; }
.idea-success p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }

.ideation-art { display: flex; justify-content: center; }

/* =========================
   Footer
   ========================= */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
  padding: 60px 0 20px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--white); font-size: 17px; margin-bottom: 10px;}
.footer-brand .bulb { color: var(--orange); }
.footer-col h5 { color: var(--white); font-size: 14px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; font-size: 13.5px; }
.footer-col ul li a:hover { color: var(--orange); }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; font-size: 13.5px; margin-bottom: 12px; }
.footer-contact i { color: var(--orange); margin-top: 3px; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.social-row a:hover { background: var(--orange); }
.footer-bottom { text-align: center; font-size: 12.5px; padding-top: 20px; color: rgba(255,255,255,.5); }

/* =========================
   WhatsApp Floating Button
   ========================= */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 26px;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5), var(--shadow-lg); }
  50% { box-shadow: 0 0 0 10px rgba(37,211,102,0), var(--shadow-lg); }
}

/* =========================
   Scroll reveal
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* =========================
   Responsive
   ========================= */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid, .events-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero-art { height: 320px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy p { margin-inline: auto; }
  .hero-actions, .hero-badges { justify-content: center; }
  .ideation-grid { grid-template-columns: 1fr; }
  .ideation-art { order: -1; }
  .cta-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid, .events-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr 1fr; padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .idea-form .row { grid-template-columns: 1fr; }
  .ideation-section, .cta-banner { padding: 34px 22px; margin-inline: 12px; }
  .section { padding: 60px 0; }
  .stats-band, .cta-banner { margin-inline: 12px; }
}
