:root {
    --bg: #ffffff;
    --fg: #111827;
    --muted: #6b7280;
    --accent: #2563eb;
    --accent2: #22c55e;
    --card: #ffffff;
    --border: #e5e7eb;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: var(--fg); background: var(--bg); }
  
  /* Navbar */
  .navbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,0.04); }
  .nav-inner { max-width: 1120px; margin: 0 auto; padding: 0.8rem 1.25rem; display: flex; align-items: center; }
  .nav-links { display: flex; gap: 1.75rem; margin-left: auto; align-items: center; }
  .nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 0.45rem 0.75rem; border-radius: 8px; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease; }
  .nav-links a:hover { transform: translateY(-6px); background: rgba(0,0,0,0.06); color: var(--fg); box-shadow: 0 12px 30px rgba(0,0,0,0.12); }
  .logo { height: 72px; width: auto; }
  
  /* Hero */
  .hero { position: relative; min-height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: radial-gradient(ellipse at top left, rgba(37,99,235,0.25), rgba(0,0,0,0.8)), radial-gradient(ellipse at bottom right, rgba(34,197,94,0.25), rgba(0,0,0,0.8)); }
  .hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.6)); }
  .hero-content { position: relative; max-width: 900px; padding: 3rem 1.5rem; }
  .hero h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); margin-bottom: 0.5rem; }
  .hero-sub { font-size: clamp(1.25rem, 3vw, 1.75rem); color: #cbd5e1; margin-bottom: 1.25rem; }
  .hero-body { font-size: 1.05rem; color: #e2e8f0; margin-bottom: 2rem; line-height: 1.65; }
  .btn { display: inline-block; padding: 0.95rem 1.5rem; background: #fff; color: #111827; font-weight: 700; border-radius: 0.75rem; text-decoration: none; box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
  .btn:hover { transform: translateY(-1px); }
  .hero-scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #cbd5e1; }
  .hero-scroll svg { width: 28px; height: 28px; }
  
  /* Sections */
  .section { padding: 4.5rem 1.25rem; background: var(--bg); }
  .section.alt { background: #f8fafc; }
  .section-head { text-align: center; margin-bottom: 2.5rem; }
  .section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
  .section-head p { color: var(--muted); }
  .bar { width: 96px; height: 4px; background: var(--accent); margin: 0.75rem auto 0; }
  
  /* Grid */
  .grid { display: grid; gap: 1.25rem; max-width: 1120px; margin: 0 auto; }
  .grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .grid.four { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  
  /* Cards */
  .card { background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; box-shadow: 0 10px 30px rgba(0,0,0,0.04); transition: transform 150ms ease, box-shadow 150ms ease; }
  .card:hover { transform: translateY(-4px); box-shadow: 0 20px 45px rgba(0,0,0,0.08); }
  .card.soft { box-shadow: none; }
  .card.blue { background: linear-gradient(180deg, #eff6ff, #ffffff); }
  .card.green { background: linear-gradient(180deg, #ecfdf3, #ffffff); }
  .card h3 { margin: 0.75rem 0 0.5rem; }
  .card p { color: var(--muted); line-height: 1.6; }
  .card.center { text-align: center; }
  
  /* Icons */
  .icon-box { width: 56px; height: 56px; border-radius: 12px; background: #2563eb; display: grid; place-items: center; color: #fff; }
  .icon-box svg { width: 28px; height: 28px; }
  .icon-pill { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: #e5edff; color: #1d4ed8; font-weight: 700; }
  
  /* Projects */
  .project-card { background: #fff; border: 1px solid var(--border); border-radius: 1rem; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,0.08); }
  .project-hero { height: 220px; }
  .grad-blue { background: linear-gradient(135deg, #2563eb, #22c55e); }
  .grad-green { background: linear-gradient(135deg, #22c55e, #16a34a); }
  .project-body { padding: 1.5rem; }
  .pill { display: inline-block; margin: 0.35rem 0.25rem 0 0; padding: 0.35rem 0.65rem; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: 0.85rem; }
  
  /* Contact */
  .map-embed iframe { width: 100%; height: 220px; border: 0; border-radius: 0.75rem; }
  
  /* Footer */
  .footer { background: #0f172a; color: #e2e8f0; padding: 3rem 1.25rem 2rem; }
  .footer-inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .footer a { color: #cbd5e1; text-decoration: none; display: block; margin: 0.15rem 0; }
  .footer a:hover { color: #fff; }
  .footer-logo { width: 170px; height: auto; }
  .footer-bottom { margin-top: 1.5rem; text-align: center; color: #94a3b8; font-size: 0.95rem; }
  
  /* Responsive tweaks */
  @media (max-width: 720px) {
    .nav-links { display: none; }
    .hero { min-height: 80vh; padding-top: 5rem; }
  }
/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
