/* ──────────────────────────────────────────────
   RESET & BASE
────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #fafafa;
  --text: #303030;
  --text-muted: #6b6b6b;
  --purple: #a472b7;
  --teal: #048a81;
  --red: #ff2244;
  --border: #e8e8e8;
  --card-bg: #ffffff;
  --nav-bg: rgba(250, 250, 250, 0.85);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0f;
    --text: #f0f0f0;
    --text-muted: #999;
    --border: #2a2a2a;
    --card-bg: #1a1a1a;
    --nav-bg: rgba(15, 15, 15, 0.85);
  }
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', 'Inter', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ──────────────────────────────────────────────
   NAVIGATION — floating pill
────────────────────────────────────────────── */
.nav-header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: auto;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 6px 6px 6px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .nav-pill {
    background: rgba(20,20,20,0.92);
  }
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--teal));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0 8px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 100px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(0,0,0,0.05);
}

.btn-contact {
  background: #2251E3;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-contact:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 4px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.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); }

/* ──────────────────────────────────────────────
   BUTTONS
────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.full-width {
  width: 100%;
}

/* ──────────────────────────────────────────────
   SECTION TAGS & HEADERS
────────────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.section-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 17px;
}

/* ──────────────────────────────────────────────
   HERO — 2-column: text left, photo right
────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 140px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 80px;
}

/* ── LEFT ── */
.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-name {
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(50px, 6.875vw, 85px);
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 0.92;
  color: var(--text);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}

/* stats row */
.hero-stats {
  display: flex;
  flex-direction: row;
  gap: 98px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-stat-num {
  font-family: 'Inter', sans-serif;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -2px;
  color: #2251E3;
  line-height: 1;
}

.hero-stat-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

/* ── RIGHT: photo + bubble ── */
.hero-right {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.hero-photo-card {
  width: 380px;
  height: 460px;
  border-radius: 20px;
  overflow: hidden;
  background: #e8e8e8;
  flex-shrink: 0;
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, #c8d4f0 0%, #a0b4e8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 64px;
  font-weight: 900;
  color: rgba(255,255,255,0.5);
  letter-spacing: -3px;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* wave bubble */
.hero-chat-bubble {
  position: absolute;
  bottom: -16px;
  left: -16px;
  background: #2251E3;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 32px rgba(34, 81, 227, 0.35);
  animation: wave 2.5s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: rotate(-10deg); }
  50%       { transform: rotate(10deg); }
}

.hero-bubble-gif {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* ──────────────────────────────────────────────
   ABOUT
────────────────────────────────────────────── */
.about {
  padding: 100px 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-num {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text);
}

.stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
}

.skill-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.skill-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.skill-icon.purple { background: rgba(164, 114, 183, 0.15); color: var(--purple); }
.skill-icon.teal   { background: rgba(4, 138, 129, 0.15);   color: var(--teal); }
.skill-icon.red    { background: rgba(255, 34, 68, 0.12);   color: var(--red); }

.skill-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.skill-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ──────────────────────────────────────────────
   LOGOS MARQUEE
────────────────────────────────────────────── */
.logos-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.logos-track {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.logos-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: marquee 20s linear infinite;
  will-change: transform;
}

.logos-inner img {
  height: 72px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  opacity: 0.85;
  filter: none;
  transition: opacity 0.3s;
  flex-shrink: 0;
  display: block;
}

.logos-inner img:hover {
  opacity: 1;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ──────────────────────────────────────────────
   WORK — stacked scroll cards
────────────────────────────────────────────── */
.work {
  padding-top: 100px;
  background: #ffffff;
}

.work-header {
  text-align: center;
  margin-bottom: 64px;
}

.work-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-top: 12px;
}

.work-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 900px;
  margin: 16px auto 0;
}

/* The outer container gets enough height for all cards to scroll through */
.stack-container {
  position: relative;
  /* each card = 100vh of scroll room */
  height: calc(5 * 100vh);
}

/* Each card wrapper is sticky */
.stack-card {
  position: sticky;
  top: 80px;            /* how far from top it "sticks" */
  height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
}

/* The visual card */
.stack-card-inner {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 640px;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s, transform 0.3s;
  /* scale down slightly based on card index — JS will handle per-card */
  transform-origin: top center;
}

.stack-card-inner:hover {
  box-shadow: 0 32px 100px rgba(0,0,0,0.28);
  transform: scale(1.01);
}

/* background gradient */
.stack-card-bg {
  position: absolute;
  inset: 0;
  background: var(--card-bg);
  transition: transform 0.6s ease;
}

.stack-card-inner:hover .stack-card-bg {
  transform: scale(1.04);
}

/* overlay */
.stack-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.05) 0%,
    rgba(0,0,0,0.55) 100%
  );
}

/* content layout */
.stack-card-content {
  position: absolute;
  inset: 0;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stack-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stack-card-year {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}

.stack-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stack-card-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
}

.stack-card-body p {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 460px;
}

.stack-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-top: 8px;
  opacity: 0.9;
  transition: opacity 0.2s, gap 0.2s;
}

.stack-card-inner:hover .stack-card-link {
  opacity: 1;
  gap: 10px;
}

/* category badge */
.project-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 99px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255,255,255,0.25);
}

/* ──────────────────────────────────────────────
   SERVICES
────────────────────────────────────────────── */
.services {
  padding: 100px 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: border-color 0.2s, transform 0.2s;
  background: var(--bg);
}

.service-card:hover {
  border-color: var(--purple);
  transform: translateY(-4px);
}

.service-num {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--purple);
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ──────────────────────────────────────────────
   CONTACT
────────────────────────────────────────────── */
.contact {
  padding: 100px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact-text p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-email {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #2251E3;
  margin-bottom: 20px;
  transition: opacity 0.2s;
}

.contact-email:hover {
  opacity: 0.7;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.social-links a:hover {
  color: var(--text);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(164, 114, 183, 0.15);
}

/* ──────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────── */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

/* ──────────────────────────────────────────────
   RESPONSIVE — TABLET
────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    grid-template-columns: 1fr 320px;
    gap: 48px;
    padding: 120px 40px 60px;
  }

  .hero-photo-card {
    width: 320px;
    height: 380px;
  }

  .about-grid {
    gap: 48px;
  }
}

/* ──────────────────────────────────────────────
   RESPONSIVE — MOBILE
────────────────────────────────────────────── */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  /* Nav pill on mobile */
  .nav-header {
    top: 12px;
    width: calc(100% - 32px);
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    align-items: stretch;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: 15px;
    padding: 10px 16px;
  }

  .btn-contact {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    padding: 110px 20px 60px;
    gap: 40px;
  }

  .hero-right {
    justify-content: center;
  }

  .hero-photo-card {
    width: 100%;
    max-width: 340px;
    height: 320px;
  }

  .hero-title {
    font-size: clamp(44px, 12vw, 72px);
  }

  .hero-sub {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .hero-stats {
    gap: 28px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-stats {
    gap: 24px;
  }

  /* Work — stack cards on mobile */
  .stack-card {
    padding: 0 16px;
    height: auto;
    min-height: 60vh;
    position: relative;
    top: 0;
    margin-bottom: 20px;
  }

  .stack-container {
    height: auto;
  }

  .stack-card-inner {
    height: 360px;
  }

  .stack-card-content {
    padding: 28px;
  }

  .stack-card-body h3 {
    font-size: 36px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .section-header {
    margin-bottom: 40px;
  }
}
