/* -------------------------------------------------- */
/* RESET & BASE */
/* -------------------------------------------------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Crimson Pro', Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* offset for fixed navbar */
  padding-top: 110px;
}

/* Layout wrapper */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -------------------------------------------------- */
/* NAVBAR (FULLY RESPONSIVE) */
/* -------------------------------------------------- */

.navbar,
nav { /* support older markup */
  position: fixed;
  top: 0; 
  left: 0; 
  right: 0;

  background: #0f172a;
  border-bottom: 1px solid #1e293b;
  z-index: 1000;

  padding: 16px 0;
}

/* inner layout */
.nav-inner,
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* left label block */
.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Brand */
.brand {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #f1f5f9;
  font-size: 1.1rem;
}

/* Badge */
.badge {
  font-weight: 500;
  font-size: 0.9rem;
  color: #e2e8f0;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 6px 12px;
  background: #1e293b;
}

/* Desktop nav menu */
.nav-links {
  display: flex;
  list-style: none;
  gap: 26px;
  margin-left: auto;
}

/* Desktop link styles */
.nav-links a {
  text-decoration: none;
  color: #e2e8f0;
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #60a5fa;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: #60a5fa;
  transition: width 0.2s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* -------------------------------------------------- */
/* HAMBURGER (ANIMATED) */
/* -------------------------------------------------- */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: #0f172a;
  border: 1px solid #1e293b;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e2e8f0;
  border-radius: 4px;
  transition: 0.35s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* -------------------------------------------------- */
/* MOBILE NAV */
/* -------------------------------------------------- */

@media (max-width: 900px) {

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: flex;
    flex-direction: column;

    background: #0f172a;
    position: absolute;
    top: 100%;
    right: 0;

    width: 100%;
    border-bottom: 1px solid #1e293b;

    /* collapsed by default */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);

    transition:
      max-height 0.35s ease,
      opacity 0.35s ease,
      transform 0.35s ease;
  }

  .nav-links.show {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links li {
    padding: 12px 0;
    text-align: center;
  }
}

/* -------------------------------------------------- */
/* HERO */
/* -------------------------------------------------- */

.hero {
  padding-top: 10px;
  padding-bottom: 60px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: 2.4rem;
  color: #111827;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 1.2rem;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 18px;
}

.hero p {
  color: #374151;
  margin-bottom: 22px;
}

/* CTA buttons */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid;
  font-size: 1.1rem;
}

/* Primary CTA */
.btn-primary {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  font-family: 'Crimson Pro', serif;
}

.btn-primary:hover {
  filter: brightness(1.15);
}

/* Ghost CTA */
.btn-ghost {
  background: #ffffff;
  color: #0f172a;
  border-color: #d0d4dc;
}

/* Portrait */
.portrait-wrap {
  max-width: 420px;
  margin: 0 auto;
}

.portrait {
  width: 100%;
  height: 420px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  background: #eef2f7;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
}

/* -------------------------------------------------- */
/* SECTIONS */
/* -------------------------------------------------- */

section {
  padding: 72px 0;
}

section h2 {
  text-align: center;
  font-size: 1.9rem;
  color: #111827;
  margin-bottom: 28px;
}

.section-lead {
  text-align: center;
  color: #4b5563;
  max-width: 820px;
  margin: 0 auto 34px;
}

/* -------------------------------------------------- */
/* GRID LAYOUT */
/* -------------------------------------------------- */

.grid {
  display: grid;
  gap: 22px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

/* -------------------------------------------------- */
/* CARDS */
/* -------------------------------------------------- */

.card {
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 18px;
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
}

.card h3 {
  font-size: 1.15rem;
  color: #0f172a;
  margin: 10px 0 8px;
}

.card p {
  color: #4b5563;
  font-size: 0.98rem;
}

.thumbnail,
.event-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #f4f6f9;
  margin-bottom: 10px;
}

/* -------------------------------------------------- */
/* EVENTS GRID */
/* -------------------------------------------------- */

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 40px;
}

.event-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #eef2f6;
  overflow: hidden;
  transition: transform 0.15s ease;
}

.event-card:hover {
  transform: translateY(-4px);
}

.event-content {
  padding: 16px 18px 20px;
}

.event-date {
  font-size: 0.9rem;
  color: #1e3a8a;
  font-weight: 600;
  margin-bottom: 6px;
}

.event-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.event-desc {
  font-size: 0.98rem;
  color: #475569;
}

/* -------------------------------------------------- */
/* TOPICS */
/* -------------------------------------------------- */

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.topic {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dbe2ea;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  transition: 0.15s ease;
}

.topic:hover {
  transform: translateY(-2px);
  border-color: #b9c5d3;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* -------------------------------------------------- */
/* FOOTER */
/* -------------------------------------------------- */

footer {
  border-top: 1px solid #eef2f6;
  padding: 26px 0;
  color: #475569;
  text-align: center;
  font-size: 0.95rem;
}

/* Utility */
.muted { color: #6b7280; }
.space { height: 8px; }

/* Links inside cards */
.project-link a {
  color: #1e3a8a;
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.95rem;
}

.project-link a:hover {
  text-decoration: none;
}
