/* Innovelf — shared site styles */

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

:root {
  --bg: #000;
  --fg: #fff;
  --muted: rgba(255,255,255,0.65);
  --muted-2: rgba(255,255,255,0.45);
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.2);
  --card: rgba(255,255,255,0.03);
  --pill: rgba(255,255,255,0.06);
  --max: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: #fff; color: #000; }

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }

/* background glow blobs */
.glow-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.glow-field span {
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.glow-field span.g1 {
  top: 5%; left: -15%; width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(76,32,110,0.28), rgba(76,32,110,0) 65%);
  animation: glowDrift1 46s ease-in-out infinite;
}
.glow-field span.g2 {
  top: 35%; right: -20%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(242,183,123,0.13), rgba(242,183,123,0) 65%);
  animation: glowDrift2 58s ease-in-out infinite;
}
.glow-field span.g3 {
  bottom: 0; left: 10%; width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(150,168,130,0.1), rgba(150,168,130,0) 65%);
  animation: glowDrift3 52s ease-in-out infinite;
}

@keyframes glowDrift1 { 0%,100%{transform:translate(-6%,-4%) scale(1);} 50%{transform:translate(5%,6%) scale(1.12);} }
@keyframes glowDrift2 { 0%,100%{transform:translate(4%,-5%) scale(1.05);} 50%{transform:translate(-6%,4%) scale(0.95);} }
@keyframes glowDrift3 { 0%,100%{transform:translate(-4%,5%) scale(0.98);} 50%{transform:translate(6%,-4%) scale(1.1);} }
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* nav */
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 24px;
  width: 100%;
  background: rgba(8,8,10,0.4);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  -webkit-mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
  animation: fadeInDown .7s cubic-bezier(.16,1,.3,1) both;
}
/* reusable "glass rim" — a soft gradient hairline border that catches the
   light like the edge of frosted glass. Uses the mask-composite:exclude
   trick so only a 1.4px ring is painted, not the whole gradient. */
.glass-rim { position: relative; }
.glass-rim::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1.4px;
  border-radius: inherit;
  background: linear-gradient(180deg,
    rgba(255,255,255,0.45) 0%,
    rgba(255,255,255,0.15) 20%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0) 60%,
    rgba(255,255,255,0.15) 80%,
    rgba(255,255,255,0.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.nav-bar {
  position: relative;
  background: rgba(18,18,22,0.72);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12), 0 8px 32px -12px rgba(0,0,0,0.65);
  border-radius: 999px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 960px;
  margin: 0 auto;
}

/* Anchor targets: leave room below the sticky glass nav so headings don't
   land hidden behind (or peeking through the transparent padding of) the bar. */
