/* ============================================================
   Playful Geometric — Portfolio (Gagandeep Singh)
   ============================================================ */
:root {
  --bg: #fffdf5;
  --fg: #1e293b;
  --muted: #f1f5f9;
  --muted-fg: #64748b;
  --accent: #8b5cf6;
  --accent-fg: #ffffff;
  --secondary: #f472b6; /* hot pink */
  --tertiary: #fbbf24;  /* amber */
  --quaternary: #34d399; /* mint */
  --border: #e2e8f0;
  --ink: #1e293b;

  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 9999px;

  --bw: 2px;
  --pop: 4px 4px 0 0 var(--ink);
  --pop-lg: 6px 6px 0 0 var(--ink);
  --pop-sm: 2px 2px 0 0 var(--ink);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted-fg); }
.small { font-size: 0.85rem; }
::selection { background: var(--tertiary); color: var(--ink); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: var(--r-full);
  border: var(--bw) solid var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--bounce), box-shadow 0.25s var(--bounce),
    background 0.2s ease;
  min-height: 48px;
}
.btn-sm { padding: 9px 18px; font-size: 0.92rem; min-height: 40px; }
.btn-lg { padding: 17px 34px; font-size: 1.15rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--pop); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: var(--pop-lg); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: var(--pop-sm); }
.btn-secondary { background: transparent; color: var(--fg); }
.btn-secondary:hover { background: var(--tertiary); transform: translate(-1px, -1px); }
.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: #fff;
  color: var(--ink);
  border-radius: var(--r-full);
  font-weight: 800;
  font-size: 0.85rem;
}
.btn-secondary .btn-arrow { background: var(--ink); color: #fff; }

/* ---------------- Nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 245, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: var(--bw) solid var(--ink);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.3rem; display: inline-flex; align-items: center; gap: 8px; }
.logo-mark { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.btn) { font-weight: 600; position: relative; }
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 3px;
  background: var(--secondary); border-radius: 3px; transition: width 0.25s var(--bounce);
}
.nav-links > a:not(.btn):hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--fg); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 90px 0 70px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.eyebrow {
  display: inline-block; font-family: "Outfit", sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem;
  color: var(--accent); background: #fff; border: var(--bw) solid var(--ink);
  padding: 6px 14px; border-radius: var(--r-full); box-shadow: var(--pop-sm); margin-bottom: 22px;
}
.hero h1 { margin-bottom: 20px; }
.hl {
  position: relative; color: var(--accent); white-space: nowrap;
}
.lead { font-size: 1.18rem; color: var(--muted-fg); max-width: 34ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 36px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: "Outfit", sans-serif; font-size: 1.05rem; }
.hero-stats span { color: var(--muted-fg); font-size: 0.85rem; }

/* Hero art */
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.avatar-blob {
  position: relative; z-index: 2;
  width: 280px; height: 300px;
  background: linear-gradient(150deg, var(--accent), var(--secondary));
  border: var(--bw) solid var(--ink);
  border-radius: 64% 36% 54% 46% / 56% 44% 56% 44%;
  box-shadow: 10px 10px 0 0 var(--tertiary);
  display: flex; align-items: center; justify-content: center;
  animation: floaty 6s ease-in-out infinite;
}
.avatar-blob.arch { border-radius: 50% 50% 12px 12px; box-shadow: 10px 10px 0 0 var(--quaternary); width: 240px; height: 280px; animation: none; }
.avatar-initials { font-family: "Outfit", sans-serif; font-weight: 800; font-size: 5rem; color: #fff; text-shadow: 3px 3px 0 rgba(30,41,59,0.35); }
.blob-yellow {
  position: absolute; z-index: 0; width: 460px; height: 460px; border-radius: 50%;
  background: var(--tertiary); left: -120px; top: 10px; opacity: 0.55;
}
.dot-grid {
  position: absolute; z-index: 1; width: 180px; height: 180px; right: -10px; bottom: -10px;
  background-image: radial-gradient(var(--accent) 2px, transparent 2px);
  background-size: 18px 18px; opacity: 0.5;
}
.dot-grid.small { width: 140px; height: 140px; left: -20px; top: -20px; right: auto; bottom: auto; }
.sticker {
  position: absolute; z-index: 3; font-family: "Outfit", sans-serif; font-weight: 800;
  background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-md);
  padding: 10px 14px; box-shadow: var(--pop);
}
.sticker-pink { color: var(--secondary); top: 6px; right: 0; transform: rotate(8deg); }
.sticker-mint { color: var(--quaternary); bottom: 10px; left: 0; transform: rotate(-8deg); }

/* Confetti */
.confetti { position: absolute; z-index: 0; }
.c1 { width: 22px; height: 22px; background: var(--secondary); border-radius: 50%; border: var(--bw) solid var(--ink); top: 80px; left: 46%; }
.c2 { width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 24px solid var(--quaternary); top: 150px; right: 8%; transform: rotate(20deg); }
.c3 { width: 20px; height: 20px; background: var(--accent); border: var(--bw) solid var(--ink); bottom: 40px; left: 8%; transform: rotate(15deg); }
.c4 { width: 26px; height: 26px; background: var(--tertiary); border: var(--bw) solid var(--ink); border-radius: 50%; bottom: 90px; right: 42%; }
.c5 { width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-bottom: 28px solid var(--tertiary); top: 40px; left: 5%; transform: rotate(-15deg); z-index: 0;}
.c6 { width: 24px; height: 24px; background: var(--secondary); border: var(--bw) solid var(--ink); top: 30px; right: 10%; transform: rotate(15deg); }

/* ---------------- Marquee ---------------- */
.marquee {
  border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink);
  background: var(--accent); color: #fff; overflow: hidden; padding: 14px 0;
}
.marquee-track {
  display: flex; gap: 28px; align-items: center; width: max-content;
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.3rem; text-transform: uppercase;
  animation: marquee 26s linear infinite;
}
.marquee .dot { color: var(--tertiary); }

