/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --primary: #c98772;
  --primary-dark: #b3705d;
  --text: #1f1f1f;
  --muted: #626262;
  --bg-soft: #f7f5f3;
  --bg-dark: #171717;
  --white: #ffffff;
  --border: #e8e5e1;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
  --hero-overlay: rgba(32, 30, 29, 0.72);
  --hero-card: rgba(255, 255, 255, 0.12);
  --hero-border: rgba(255, 255, 255, 0.16);
  --container: 1140px;
  --radius: 20px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
a,
span {
  overflow-wrap: break-word;
}

/* =========================
   GLOBAL
========================= */
.container {
  width: min(var(--container), 94%);
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.section-muted {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--white);
}

.section-heading {
  text-align: center;
  margin-bottom: 38px;
}

.section-heading-left {
  text-align: left;
  margin-bottom: 20px;
}

.section-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--primary);
}

.section-label-light {
  color: rgba(255, 255, 255, 0.76);
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(20px, 3vw, 22px);
  line-height: 1.25;
}

p {
  margin-top: 0;
}

.title-light {
  color: var(--white);
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 15, 15, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-container {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
}

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

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  color: var(--white);
  min-height: 100vh;
  min-height: 100svh;
  background:
    linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    url("cover.jpg") center center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 34%),
    radial-gradient(circle at bottom right, rgba(201, 135, 114, 0.14), transparent 28%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  min-height: calc(100vh - 74px);
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 54px;
  padding-top: 56px;
  padding-bottom: 56px;
}

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

.hero-kicker {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 244, 236, 0.92);
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.96);
}

.hero-description {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-card {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  padding: 28px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.hero-photo {
  width: 132px;
  height: 132px;
  margin: 0 auto 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.hero-card-info {
  display: grid;
  gap: 12px;
  font-size: 15px;
}

.hero-card-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.65;
}

.hero-card-info a {
  color: rgba(255, 255, 255, 0.96);
}

.hero-card-info a:hover {
  text-decoration: underline;
}

/* =========================
   BUTTONS
========================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(201, 135, 114, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-light {
  background: var(--white);
  color: var(--bg-dark);
}

.btn-light:hover {
  background: #f3f3f3;
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* =========================
   NOTES
========================= */
.cv-note {
  margin: 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 600;
}

.software-note {
  font-size: 14px;
  color: #555;
  margin-top: 10px;
  margin-bottom: 0;
}

/* =========================
   INTRO
========================= */
.intro-box {
  max-width: 920px;
  text-align: center;
}

.intro-box p {
  margin: 0 auto;
  font-size: clamp(18px, 2.8vw, 21px);
  font-weight: 700;
  line-height: 1.55;
  color: #3b3b3b;
}

/* =========================
   ABOUT
========================= */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 42px;
  align-items: center;
}

.about-image-wrap {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center top;
}

.about-content {
  max-width: 680px;
}

.about-content p {
  margin-bottom: 16px;
  color: #353535;
  font-size: 16px;
}

.about-links {
  margin-top: 18px;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

/* =========================
   EXPERIENCE
========================= */
.experience-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.experience-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.experience-org {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.experience-date {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1ece9;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

/* =========================
   PORTFOLIO
========================= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.project-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-body {
  padding: 24px;
}

.project-body p {
  color: #414141;
  margin-bottom: 16px;
}

.project-actions {
  margin-top: 8px;
}

/* =========================
   DASHBOARD
========================= */
.dashboard-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.dashboard-intro {
  max-width: 780px;
  margin: 0 auto 20px;
  text-align: center;
  color: #444;
}

.dashboard-image {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fafafa;
}

.dashboard-image img {
  width: 100%;
  display: block;
  border-radius: 18px;
}

/* =========================
   CV
========================= */
.cv-box {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px;
}

.cv-description {
  max-width: 720px;
  margin-bottom: 24px;
  color: #404040;
}

.cv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =========================
   CONTACT
========================= */
.contact-box {
  max-width: 860px;
  text-align: center;
}

.contact-text {
  max-width: 720px;
  margin: 0 auto 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #121212;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  padding: 14px 0;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
  .hero-content,
  .about-layout,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: auto;
    gap: 34px;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .hero-card {
    margin-left: 0;
    max-width: 520px;
  }

  .about-content {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 64px 0;
  }

  .nav-container,
  .footer-content,
  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 12px 16px;
  }

  .hero-actions,
  .cv-actions,
  .contact-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

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

  .dashboard-box,
  .cv-box {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .container {
    width: 95%;
  }

  .section {
    padding: 54px 0;
  }

  .nav-container {
    min-height: auto;
    gap: 12px;
  }

  .brand {
    font-size: 17px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero-content {
    gap: 26px;
    padding-top: 28px;
    padding-bottom: 42px;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 1.55;
  }

  .hero-description,
  .about-content p,
  .contact-text,
  .cv-description,
  .project-body p {
    font-size: 15px;
  }

  .dashboard-box,
  .experience-card,
  .project-body,
  .cv-box,
  .hero-card {
    padding: 20px;
  }

  .intro-box p {
    font-size: 18px;
  }

  .hero-photo {
    width: 110px;
    height: 110px;
  }

  .experience-date {
    font-size: 12px;
  }

  .cv-note {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .container {
    width: 96%;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 19px;
  }

  .btn {
    min-height: 48px;
    padding: 11px 16px;
    font-size: 13px;
  }

  .hero-card-info {
    font-size: 14px;
  }

  .cv-note,
  .software-note {
    font-size: 13px;
  }
}
