@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #2a9e1a;
  --green-light: #3dbf2e;
  --green-dark: #1e7514;
  --dark: #1a1f1c;
  --dark2: #242b26;
  --charcoal: #2e3830;
  --light: #f4f7f4;
  --white: #ffffff;
  --text: #1e2520;
  --muted: #6b7a6e;
  --border: #e0e8e1;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); overflow-x: hidden; }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes truckDrive {
  0% { transform: translateX(-120px); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes roadLine {
  from { transform: translateX(-100%); }
  to { transform: translateX(400%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42,158,26,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(42,158,26,0); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fadeUp { animation: fadeUp 0.7s ease forwards; }
.animate-slideRight { animation: slideRight 0.7s ease forwards; }
.animate-slideLeft { animation: slideLeft 0.7s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.65s; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── NAV ─── */
nav {
  background: rgba(26,31,28,0.95);
  backdrop-filter: blur(12px);
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(42,158,26,0.2);
  transition: background 0.3s;
}
.logo-wrap { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 46px; width: auto; }
.logo-text { color: var(--white); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px; }
.logo-text span { color: var(--green-light); }

nav ul { list-style: none; display: flex; gap: 2rem; align-items: center; }
nav ul a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.93rem; font-weight: 500; transition: color 0.2s; position: relative; }
nav ul a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--green-light); transition: width 0.3s; }
nav ul a:hover::after, nav ul a.active::after { width: 100%; }
nav ul a:hover, nav ul a.active { color: var(--white); }
.nav-pill {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(42,158,26,0.4);
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.nav-pill::after { display: none !important; }
.nav-pill:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 24px rgba(42,158,26,0.5) !important; }

/* ─── HERO ─── */
.hero {
  min-height: 90vh;
  background: linear-gradient(135deg, #0d1410 0%, #1a2b1c 40%, #1f3320 70%, #162a18 100%);
  background-size: 300% 300%;
  animation: gradientShift 8s ease infinite;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 5%;
}

/* grid overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(42,158,26,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,158,26,0.07) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.orb1 { width: 400px; height: 400px; background: rgba(42,158,26,0.18); top: -100px; right: 100px; animation: float 7s ease-in-out infinite; }
.orb2 { width: 250px; height: 250px; background: rgba(42,158,26,0.12); bottom: 50px; left: 10%; animation: float 9s ease-in-out infinite reverse; }

.hero-content { max-width: 640px; position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(42,158,26,0.15);
  border: 1px solid rgba(42,158,26,0.35);
  color: #6de85b;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease forwards;
}
.hero-tag .dot { width: 7px; height: 7px; background: #6de85b; border-radius: 50%; animation: pulseGreen 2s infinite; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 22px;
  animation: fadeUp 0.6s 0.15s ease both;
}
.hero h1 em { color: var(--green-light); font-style: normal; display: block; }
.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 40px;
  animation: fadeUp 0.6s 0.3s ease both;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp 0.6s 0.45s ease both; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 30px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: all 0.25s; font-size: 0.95rem; cursor: pointer; }
.btn-green { background: linear-gradient(135deg, var(--green), var(--green-light)); color: var(--white); box-shadow: 0 6px 24px rgba(42,158,26,0.45); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(42,158,26,0.5); }
.btn-ghost { border: 2px solid rgba(255,255,255,0.3); color: var(--white); }
.btn-ghost:hover { border-color: var(--green-light); color: var(--green-light); }

/* truck visual */
.hero-visual {
  position: absolute;
  right: 4%;
  bottom: 0;
  z-index: 1;
  animation: truckDrive 1.2s 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.truck-wrap { position: relative; }
.truck-icon { font-size: 9rem; filter: drop-shadow(0 20px 40px rgba(42,158,26,0.4)); animation: float 5s ease-in-out infinite; }
.road-line {
  position: absolute;
  bottom: -4px;
  left: -60px;
  right: -20px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--green-light), transparent);
  overflow: hidden;
}
.road-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 40%;
  height: 100%;
  background: white;
  animation: roadLine 1.5s linear infinite;
}

/* ─── STATS BAR ─── */
.stats-bar {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 32px 5%;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px);
}
.stat-item { position: relative; }
.stat-item + .stat-item::before {
  content: '';
  position: absolute; left: 0; top: 20%; height: 60%;
  width: 1px; background: rgba(255,255,255,0.2);
}
.stat-num { font-size: 2.4rem; font-weight: 900; color: var(--white); line-height: 1; animation: countUp 0.8s ease both; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.8); margin-top: 6px; font-weight: 500; letter-spacing: 0.5px; }

/* ─── SECTIONS ─── */
section { padding: 90px 5%; }
.bg-dark { background: var(--dark); color: var(--white); }
.bg-dark .section-title { color: var(--white); }
.bg-dark .section-sub { color: rgba(255,255,255,0.6); }
.bg-light { background: var(--light); }

.section-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--green); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 2px; background: var(--green); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; color: var(--dark); margin-bottom: 16px; line-height: 1.2; }
.section-sub { color: var(--muted); font-size: 1.05rem; line-height: 1.8; max-width: 520px; margin-bottom: 56px; }

/* ─── SERVICES GRID ─── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 30px;
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(42,158,26,0.12); border-color: rgba(42,158,26,0.25); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, rgba(42,158,26,0.1), rgba(42,158,26,0.2));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: transform 0.3s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-3deg); }
.service-card h3 { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.7; }

/* ─── WHY US ─── */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.why-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: background 0.3s, border-color 0.3s;
}
.why-item:hover { background: rgba(42,158,26,0.08); border-color: rgba(42,158,26,0.25); }
.why-icon {
  width: 50px; height: 50px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(42,158,26,0.35);
}
.why-item h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.why-item p { color: rgba(255,255,255,0.55); font-size: 0.9rem; line-height: 1.6; }

