/* CONTACT PAGE STYLES */

.contact-page {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(40px, 8vh, 80px) clamp(16px, 4vw, 24px);
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* HEADER */

.contact-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vh, 60px);
}

.contact-header h1 {
  font-family: "Londrina Shadow", sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1;
  margin: 0 0 1rem;
  color: #141414;
}

.contact-intro {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.6;
  color: #555;
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

.contact-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #888;
}

.contact-location i {
  color: #aaa;
}

/* CONTACT METHODS - SQUARE CARDS */

.contact-methods {
  margin-bottom: clamp(32px, 5vh, 48px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 200px));
  gap: clamp(16px, 3vw, 24px);
  justify-content: center;
}

/* Square Contact Card */
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;

  width: 100%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
  padding: 24px 16px;

  background: #fff;
  border: 2px solid #e8e7e3;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;

  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
  border-color: #ddd;
}

.contact-card:focus-visible {
  outline: 3px solid #1e40af;
  outline-offset: 3px;
}

/* Icon Container */
.contact-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  transition: transform 0.25s ease;
}

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

.contact-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Icon Colors */
.contact-icon-linkedin {
  background: #dbeafe;
}

.contact-icon-email {
  background: #d1fae5;
}

.contact-icon-bento {
  background: #ede9fe;
}

/* purple option: background: #ede9fe; color: #6d28d9; */
.contact-icon-resume {
  background: #f2e7df;
  font-size: 1.75rem;
  color: #8b5e47;
}

/* Text Container */
.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Text */
.contact-card h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #141414;
  margin: 0;
}

.contact-card p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #666;
  margin: 0;
}

/* RESPONSE NOTE */

.contact-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  background: #f8f7f5;
  border-radius: 10px;
  text-align: center;
}

.contact-note i {
  color: #888;
  font-size: 1rem;
}

.contact-note p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  margin: 0;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 160px));
    gap: 12px;
  }

  .contact-card {
    padding: 20px 12px;
    gap: 10px;
  }

  .contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
  }

  .contact-icon img {
    width: 32px;
    height: 32px;
  }

  .contact-card h2 {
    font-size: 0.95rem;
  }

  .contact-card p {
    font-size: 0.75rem;
  }
}

/* Mobile: Switch to horizontal bars */
@media (max-width: 640px) {
  .contact-header h1 {
    font-size: 2.5rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-card {
    flex-direction: row;
    aspect-ratio: unset;
    max-width: 100%;
    padding: 16px 20px;
    text-align: left;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
  }

  .contact-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
  }

  .contact-info {
    align-items: flex-start;
  }

  .contact-card h2 {
    font-size: 1rem;
  }

  .contact-card p {
    font-size: 0.85rem;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .contact-icon {
    transition: none;
  }

  .contact-card:hover {
    transform: none;
  }

  .contact-card:hover .contact-icon {
    transform: none;
  }
}
