/* ============================================
   Rosamari Orduna — Academic Website Styles
   ============================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a3a5c;
  --blue-mid: #2c6fad;
  --blue-light: #e8f1f9;
  --text-dark: #1c1c1c;
  --text-mid: #444;
  --accent: #4a9edd;
  --white: #ffffff;
  --border: #d0dce8;
  --max-width: 1000px;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
}

/* ---- Navigation ---- */
nav {
  background: var(--navy);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

nav .site-title {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: normal;
  letter-spacing: 0.02em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

nav ul li a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

/* ---- Page Header ---- */
.page-header {
  background: var(--blue-light);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  color: var(--navy);
  font-weight: normal;
  letter-spacing: 0.02em;
  margin-bottom: 0.35rem;
}

.page-header .subtitle {
  color: var(--text-mid);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.95rem;
}

/* ---- Main Layout ---- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

/* ---- About / Bio Section ---- */
.about-section {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}

.profile-photo {
  flex-shrink: 0;
  width: 220px;
}

.profile-photo img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center top;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: block;
}

.bio {
  flex: 1;
}

.bio h2 {
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: normal;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.bio p {
  color: var(--text-mid);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-align: justify;
}

.bio p:last-child {
  margin-bottom: 0;
}

/* ---- Contact Links ---- */
.contact-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.contact-links a {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--blue-mid);
  text-decoration: none;
  border: 1px solid var(--blue-mid);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}

.contact-links a:hover {
  background: var(--blue-mid);
  color: var(--white);
}

/* ---- Fish Gallery Section ---- */
.gallery-section h2 {
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: normal;
  margin-bottom: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.gallery-section .section-intro {
  color: var(--text-mid);
  font-size: 0.95rem;
  margin: 0.75rem 0 1.75rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.fish-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.fish-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
}

.fish-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.fish-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.fish-card figcaption {
  padding: 0.65rem 0.85rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--text-mid);
  background: #fafcff;
  border-top: 1px solid var(--border);
}

.fish-card figcaption strong {
  display: block;
  color: var(--navy);
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

/* ---- CV Page ---- */
.cv-section {
  margin-bottom: 2rem;
}

.cv-download-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--blue-light);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.cv-download-bar p {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--text-mid);
  flex: 1;
}

.btn-download {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.88rem;
  padding: 0.55rem 1.25rem;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s;
}

.btn-download:hover {
  background: var(--blue-mid);
}

.cv-embed {
  width: 100%;
  height: 800px;
  border: 1px solid var(--border);
  border-radius: 6px;
  display: block;
}

.cv-fallback {
  padding: 2rem;
  text-align: center;
  background: var(--blue-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-mid);
}

/* ---- Footer ---- */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 1.25rem 2rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.82rem;
}

footer a {
  color: rgba(255,255,255,0.85);
}

/* ---- Responsive ---- */
@media (max-width: 680px) {
  .about-section {
    flex-direction: column;
    align-items: center;
  }

  .profile-photo {
    width: 180px;
  }

  .fish-grid {
    grid-template-columns: 1fr;
  }

  nav .site-title {
    display: none;
  }

  .cv-embed {
    height: 500px;
  }
}