/* ─── CTA ─── */
.cta-section {
  background: linear-gradient(135deg, #0d1410, #1a2b1c, #0d1410);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  color: var(--white);
  text-align: center;
  padding: 100px 5%;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(42,158,26,0.15), transparent);
  pointer-events: none;
}
.cta-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; margin-bottom: 18px; position: relative; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 40px; position: relative; }

/* ─── FOOTER ─── */
footer {
  background: #0a0f0b;
  color: rgba(255,255,255,0.5);
  padding: 32px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.88rem;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--green-light); }
footer a.green-link { color: var(--green-light); text-decoration: none; }

/* ─── QUBYXO PAGE ─── */
.qub-hero {
  min-height: 80vh;
  background: linear-gradient(135deg, #0a0f1a 0%, #0d1f3a 50%, #091529 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 80px 5%;
}
.qub-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
  background-size: 50px 50px;
}
.qub-orb1 { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(59,130,246,0.12); filter: blur(80px); top: -80px; right: 80px; animation: float 8s ease-in-out infinite; }
.qub-orb2 { position: absolute; width: 250px; height: 250px; border-radius: 50%; background: rgba(99,102,241,0.1); filter: blur(60px); bottom: 40px; left: 15%; animation: float 11s ease-in-out infinite reverse; }

.qub-content { max-width: 640px; position: relative; z-index: 2; }
.qub-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.3);
  color: #7dc4ff;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}
.qub-dot { width: 7px; height: 7px; background: #7dc4ff; border-radius: 50%; }
.qub-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 900; color: var(--white); margin-bottom: 20px; line-height: 1.1; animation: fadeUp 0.6s 0.15s ease both; }
.qub-hero h1 em { color: #60aaff; font-style: normal; display: block; }
.qub-hero p { color: rgba(255,255,255,0.7); font-size: 1.1rem; line-height: 1.8; margin-bottom: 38px; animation: fadeUp 0.6s 0.3s ease both; }
.btn-blue { background: linear-gradient(135deg, #2563eb, #3b82f6); color: var(--white); box-shadow: 0 6px 24px rgba(37,99,235,0.4); }
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,99,235,0.5); }
.qub-hero .hero-btns { animation: fadeUp 0.6s 0.45s ease both; }

.qub-visual { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); z-index: 1; animation: slideLeft 1s 0.3s ease both; }
.qub-emoji { font-size: 8rem; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 20px 40px rgba(59,130,246,0.3)); }

/* subjects */
.subjects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.subject-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 28px 22px; text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative; overflow: hidden;
}
.subject-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.04), rgba(99,102,241,0.04));
  opacity: 0; transition: opacity 0.3s;
}
.subject-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(37,99,235,0.12); border-color: rgba(37,99,235,0.25); }
.subject-card:hover::after { opacity: 1; }
.subject-card .icon { font-size: 2.4rem; margin-bottom: 14px; display: block; }
.subject-card h3 { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 8px; }
.subject-card p { color: var(--muted); font-size: 0.87rem; line-height: 1.6; }

/* grades */
.grades-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grade-card { border-radius: 16px; padding: 36px 28px; color: var(--white); position: relative; overflow: hidden; transition: transform 0.3s; }
.grade-card:hover { transform: scale(1.03); }
.grade-card::before { content: ''; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.grade-card:nth-child(1) { background: linear-gradient(135deg, #047857, #059669, #10b981); }
.grade-card:nth-child(2) { background: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6); }
.grade-card:nth-child(3) { background: linear-gradient(135deg, #6d28d9, #7c3aed, #8b5cf6); }
.grade-card .gicon { font-size: 2.2rem; margin-bottom: 16px; display: block; }
.grade-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.grade-card p { font-size: 0.9rem; opacity: 0.85; line-height: 1.6; }

/* how it works */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; counter-reset: steps; }
.how-step {
  background: var(--white); border-radius: 14px; padding: 30px 26px;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}
.how-step:hover { box-shadow: 0 12px 36px rgba(37,99,235,0.1); border-color: rgba(37,99,235,0.2); transform: translateY(-4px); }
.step-num {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(37,99,235,0.4);
}
.how-step h3 { font-size: 1.05rem; font-weight: 800; color: var(--dark); margin-bottom: 10px; }
.how-step p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* trust items */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.trust-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px 20px; background: var(--white); border-radius: 12px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.trust-item:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.07); transform: translateY(-3px); }
.trust-check { width: 34px; height: 34px; background: linear-gradient(135deg, #dcfce7, #bbf7d0); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.trust-item h4 { font-size: 0.95rem; font-weight: 800; color: var(--dark); margin-bottom: 5px; }
.trust-item p { color: var(--muted); font-size: 0.87rem; line-height: 1.5; }

.qub-cta {
  background: linear-gradient(135deg, #060d1a, #0d1f3a, #060d1a);
  background-size: 200% 200%;
  animation: gradientShift 10s ease infinite;
  color: var(--white); text-align: center; padding: 100px 5%;
  position: relative; overflow: hidden;
}
.qub-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(37,99,235,0.15), transparent);
  pointer-events: none;
}
.qub-cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 900; margin-bottom: 18px; position: relative; }
.qub-cta p { color: rgba(255,255,255,0.7); font-size: 1.1rem; margin-bottom: 40px; position: relative; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-visual { display: none; }
  .qub-visual { display: none; }
  .grades-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  nav ul { gap: 1rem; }
  .logo-text { display: none; }
}