/* ---------------- Sections ---------------- */
.section { position: relative; padding: 96px 0; }
.section-alt { background:
    radial-gradient(var(--border) 1.5px, transparent 1.5px);
  background-size: 22px 22px; background-color: #fffaf0; border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .squiggle { width: 200px; height: 12px; margin: 10px auto 14px; display: block; }

/* ---------------- Cards (services) ---------------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.card {
  position: relative; background: #fff; border: var(--bw) solid var(--ink);
  border-radius: var(--r-lg); padding: 40px 26px 28px; box-shadow: 8px 8px 0 0 var(--border);
  transition: transform 0.3s var(--bounce), box-shadow 0.3s var(--bounce);
}
.card:hover { transform: rotate(-1deg) scale(1.02); box-shadow: 10px 10px 0 0 var(--secondary); }
.card-icon {
  position: absolute; top: -26px; left: 26px; width: 52px; height: 52px;
  border-radius: 50%; border: var(--bw) solid var(--ink); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--pop-sm);
}
.card-icon svg { width: 26px; height: 26px; }
.icon-violet { background: var(--accent); }
.icon-pink { background: var(--secondary); }
.icon-amber { background: var(--tertiary); }
.card h3 { margin: 6px 0 10px; }
.card p { color: var(--muted-fg); font-size: 0.98rem; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { position: relative; padding-left: 26px; font-size: 0.92rem; margin-bottom: 8px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px;
  background: var(--quaternary); color: #fff; border-radius: 50%; border: 1.5px solid var(--ink);
  font-size: 0.7rem; display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ---------------- Work ---------------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.project {
  background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--pop); display: flex; flex-direction: column;
  transition: transform 0.3s var(--bounce), box-shadow 0.3s var(--bounce);
}
.project:hover { transform: translate(-2px, -2px) rotate(-0.5deg); box-shadow: var(--pop-lg); }
.project.featured { grid-column: span 2; box-shadow: 8px 8px 0 0 var(--secondary); }
.project-tag {
  align-self: flex-start; font-family: "Outfit", sans-serif; font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: var(--accent);
  border: var(--bw) solid var(--ink); padding: 4px 12px; border-radius: var(--r-full); margin-bottom: 14px;
}
.tag-mint { background: var(--quaternary); }
.tag-amber { background: var(--tertiary); color: var(--ink); }
.project h3 { margin-bottom: 10px; }
.project p { color: var(--muted-fg); font-size: 0.98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 20px; }
.chips span { font-size: 0.78rem; font-weight: 600; background: var(--muted); border: 1.5px solid var(--border); border-radius: var(--r-full); padding: 4px 11px; }
.project-cta { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }

/* ---------------- Process ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; padding: 10px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px;
  border-radius: 50%; border: var(--bw) solid var(--ink); box-shadow: var(--pop); color: #fff;
  font-family: "Outfit", sans-serif; font-weight: 800; font-size: 1.5rem; margin-bottom: 16px;
}
.n1 { background: var(--accent); } .n2 { background: var(--secondary); }
.n3 { background: var(--tertiary); color: var(--ink); } .n4 { background: var(--quaternary); }
.step h4 { margin-bottom: 6px; }
.step p { color: var(--muted-fg); font-size: 0.92rem; }

/* ---------------- About ---------------- */
.about-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: center; }
.about-art { position: relative; display: flex; justify-content: center; }
.about-text h2 { margin-bottom: 18px; }
.about-text p { color: var(--muted-fg); }
.pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.pills span {
  font-family: "Outfit", sans-serif; font-weight: 700; font-size: 0.85rem;
  background: #fff; border: var(--bw) solid var(--ink); border-radius: var(--r-full);
  padding: 6px 14px; box-shadow: var(--pop-sm);
}

