/* =========================
   RESET + BASE
========================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #ffffff;
  color: #222;
}

/* Shared page width (matches table) */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================
   TOP HEADER
========================= */
.top-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0b1220;
  height: 52px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.header-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.dark-toggle {
  margin-left: auto;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

/* =========================
   HERO BANNER
========================= */
.hero {
  position: relative;
  height: 320px;
  overflow: visible;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BIG overlay logo (half on banner, half below) */
.hero-logo {
  position: absolute;
  bottom: -60px;
  left: 24px;
  width: 140px;
  height: 140px;
  background: none;
  border: none;
  box-shadow: none;
}

/* =========================
   INTRO CONTENT
========================= */
.main-title {
  margin-top: 90px;       /* clears overlay logo */
  margin-left: 180px;     /* aligned like original */
  font-size: 42px;
  font-weight: 700;
}

.intro {
  margin-left: 180px;
  margin-top: 20px;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-list li {
  margin-bottom: 6px;
}

.contact {
  margin-top: 16px;
}

/* =========================
   SECTION DIVIDER
========================= */
.divider-wrap {
  max-width: 1100px;
  margin: 28px auto 32px;
  padding: 0 24px;
}

.section-divider {
  width: 100%;
  height: 48px;              /* larger grey block */
  background: #e5e5e5;
}

.section-line {
  margin-top: 10px;
  height: 1px;
  background: #cfcfcf;
}

/* =========================
   PORTFOLIO
========================= */
h2 {
  max-width: 1100px;
  margin: 40px auto 10px;
  padding: 0 24px;
}

.controls {
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 24px;
  display: flex;
  gap: 12px;
}

.controls input,
.controls select,
.controls button {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

table {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.icon {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  vertical-align: middle;
}

.project-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  margin-right: 6px;
  display: inline-block;
}

/* =========================
   PAGINATION
========================= */
.pagination {
  max-width: 1100px;
  margin: 20px auto 60px;
  padding: 0 24px;
  display: flex;
  gap: 12px;
  align-items: center;
}

/* =========================
   DARK MODE
========================= */
body.dark {
  background: #0b1220;
  color: #e5e7eb;
}

body.dark a {
  color: #8ab4ff;
}

body.dark .hero-bg {
  filter: brightness(0.65);
}

body.dark table,
body.dark th,
body.dark td {
  border-color: #1f2937;
}

body.dark th {
  background: #111827;
}

body.dark .tag {
  background: #1f2937 !important;
  color: #e5e7eb;
}

body.dark .controls,
body.dark input,
body.dark select,
body.dark button {
  background: #111827;
  color: #e5e7eb;
  border-color: #374151;
}

body.dark .section-divider {
  background: #2a2a2a;
}

body.dark .section-line {
  background: #3a3a3a;
}