#about, #projects, #contact { scroll-margin-top: 130px; }
.nav-logo { display: flex; align-items: center; gap: 8px; color: #fff; }
.nav-logo span { font-weight: 600; font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 28px; color: rgba(255,255,255,0.8); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: #fff; }

/* pill / badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pill);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
}
.badge-live {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(120,220,150,0.1); border: 1px solid rgba(120,220,150,0.3);
  color: rgb(150,235,175); border-radius: 999px; padding: 5px 12px; font-size: 12px; width: fit-content;
}
.badge-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgb(150,235,175); }
.badge-soon {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px; padding: 5px 12px; font-size: 12px; color: rgba(255,255,255,0.7); width: fit-content;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #000;
  padding: 11px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: opacity .2s ease;
}
.btn:hover { opacity: 0.88; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 11px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: background .2s ease;
}
.btn-outline:hover { background: rgba(255,255,255,0.14); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.65); font-size: 14px; font-weight: 500;
  transition: color .2s ease;
}
.btn-ghost:hover { color: #fff; }

/* hero (home) */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 88px 24px 80px;
  text-align: center;
  overflow: hidden;
  margin-top: -88px;
}
.hero-eyebrow {
  color: rgba(255,255,255,0.8); font-size: 11px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  animation: fadeInUp .6s cubic-bezier(.16,1,.3,1) .1s both;
}
.hero h1 {
  font-size: clamp(36px,6vw,64px); line-height: 1.1; margin: 24px 0 0;
  background: linear-gradient(180deg,#fff,rgba(255,255,255,0.95),rgba(255,255,255,0.7));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  max-width: 760px;
  animation: fadeInUp 1s cubic-bezier(.16,1,.3,1) both;
}
.hero p.lead {
  margin-top: 22px; max-width: 560px; color: var(--muted); font-size: 17px; line-height: 1.7;
  animation: fadeInUp 1s cubic-bezier(.16,1,.3,1) .1s both;
}
.hero-scroll {
  color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 500;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 56px;
  animation: fadeInUp .8s cubic-bezier(.16,1,.3,1) .8s both, softPulse 2.6s ease-in-out .8s infinite;
}
.hero-scroll:hover { color: rgba(255,255,255,0.9); }
@keyframes softPulse { 0%,100%{opacity:1;} 50%{opacity:0.35;} }

/* sections */
section { position: relative; z-index: 1; }
.section { max-width: var(--max); margin: 0 auto; padding: 100px 32px; }
.section h2 { font-size: clamp(28px,4vw,42px); margin: 26px 0 18px; color: #fff; }
.section-lead { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 640px; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal-left.in { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(24px) scale(.96); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal-right.in { opacity: 1; transform: translateX(0) scale(1); }

/* projects grid (home) */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.project-card {
  background: linear-gradient(160deg, rgba(120,80,200,0.10), rgba(255,255,255,0.03) 55%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, background .35s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  background: linear-gradient(160deg, rgba(120,80,200,0.16), rgba(255,255,255,0.05) 55%);
  box-shadow: 0 30px 60px -25px rgba(80,40,140,0.45);
}
.project-card img.icon { width: 48px; height: 48px; border-radius: 11px; box-shadow: 0 12px 28px -8px rgba(0,0,0,0.5); }
.project-card .mark {
  width: 48px; height: 48px; border-radius: 11px;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 18px;
}
.project-card h3 { font-size: 21px; margin: 0; }
.project-card p { font-size: 14.5px; line-height: 1.65; color: var(--muted); flex: 1; }
.project-card .card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }

/* project detail page */
.project-hero {
  max-width: var(--max); margin: 0 auto; padding: 64px 32px 20px;
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
}
.project-hero img.icon { width: 84px; height: 84px; border-radius: 18px; box-shadow: 0 16px 34px -10px rgba(0,0,0,0.55); }
.project-hero h1 { font-size: clamp(30px,5vw,46px); margin: 6px 0 10px; }
.project-hero .tagline { color: var(--muted); font-size: 16.5px; line-height: 1.6; max-width: 640px; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* coverflow-style screenshot slider */
.slider-wrap { display: flex; flex-direction: column; align-items: center; }
.slider { position: relative; height: 460px; width: 100%; max-width: 640px; }
.slider-track { position: relative; width: 100%; height: 100%; }
.slider-track img {
  position: absolute; top: 0; left: 50%;
  width: 213px; height: 460px; object-fit: cover; object-position: top;
  background: #fff; border-radius: 24px; border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.5);
  transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .35s ease, filter .5s cubic-bezier(.22,1,.36,1);
  will-change: transform, opacity, filter;
}
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 6; color: #fff;
  transition: background .2s ease;
}
.slider-arrow:hover { background: rgba(255,255,255,0.16); }
.slider-arrow.prev { left: 4px; }
.slider-arrow.next { right: 4px; }

@media (max-width: 560px) {
  .slider { max-width: 400px; }
  .slider-arrow.prev { left: -6px; }
  .slider-arrow.next { right: -6px; }
}
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.slider-dots button {
  width: 8px; height: 8px; border-radius: 4px; padding: 0; border: none;
  background: rgba(255,255,255,0.2); cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.slider-dots button.active { width: 20px; background: #fff; }

.banner-img {
  width: 100%; border-radius: 18px; border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 50px -18px rgba(0,0,0,0.6);
}

.detail-block { max-width: 720px; }
.detail-block p { color: var(--muted); font-size: 16px; line-height: 1.8; margin-top: 16px; }

/* footer */
footer { border-top: 1px solid var(--line); position: relative; z-index: 1; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; padding: 56px 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
}
.footer-inner .label { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.footer-inner .email { font-size: 17px; font-weight: 500; font-family: 'Space Grotesk', sans-serif; color: #fff; }
.footer-inner .copy { font-size: 14px; color: var(--muted-2); }
.footer-links { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: #fff; }

@media (max-width: 640px) {
  .project-hero { grid-template-columns: 1fr; text-align: left; }
  .nav-links { gap: 16px; font-size: 13px; }
}
