/* =========================
   CSS3 Styling - styles.css
   ========================= */

/* 1) Background + readable font */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;

  background: linear-gradient(180deg, #f7f9fc 0%, #e9eef7 100%);
  color: #1f2a37;
}

/* 2) Header */
body > header {
  text-align: center;
  padding: 24px 16px;
  background: #243b55;
  color: #ffffff;
}

body > header h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

/* 3) Navigation menu (horizontal + hover) */
nav {
  margin-top: 14px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

nav li {
  margin: 0;
}

nav a {
  display: inline-block;
  text-decoration: none;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

nav a:hover {
  background: #ffffff;
  color: #243b55;
}

/* Main content wrapper */
main {
  max-width: 1000px;
  margin: 20px auto;
  padding: 0 16px;
}

/* 4) Main sections (visually distinct) */
section {
  background: #ffffff;
  margin: 18px 0;
  padding: 18px;

  border: 1px solid #d6dde8;
  border-radius: 12px;

  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
}

section header h2 {
  margin: 0 0 10px 0;
  font-size: 1.4rem;
}

section p {
  margin: 0;
}

/* 5) Footer */
footer {
  text-align: center;
  padding: 16px;
  margin-top: 24px;

  font-size: 0.9rem;
  background: #1f2a37;
  color: #ffffff;
}

/* =========================
   Structural + Visual Enhancements (required)
   ========================= */

/* Nav link hover transition (targets your existing nav links) */
nav a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color 0.25s ease;
}

nav a:hover {
  background-color: rgba(0, 0, 0, 0.12);
}

/* Main content hover zoom (targets each main content section) */
main section {
  transition: transform 0.25s ease;
}

main section:hover {
  transform: scale(1.02);
}

/* Table styling for readability */
#projects table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

#projects caption {
  caption-side: top;
  text-align: left;
  font-weight: bold;
  padding: 8px 0;
}

#projects thead {
  background-color: #d7eef8;
}

#projects th,
#projects td {
  border: 1px solid #b7bcc4;
  padding: 10px;
  vertical-align: top;
  text-align: left;
}

/* Colgroup/col coloring (1st + 3rd columns) */
#projects col.col-project,
#projects col.col-image {
  background-color: #eef3ff;
}

/* Image placeholder styling */
.project-img {
  width: 160px;
  height: auto;
  display: block;
  border: 1px solid #b7bcc4;
  border-radius: 6px;
}
