:root {
  --navy: #0a1628;
  --navy-mid: #122040;
  --navy-light: #1c3260;
  --white: #ffffff;
  --off-white: #f0f4f8;
  --accent: #4a90d9;
  --accent-light: #7ab3e8;
  --text-muted: #8ca0bc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main.page-content {
  flex: 1;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(74, 144, 217, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(28, 50, 96, 0.6) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0 24px;
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a.active {
  color: var(--accent-light);
}

/* ── LAYOUT ── */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 50px 24px;
  position: relative;
  z-index: 1;
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* ── HERO ── */
.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 64px;
  animation: fadeUp 0.8s ease both;
}

.photo-wrap {
  position: relative;
}

.photo-wrap::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.5;
  animation: spin 12s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--navy-light);
  display: block;
  background: var(--navy-light);
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  color: var(--white);
}

.hero-text .role {
  font-size: 1rem;
  color: var(--accent-light);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.social-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--accent);
  color: var(--white);
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background-color 0.3s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.social-btn:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

/* ── SUMMARY BOX ── */
.summary-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 64px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--off-white);
  animation: fadeUp 0.8s 0.2s ease both;
  backdrop-filter: blur(8px);
}

.summary-box p {
  font-weight: 300;
  margin-bottom: 1em;
}

.image-card {
  display: flex;
  justify-content: center;
  margin-bottom: 64px;
}

.image-card img {
  width: 600px;
  height: 400px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

@media (max-width: 700px) {
  .image-card img {
    width: 90%;
    height: auto;
    max-height: 300px;
    border-radius: 14px;
  }
}

/* ── PROJECT CARDS ── */
.projects {
  animation: fadeUp 0.8s 0.4s ease both;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.project-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  cursor: default;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74, 144, 217, 0.4);
  background: rgba(74, 144, 217, 0.06);
}

.project-card .tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(74, 144, 217, 0.12);
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 14px;
}

.project-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--white);
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

.project-card .card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  gap: 12px;
}

.card-link {
  font-size: 0.8rem;
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.card-link:hover {
  color: var(--white);
}

/* ── POST CARDS ── */
.posts-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.post-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 144, 217, 0.4);
  background: rgba(74, 144, 217, 0.06);
}

.post-card .post-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.post-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 8px;
}

.post-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}

/* ── ABOUT PAGE ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.about-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 16px;
}

.about-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  margin-bottom: 14px;
  color: var(--white);
}

.about-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-card ul li {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 8px;
}

.about-card ul li::before {
  content: '→';
  color: var(--accent);
  font-size: 0.8rem;
}

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease both;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FOOTER ── */
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: auto;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .photo-wrap {
    margin: 0 auto;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    gap: 18px;
  }
}
