/* ============================================================
   Heta Arora — Portfolio (plain CSS)
   ============================================================ */

:root {
  --radius: 1rem;

  --background: #1a1613;
  --foreground: #f7f3ee;

  --surface: #221d19;
  --surface-2: #2a2521;

  --border: rgba(255, 255, 255, 0.08);
  --input: rgba(255, 255, 255, 0.12);

  --muted: #2a2521;
  --muted-foreground: #b3a89d;

  --primary: #f97316;
  --primary-foreground: #1a1613;
  --ember: #f97316;
  --ember-glow: #fbaa4a;

  --gradient-ember: linear-gradient(135deg, #f97316, #fbaa4a);
  --gradient-glow: radial-gradient(60% 60% at 50% 0%, rgba(249, 115, 22, 0.3), transparent 70%);
  --shadow-ember: 0 30px 80px -20px rgba(249, 115, 22, 0.4);
  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.6);

  --font-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; border-color: var(--border); }

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(50% 50% at 15% 0%, rgba(249, 115, 22, 0.1), transparent 70%),
    radial-gradient(45% 45% at 90% 20%, rgba(200, 90, 40, 0.08), transparent 70%);
  background-attachment: fixed;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--ember); color: var(--primary-foreground); }

/* ---------- helpers ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.display { font-family: var(--font-display); font-weight: 400; line-height: 1.05; }
.italic { font-style: italic; }
.muted { color: var(--muted-foreground); }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--primary);
}

.gradient-text {
  background: var(--gradient-ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}

.glass {
  background: rgba(34, 29, 25, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ember-glow { box-shadow: var(--shadow-ember); }

.section { padding: 96px 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}
.section-head h2 { margin-top: 12px; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.section-head p { max-width: 28rem; color: var(--muted-foreground); }

.pill {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  color: rgba(247, 243, 238, 0.85);
}
.pill-accent {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.1);
  font-size: 12px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-ember); }
.btn-primary:hover { transform: scale(1.02); }
.btn-ghost { border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 10px 22px; font-size: 14px; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(26, 22, 19, 0.7);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.site-header nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--muted-foreground); }
.nav-links a:hover { color: var(--foreground); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 170px 0 110px; }
.hero .glow {
  position: absolute; inset: 0; z-index: -1;
  background: var(--gradient-glow);
  opacity: 0.7;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: center;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: rgba(34, 29, 25, 0.6);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--muted-foreground);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  margin: 28px 0;
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.hero p.lead { max-width: 34rem; font-size: 18px; color: var(--muted-foreground); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.hero-art { position: relative; }
.hero-art .frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-ember);
  animation: float 8s ease-in-out infinite;
}
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top right, rgba(26, 22, 19, 0.6), transparent 60%);
}
.float-card {
  position: absolute;
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: var(--shadow-soft);
  animation: float 8s ease-in-out infinite;
}
.float-card small { display: block; font-size: 12px; color: var(--muted-foreground); }
.float-card strong { font-weight: 500; }
.float-card.one { left: -16px; top: 40px; animation-delay: 1s; }
.float-card.two { right: -8px; bottom: 40px; animation-delay: 2s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(3deg); }
}

/* ---------- marquee ---------- */
.marquee-band { margin-top: 90px; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.marquee { display: flex; white-space: nowrap; width: max-content; animation: marquee 40s linear infinite; }
.marquee .row { display: flex; gap: 64px; padding-right: 64px; align-items: center; }
.marquee-lg .row { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 3rem); font-style: italic; }
.marquee .star { color: var(--primary); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.clients { padding: 64px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.clients .marquee .row { gap: 40px; padding-right: 40px; font-size: 18px; font-weight: 500; color: rgba(247, 243, 238, 0.7); }
.clients .marquee .row span:hover { color: var(--primary); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 56px; }
.about-grid .sticky { position: sticky; top: 120px; align-self: start; }
.about-grid h2 { margin-top: 12px; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.1; }
.about-body { font-size: 18px; color: var(--muted-foreground); display: grid; gap: 20px; }
.about-body strong { color: var(--foreground); font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.stat { border-radius: 18px; padding: 20px; }
.stat .value { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); }
.stat .label { margin-top: 6px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-foreground); }

/* ---------- bento skills ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { border-radius: 24px; padding: 24px; position: relative; overflow: hidden; }
.bento .card h3 { margin-top: 12px; font-family: var(--font-display); font-weight: 400; }
.bento .card p { margin-top: 12px; color: var(--muted-foreground); }
.bento .card .tags { margin-top: 20px; }
.span-4 { grid-column: span 4; }
.span-2 { grid-column: span 2; }
.span-6 { grid-column: span 6; }

.card-feature { padding: 32px; }
.card-feature h3 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; }
.card-feature p { max-width: 32rem; }
.blob {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  filter: blur(60px);
  background: var(--gradient-ember);
  opacity: 0.35;
  top: -90px; right: -90px;
  pointer-events: none;
}
.blob.bl { top: auto; right: auto; bottom: -80px; left: -70px; opacity: 0.28; }

.title-md { margin-top: 10px; font-family: var(--font-display); font-size: 1.6rem; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; text-align: center; }
.mini-stats div { border: 1px solid var(--border); background: rgba(34, 29, 25, 0.5); border-radius: 14px; padding: 12px 6px; }
.mini-stats .v { font-family: var(--font-display); font-size: 1.4rem; }
.mini-stats .l { margin-top: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }

/* ---------- projects ---------- */
.projects { position: relative; }
.projects .glow { position: absolute; inset: 0; z-index: -1; background: var(--gradient-glow); opacity: 0.4; pointer-events: none; }
.project-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.project {
  border-radius: 24px;
  overflow: hidden;
  display: block;
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.project:hover { transform: translateY(-4px); border-color: rgba(249, 115, 22, 0.5); }
.project .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.project .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.project:hover .thumb img { transform: scale(1.05); }
.project .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26, 22, 19, 0.95), rgba(26, 22, 19, 0.2) 55%, transparent);
}
.thumb-top, .thumb-bottom {
  position: absolute; left: 16px; right: 16px; z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
}
.thumb-top { top: 16px; }
.thumb-bottom { bottom: 16px; align-items: flex-end; }
.chip {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.chip.year { text-transform: none; letter-spacing: 0; }
.thumb-bottom h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: #fff; line-height: 1.1; }
.arrow { color: var(--primary); font-size: 22px; transition: transform 0.3s ease; }
.project:hover .arrow { transform: translate(4px, -4px); }
.project .body { padding: 24px; display: grid; gap: 16px; }
.project .body p { font-size: 14px; color: var(--muted-foreground); }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.metrics .v { font-family: var(--font-display); font-size: 1.25rem; }
.metrics .l { margin-top: 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.center { text-align: center; margin-top: 40px; }

/* ---------- credentials ---------- */
.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.cert { border-radius: 24px; padding: 32px; display: block; transition: border-color 0.3s ease; }
.cert:hover { border-color: rgba(249, 115, 22, 0.4); }
.cert .top { display: flex; justify-content: space-between; font-size: 14px; }
.cert .top .org { color: var(--primary); font-weight: 500; }
.cert .top .auth { color: var(--muted-foreground); }
.cert h3 { margin-top: 24px; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; }
.cert .bottom { margin-top: 32px; display: flex; justify-content: space-between; font-size: 14px; color: var(--muted-foreground); }
.cert .verify { color: var(--foreground); }
.cert:hover .verify { color: var(--primary); }

/* ---------- contact ---------- */
.contact-card { position: relative; border-radius: 40px; padding: 64px 48px; overflow: hidden; }
.contact-card .glow { position: absolute; inset: 0; z-index: -1; background: var(--gradient-glow); opacity: 0.4; }
.contact-card h2 { margin-top: 12px; font-size: clamp(2.5rem, 7vw, 4.5rem); letter-spacing: -0.02em; line-height: 1.02; }
.contact-card p { margin-top: 24px; max-width: 34rem; font-size: 18px; color: var(--muted-foreground); }
.contact-links { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-links a {
  display: flex; align-items: center; justify-content: space-between;
  border: 1px solid var(--border);
  background: rgba(34, 29, 25, 0.6);
  border-radius: 18px;
  padding: 20px 24px;
  transition: border-color 0.3s ease;
}
.contact-links a:hover { border-color: rgba(249, 115, 22, 0.5); }
.contact-links .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }
.contact-links .v { margin-top: 4px; font-weight: 500; }
.contact-links .arrow { font-size: 18px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 40px 0; }
footer .inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; font-size: 14px; color: var(--muted-foreground);
}
footer .inner a:hover { color: var(--foreground); }
footer .links { display: flex; gap: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 480px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .sticky { position: static; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .site-header nav .btn { display: none; }
  .section { padding: 72px 0; }
  .bento { grid-template-columns: 1fr; }
  .span-2, .span-4, .span-6 { grid-column: span 1; }
  .project-grid { grid-template-columns: 1fr; }
  .certs { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-links { grid-template-columns: 1fr; }
  .contact-card { padding: 40px 24px; border-radius: 28px; }
  .hero { padding: 140px 0 80px; }
}

.span-3 { grid-column: span 3; }
@media (max-width: 860px) { .span-3 { grid-column: span 1; } }

/* ---------- mobile nav ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: rgba(34, 29, 25, 0.6);
  border-radius: 12px;
  cursor: pointer;
  padding: 0 11px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  background: rgba(26, 22, 19, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 12px 0;
  font-size: 16px;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child {
  border-bottom: none;
  margin-top: 16px;
  justify-content: center;
  color: var(--primary-foreground);
}
.mobile-menu a:hover { color: var(--foreground); }
.mobile-menu a.btn:hover { color: var(--primary-foreground); }

@media (max-width: 860px) {
  .hamburger { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; }
  .site-header { background: rgba(26, 22, 19, 0.7); backdrop-filter: blur(20px); }
}

/* ---------- portfolio page ---------- */
.page-hero { padding: 160px 0 40px; }
.page-hero h1 { margin: 14px 0 20px; font-size: clamp(2.75rem, 8vw, 5.5rem); letter-spacing: -0.02em; }
.page-hero p { max-width: 40rem; font-size: 18px; color: var(--muted-foreground); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

.case { border-radius: 28px; overflow: hidden; margin-bottom: 32px; }
.case-grid { display: grid; grid-template-columns: 1.1fr 1fr; }
.case-media { position: relative; min-height: 320px; background: var(--surface-2); }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.case-body { padding: 40px; display: grid; align-content: center; gap: 18px; }
.case-body h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; }
.case-body p { color: var(--muted-foreground); }
.case-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.case-list { display: grid; gap: 10px; color: var(--muted-foreground); font-size: 15px; }
.case-list li { display: flex; gap: 10px; }
.case-list li::before { content: "\2014"; color: var(--primary); }
.case.reverse .case-media { order: 2; }

@media (max-width: 860px) {
  .case-grid { grid-template-columns: 1fr; }
  .case.reverse .case-media { order: 0; }
  .case-body { padding: 28px 22px; }
  .page-hero { padding: 130px 0 24px; }
}
#ookaro .case-media { padding: 24px; }
#ookaro .case-media img { object-fit: contain; border-radius: 12px; }

/* ---------- hero collage ---------- */
.collage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  perspective: 1400px;
}
.collage .shot {
  position: absolute;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-ember);
  animation: floatY 8s ease-in-out infinite;
}
.collage .shot img { display: block; width: 100%; height: auto; }
.collage .s1 { left: 0; top: 6%; width: 62%; rotate: -6deg; z-index: 2; }
.collage .s2 { right: 0; top: 0; width: 52%; rotate: 7deg; z-index: 3; animation-delay: 1.4s; }
.collage .s3 { left: 12%; bottom: 0; width: 58%; rotate: 4deg; z-index: 4; animation-delay: .7s; }
.collage .s4 { right: 2%; bottom: 14%; width: 46%; rotate: -9deg; z-index: 1; animation-delay: 2.1s; }

/* ---------- blog ---------- */
.blog-feature { display: grid; gap: 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--border); }
@media (min-width: 860px) { .blog-feature { grid-template-columns: 1fr 1fr; } }
.blog-feature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-feature .body { padding: 40px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.blog-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.post-card {
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border); transition: transform .3s ease; color: inherit; text-decoration: none;
}
.post-card:hover { transform: translateY(-4px); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.post-card .body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 12px; color: var(--muted-foreground); }
.pill { background: color-mix(in oklab, var(--primary) 16%, transparent); color: var(--primary); border-radius: 999px; padding: 4px 12px; }
.post-title { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.25; }
.article { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.article h2 { font-family: var(--font-display); font-size: 2rem; margin: 40px 0 12px; }
.article p { color: var(--muted-foreground); font-size: 1.06rem; line-height: 1.8; margin-bottom: 16px; }
.article ul { list-style: none; display: grid; gap: 10px; margin: 0 0 20px; padding: 0; }
.article ul li { color: var(--muted-foreground); padding-left: 20px; position: relative; }
.article ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.article-cover { max-width: 1040px; margin: 40px auto; padding: 0 24px; }
.article-cover img { width: 100%; border-radius: 24px; border: 1px solid var(--border); display: block; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
