:root {
  --ink: #14202b;
  --muted: #586474;
  --line: #d3dae3;
  --paper: #f4f1ea;
  --soft: #e8edf1;
  --panel: #fbfcfd;
  --accent: #1d5f7a;
  --accent-dark: #12485d;
  --rust: #9f5c1f;
  --navy: #0f1b24;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(15, 27, 36, 0.12);
  --shadow-soft: 0 14px 36px rgba(15, 27, 36, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(29, 95, 122, 0.08), transparent 30%),
    linear-gradient(180deg, #f8f6f1 0%, var(--paper) 34%, #eef2f5 100%);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  background: rgba(248, 246, 241, 0.9);
  border-bottom: 1px solid rgba(211, 218, 227, 0.85);
  box-shadow: 0 10px 28px rgba(15, 27, 36, 0.05);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--accent));
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a {
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent-dark);
  background: rgba(29, 95, 122, 0.08);
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 85% 18%, rgba(29, 95, 122, 0.16), transparent 18%),
    linear-gradient(120deg, rgba(29, 95, 122, 0.13), transparent 40%),
    linear-gradient(280deg, rgba(159, 92, 31, 0.12), transparent 38%),
    transparent;
}

.hero-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: center;
}

.hero-copy {
  position: relative;
  padding: clamp(28px, 4vw, 42px);
  background: rgba(251, 252, 253, 0.7);
  border: 1px solid rgba(211, 218, 227, 0.8);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-soft);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-title-compact {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.08;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  line-height: 1.35;
}

h4 {
  margin: 0 0 8px;
  font-size: 0.96rem;
  line-height: 1.3;
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(20, 32, 43, 0.14);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--accent));
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(15, 27, 36, 0.12);
}

.profile-panel {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 252, 253, 0.96));
  border: 1px solid rgba(211, 218, 227, 0.9);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.portrait {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  margin-bottom: 22px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(15, 27, 36, 0.96), rgba(29, 95, 122, 0.92)),
    var(--accent);
  border-radius: calc(var(--radius) + 4px);
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.quick-facts {
  display: grid;
  gap: 14px;
  margin: 0;
}

.quick-facts div {
  display: grid;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(211, 218, 227, 0.8);
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 0;
  font-weight: 700;
}

.section {
  padding: clamp(56px, 9vw, 104px) clamp(20px, 5vw, 72px);
}

.section > * {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.section.muted {
  background: linear-gradient(180deg, rgba(232, 237, 241, 0.8), rgba(244, 247, 249, 0.75));
}

.section-heading {
  margin-bottom: 28px;
  max-width: 760px;
}

.section-note {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 5vw, 64px);
  color: var(--muted);
  font-size: 0.98rem;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item,
.skill-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(211, 218, 227, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.period {
  margin: 0 0 8px;
  color: var(--rust);
  font-size: 0.9rem;
  font-weight: 800;
}

.company {
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 700;
}

.timeline-item p:last-child,
.skill-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.experience-detail-large {
  font-size: 1.08rem;
  line-height: 1.8;
}

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

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.back-link {
  margin-bottom: 20px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 24px;
}

.detail-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(211, 218, 227, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-card p:last-child,
.detail-card ul:last-child {
  margin-bottom: 0;
}

.equipment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
}

.equipment-list li {
  padding: 14px 16px;
  background: rgba(232, 237, 241, 0.7);
  border: 1px solid rgba(211, 218, 227, 0.85);
  border-radius: 14px;
  font-weight: 700;
}

.bullet-list {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

.highlight-panel {
  margin-top: 42px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(29, 95, 122, 0.12), rgba(159, 92, 31, 0.08)),
    rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(211, 218, 227, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.highlight-panel p:last-child {
  margin-bottom: 0;
}

.certificates-block {
  margin-top: 42px;
}

.certificates-heading {
  margin-bottom: 18px;
}

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

.certificate-card {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(211, 218, 227, 0.9);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.timeline-item p,
.skill-card p,
.detail-card p,
.highlight-panel p,
.certificate-card p,
.contact-band p,
.quick-facts dd,
.contact-list a {
  font-size: 0.96rem;
}

.certificate-date {
  margin: 0;
  color: var(--rust);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.certificate-card p:not(.certificate-date) {
  margin: 0;
  color: var(--muted);
}


.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.5fr);
  gap: 28px;
  align-items: center;
}

.contact-band p {
  max-width: 620px;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 10px;
  font-style: normal;
}

.contact-list a {
  display: flex;
  min-height: 46px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(211, 218, 227, 0.9);
  border-radius: 14px;
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.site-footer {
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  background: linear-gradient(180deg, #172632, #0f1b24);
}

.site-footer p {
  width: min(1120px, 100%);
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.78);
}

.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.12), transparent 45%),
    var(--paper);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(440px, 100%);
  display: grid;
  gap: 20px;
  padding: clamp(24px, 6vw, 38px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-card h1,
.dashboard h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

input[type="email"],
input[type="password"],
input[type="file"],
input[type="text"],
input[type="url"],
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

input[type="file"] {
  padding: 10px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.editor-form {
  display: grid;
  gap: 22px;
}

.editor-section {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.editor-section h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.editor-grid {
  display: grid;
  gap: 16px;
}

.editor-grid.two-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-grid.three-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-error,
.form-success {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.form-error {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.form-success {
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.dashboard {
  min-height: calc(100vh - 76px);
}

.upload-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.files-list {
  margin-top: 34px;
}

.files-list h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.empty-state {
  color: var(--muted);
}

.file-table {
  display: grid;
  gap: 10px;
}

.file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.file-row span:first-child {
  overflow-wrap: anywhere;
}

.file-row span:last-child {
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner,
  .two-column,
  .detail-grid,
  .contact-band,
  .upload-box,
  .editor-grid.two-fields,
  .editor-grid.three-fields {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    max-width: 420px;
  }

  .skills-grid,
  .certificates-grid,
  .equipment-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  .skills-grid,
  .certificates-grid,
  .equipment-list {
    grid-template-columns: 1fr;
  }
}
