:root {
  --g1: #e8f5e9;
  --g2: #c8e6c9;
  --g3: #a5d6a7;
  --g4: #66bb6a;
  --g5: #388e3c;
  --g6: #1b5e20;
  --mint: #b2dfdb;
  --sage: #d4e8d0;
  --cream: #f9fdf9;
  --white: #ffffff;
  --dark: #1a2e1a;
  --text: #2d4a2d;
  --muted: #6a8f6a;
  --shadow: 0 8px 32px rgba(56, 142, 60, 0.12);
  --shadow-hover: 0 20px 60px rgba(56, 142, 60, 0.22);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--g1);
}
::-webkit-scrollbar-thumb {
  background: var(--g4);
  border-radius: 3px;
}

/* Cursor */
.cursor {
  width: 14px;
  height: 14px;
  background: var(--g5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease;
  mix-blend-mode: multiply;
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--g4);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition:
    transform 0.35s ease,
    opacity 0.2s;
  opacity: 0.6;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  transition:
    background 0.4s,
    box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(249, 253, 249, 0.93);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(56, 142, 60, 0.08);
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
  z-index: 101;
}
.nav-logo:hover {
  opacity: 0.75;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--g4);
  transition: width 0.3s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--g5);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--g5);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-overlay.open {
  display: block;
  opacity: 1;
}

/* Hero */
#contact-hero {
  min-height: 50vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 140px 6vw 80px;
  background:
    radial-gradient(
      ellipse 80% 60% at 70% 30%,
      rgba(165, 214, 167, 0.35) 0%,
      transparent 65%
    ),
    radial-gradient(
      ellipse 60% 80% at 10% 80%,
      rgba(178, 223, 219, 0.3) 0%,
      transparent 60%
    ),
    linear-gradient(160deg, #f0faf0 0%, #e8f5e9 40%, #f4fbf4 100%);
}

.hero-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-lines svg {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "DM Mono", monospace;
  font-size: 0.78rem;
  color: var(--g5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}
.hero-eyebrow span {
  display: inline-block;
  width: 36px;
  height: 1px;
  background: var(--g4);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  line-height: 1.12;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero-title em {
  font-style: italic;
  color: var(--g5);
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--muted);
  line-height: 1.75;
  max-width: 500px;
  margin: 0 auto;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Contact Main */
#contact-main {
  padding: 80px 6vw 100px;
  position: relative;
  overflow: hidden;
}

.contact-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.contact-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(165, 214, 167, 0.2);
  right: -150px;
  top: -100px;
}
.contact-orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(178, 223, 219, 0.18);
  left: -100px;
  bottom: 0;
}

.contact-wrapper {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
  margin-bottom: 4rem;
}

/* Contact Card */
.contact-card {
  position: relative;
  background: white;
  border: 1px solid var(--g2);
  border-radius: 20px;
  padding: 2rem 1.8rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow);
  transition: all 0.35s ease;
  overflow: hidden;
  cursor: pointer;
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g4), var(--mint));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--g3);
}
.contact-card:hover::before {
  transform: scaleX(1);
}

.contact-card-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(102, 187, 106, 0.04),
    rgba(178, 223, 219, 0.06)
  );
  opacity: 0;
  transition: opacity 0.35s;
}
.contact-card:hover .contact-card-glow {
  opacity: 1;
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--g1);
  border: 1.5px solid var(--g2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}
.contact-card-icon svg {
  width: 26px;
  height: 26px;
}
.contact-card:hover .contact-card-icon {
  background: var(--g2);
  border-color: var(--g3);
}

.contact-card-platform {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g5);
  position: relative;
  z-index: 1;
}

.contact-card-handle {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark);
  word-break: break-all;
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

.contact-card-arrow {
  position: absolute;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 28px;
  height: 28px;
  color: var(--g4);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s ease;
}
.contact-card-arrow svg {
  width: 100%;
  height: 100%;
}
.contact-card:hover .contact-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Closing */
.contact-closing {
  display: flex;
  align-items: center;
  gap: 2rem;
  text-align: center;
}
.closing-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g3), transparent);
}
.contact-closing p {
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
  font-family: "Playfair Display", serif;
  line-height: 1.7;
  max-width: 380px;
  white-space: nowrap;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Footer */
footer {
  background: #111e11;
  padding: 2.4rem 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}
.footer-left {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-left span {
  display: block;
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 3px;
}
.footer-copy {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.06em;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--g5);
  color: white;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 9997;
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .cursor,
  .cursor-ring {
    display: none;
  }

  nav {
    padding: 14px 5vw;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 280px;
    height: 100vh;
    background: rgba(249, 253, 249, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.4s ease;
    box-shadow: -8px 0 30px rgba(56, 142, 60, 0.1);
    z-index: 100;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links a {
    font-size: 1.1rem;
  }
  .hamburger {
    display: flex;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-closing {
    flex-direction: column;
    gap: 1rem;
  }
  .contact-closing p {
    white-space: normal;
  }
  .closing-line {
    width: 80px;
    height: 1px;
    flex: none;
  }

  footer {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  .toast {
    bottom: 20px;
    right: 16px;
    left: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  #contact-hero {
    padding: 120px 5vw 60px;
  }
  #contact-main {
    padding: 60px 5vw 80px;
  }
}
