/* ==========================
   UM–Dearborn Inspired Theme
   ========================== */

:root {
  /* University of Michigan colors */
  --um-blue: #00274c;
  --um-maize: #ffcb05;

  /* Palette */
  --bg: #020915;
  --bg-alt: #041327;
  --bg-soft: #071a33;
  --text: #fdfdfd;
  --muted: #b7c0d6;
  --accent: var(--um-maize);
  --accent-soft: rgba(255, 203, 5, 0.15);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --card-bg: #07192a;
  --link: #73b4ff;
  --link-hover: #a0d1ff;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 6px;

  --shadow-soft: 0 24px 55px rgba(0, 0, 0, 0.6);
  --shadow-subtle: 0 14px 30px rgba(0, 0, 0, 0.45);

  --transition-fast: 150ms ease-out;
  --transition-med: 220ms ease-out;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, #08335f 0, var(--bg) 45%),
    radial-gradient(circle at bottom right, #031021 0, var(--bg) 60%);
  color: var(--text);
  line-height: 1.6;
}

/* ==========================
   Layout Utilities
   ========================== */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.section {
  padding: 4.25rem 0;
}

.section-alt {
  background: linear-gradient(
    135deg,
    rgba(0, 39, 76, 0.82),
    rgba(3, 22, 46, 0.96)
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.section-title {
  font-size: 1.9rem;
  margin-bottom: 2.4rem;
  text-align: left;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.2rem;
}

.bullet-list {
  padding-left: 1.2rem;
}

.subheading {
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
}

/* ==========================
   Header / Nav
   ========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    to bottom,
    rgba(0, 39, 76, 0.96),
    rgba(0, 39, 76, 0.8),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.4rem;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.brand-tagline {
  font-size: 0.75rem;
  color: var(--muted);
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.6rem;
  font-size: 0.9rem;
  position: relative;
  padding-bottom: 0.2rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-med);
}

.main-nav a:hover {
  color: var(--text);
}

.main-nav a:hover::after {
  width: 100%;
}

/* ==========================
   Hero
   ========================== */

.hero {
  padding-top: 3.5rem;
}

.hero-compact {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2.8rem;
  align-items: flex-start;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.accent {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.hero-sub {
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition-med), color var(--transition-med),
    transform var(--transition-fast), border-color var(--transition-med),
    box-shadow var(--transition-med);
}

.btn.primary {
  background: var(--accent);
  color: #00274c;
  box-shadow: var(--shadow-soft);
}

.btn.primary:hover {
  background: #ffe066;
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn.ghost:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-subtle);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.86rem;
}

.hero-links a {
  color: var(--link);
  text-decoration: none;
}

.hero-links a i {
  margin-right: 0.35rem;
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-card {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
  padding: 1.1rem 1.2rem;
  font-size: 0.88rem;
}

.hero-card h2 {
  font-size: 1rem;
  margin: 0 0 0.55rem;
}

.hero-card ul {
  padding-left: 1.2rem;
  margin: 0.25rem 0 0;
}

/* ==========================
   Page Title / Intro (Deep Dives)
   ========================== */

.page-title {
  font-size: 2.1rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-intro {
  max-width: 640px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ==========================
   Skills
   ========================== */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.skill-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-subtle);
  font-size: 0.9rem;
}

.skill-card h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  font-size: 1rem;
}

/* ==========================
   Projects (Overview + Deep Dives)
   ========================== */

.project-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow-subtle);
}

.project-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.project-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.project-tag {
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.project-summary {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.3rem 0 0.6rem;
}

.project-details {
  font-size: 0.86rem;
  padding-left: 1.2rem;
  margin-bottom: 0.6rem;
}

.project-links a {
  font-size: 0.86rem;
  color: var(--link);
  text-decoration: none;
  margin-right: 0.9rem;
}

.project-links a i {
  margin-right: 0.3rem;
}

/* ==========================
   Gallery
   ========================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.gallery-grid figure {
  margin: 0;
  background: rgba(0, 0, 0, 0.18);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-grid figcaption {
  font-size: 0.78rem;
  padding: 0.5rem 0.6rem 0.6rem;
  color: var(--muted);
}

/* ==========================
   Contact
   ========================== */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 2.2rem;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

.contact-list a {
  color: var(--link);
  text-decoration: none;
}

.contact-list i {
  margin-right: 0.45rem;
}

/* ==========================
   Footer
   ========================== */

.site-footer {
  padding: 1.1rem 0 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #010309;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ==========================
   Responsive
   ========================== */

@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 2.6rem;
  }

  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    margin-top: 0.5rem;
  }

  .main-nav a {
    margin-left: 0;
    margin-right: 1.3rem;
  }
}

@media (max-width: 600px) {
  .hero-text h1 {
    font-size: 2.05rem;
  }

  .section {
    padding: 3.2rem 0;
  }

  .project-card {
    padding: 1.1rem 1.1rem;
  }

  .section-title {
    font-size: 1.7rem;
  }
}
