/* Loyola maroon & gold color scheme */
:root {
  --maroon: #7a1e2c;
  --maroon-dark: #5c1520;
  --gold: #f1b434;
  --bg: #faf8f5;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #5d5d5d;
  --border: #e6e0d8;
}
body.dark {
  --bg: #16130f;
  --card: #221d18;
  --text: #f2ede6;
  --muted: #b5ada3;
  --border: #3a322a;
  --maroon: #d0566a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; }

/* Sticky navigation bar */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--maroon-dark);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { color: var(--gold); font-family: "Playfair Display", serif; font-size: 1.5rem; font-weight: 700; text-decoration: none; }
nav { display: flex; align-items: center; gap: 24px; }
nav a { color: #fff; text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--gold); }
.theme-btn, .menu-btn {
  background: none; border: 1px solid rgba(255,255,255,0.4); color: #fff;
  border-radius: 6px; padding: 4px 10px; font-size: 1.1rem; cursor: pointer;
}
.menu-btn { display: none; }

section { max-width: 1100px; margin: 0 auto; padding: 70px 24px; }
section h2 {
  font-size: 2rem; margin: 0 0 30px; color: var(--maroon);
  border-bottom: 3px solid var(--gold); display: inline-block; padding-bottom: 4px;
}

/* Hero / About Me */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 80vh; }
.eyebrow { color: var(--maroon); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; margin: 0; }
.hero h1 { font-size: 3.6rem; margin: 8px 0; }
.title { font-size: 1.25rem; font-weight: 600; margin: 0 0 16px; }
.intro { color: var(--muted); max-width: 600px; }
.hero-buttons { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.monogram {
  flex-shrink: 0; width: 240px; height: 240px; border-radius: 50%;
  background: var(--maroon-dark); color: var(--gold); border: 6px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif; font-size: 5.5rem; font-weight: 700;
}

.btn { display: inline-block; padding: 12px 22px; border-radius: 6px; text-decoration: none; font-weight: 600; transition: transform 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--maroon-dark); color: #fff; }
.btn.secondary { border: 2px solid var(--maroon); color: var(--maroon); }

/* Skills */
.skills { display: flex; flex-wrap: wrap; gap: 12px; }
.skills span {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--gold);
  padding: 10px 16px; border-radius: 6px; font-weight: 500;
}

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-top: 5px solid var(--maroon);
  border-radius: 10px; padding: 26px; box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.card h3 { margin: 4px 0 10px; }
.card-tag { color: var(--maroon); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin: 0; }
.card p { color: var(--muted); margin: 8px 0; }
.card strong { color: var(--text); }

/* Timeline */
.timeline { border-left: 3px solid var(--gold); padding-left: 26px; }
.item { position: relative; margin-bottom: 30px; }
.item::before {
  content: ""; position: absolute; left: -35px; top: 6px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--maroon); border: 2px solid var(--gold);
}
.item h3 { margin: 0; }
.meta { color: var(--maroon); font-weight: 600; margin: 2px 0 4px; }
.item p:last-child { color: var(--muted); margin: 0; }

.contact { text-align: center; }
.contact p { color: var(--muted); }
footer { text-align: center; padding: 24px; background: var(--maroon-dark); color: #e9d9c0; font-size: 0.9rem; }

/* Fade-in animation on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s, transform 0.6s; }
.reveal.show { opacity: 1; transform: none; }

/* Mobile layout */
@media (max-width: 768px) {
  .menu-btn { display: block; }
  nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 16px; padding: 20px; background: var(--maroon-dark);
  }
  nav.open { display: flex; }
  .hero { flex-direction: column-reverse; text-align: center; min-height: auto; padding-top: 50px; }
  .hero h1 { font-size: 2.6rem; }
  .hero-buttons { justify-content: center; }
  .intro { margin: 0 auto; }
  .monogram { width: 150px; height: 150px; font-size: 3.5rem; }
  section { padding: 50px 16px; }
  .cards { grid-template-columns: 1fr; }
}
