@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white:      #FFFFFF;
  --cream:      #E2CEB1;
  --green:      #4A7C59;
  --green-dark: #3a6346;
  --text:       #1a1a1a;
  --muted:      #666666;
  --border:     rgba(26, 26, 26, 0.10);
  --radius:     10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.72;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--text);
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

img { max-width: 100%; display: block; }

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 3rem;
  box-shadow: 0 1px 0 rgba(0,0,0,0.07), 0 2px 8px rgba(0,0,0,0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--text);
}

.nav-brand:hover { text-decoration: none; color: var(--text); }

.nav-brand img {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.nav-brand-name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--green);
  text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--cream);
  padding: 2.25rem 3rem;
  margin-top: 5rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.18s;
}

.footer-link svg {
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.18s;
}

.footer-link:hover {
  color: var(--green);
  text-decoration: none;
}

.footer-link:hover svg { opacity: 1; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.65rem 1.8rem;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.12s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-fill {
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
}

.btn-fill:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
}

/* ============================================================
   HERO  (index.html)
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem 4rem;
}

.hero-text { flex: 1; min-width: 0; }

.hero-text h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.hero-tagline {
  font-size: 1.12rem;
  line-height: 1.72;
  color: #3a3a3a;
  max-width: 500px;
  margin-bottom: 1.75rem;
}

.hero-texas {
  margin-bottom: 2rem;
}

.hero-texas img {
  height: 54px;
  width: auto;
  opacity: 0.32;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-photo { flex-shrink: 0; width: 290px; }

.hero-photo img {
  width: 100%;
  height: 370px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}

/* ============================================================
   FORWARD SECTION  (index.html)
   ============================================================ */
.forward-section {
  background: var(--cream);
  padding: 4.5rem 3rem;
}

.forward-inner {
  max-width: 820px;
  margin: 0 auto;
}

.forward-inner h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
}

.forward-inner p {
  font-size: 1.05rem;
  color: #3a3a3a;
  margin-bottom: 1rem;
  line-height: 1.78;
}

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

/* ============================================================
   PAGE HEADER  (about / projects / publications)
   ============================================================ */
.page-header {
  background: var(--cream);
  padding: 3.5rem 3rem 3rem;
}

.page-header-inner { max-width: 820px; margin: 0 auto; }

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.page-header p {
  font-size: 1.05rem;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 3rem;
}

.about-section {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.about-section:last-child { border-bottom: none; }

.about-section h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
}

.about-section p {
  color: #3a3a3a;
  font-size: 1.02rem;
  margin-bottom: 1rem;
}

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

/* Education */
.edu-entry {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.edu-dot {
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  margin-top: 0.6rem;
  flex-shrink: 0;
}

.edu-entry h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.18rem;
}

.edu-entry p { font-size: 0.95rem; color: var(--muted); margin-bottom: 0; }

/* Skills */
.skills-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.skill-tag {
  background: var(--cream);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.3rem 0.95rem;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}

/* Hobbies */
.hobby-block { margin-bottom: 1.85rem; }
.hobby-block:last-child { margin-bottom: 0; }

.hobby-block h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.45rem;
}

.hobby-block p { margin-bottom: 0; }

/* Target roles */
.roles-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.roles-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.97rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}

.roles-list li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.75rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.project-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.project-motivation {
  font-size: 0.88rem;
  color: var(--green);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.project-desc {
  font-size: 0.96rem;
  color: #444;
  line-height: 1.68;
  margin-bottom: 1.25rem;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.tag {
  background: var(--cream);
  color: var(--text);
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  font-size: 0.815rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green);
  margin-top: auto;
  text-decoration: none;
}

.project-link:hover { color: var(--green-dark); text-decoration: underline; }

/* ============================================================
   PUBLICATIONS PAGE
   ============================================================ */
.publications-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 3rem;
}

.pub-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.25rem;
}

.pub-label {
  display: inline-block;
  background: var(--cream);
  color: var(--green);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 0.22rem 0.85rem;
  margin-bottom: 1rem;
}

.pub-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}

.pub-journal {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 1.75rem;
}

.pub-meta-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.pub-summary {
  font-size: 0.98rem;
  color: #3a3a3a;
  line-height: 1.78;
  margin-bottom: 1.75rem;
}

.pub-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.pub-citation {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.72;
}

.pub-doi {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.pub-doi a { color: var(--green); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .site-nav { padding: 0.8rem 1.75rem; }

  .hero {
    flex-direction: column-reverse;
    padding: 3rem 1.75rem 3.5rem;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-tagline {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-texas { display: flex; justify-content: center; }
  .hero-buttons { justify-content: center; }

  .hero-photo {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .hero-photo img { height: 300px; }

  .forward-section { padding: 3rem 1.75rem; }
  .page-header { padding: 2.5rem 1.75rem 2rem; }
  .about-body { padding: 0 1.75rem; }
  .projects-body, .publications-body { padding: 3rem 1.75rem; }
  .site-footer { padding: 2rem 1.75rem; }
}

@media (max-width: 560px) {
  .nav-links { gap: 1.4rem; }
  .nav-links a { font-size: 0.88rem; }
  .projects-grid { grid-template-columns: 1fr; }
}
