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

:root {
  --bg: #f5f1ea;
  --bg-soft: #f8f5f1;
  --panel: #fffdfb;
  --panel-strong: #f7f2eb;
  --text: #121212;
  --muted: #5b5b5b;
  --accent: #1e7d5d;
  --accent-strong: #15634a;
  --accent-soft: #eaf6f1;
  --line: #e7dfd6;
  --shadow: 0 12px 30px rgba(17, 17, 17, 0.06);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Inter, system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: linear-gradient(180deg, #f7f3ef 0%, #f5f1ea 100%);
  color: var(--text);
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 90px 24px;
}

h1, h2, h3 {
  color: var(--text);
  line-height: 1.15;
  font-family: var(--serif);
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
}

h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: rgba(30, 125, 93, 0.38);
}

p {
  color: var(--muted);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: none;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(245, 241, 234, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

nav {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  font-family: var(--sans);
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.9;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

#hero {
  position: relative;
  padding-top: 110px;
  padding-bottom: 70px;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 10% auto auto 8%;
  width: 360px;
  height: 360px;
  background: rgba(30, 125, 93, 0.06);
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: left;
}

.profile-photo-wrap {
  width: 220px;
  height: 220px;
  flex-shrink: 0;
  border-radius: 30px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  max-width: 680px;
}

#hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.04em;
}

#hero h2 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 700;
}

#hero p {
  max-width: 700px;
  margin: 0 0 30px;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 10px 20px rgba(18, 18, 18, 0.08);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(18, 18, 18, 0.12);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

#about, #skills, #experience, #projects, #contact {
  position: relative;
}

#about p {
  max-width: 820px;
  font-size: 1.06rem;
}

.skill-category,
.job,
.project-card,
.blog-post,
.contact-form {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

#skills {
  display: block;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.skill-category {
  padding: 22px 24px;
  margin-bottom: 0;
  min-height: 170px;
}

.skill-category h3 {
  font-family: var(--sans);
  font-size: 1.08rem;
  color: var(--accent-strong);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 800;
}

.skill-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags li,
.tags span,
.blog-tags span {
  display: inline-block;
  background: linear-gradient(180deg, #f7faf8, #eef7f2);
  border: 1px solid rgba(30, 125, 93, 0.12);
  color: var(--accent-strong);
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.job {
  padding: 24px 26px;
  margin-bottom: 20px;
}

.job h3 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.job-date {
  display: inline-block;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.job ul {
  padding-left: 20px;
}

.job li {
  margin-bottom: 8px;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.08);
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-card p {
  margin: 10px 0 16px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

#contact {
  padding-bottom: 72px;
}

.contact-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-info {
  padding-top: 8px;
}

#contact p {
  margin-bottom: 10px;
  color: var(--muted);
}

.contact-form {
  margin-top: 0;
  display: grid;
  gap: 12px;
  max-width: 620px;
  padding: 22px;
}

.contact-form label {
  font-weight: 700;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--text);
  font: inherit;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(30, 125, 93, 0.4);
  box-shadow: 0 0 0 4px rgba(30, 125, 93, 0.07);
}

.contact-form button {
  width: fit-content;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}

.contact-status {
  min-height: 22px;
  color: var(--muted);
}

footer {
  text-align: center;
  padding: 28px 20px 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.3);
}

.page-hero {
  padding-top: 98px;
  padding-bottom: 30px;
}

.page-hero h1 {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  margin-bottom: 10px;
}

.page-hero p {
  max-width: 760px;
  font-size: 1.04rem;
}

.blog-list {
  display: grid;
  gap: 22px;
}

.blog-post {
  padding: 24px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--accent-strong);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.blog-post h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.blog-post p {
  color: var(--muted);
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

@media (max-width: 700px) {
  nav {
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    justify-content: center;
    gap: 12px 18px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .profile-photo-wrap {
    width: 180px;
    height: 180px;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }

  .skills-grid,
  .project-grid,
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .contact-form {
    padding: 18px;
  }
}