/* ---- Colors & Variables ---- */
:root {
  --bg: #fff7fb;
  --bg-alt: #ffeef7;
  --text: #2b2240;
  --muted: #6e628b;
  --accent: #ff6f91;
  --accent-soft: #ffe0ea;
  --accent-secondary: #6c63ff;
  --card-bg: #ffffff;
  --border-subtle: rgba(0, 0, 0, 0.04);
  --shadow-soft: 0 18px 45px rgba(53, 33, 83, 0.12);
  --radius-lg: 24px;
  --radius-pill: 999px;
}

/* Reset & Layout */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(
    circle at top left,
    #f6f2ee 0%,
    #ffffff 45%,
    #ffffff 100%
  );
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(255, 247, 251, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;

  /* ✅ uniform text style */
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--text);
  transform: translateY(-1px);
}

/* ✅ Logo (ICON + TEXT) */
.logo {
  display: flex;
  align-items: center;
  gap: 8px; /* space between icon and text */
}
/* Moon logo tuning */
.logo-icon {
  height: 13px;          /* slightly smaller for delicate feel */
  width: auto;
  display: block;
  opacity: 0.9;
  transform: translateY(1px); /* optical alignment with text */
}

/* Ensure text matches nav perfectly */
.logo-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}

/* ---- Hero ---- */
.hero {
  padding: 80px 0;
}

.hero-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.hero-content {
  max-width: 540px;
  text-align: center;
}

.hero-label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: #7d7494;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 3.1rem;
  line-height: 1.12;
  font-weight: 700;
  color: #1d1533;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.05rem;
  color: #6d6485;
  max-width: 420px;
  line-height: 1.6;
  margin-bottom: 0;
}

.hero-avatar img {
  width: 440px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Side-by-side on wider screens */
@media (min-width: 820px) {
  .hero-flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hero-content {
    text-align: left;
  }

  .hero-avatar {
    text-align: right;
  }
}

/* ---- Work Grid ---- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 1rem;
  align-items: stretch; /* make all cards stretch to equal height */
}

.project {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ensures vertical distribution */
  align-items: flex-start;
  height: 100%;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(53, 33, 83, 0.08);
  overflow: hidden;
  opacity: 0;
  transform: translateY(24px);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project.in-view {
  animation: fadeUp 0.6s ease-out forwards;
}

.project:nth-child(1).in-view { animation-delay: 0s; }
.project:nth-child(2).in-view { animation-delay: 0.12s; }
.project:nth-child(3).in-view { animation-delay: 0.24s; }
.project:nth-child(4).in-view { animation-delay: 0.36s; }

.project:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 45px rgba(53, 33, 83, 0.15);
}

.project img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

.tags {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: auto;
}

.btn-pill {
  margin-top: auto;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #ff9a8b, #ff6f91);
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(255, 111, 145, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 111, 145, 0.45);
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---- Animations ---- */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---- Case Study Process ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-top: 1rem;
}

.process-step {
  background: #ffffff;
  border-radius: 20px;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 26px rgba(53, 33, 83, 0.06);
}

.process-step h4 {
  margin: 0.3rem 0 0.4rem;
  font-size: 0.98rem;
}

.process-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.process-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffe6f0, #fff5f9);
  box-shadow: 0 8px 20px rgba(255, 100, 150, 0.15);
}

.process-icon svg {
  width: 26px;
  height: 26px;
  stroke: #4b3b73;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ================================
   ✅ Graphic Design Page Layout
   (Added from your snippet)
================================ */
.gd-wrap {
  padding: 34px 0 70px;
}

.client-group {
  margin: 0 0 34px;
}

.client-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text, #2b2240);
  opacity: 0.9;
}

/* 3 cards per row like the screenshot */
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

/* White rounded cards (same “card” vibe) */
.client-card {
  aspect-ratio: 4 / 3;
  background: var(--card-bg, #fff);
  border-radius: var(--radius-lg, 24px);
  border: 1px solid var(--border-subtle, rgba(0,0,0,0.04));
  box-shadow: var(--shadow-soft, 0 18px 45px rgba(53, 33, 83, 0.12));
}

/* ✅ Make client cards behave like homepage project cards */
.client-card {
  opacity: 0;
  transform: translateY(24px);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* When visible */
.client-card.in-view {
  animation: fadeUp 0.6s ease-out forwards;
}

/* Hover behavior like homepage */
.client-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(53, 33, 83, 0.15);
}

/* Optional: stagger cards slightly (like your homepage grid) */
.client-grid .client-card.in-view:nth-child(1) { animation-delay: 0s; }
.client-grid .client-card.in-view:nth-child(2) { animation-delay: 0.12s; }
.client-grid .client-card.in-view:nth-child(3) { animation-delay: 0.24s; }

/* Responsive */
@media (max-width: 980px) {
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .client-grid { grid-template-columns: 1fr; }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  .project {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .project:hover {
    transform: none !important;
    box-shadow: 0 10px 30px rgba(53, 33, 83, 0.08);
  }

  .graphic-section { margin-top: 28px; }
  .graphic-section .section-title { margin: 0 0 6px; }
  .graphic-section .section-subtitle { margin: 0 0 18px; opacity: 0.85; }

  .thumb-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .thumb-card{
    display: block;
    text-decoration: none;
    background: rgba(255,255,255,0.75);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(20, 20, 40, 0.08);
    border: 1px solid rgba(20, 20, 40, 0.06);
    transition: transform .18s ease, box-shadow .18s ease;
    color: inherit;
  }

  .thumb-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(20, 20, 40, 0.12);
  }

  .thumb-img{
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    background: rgba(0,0,0,0.04);
  }

  .thumb-meta{
    margin-top: 10px;
  }

  .thumb-title{
    font-size: 16px;
    margin: 0 0 4px;
    font-weight: 700;
    letter-spacing: -0.2px;
  }

  .thumb-tag{
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  @media (max-width: 980px){
    .thumb-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .thumb-img{ height: 190px; }
  }
  @media (max-width: 520px){
    .thumb-grid{ grid-template-columns: 1fr; }
  }

  /* =========================
   ABOUT ME SECTION
========================= */

.about { padding: 100px 0; }

.about-container{
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items:center;
}

.about-image img{
  width:100%;
  max-width:360px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 900px){
  .about-container{ grid-template-columns:1fr; text-align:center; }
  .about-image{ margin-top: 32px; }
}

.about-text h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 24px;
  color: var(--accent-secondary);
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 18px;
}

.about-image {
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
