/* ===========================
   Base
   =========================== */
body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f4f9f6, #e8f5e9);
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

html, body {
  max-width: 100%;
  overflow-x: hidden; /* prevent side scroll */
}

a {
  color: #2e7d32;
  text-decoration: none;
  font-weight: bold;
}
a:hover { text-decoration: underline; }

/* ===========================
   Header
   =========================== */
.header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 15px 25px;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-left img { height: 40px; }
.brand {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2e7d32;
}

/* ===========================
   Hero
   =========================== */
.hero {
  position: relative;
  text-align: center;
  padding: 60px 20px 40px;
}
.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px; height: 90px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f5e9, #fff);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.hero-logo img { width: 50px; height: 50px; }
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #2e7d32;
}
.hero p {
  max-width: 600px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
  color: #444;
}
.hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(circle, rgba(76,175,80,0.15), transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

/* Progress bar */
#progressbar {
  width: 100%;
  max-width: 400px;
  height: 10px;
  margin: 0 auto;
  border-radius: 999px;
  background: #e0e0e0;
  overflow: hidden;
}
.progress {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2e7d32, #66bb6a);
  transition: width 0.4s ease;
}

/* ===========================
   Profile Photo
   =========================== */
.profile-photo {
  margin: 25px auto;
  max-width: 280px;
  text-align: center;
}
.profile-photo img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  transition: transform 0.3s ease;
}
.profile-photo img:hover { transform: scale(1.03); }
.caption {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #555;
}

/* ===========================
   Contact Section
   =========================== */
:root {
  --brand: #2e7d32;
  --brand-strong: #1b5e20;
  --card-bg: rgba(255,255,255,0.7);
  --stroke: rgba(46,125,50,0.25);
  --shadow: 0 10px 30px rgba(0,0,0,0.10);
  --shadow-hover: 0 18px 40px rgba(0,0,0,0.14);
  --text: #1f2937;
  --subtle: #6b7280;
}
@media (prefers-color-scheme: dark) {
  :root {
    --card-bg: rgba(255,255,255,0.85);
    --stroke: rgba(46,125,50,0.15);
    --text: #e5e7eb;
    --subtle: #9ca3af;
  }
}

.contact-section {
  position: relative;
  margin-top: 56px;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 28px;
  background:
    radial-gradient(1200px 600px at 10% -20%, rgba(46,125,50,0.08), transparent 60%),
    radial-gradient(900px 600px at 110% 120%, rgba(46,125,50,0.10), transparent 60%);
  isolation: isolate;
  overflow: hidden;
}
.contact-shell {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  padding-inline: clamp(12px, 4vw, 24px);
}
.contact-header {
  text-align: center;
  margin-bottom: 22px;
}
.contact-header .pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: linear-gradient(90deg, rgba(46,125,50,0.12), rgba(46,125,50,0.20));
  border: 1px solid var(--stroke);
}
.contact-header h2 {
  margin: 12px 0 6px;
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--brand-strong);
}

/* Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(12px, 2vw, 18px);
  margin-top: clamp(18px, 2.5vw, 24px);
}
@media (max-width: 640px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Card */
.contact-card-v2 {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(245,250,245,0.8));
  border: 1px solid var(--stroke);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  color: inherit;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.contact-card-v2,
button.contact-card-v2 {
  font: inherit;
  line-height: 1.2;
  color: inherit;
  text-decoration: none;
  margin: 0;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
}
.contact-card-v2:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(46,125,50,0.35);
}
.contact-card-v2:active { transform: translateY(0); }

.card-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  font-size: 1.35rem;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(46,125,50,0.10);
}

/* LEFT ALIGN FIX (applies to both h3 + p) */
.card-body {
  min-width: 0;
  text-align: left;
}
.card-body h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
}
.card-body p {
  margin: 2px 0 0;
  font-size: 0.98rem;
  color: var(--subtle);
  overflow-wrap: anywhere;
}

.chip {
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--brand);
  background: linear-gradient(90deg, rgba(46,125,50,0.06), rgba(46,125,50,0.12));
}

/* CTA */
.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, rgba(46,125,50,0.95), var(--brand));
  box-shadow: 0 8px 22px rgba(46,125,50,0.28);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(46,125,50,0.34); }
.btn-ghost {
  color: var(--brand-strong);
  background: rgba(255,255,255,0.65);
}

/* Ripple Ink */
.contact-card-v2 .ink {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  background: radial-gradient(120px 120px at var(--x,50%) var(--y,50%), rgba(46,125,50,0.12), transparent 60%);
  transition: opacity .25s ease, transform .25s ease;
}
.contact-card-v2:hover .ink { opacity: 1; transform: scale(1); }

/* Blobs */
.blob {
  position: absolute;
  width: 460px; height: 460px;
  filter: blur(60px);
  opacity: .35;
  animation: float 14s ease-in-out infinite;
  z-index: 1;
}
.blob-1 {
  top: -140px; left: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(46,125,50,0.35), transparent 60%);
}
.blob-2 {
  right: -160px; bottom: -160px;
  background: radial-gradient(circle at 60% 60%, rgba(76,175,80,0.30), transparent 60%);
  animation-delay: -6s;
}
@keyframes float {
  0%,100% { transform: translateY(0) translateX(0); }
  50%     { transform: translateY(-14px) translateX(8px); }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {
  .contact-card-v2, .btn, .blob, .contact-card-v2 .ink {
    transition: none !important;
    animation: none !important;
  }
}

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  color: #fff;
  background: #0b0f0c;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  transform: translateX(-50%) translateY(20px);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.show {
  opacity: .98;
  transform: translateX(-50%) translateY(0);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 600px) {
  .brand { font-size: 1rem; }
  .hero-logo { width: 70px; height: 70px; }
  .hero-logo img { width: 40px; height: 40px; }
  .hero h1 { font-size: 1.4rem; }
  .hero p { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .contact-grid { gap: 12px; }
  .contact-card-v2 {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    row-gap: 8px;
    padding: 16px;
  }
  .contact-card-v2 .chip {
    grid-column: 2 / -1;
    justify-self: start;
    margin-top: 6px;
    white-space: nowrap;
    font-size: 0.75rem;
  }
}
