/* =========================
   IMPORTS - Load base styles first
   ========================= */
@import "../css-modules/base.css";
@import "../css-modules/header.css";

/* =========================
   HEADER OVERRIDES FOR CONTACT PAGE
   ========================= */
.site-header { 
  background: var(--dark-bg) !important; 
  color: white !important;
}

.site-header a,
.site-header nav a {
  color: white !important;
}

.site-header nav a:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

body { background: #0f172a; }

/* ========================= MAIN LAYOUT ========================= */
.site-main {
  padding: 3rem 1.5rem;
}

.contact-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* Desktop layout */
@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: stretch; /* Changed from start to stretch */
  }
}

/* Make sections full height */
.about-section,
.contact-section {
  display: flex;
  flex-direction: column;
}

/* =========================
   CARD SYSTEM
   ========================= */

.card {
  background-color: #ffffff;
  color: #1f2937;
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  height: 100%; /* Match height of tallest card */
}

.card-header { margin-bottom: 1rem; }

.card-header h1 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  color: #0f172a;
}

.card-body {
  flex: 1;
}

.card-footer {
  margin-top: 2rem;
}

/* =========================
   ABOUT SECTION
   ========================= */

.media-block {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.about-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--button-color, #3b82f6);
}

.about-card p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

/* =========================
   RESUME ACTIONS
   ========================= */

.resume-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  background-color: var(--button-color, #3b82f6);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  text-align: center;
  transition: background-color 0.25s ease;
}

.btn:hover {
  background-color: #2563eb;
}

/* =========================
   CONTACT FORM
   ========================= */

.contact-form p {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

/* INPUT */
input,
select,
textarea {
  font: inherit;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid #d1d5db;
  background: transparent;
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-bottom-color: #2563eb;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

/* BUTTON */
.button {
  display: flex;
  justify-content: flex-end;
}

button {
  padding: 0.65rem 1.5rem;
  font-weight: 600;
  background-color: var(--button-color, #3b82f6);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #2563eb;
}

/* Honeypot Styling */
.honeypot { display: none; }

/* Standard syntax for most modern browsers */
::placeholder, select {
  color: #999; /* Change the text color */
  font-style: italic; /* Change the font style */
  opacity: 1; /* Fix Firefox's default lower opacity */
}

/* For Chrome, Safari, Opera, and Edge (older versions) */
::-webkit-input-placeholder {
  color: #999;
  font-style: italic;
  opacity: 1;
}

/* For Firefox 19+ */
::-moz-placeholder {
  color: #999;
  font-style: italic;
  opacity: 1;
}

/* For Internet Explorer 10-11 */
:-ms-input-placeholder {
  color: #999;
  font-style: italic;
  opacity: 1;
}

/* =========================
   MOBILE ADJUSTMENTS
   ========================= */

@media (max-width: 480px) {
  .card {
    padding: 1.75rem;
  }

  .card-header h1 {
    font-size: 1.5rem;
  }

  .about-photo {
    width: 110px;
    height: 110px;
  }

  .resume-actions {
    flex-direction: column;
  }

  .btn,
  button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }
}
