/* ============================================================
   Engineering College Projects — Shared design tokens & styles
   Light, editorial, premium · Stripe/Notion-friendly
   ============================================================ */

:root {
  /* Palette */
  --bg: #F7F5EE;          /* warm cream */
  --surface: #FFFFFF;
  --ink: #0F0E0C;         /* near-black */
  --ink-2: #2A2823;
  --muted: #6B6759;
  --muted-2: #94907F;
  --line: #E7E2D2;
  --line-2: #EFEAD9;

  --accent: #2D4BFF;      /* cobalt */
  --accent-ink: #1A2DAA;
  --accent-soft: #E6E9FF;

  --coral: #FF5A36;
  --coral-soft: #FFE6DE;

  --green: #1F8A4B;
  --green-soft: #D9EFE0;

  --amber: #D08400;
  --amber-soft: #FBEFCE;

  --violet: #6E36F0;
  --violet-soft: #ECE2FF;

  /* Type */
  --serif: 'Instrument Serif', 'Source Serif Pro', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --container: 1240px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 8px;

  /* Phone */
  --phone: 918012222569;
  --phone-display: +91 80122 22569;
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ===== Subtle paper grain ===== */
body::before{
  content:'';
  position: fixed; inset:0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events:none; z-index:0; mix-blend-mode: multiply;
}
body > * { position: relative; z-index: 1; }

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(247,245,238,.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 32px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-mark {
  width: 30px; height: 30px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 400;
  flex-shrink: 0;
}
.brand em { font-style: italic; color: var(--accent); }
.nav-links {
  display: flex; gap: 28px; list-style: none;
  margin-left: 12px;
}
.nav-links a {
  font-size: .94rem;
  color: var(--ink-2);
  font-weight: 450;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after {
  content:''; position: absolute; left:0; right:0; bottom:-2px;
  height:2px; background: var(--accent); border-radius: 2px;
}
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.hamburger { display: none; background: none; border: none; padding: 6px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); margin: 5px 0; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s, border-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--bg);
}
.btn-primary:hover { background: var(--accent); color:#fff; transform: translateY(-1px); }
.btn-accent {
  background: var(--accent); color:#fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 8px 24px -8px rgba(45,75,255,.45);
}
.btn-accent:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa {
  background: #1FAD4F; color:#fff;
}
.btn-wa:hover { background:#178a3f; transform: translateY(-1px); }
.btn-lg { padding: 14px 26px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: 8px; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }

/* ============== TYPOGRAPHY ============== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
}
.eyebrow::before {
  content:''; width:6px; height:6px; border-radius:50%;
  background: var(--accent);
}
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); line-height: 1.05; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); line-height: 1.2; }
.it { font-style: italic; color: var(--accent); }
.it-coral { font-style: italic; color: var(--coral); }
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 400;
  max-width: 60ch;
}

/* ============== LAYOUT ============== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section { padding: 100px 0; }
.section-tight { padding: 64px 0; }
.section-head { margin-bottom: 56px; max-width: 760px; }
.section-head .lead { margin-top: 18px; }
.divider { height:1px; background: var(--line); }

/* Decorative sticker tag */
.sticker {
  display: inline-flex; align-items: center; gap: 8px;
  background: #FFF;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: .82rem;
  color: var(--ink-2);
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.sticker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite ease-in-out; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(31,138,75,.4); }
  50%     { box-shadow: 0 0 0 6px rgba(31,138,75,0); }
}

/* ============== CARDS ============== */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(15,14,12,.18); }

/* Mockup window */
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15,14,12,.25), 0 1px 0 rgba(0,0,0,.04);
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  background: #FBFAF6;
}
.mock-bar .dots { display: flex; gap: 6px; }
.mock-bar .dots span { width:10px; height:10px; border-radius:50%; background: var(--line); }
.mock-bar .dots span:nth-child(1){ background:#FF6259; }
.mock-bar .dots span:nth-child(2){ background:#FCBC2C; }
.mock-bar .dots span:nth-child(3){ background:#26C840; }
.mock-bar .url {
  flex:1; background: #fff; border:1px solid var(--line);
  border-radius: 6px; padding: 4px 10px;
  font-family: var(--mono); font-size: .72rem; color: var(--muted);
  display:flex; align-items:center; gap:6px;
}
.mock-body { padding: 18px; }

/* Code mockup */
.code {
  background: #0F0E0C;
  color: #E8E5DC;
  border-radius: 14px;
  padding: 20px 22px;
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.6;
  overflow: hidden;
  position: relative;
}
.code .ln { color: #4A463E; padding-right: 14px; user-select: none; display: inline-block; width: 28px; text-align: right; }
.code .kw { color: #C792EA; }
.code .fn { color: #82AAFF; }
.code .str { color: #C3E88D; }
.code .com { color: #5C6370; font-style: italic; }
.code .num { color: #F78C6C; }
.code .var { color: #FFCB6B; }

/* ============== FOOTER ============== */
.footer {
  background: var(--ink);
  color: #DDD8C7;
  padding: 90px 0 30px;
  margin-top: 100px;
}
.footer h4 {
  color: #FFF; font-family: var(--sans); font-size: .8rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 18px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 60px; border-bottom: 1px solid #2A2823;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-grid a { color: #B8B2A0; font-size: .92rem; transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand .brand { color:#fff; }
.footer-brand .brand-mark { background:#fff; color:var(--ink); }
.footer-brand p { font-size: .92rem; color: #B8B2A0; line-height: 1.65; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; flex-wrap: wrap; gap: 14px;
  font-size: .85rem; color: #8A8474;
}
.footer-bottom a { color: #8A8474; }
.footer-bottom a:hover { color: #fff; }

/* ============== UTIL ============== */
.grid { display: grid; gap: 24px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mb-12 { margin-bottom: 12px; } .mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }
.mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-60 { margin-top: 60px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color:#fff;
  display:grid; place-items:center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.55);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* Reveal animation — JS adds .js-reveal to <html> so CSS only hides when observer is ready */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* ============== RESPONSIVE ============== */
@media (max-width: 900px){
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0;
    padding: 4px 28px 16px;
    display: none; margin-left: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid var(--line-2); }
  .nav-links a { display:block; padding: 14px 0; }
  .hamburger { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 560px){
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .container { padding: 0 20px; }
  .nav-inner { padding: 12px 20px; }
}
