/* Career portfolio styles for Jessie Salgado */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #5f6b7a;
  --accent: #1f4e79;
  --accent-2: #0f766e;
  --border: #d9e2ec;
  --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

header {
  position: relative;
  isolation: isolate;
  color: #fff;
  padding: 4.5rem 0 2rem;
  text-align: center;
  background-color: #071a33;
  background-image:
    linear-gradient(
      90deg,
      rgba(5, 18, 38, 0.96) 0%,
      rgba(8, 29, 57, 0.86) 35%,
      rgba(8, 29, 57, 0.62) 62%,
      rgba(8, 29, 57, 0.72) 100%
    ),
    url("../img/header-background.webp");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  overflow: hidden;
}

header .container {
  position: relative;
  z-index: 1;
}

header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.4rem);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.tagline {
  margin: .35rem 0 1.25rem;
  color: #dbeafe;
  font-weight: 600;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  justify-content: center;
}

nav a {
  color: #fff;
  font-weight: 700;
  transition: color 0.3s;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

nav a:hover {
  color: #ffd166;
}

.hero {
  padding: 3rem 0;
  background: #eef5fb;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-photo,
.hero-initials {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
  border: 5px solid #fff;
  background: var(--accent);
  color: #fff;
}

.hero-initials {
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: .05em;
}

.hero-initials:not([hidden]) {
  display: flex;
}

.hero h2 {
  margin: 0 0 .4rem;
  font-size: 2rem;
}

.hero-tagline {
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 800;
}

.section {
  padding: 3rem 0;
}

.section:nth-of-type(even) {
  background: var(--surface);
}

h2 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.9rem;
  border-bottom: 3px solid var(--accent-2);
  display: inline-block;
  padding-bottom: .25rem;
}

.highlights,
.skills-list,
.cert-list,
.contact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .85rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.highlights li,
.skills-list li,
.cert-list li,
.contact-list li,
.timeline-item,
.education-item,
.project-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.skills-list i,
.contact-list i,
.social-links i {
  color: var(--accent-2);
  margin-right: .55rem;
}

.timeline {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  border-left: 2px solid #e6e6e6;
  padding-left: 20px
}

.timeline-item h3,
.education-item h3,
.project-item h3 {
  margin: 0 0 .25rem;
  color: #16263a;
}

#contact h3 {
  margin: 1.5rem 0 .35rem;
  color: #16263a;
  font-size: 1.2rem;
}

.date {
  display: inline-block;
  margin-bottom: .75rem;
  color: var(--muted);
  font-weight: 700;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .6rem .9rem;
  background: var(--surface);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.social-links a:hover {
  border-color: var(--accent-2);
  color: var(--accent);
}

.contact-form {
  display: grid;
  gap: .75rem;
  width: 100%;
  max-width: 680px;
  margin: 1.25rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.contact-form label {
  font-weight: 700;
  color: #16263a;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem;
  font: inherit;
  background: #fff;
  color: var(--text);
}

.contact-form button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: .75rem 1.2rem;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  justify-self: center;
}

.contact-form button:hover {
  background: #16324f;
}

#contact-response {
  max-width: 680px;
  margin: .75rem auto 0;
  font-weight: 700;
}

#contact-response.is-success {
  color: var(--accent-2);
}

#contact-response.is-error {
  color: #b42318;
}

.form-field--honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

footer {
  padding: 1.5rem 0;
  background: #16263a;
  color: #e5edf5;
  text-align: center;
}

@media (max-width: 700px) {
  header {
    padding: 3rem 0 1.5rem;
    background-position: 62% center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo,
  .hero-initials {
    margin: 0 auto;
  }

  nav ul {
    justify-content: center;
  }
}