/* ================================================================
   styles.css — Custom styles for Roberto Campos Portfolio
   Tailwind CSS utility classes are applied directly in the HTML;
   this file only contains styles that cannot be expressed with
   Tailwind utilities alone.
   ================================================================ */

/* ── Smooth color / border transitions for dark-mode toggle ── */
*, *::before, *::after {
  transition: background-color 0.25s ease,
              color            0.25s ease,
              border-color     0.25s ease;
}

/* ── Give sections a top margin so the fixed nav doesn't overlap ── */
section[id] { scroll-margin-top: 4rem; }

/* ── Project cards: lift on hover ── */
.project-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

/* ── Skill tags: smooth color shift on hover ── */
.skill-tag {
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* ── Hamburger icon lines (three-bar to X animation) ── */
.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#menu-btn.open .line-1 { transform: translateY(8px) rotate(45deg); }
#menu-btn.open .line-2 { opacity: 0; }
#menu-btn.open .line-3 { transform: translateY(-8px) rotate(-45deg); }

/* ── Education timeline vertical connector dot ── */
.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #3b82f6; /* blue-500 */
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── Contact card hover: border highlight ── */
.contact-card {
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-card:hover {
  border-color: #3b82f6;
}

/* ── Form input focus ring ── */
.form-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px #3b82f6;
}

/* ── Form field validation states ── */
.field-error { border-color: #ef4444 !important; }
.field-valid  { border-color: #22c55e !important; }

/* ── Field error message text ── */
.error-msg {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
