/* ==========================================================
   webish — styles
   Change the brand colors in :root to restyle the whole site.
   ========================================================== */
:root {
  --brand: #c0266d;        /* primary pink */
  --brand-dark: #9d174d;
  --accent: #14b8a6;       /* teal accent */
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #fdf2f8;
  --card: #ffffff;
  --surface: #ffffff;
  --header-bg: rgba(255,255,255,.85);
  --border: #f3d5e4;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(31, 17, 71, 0.08);
  --head: "Poppins", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --max: 1140px;
}
[data-theme="dark"] {
  color-scheme: dark;
  --brand: #e8559a;
  --brand-dark: #c0266d;
  --accent: #2dd4bf;
  --ink: #f3e8ef;
  --muted: #b8a9b3;
  --bg: #150f19;
  --bg-alt: #1d1523;
  --card: #251b2d;
  --surface: #251b2d;
  --header-bg: rgba(21,15,25,.85);
  --border: #3b2b47;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.nav-wrap { display: flex; align-items: center; height: 70px; }
.logo { margin-right: auto; }
.logo {
  font-family: var(--head); font-weight: 700; font-size: 1.6rem;
  color: var(--ink); text-decoration: none; letter-spacing: -.5px;
}
.logo span { color: var(--brand); }
.logo.small { font-size: 1.25rem; }

.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.site-nav a:hover, .site-nav a.active { color: var(--brand); }
.site-nav .nav-cta {
  background: var(--brand); color: #fff; padding: 9px 18px; border-radius: 999px;
}
.site-nav .nav-cta:hover, .site-nav .nav-cta:active, .site-nav .nav-cta.active { background: transparent; color: var(--brand); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: grid; place-items: center; width: 40px; height: 40px; margin-left: 18px; order: 1;
  background: transparent; border: 1px solid var(--border); border-radius: 50%;
  color: var(--ink); cursor: pointer; transition: color .2s, border-color .2s;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 120px 0 130px;
  background:
    radial-gradient(circle at 15% 20%, rgba(192,38,109,.18), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(20,184,166,.18), transparent 45%),
    var(--bg-alt);
  text-align: center;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 700; max-width: 820px; margin: 0 auto .3em; }
.hero .accent {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 1.2rem; color: var(--muted); margin: 0 0 2rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; font-family: var(--head); font-weight: 600;
  padding: 13px 26px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem;
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem); text-align: center; margin-bottom: 48px; position: relative;
}
.section-title::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  margin: 14px auto 0;
}
.section-title.left { text-align: left; }
.section-title.left::after { margin-left: 0; }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 28px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(31,17,71,.12); }
.card p { color: var(--muted); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.text-link { font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: 320px 1fr; gap: 56px; align-items: center; }
.team-photo {
  position: relative;
  width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--surface); box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--brand), var(--accent));
  cursor: pointer; outline: none;
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: blur(2px); transform: scale(1.04);   /* scale hides soft edges from the blur */
  transition: filter .5s ease, transform .5s ease;
}
.team-photo:hover img,
.team-photo:focus-visible img,
.team-photo.is-clear img { filter: blur(0); transform: scale(1); }
.team-photo:focus-visible { box-shadow: 0 0 0 3px var(--brand), var(--shadow); }
/* brand gradient tint over the photo; fades away with the blur */
.team-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  mix-blend-mode: color;          /* tints the photo but keeps its light and shadow */
  opacity: .9; pointer-events: none;
  transition: opacity .5s ease;
}
.team-photo:hover::after,
.team-photo:focus-visible::after,
.team-photo.is-clear::after { opacity: 0; }
.eyebrow {
  font-family: var(--head); text-transform: uppercase; letter-spacing: 2px;
  font-size: .85rem; font-weight: 600; color: var(--brand);
}
.team-bio p { font-size: 1.05rem; }

/* ---------- Portfolio ---------- */
.filters { display: flex; justify-content: center; gap: 10px; margin: -20px 0 36px; flex-wrap: wrap; }
.filter {
  font-family: var(--head); font-weight: 500; font-size: .9rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
}
.filter.is-active, .filter:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.project {
  position: relative; display: block; overflow: hidden;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
}
a.project:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(31,17,71,.14); }
.project img {
  width: 100%; aspect-ratio: 800/412; object-fit: cover;
  background: linear-gradient(135deg, #fce7f3, #ccfbf1);
}
.project-body { padding: 20px 22px 24px; }
.project-body h3 { font-size: 1.15rem; margin-bottom: .3em; }
.project-body p { color: var(--muted); margin: 0; font-size: .95rem; }
.badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(31,41,55,.85); color: #fff; font-size: .75rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 1px;
}
.project.is-hidden { display: none; }

/* ---------- Contact ---------- */
.contact {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand) 60%, var(--accent));
  color: #fff;
}
.contact .section-title::after { background: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.contact .lead { font-size: 1.4rem; font-family: var(--head); font-weight: 600; }
.contact-copy p { opacity: .92; }
.contact-form { background: var(--surface); color: var(--ink); padding: 32px; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.2); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-alt);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--brand); border-color: transparent; background: var(--surface); }
.field.invalid input, .field.invalid textarea { border-color: #dc2626; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 12px 0 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #059669; }
.form-status.err { color: #dc2626; }

/* ---------- Footer ---------- */
.site-footer { background: #27131f; color: #e7c8d5; padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer p { margin: 0; font-size: .9rem; }
.site-footer .logo { color: #fff; }
.to-top { color: #e7c8d5; text-decoration: none; font-size: .9rem; }
.to-top:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .card-grid.three { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: 1fr; text-align: center; }
  .team-photo { max-width: 260px; margin: 0 auto; }
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .theme-toggle { margin-left: auto; margin-right: 6px; order: 0; }
  .site-nav {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .site-nav.open { max-height: 400px; }
  .site-nav a { padding: 14px 20px; width: 100%; text-align: center; }
  .site-nav .nav-cta { border-radius: 0; }
  .card-grid.two, .card-grid.three { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 90px 0 100px; }
  .footer-inner { justify-content: center; text-align: center; }
}
