* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --hero: hsl(30, 9%, 65%);
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body {
  opacity: 1;
}

.page-transition {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(243, 244, 246, 0.48); 
  backdrop-filter: blur(4px);
  z-index: 9999;
  transition: left 0.2s ease-in-out;
  pointer-events: none;
}

.page-transition.active {
  left: 0;
}

.nav-links a.active {
  color: black;
  background-color: rgba(245, 244, 246, 0.95);
  box-shadow: 0 14px 28px rgba(53, 52, 52, 0.12);
}

.page {
  width: 1500px;
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero {
  background: var(--hero);
  color: white;
  text-align: center;
  padding: 72px 24px 80px;
}

.avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.9);
  overflow: hidden;
  background: linear-gradient(135deg, #d1d5db, #9ca3af);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 14px;
  font-weight: 700;
}

.hero p {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
}

.content {
  max-width: 860px;
  margin: -38px auto 0;
  padding: 0 24px 48px;
  position: relative;
  z-index: 2;
}

.navbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
  position: relative;
  z-index: 3;
}

.nav-links {
  display: contents;
}

.nav-links a {
  text-decoration: none;
  color: #374151;
  font-weight: 600;
  font-size: 0.96rem;
  text-align: center;
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  transition: all 0.1s ease;
}

.nav-links a:hover {
  color: var(--hero);
  transform: scale(1.06);
  background-color: rgba(243, 244, 246, 0.95);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.intro-card {
  background: var(--card);
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid #ececf0;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 34px;
  align-items: top;
}

.about-intro-card {
  background: var(--card);
  border-radius: 22px;
  padding: 40px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
  border: 1px solid #ececf0;
  display: grid;
  gap: 34px;
  align-items: center;
}

.about-info p {
    margin-bottom: 8px;
    color: #374151;
}

.social-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-btn:hover {
  transform: scale(1.15);
  background: var(--hero);
  color: white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.intro-image {
  width: 100%;
  height: auto;
  border-radius: 18px;
  overflow: hidden;
  align-self: start;
  background: #e5e7eb;
}

.intro-image img { display:block; width: 100%; height: auto; object-fit: cover; }

.intro-text h2 {
  font-size: 1.9rem;
  margin-bottom: 14px;
}

.intro-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: #4b5563;
  margin-bottom: 14px;
}

.links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.links a {
  text-decoration: none;
  color: var(--hero);
  border: 1px solid #dbe3f5;
  background: #f8faff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.writing-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #ececf0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.writing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1);
}

.writing-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.writing-card p {
  color: #4b5563;
  line-height: 1.7;
  margin-bottom: 14px;
}

.writing-card span {
  font-size: 0.9rem;
  color: var(--muted);
}

.article-body p:first-of-type::first-letter {
  font-size: 3rem;
  font-weight: 700;
  float: left;
  line-height: 1;
  margin-right: 8px;
  margin-top: 4px;
}

@media (max-width: 768px) {
  body { padding: 18px; }

  .hero { padding: 56px 20px 120px; }

  .content {
    margin-top: -26px;
    padding: 0 16px 28px;
  }

  .navbar {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .intro-card {
    grid-template-columns: 1fr;
    padding: 26px;
    text-align: center;
  }

  .intro-image {
    max-width: 240px;
    margin: 0 auto;
  }

  .links { justify-content: center; }
}

