:root {
  --bg: #f5f0ea;
  --bg-2: #fffaf6;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-2: rgba(255, 255, 255, 0.92);
  --text: #151515;
  --muted: #6d665f;
  --line: rgba(21, 21, 21, 0.08);
  --accent: #df623c;
  --accent-2: #f0b75f;
  --accent-soft: rgba(223, 98, 60, 0.12);
  --shadow: 0 30px 80px rgba(68, 46, 25, 0.1);
  --shadow-card: 0 16px 40px rgba(38, 28, 20, 0.06);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 999px;
  --max-width: 1180px;
}

body[data-theme="dark"] {
  --bg: #0f1217;
  --bg-2: #161a21;
  --surface: rgba(22, 26, 33, 0.8);
  --surface-2: rgba(24, 29, 36, 0.94);
  --text: #f4f5f7;
  --muted: #a8afb8;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #ff8a5b;
  --accent-2: #f6c26d;
  --accent-soft: rgba(255, 138, 91, 0.14);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 18px 42px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(240, 183, 95, 0.16), transparent 32%),
    radial-gradient(circle at top right, rgba(223, 98, 60, 0.14), transparent 24%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  transition: background 0.3s ease, color 0.3s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, rgba(0,0,0,0.7), transparent 88%);
}

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

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

.floating-controls {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch,
.theme-toggle {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
}

body[data-theme="dark"] .lang-switch,
body[data-theme="dark"] .theme-toggle {
  background: rgba(16, 21, 28, 0.72);
}

.lang-switch {
  display: flex;
  align-items: center;
  padding: 6px;
  border-radius: 18px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--surface-2);
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  color: var(--text);
  cursor: pointer;
}

.theme-icon {
  font-size: 1rem;
}

.page-shell {
  width: min(calc(100% - 40px), 1340px);
  margin: 20px auto;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(255,255,255,0.45) 100%);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body[data-theme="dark"] .page-shell {
  background: linear-gradient(180deg, rgba(18,22,28,0.86) 0%, rgba(16,20,26,0.72) 100%);
}

.site-header,
.section,
.site-footer {
  width: min(calc(100% - 52px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  background: linear-gradient(180deg, rgba(255,250,245,0.9), rgba(255,250,245,0.42));
  backdrop-filter: blur(20px);
}

body[data-theme="dark"] .site-header {
  background: linear-gradient(180deg, rgba(15,18,23,0.9), rgba(15,18,23,0.45));
}

.brand,
.header-cta,
.nav a,
.hero-topline,
.hero-chips span,
.project-number,
.project-badge,
.skill-level,
.section-index,
.timeline-year,
.impact-label,
.profile-label,
.wa-badge {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav a:hover,
.profile-links a:hover,
.contact-list a:hover {
  color: var(--accent);
}

.header-cta {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.74rem;
  font-weight: 800;
}

.section {
  padding: 54px 0;
}

.hero {
  padding-top: 42px;
}

.hero-topline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: #9f6631;
  font-size: 0.76rem;
  font-weight: 800;
}

body[data-theme="dark"] .hero-topline {
  color: #f2c17e;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 5px rgba(223,98,60,0.12);
}

.hero-grid,
.hero-stats,
.about-layout,
.impact-band,
.projects-grid,
.skills-grid,
.timeline,
.contact-grid {
  display: grid;
  gap: 20px;
}

.hero-grid {
  grid-template-columns: 1.02fr 0.98fr;
  align-items: start;
  margin-top: 26px;
}

.hero-copy {
  display: grid;
  align-content: start;
}

.section-index {
  margin: 0 0 18px;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero h1 b {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
  color: var(--accent);
}

.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--muted);
}

.hero-lead,
.about-copy p,
.info-card p,
.project-card p,
.skill-card p,
.timeline-item p,
.contact-copy p,
.form-note,
.certificate-strip li,
.projects-intro p,
.profile-copy p,
.hero-stats span,
.venture-card p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.hero-lead {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: 1.06rem;
}

.hero-chips,
.tag-row,
.contact-list,
.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-chips {
  margin-top: 28px;
}

.hero-chips span,
.tag-row span {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover,
.header-cta:hover,
.skill-filter:hover,
.theme-toggle:hover,
.lang-btn:hover,
.wa-widget:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #bb4824);
  box-shadow: 0 18px 34px rgba(223,98,60,0.22);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), rgba(255,255,255,0.76));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body[data-theme="dark"] .card {
  background: linear-gradient(180deg, rgba(23,28,36,0.96), rgba(19,23,30,0.88));
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(223,98,60,0.24);
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -60px -60px auto;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(223,98,60,0.12), transparent 70%);
  pointer-events: none;
}

.hero-showcase {
  display: grid;
  gap: 18px;
}

.hero-visual {
  min-height: 392px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 392px;
  object-fit: cover;
}

.hero-visual-copy {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 18px 18px 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.5);
}