/* ---------------- Contact ---------------- */
.contact { text-align: center; overflow: hidden; }
.contact-inner { position: relative; z-index: 2; }
.contact .lead { margin: 0 auto 28px; color: var(--muted-fg); }
.contact-blob { left: 50%; top: -120px; transform: translateX(-50%); width: 520px; height: 520px; opacity: 0.4; }
.socials { display: flex; gap: 14px; justify-content: center; margin-top: 30px; }
.social {
  width: 50px; height: 50px; border-radius: 50%; border: var(--bw) solid var(--ink);
  background: #fff; display: flex; align-items: center; justify-content: center; color: var(--fg);
  box-shadow: var(--pop-sm); transition: transform 0.25s var(--bounce), background 0.2s;
}
.social svg { width: 22px; height: 22px; }
.social:hover { transform: translateY(-3px) rotate(-5deg); background: var(--tertiary); }

/* ---------------- Footer ---------------- */
.footer { border-top: var(--bw) solid var(--ink); background: var(--ink); color: #fff; padding: 26px 0; }
.footer .logo-mark { color: var(--tertiary); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .muted { color: #94a3b8; }

/* ---------------- Reveal / motion ---------------- */
.reveal { opacity: 0; transform: translateY(24px) scale(0.96); transition: opacity 0.5s ease, transform 0.6s var(--bounce); }
.reveal.in { opacity: 1; transform: none; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; background: var(--bg); flex-direction: column; gap: 18px;
    padding: 24px; border-bottom: var(--bw) solid var(--ink); transform: translateY(-150%); transition: transform 0.3s var(--bounce); }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .hero-inner, .about-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 300px; }
  .cards-3, .work-grid, .steps { grid-template-columns: 1fr; }
  .project.featured { grid-column: span 1; }
  /* reduce pop shadows on mobile */
  :root { --pop: 2px 2px 0 0 var(--ink); --pop-lg: 4px 4px 0 0 var(--ink); }
  .card { box-shadow: 4px 4px 0 0 var(--border); }
}

@media (prefers-reduced-motion: reduce) {
  *, .reveal { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
