/* ============================================
   GIL ACADEMY — Blue/Sky Design (converted from JSX)
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: linear-gradient(to bottom, #f0f9ff, #eff6ff, #ecfeff);
  color: #0f172a;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---- BACKGROUND BLOBS ---- */
.bg-blobs {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
}
.blob-1 { left: -4rem; top: -3rem; width: 20rem; height: 20rem; background: rgba(125,211,252,0.35); }
.blob-2 { right: -2rem; top: 6rem; width: 26rem; height: 26rem; background: rgba(147,197,253,0.30); }
.blob-3 { bottom: 2.5rem; left: 33%; width: 20rem; height: 20rem; background: rgba(103,232,249,0.25); }
.blob-radial {
  inset: 0; position: absolute;
  background: radial-gradient(circle at top, rgba(59,130,246,0.16), transparent 60%);
  filter: none; border-radius: 0;
}

/* ---- LAYOUT ---- */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4rem 0; }
.section-tinted { background: linear-gradient(to bottom, rgba(186,230,253,0.7), #f0f9ff, #ecfeff); border-top: 1px solid rgba(147,197,253,0.6); border-bottom: 1px solid rgba(147,197,253,0.6); }

/* ---- TYPOGRAPHY ---- */
.site-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; color: #020617; }
.site-tagline { font-size: 1.1rem; line-height: 2; color: #334155; max-width: 42rem; margin-top: 0.75rem; }
.section-title { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; margin-top: 0.5rem; }
.section-desc { margin-top: 1rem; line-height: 2; color: #475569; max-width: 36rem; }
.card-title { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; margin-top: 0.75rem; }
.card-body { margin-top: 1rem; line-height: 2; color: #475569; max-width: 36rem; }

/* ---- HEADER ---- */
.site-header {
  border-bottom: 1px solid rgba(147,197,253,0.6);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(12px);
}
.header-inner { padding: 5rem 0; max-width: 48rem; }
.brand-row { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0 0; }
.logo-box {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  border: 1px solid #bfdbfe;
  background: white;
  box-shadow: 0 4px 12px rgba(147,197,253,0.5);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.logo-fallback {
  font-size: 1.5rem; font-weight: 800; color: #1d4ed8;
}
.header-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 2.75rem; padding: 0 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.95rem; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s;
}
.btn-primary {
  background: #2563eb; color: white;
  box-shadow: 0 4px 14px rgba(147,197,253,0.5);
}
.btn-primary:hover { background: #1d4ed8; transform: translateY(-1px); }
.btn-outline {
  border: 1.5px solid #bfdbfe;
  background: rgba(255,255,255,0.8); color: #1e3a8a;
}
.btn-outline:hover { background: #eff6ff; }
.btn-full { width: 100%; height: 2.75rem; font-size: 1rem; }
.btn-rounded { border-radius: 100px; }

/* ---- BADGE / TAG PILLS ---- */
.badge-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 1rem; border-radius: 100px;
  border: 1px solid #bfdbfe; background: #dbeafe;
  font-size: 0.85rem; font-weight: 500; color: #1e40af;
  margin-bottom: 1.25rem;
}
.tag-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.2rem 0.75rem; border-radius: 100px;
  font-size: 0.82rem; font-weight: 500;
  margin-bottom: 1rem;
}
.tag-sky { border: 1px solid #bae6fd; background: #f0f9ff; color: #0369a1; }
.tag-blue { border: 1px solid #bfdbfe; background: #eff6ff; color: #1d4ed8; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.icon { width: 1rem; height: 1rem; }

/* ---- CARDS ---- */
.card {
  background: rgba(255,255,255,0.85);
  border: 1px solid #bfdbfe;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(147,197,253,0.4);
}
.card-mission { padding: 2.5rem; }
.card-pillar {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
  background: rgba(255,255,255,0.8);
}
.card-pillar:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(147,197,253,0.6); }
.pillar-icon {
  width: 2.75rem; height: 2.75rem; flex-shrink: 0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
  color: white; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(147,197,253,0.5);
}
.pillar-icon svg { width: 1.25rem; height: 1.25rem; }
.pillar-title { font-weight: 600; color: #0f172a; }
.pillar-desc { font-size: 0.875rem; line-height: 1.75; color: #475569; margin-top: 0.25rem; }

/* ---- MISSION + PILLARS GRID ---- */
.grid-mission {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}
.pillars-stack { display: flex; flex-direction: column; gap: 1rem; }

/* ---- SECTION HEADER ---- */
.section-header { max-width: 48rem; margin-bottom: 2.5rem; }

/* ---- RESEARCH CARDS ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card-research {
  padding: 1.5rem; height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
  background: rgba(255,255,255,0.95);
}
.card-research:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(147,197,253,0.7); }
.research-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: white; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(147,197,253,0.4);
  margin-bottom: 1.25rem;
}
.research-icon svg { width: 1.25rem; height: 1.25rem; }
.research-title { font-size: 1.1rem; font-weight: 600; color: #0f172a; }
.research-desc { font-size: 0.875rem; line-height: 1.75; color: #475569; margin-top: 0.5rem; }
.research-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.875rem; font-weight: 500; color: #1e3a8a;
  text-decoration: none; transition: gap 0.2s;
}
.research-link:hover { gap: 0.65rem; }
.arrow-icon { width: 1rem; height: 1rem; transition: transform 0.2s; }
.research-link:hover .arrow-icon { transform: translateX(3px); }

/* ---- PATENTS ---- */
.card-patents {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 0; overflow: hidden; padding: 0;
}
.patents-highlight {
  background: linear-gradient(135deg, #1d4ed8, #0369a1, #0891b2);
  color: white; padding: 2rem 2.5rem;
}
.patents-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: rgba(255,255,255,0.1); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
}
.patents-icon svg { width: 1.5rem; height: 1.5rem; }
.patents-title { font-size: 1.5rem; font-weight: 600; }
.patents-sub { margin-top: 1rem; line-height: 2; color: #e0f2fe; }
.patents-body {
  display: flex; align-items: center; padding: 2rem 2.5rem;
}
.patents-body p { line-height: 2; color: #475569; }

/* ---- CONTACT ---- */
.grid-contact {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem; align-items: start;
}
.contact-info { padding-top: 0.5rem; }
.card-form { padding: 1.5rem; box-shadow: 0 20px 50px rgba(147,197,253,0.5); background: white; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 500; color: #334155; margin-bottom: 0.35rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.65rem 0.875rem;
  height: 2.75rem;
  border: 1.5px solid #bfdbfe;
  border-radius: 0.75rem;
  background: rgba(239,246,255,0.3);
  font-family: inherit; font-size: 0.95rem; color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group textarea { height: auto; resize: vertical; }
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,0.2);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #94a3b8; }

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid #bfdbfe;
  background: white;
  padding: 2.5rem 0;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; align-items: center;
}
.footer-name { font-weight: 600; color: #0f172a; }
.footer-desc { font-size: 0.875rem; line-height: 1.75; color: #64748b; margin-top: 0.5rem; }
.footer-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.footer-note { font-size: 0.75rem; color: #94a3b8; }

/* ---- ANIMATIONS ---- */
.fade-up { animation: fadeUp 0.5s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up-scroll { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
.fade-up-scroll.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .grid-mission { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .card-patents { grid-template-columns: 1fr; }
  .grid-contact { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-actions { align-items: flex-start; }
}
@media (max-width: 640px) {
  .header-inner { padding: 3rem 0; }
  .section { padding: 3rem 0; }
}