body[data-theme="dark"] .hero-visual-copy {
  background: rgba(20,24,30,0.8);
}

.hero-visual-copy p,
.profile-label,
.impact-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-visual-copy h3,
.profile-copy h3,
.info-card h3,
.project-card h3,
.skill-card h3,
.timeline-item h3,
.certificate-strip h3,
.projects-intro h3,
.impact-band h3,
.venture-card h3 {
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.35;
}

.venture-card {
  margin-top: 22px;
  padding: 22px 24px;
  background: linear-gradient(180deg, var(--surface-2), rgba(255,248,241,0.84));
}

.profile-spotlight {
  display: grid;
  grid-template-columns: 1fr 200px;
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.profile-links a {
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.9rem;
}

.profile-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.profile-frame::before {
  content: "";
  position: absolute;
  inset: 8px 10px 56px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(223,98,60,0.14), rgba(240,183,95,0.1));
}

.profile-frame img {
  position: relative;
  width: 170px;
  height: 210px;
  object-fit: cover;
  object-position: center top;
  border-radius: 28px;
  border: 8px solid rgba(255,255,255,0.88);
  box-shadow: 0 12px 30px rgba(55,38,20,0.14);
}

.profile-name {
  position: relative;
  width: 100%;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  text-align: center;
}

.profile-name span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile-name strong {
  display: block;
  font-size: 1.05rem;
}

.mini-visual,
.card-visual {
  width: 100%;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.3);
}

.mini-visual {
  height: 88px;
  margin-bottom: 16px;
}

.card-visual {
  height: 128px;
  margin-bottom: 16px;
}

.card-visual.wide {
  height: 144px;
}

.hero-stats {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
}

.hero-stats article,
.impact-band article {
  padding: 22px;
}

.hero-stats strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.about-layout {
  grid-template-columns: 1.06fr 0.94fr;
  align-items: start;
}

.about-copy,
.contact-copy,
.contact-form,
.certificate-strip {
  padding: 30px;
}

.about-copy p:first-child,
.projects-intro p:first-child,
.project-card p:first-of-type,
.contact-copy p:first-child {
  margin-top: 0;
}

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

.info-card,
.skill-card,
.timeline-item {
  padding: 22px;
}

.impact-band {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.point-card {
  padding: 22px;
}

.projects-intro {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding: 18px;
}

.projects-intro-copy {
  padding: 12px 10px 12px 14px;
}

.projects-intro img {
  width: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 22px;
}

.projects-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-card {
  padding: 0;
}

.project-card.featured {
  background: linear-gradient(180deg, rgba(255,243,237,0.98), rgba(255,255,255,0.9));
}

body[data-theme="dark"] .project-card.featured {
  background: linear-gradient(180deg, rgba(41,30,26,0.96), rgba(19,23,30,0.92));
}

.project-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--line);
}

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

.project-card:hover .project-media img {
  transform: scale(1.05);
}

.project-body {
  padding: 24px;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.project-number,
.project-badge {
  font-size: 0.72rem;
  font-weight: 800;
}

.project-badge {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.project-hook {
  color: var(--text);
  font-weight: 600;
}

.project-points {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.tag-row {
  margin-top: 20px;
}

.skill-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.skill-filter {
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.skill-filter.active {
  background: var(--text);
  color: var(--bg-2);
}

.skills-grid {
  grid-template-columns: repeat(4, 1fr);
}

.skill-level {
  margin: 0 0 14px;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 800;
}

.timeline {
  grid-template-columns: repeat(2, 1fr);
}

.timeline-year {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 800;
}

.certificate-strip {
  margin-top: 20px;
}

.certificate-strip ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.contact-grid {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
}

.contact-list {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 24px;
}

.contact-list a,
.contact-list span {
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

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

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

.contact-form span {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(223,98,60,0.18);
  border-color: rgba(223,98,60,0.3);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.wa-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #1fa463, #15824e);
  box-shadow: 0 24px 50px rgba(16,95,58,0.28);
}

.wa-widget::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.16);
  pointer-events: none;
}

.wa-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255,255,255,0.76);
}

.wa-widget strong {
  font-size: 1.12rem;
  line-height: 1.2;
}

.wa-widget small {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.84);
}

.is-hidden {
  display: none;
}

@media (max-width: 1180px) {
  .hero-grid,
  .about-layout,
  .projects-intro,
  .projects-grid,
  .skills-grid,
  .timeline,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .impact-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .page-shell {
    width: min(calc(100% - 20px), 1340px);
    margin: 10px auto;
    border-radius: 24px;
  }

  .site-header,
  .section,
  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.7rem);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .profile-spotlight {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    min-height: 280px;
  }

  .site-footer {
    flex-direction: column;
  }

  .floating-controls {
    left: 12px;
    right: 12px;
    top: 12px;
    justify-content: space-between;
  }

  .wa-widget {
    right: 14px;
    left: 14px;
    bottom: 14px;
    min-width: 0;
  }
}
