/* ─────────────────────────────────────────────
   BioSite — Tahira Vissaram
───────────────────────────────────────────── */

:root {
  --accent:     #EDC16B;
  --accent-dark:#82622C;
  --accent-rgb: 237, 193, 107;
  --bg-from:    #0d0800;
  --bg-mid:     #2a1500;
  --bg-to:      #180e00;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-from);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 99px; }

/* ── Background ── */
#bg-layer {
  background: linear-gradient(160deg, var(--bg-from) 0%, var(--bg-mid) 55%, var(--bg-to) 100%);
}

/* ── Arch profile photo ── */
.profile-photo-wrap {
  width: 78%;
  max-width: 340px;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
}

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

.profile-photo-wrap.no-photo {
  background: linear-gradient(160deg, #f2e8d9, #e8d9c0);
}

/* ── Profile name — serif ── */
.profile-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  font-weight: 400;
  color: #000;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

/* ── Tagline ── */
.profile-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
}

/* ── Bio ── */
.profile-bio {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(0,0,0,0.8);
  line-height: 1.55;
  max-width: 30ch;
}

/* ── Social buttons ── */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: rgba(0,0,0,0.07);
  border: 1px solid rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.7);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}

.social-btn:hover {
  background: rgba(0,0,0,0.13);
  color: #000;
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 18px rgba(var(--accent-rgb), 0.4);
}

.social-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.social-btn svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

/* ── Service cards (image grid) ── */
.service-card {
  display: block;
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  text-decoration: none;
  background: #f0d48a;
  border: 1.5px solid rgba(180,140,60,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(130,98,44,0.25), 0 4px 16px rgba(0,0,0,0.12);
}

.service-card:active {
  transform: scale(0.98);
}

.service-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* gradient overlay at bottom */
.service-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.80) 0%,
    rgba(0,0,0,0.35) 45%,
    transparent 100%
  );
}

.service-card .card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.875rem 0.75rem;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* placeholder bg when no image */
.service-card.no-image {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
}

.service-card.no-image .card-overlay {
  background: linear-gradient(to top, rgba(100,70,10,0.5) 0%, transparent 100%);
}

/* última card sozinha numa linha → centrada com o mesmo tamanho */
.service-wrapper:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
}

.service-wrapper:last-child:nth-child(odd) .service-card {
  width: calc(50% - 6px); /* metade do grid menos metade do gap */
  aspect-ratio: 3 / 4;
}

/* ── Stagger animation for service cards ── */
.service-wrapper { opacity: 0; animation: fadeUp 0.45s ease forwards; }
.service-wrapper:nth-child(1) { animation-delay: 0.05s; }
.service-wrapper:nth-child(2) { animation-delay: 0.12s; }
.service-wrapper:nth-child(3) { animation-delay: 0.19s; }
.service-wrapper:nth-child(4) { animation-delay: 0.26s; }
.service-wrapper:nth-child(5) { animation-delay: 0.33s; }
.service-wrapper:nth-child(6) { animation-delay: 0.40s; }

/* ── Contact card ── */
.contact-card {
  background: #f0d48a;
  border: 1.5px solid rgba(180,140,60,0.3);
}

.form-input {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.15);
  color: #000;
}

.form-input::placeholder {
  color: rgba(0,0,0,0.35);
}

.form-input:focus {
  outline: none;
  background: rgba(255,255,255,0.75);
  border-color: rgba(0,0,0,0.35);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.08);
}

/* ── Send button ── */
.send-btn {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  box-shadow: 0 4px 20px rgba(130,98,44,0.3);
  letter-spacing: 0.05em;
  color: #fff;
}

.send-btn:hover {
  box-shadow: 0 6px 28px rgba(130,98,44,0.45);
}

/* ── Profile section fade-up ── */
#profile-section { animation: fadeUp 0.5s ease forwards; }

/* ── Services section fade-up with delay ── */
#services-section {
  animation: fadeUp 0.5s 0.1s ease both;
  padding: 0 0.5rem;
}

/* ── Contact section fade-up ── */
#contact-section {
  animation: fadeUp 0.5s 0.2s ease both;
  padding: 0 0.5rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Light theme text overrides (contact + footer) ── */
#contact-title       { color: #000; }
#contact-subtitle    { color: rgba(0,0,0,0.6); }
.contact-card label  { color: rgba(0,0,0,0.75); }
footer p             { color: rgba(0,0,0,0.35); }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
