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

/* ── Theme Variables ──────────────────────────────── */
:root {
  --accent:  #f0187a;
  --gradient: linear-gradient(135deg, #f0187a 0%, #ff6a00 100%);
  --silver:  #cdcdd6;
  --radius:  14px;
  --font-display: 'Nunito', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Light mode defaults */
  --bg:           #f5f5f7;
  --surface:      #ffffff;
  --text:         #0d0d0d;
  --text-muted:   #6b7280;
  --border:       rgba(0,0,0,0.08);
  --card-shadow:  0 2px 12px rgba(0,0,0,0.07);
  --card-hover:   0 12px 32px rgba(0,0,0,0.13);
  --nav-bg:       rgba(245,245,247,0.88);
  --input-bg:     rgba(0,0,0,0.04);
  --input-border: rgba(0,0,0,0.12);
  --placeholder-a:#e2e2e5;
  --placeholder-b:#ebebee;
}

[data-theme="dark"] {
  --bg:           #0d0d0d;
  --surface:      #1a1a1a;
  --text:         #f5f5f7;
  --text-muted:   #8b8fa8;
  --border:       rgba(255,255,255,0.07);
  --card-shadow:  0 2px 12px rgba(0,0,0,0.3);
  --card-hover:   0 12px 32px rgba(0,0,0,0.5);
  --nav-bg:       rgba(13,13,13,0.88);
  --input-bg:     rgba(255,255,255,0.05);
  --input-border: rgba(255,255,255,0.1);
  --placeholder-a:#222226;
  --placeholder-b:#2a2a2e;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* ── Nav ──────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 4rem;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, border-color 0.3s;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

nav ul a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--silver); }

/* ── Theme Toggle ─────────────────────────────────── */
.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  width: 48px;
  height: 26px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s, border-color 0.3s;
  flex-shrink: 0;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.3s;
}

[data-theme="dark"] .theme-toggle::after {
  transform: translateX(22px);
}

/* ── Floating Pieces ──────────────────────────────── */
.floating-pieces {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.piece {
  position: absolute;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  opacity: 0.75;
}

/* top row */
.piece-1  { width: 260px; height: 175px; top: 4%;   left: 2%;   animation: float 6s   ease-in-out infinite; }
.piece-2  { width: 220px; height: 220px; top: 2%;   left: 28%;  animation: float 7s   ease-in-out infinite 0.5s; }
.piece-3  { width: 280px; height: 185px; top: 3%;   right: 25%; animation: float 5.5s ease-in-out infinite 1s; }
.piece-4  { width: 250px; height: 165px; top: 5%;   right: 2%;  animation: float 8s   ease-in-out infinite 1.5s; }
/* middle row */
.piece-5  { width: 230px; height: 230px; top: 38%;  left: 1%;   animation: float 6.5s ease-in-out infinite 2s; }
.piece-6  { width: 260px; height: 175px; top: 42%;  right: 1%;  animation: float 7.5s ease-in-out infinite 0.8s; }
/* bottom row */
.piece-7  { width: 270px; height: 180px; bottom: 4%; left: 2%;  animation: float 6s   ease-in-out infinite 1.2s; }
.piece-8  { width: 220px; height: 220px; bottom: 3%; left: 27%; animation: float 7s   ease-in-out infinite 0.3s; }
.piece-9  { width: 255px; height: 170px; bottom: 2%; right: 26%;animation: float 5s   ease-in-out infinite 1.8s; }
.piece-10 { width: 240px; height: 160px; bottom: 5%; right: 2%; animation: float 8s   ease-in-out infinite 0.6s; }
/* extra fill */
.piece-11 { width: 210px; height: 140px; top: 22%;  left: 3%;   animation: float 9s   ease-in-out infinite 1s; }
.piece-12 { width: 210px; height: 140px; top: 20%;  right: 3%;  animation: float 7s   ease-in-out infinite 2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-12px) rotate(1deg); }
  66%       { transform: translateY(6px) rotate(-1deg); }
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4rem;
  position: relative;
  overflow: hidden;
  text-align: center;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 3.5rem;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  padding-bottom: 0.15em;
  line-height: 1.2;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 440px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}

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

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(240,24,122,0.35);
}

.btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 8px 28px rgba(240,24,122,0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--surface); }

/* ── Sections ─────────────────────────────────────── */
.section {
  padding: 6rem 4rem;
  text-align: center;
}

.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

/* ── Grids ────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
}

/* ── Cards ────────────────────────────────────────── */
.card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, background 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover);
}

.card.tall { grid-row: span 2; }
.card.wide { grid-column: span 2; }

.card-img {
  flex: 1;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-img img { transform: scale(1.05); }

.placeholder {
  background: linear-gradient(120deg, var(--placeholder-a) 30%, var(--placeholder-b) 50%, var(--placeholder-a) 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-info {
  padding: 0.9rem 1rem;
  background: var(--surface);
  transition: background 0.3s;
}

.card-info h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--text);
}

.card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Contact ──────────────────────────────────────── */
.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.contact-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.contact-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--silver);
  background: var(--surface);
}

.contact-form textarea { resize: vertical; }

/* ── Footer ───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 1.8rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  transition: border-color 0.3s;
}

.footer-links {
  display: flex;
  gap: 1.8rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  nav ul { gap: 1.5rem; }

  /* Hide floating pieces on mobile */
  .floating-pieces { display: none; }

  /* Center hero card content */
  .hero {
    padding: 6rem 1.5rem 3rem;
    min-height: unset;
  }
  .hero-card {
    text-align: center;
    align-items: center;
    padding: 2rem 1.5rem;
  }
  .hero-sub { text-align: center; }
  .hero-cta { justify-content: center; }

  .section { padding: 4rem 1.5rem; }

  .grid-3 { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .card.tall  { grid-row: span 1; }
  .card.wide  { grid-column: span 1; }

  .form-row { grid-template-columns: 1fr; }

  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  nav ul { display: none; }
}
