/* === Root Variables === */
:root {
  --font-body: 'Inter', sans-serif;
  --color-primary: #114b8b;
  --color-secondary: #f5f7fa;
  --color-text: #222;
  --color-link: #114b8b;
  --color-link-hover: #0d3866;
}

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

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--color-text);
  background: #fff;
}

.container {
  width: 90%;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* === Navbar === */
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg,var(--color-secondary) 0%,#fff 100%);
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.social a {
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: 500;
  color: var(--color-link);
}

.social a:hover {
  text-decoration: underline;
}

/* === Sections === */
.section {
  padding: 3rem 0;
}

.section.alt {
  background: var(--color-secondary);
}

.section h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

/* === Publications === */
.pub-list {
  list-style: none;
  padding-left: 0;
}

.pub-list li {
  margin-bottom: 1rem;
}

.pub-title {
  font-weight: 600;
}

.pub-venue {
  font-style: italic;
}

/* === Grid for Portfolio === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.card h4 {
  padding: 1rem;
  font-size: 1.1rem;
}

/* === Contact Form === */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
}

input,
textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover {
  background: var(--color-link-hover);
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 0;
  background: var(--color-secondary);
  margin-top: 3rem;
}

footer p {
  font-size: 0.875rem;
}

/* === Media Queries === */
@media (max-width: 600px) {
  .nav-links {
    display: none; /* hide nav links mobile; replace with hamburger if needed */
    font-weight: bold;
  }
}


/* Overall navbar container */
.navbar {
  background-color: #fff;  /* dark blue */
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Inner layout */
.nav-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo */
.logo {
  color: #000;
  font-size: 1.6rem;
  font-weight: bold;
  margin: 0;
}

/* Nav list layout */
.nav-links {
  color: #fff;
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

/* Nav link style */
.nav-link {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ffcc00;  /* gold hover */
}

.nav-left {
  flex: 1;
  display: flex;
  align-items: center;
}

/* Navigation aligned to start of right column */
.nav-right {
  flex: 2;
  display: flex;
  justify-content: flex-start;
}