@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300..900&family=Space+Grotesk:wght@400..700&display=swap');

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

:root {
  --bg: #edf1f5;
  --surface: #ffffff;
  --text: #111725;
  --muted: #566074;
  --border: rgba(17, 23, 37, 0.12);
  --shadow: 0 18px 44px rgba(17, 23, 37, 0.12);

  --brand: #0f766e;
  --accent: #ff7f50;
  --soft: #f0faf8;
  --tint: #f6f9fc;

  --radius: 18px;
  --max: 1140px;
}

body.dark {
  --bg: #0f1724;
  --surface: #182131;
  --text: #f2f6ff;
  --muted: #b1bdd2;
  --border: rgba(255, 255, 255, 0.15);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --soft: rgba(15, 118, 110, 0.14);
  --tint: rgba(255, 255, 255, 0.03);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 10%, rgba(15, 118, 110, 0.18), transparent 35%),
    radial-gradient(circle at 10% 20%, rgba(255, 127, 80, 0.2), transparent 38%),
    var(--bg);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

body.dark .header {
  background: rgba(10, 16, 27, 0.72);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: 0.4px;
  font-size: 1.2rem;
}

.logo span {
  color: var(--brand);
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 0;
  position: relative;
}

.menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.menu a:hover,
.menu a.active {
  color: var(--text);
}

.menu a:hover::after,
.menu a.active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
}

.hamburger {
  display: none;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 18px 14px;
}

.mobile-menu a {
  display: block;
  padding: 11px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
}

.hero {
  padding: 72px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(22px, 3.5vw, 44px);
  align-items: start;
}

.hero-left {
  max-width: 100%;
}

.hero-right {
  width: 100%;
  max-width: 100%;
  justify-self: start;
  align-self: start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: var(--soft);
  border: 1px solid rgba(15, 118, 110, 0.24);
}

.hero-left h1 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  max-width: 650px;
}

.hero-left h1 span {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin-top: 14px;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-btns {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat {
  min-width: 145px;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.stat p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 600;
}

.profile-card {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-img-wrap {
  aspect-ratio: 4 / 4.6;
  background: var(--tint);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-mini {
  padding: 18px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, var(--tint));
}

.hero-mini-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-mini-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.hero-mini-value {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 700;
  text-align: right;
}

.hero-mini-item-stack .hero-mini-value {
  max-width: 65%;
  line-height: 1.4;
}

.section {
  padding: 84px 0;
}

.section.alt {
  background: var(--tint);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

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

.cv-intro {
  grid-column: span 2;
}

.cv-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 20px;
}

.cv-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.cv-card h4 {
  font-size: 1.05rem;
}

.cv-card p {
  color: var(--muted);
  line-height: 1.7;
}

.cv-list {
  margin-top: 14px;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.cv-list li::marker {
  color: var(--brand);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: var(--soft);
  font-size: 0.86rem;
  font-weight: 600;
}

.cv-timeline {
  display: grid;
  gap: 12px;
}

.cv-item {
  border-left: 3px solid var(--brand);
  border-radius: 12px;
  background: var(--tint);
  padding: 14px 14px 14px 16px;
  display: grid;
  row-gap: 6px;
}

.muted {
  color: var(--muted);
  font-weight: 600;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-btn {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.filter-btn.active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-thumb {
  height: 190px;
  overflow: hidden;
}

.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-thumb img {
  transform: scale(1.06);
}

.project-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-body p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.project-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

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

.contact-card,
.contact-form {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 24px;
}

.contact-card h3 {
  margin-bottom: 6px;
}

.contact-info {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.social-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--tint);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

input,
textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  resize: vertical;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(15, 118, 110, 0.55);
}

.form-note {
  font-size: 0.82rem;
}

.btn {
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--brand), #15803d);
  color: #ffffff;
}

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

.btn-outline:hover {
  border-color: rgba(15, 118, 110, 0.5);
}

.btn-soft {
  border-color: rgba(15, 118, 110, 0.28);
  background: var(--soft);
  color: var(--text);
}

.footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: var(--tint);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  color: var(--muted);
  font-weight: 700;
}

.footer-social a:hover {
  color: var(--text);
}

.scroll-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1rem;
  display: none;
  z-index: 1100;
}

.scroll-top.show {
  display: block;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 1200;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  width: min(940px, 100%);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1.1rem;
}

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.12);
}

.modal-body {
  padding: 22px;
  display: grid;
  gap: 10px;
}

.modal-body p {
  color: var(--muted);
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.modal-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  background: var(--soft);
  font-size: 0.84rem;
  font-weight: 600;
}

.modal-actions {
  margin-top: 6px;
  display: flex;
  gap: 10px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}
