:root {
  --space-indigo: #22223b;
  --dusty-grape: #4a4e69;
  --lilac-ash: #9a8c98;
  --almond-silk: #c9ada7;
  --seashell: #f2e9e4;
  --text: #22223b;
  --muted: #4a4e69;
  --radius: 14px;
  --line: rgba(34, 34, 59, 0.14);
  --shadow: 0 12px 24px rgba(34, 34, 59, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--seashell);
  color: var(--text);
  line-height: 1.6;
}

.dashboard-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--space-indigo);
  color: var(--seashell);
  border-right: 1px solid rgba(242, 233, 228, 0.16);
  padding: 1.4rem 1rem;
}

.brand {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--almond-silk);
  color: var(--space-indigo);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.sidebar-role {
  font-size: 0.84rem;
  color: rgba(242, 233, 228, 0.85);
  margin-bottom: 1.3rem;
}

.menu-list {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.menu-link {
  text-decoration: none;
  color: rgba(242, 233, 228, 0.92);
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.menu-link:hover {
  background: rgba(201, 173, 167, 0.16);
  color: var(--seashell);
}

.menu-link.active {
  background: rgba(201, 173, 167, 0.22);
  color: var(--seashell);
  border: 1px solid rgba(201, 173, 167, 0.35);
}

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

.content {
  padding: 1.3rem;
  display: grid;
  gap: 1rem;
}

.section-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.hero {
  background: #ffffff;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1rem;
  align-items: center;
}

.hero-photo-wrap {
  display: flex;
  justify-content: center;
}

.hero-photo,
.hero-photo-fallback {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 2px solid var(--almond-silk);
  box-shadow: 0 10px 20px rgba(34, 34, 59, 0.12);
}

.hero-photo {
  object-fit: cover;
}

.hero-photo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--space-indigo);
  background: var(--seashell);
}

.kicker {
  color: var(--dusty-grape);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.15;
  max-width: 20ch;
  margin-bottom: 0.85rem;
}

h2 {
  font-size: clamp(1.25rem, 2.7vw, 1.9rem);
}

h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

p {
  color: var(--muted);
  max-width: 78ch;
}

.hero p {
  margin-bottom: 1.1rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.title-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--seashell);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.68rem 1rem;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-primary {
  background: var(--space-indigo);
  color: var(--seashell);
}

.btn-ghost {
  color: var(--space-indigo);
  border-color: rgba(34, 34, 59, 0.22);
  background: #ffffff;
}

.skills-grid,
.projects-grid,
.contact-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: #ffffff;
  border: 1px solid rgba(154, 140, 152, 0.35);
  border-radius: var(--radius);
  padding: 1rem;
}

.project-card a,
.contact-list a,
#pdfPreviewLink {
  color: var(--dusty-grape);
  text-decoration: none;
  font-weight: 600;
}

.project-card a:hover,
.contact-list a:hover,
#pdfPreviewLink:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

code {
  background: var(--seashell);
  border: 1px solid rgba(201, 173, 167, 0.65);
  border-radius: 6px;
  padding: 0.1rem 0.35rem;
}

.dropzone {
  margin-top: 1rem;
}

.upload-btn {
  margin: 0.55rem 0;
}

#pdfInput {
  display: none;
}

.hidden {
  display: none;
}

.contact-list {
  margin-top: 0.8rem;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.contact-form {
  display: grid;
  gap: 0.42rem;
}

.qr-section {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 1rem;
  align-items: center;
}

.qr-image-wrap {
  display: flex;
  justify-content: center;
}

.qr-image,
.qr-fallback {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  border: 1px solid rgba(154, 140, 152, 0.42);
  background: #ffffff;
}

.qr-image {
  object-fit: cover;
}

.qr-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--dusty-grape);
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(154, 140, 152, 0.42);
  border-radius: 10px;
  background: #ffffff;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 0.94rem;
}

textarea {
  resize: vertical;
}

@media (max-width: 980px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

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

@media (max-width: 760px) {
  .skills-grid,
  .projects-grid,
  .contact-content,
  .menu-list {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .qr-section {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .hero-photo-fallback {
    width: 120px;
    height: 120px;
  }

  .content {
    padding: 1rem;
  }
}
