:root {
  color-scheme: light;
  --bg: #0b1020;
  --bg-soft: #141b34;
  --panel: rgba(88, 28, 135, 0.55);
  --line: rgba(249, 115, 22, 0.3);
  --text: #faf5ff;
  --muted: #e9d5ff;
  --accent: #f97316;
  --accent-strong: #ea580c;
  --accent-soft: #c084fc;
  --shadow: 0 24px 70px rgba(88, 28, 135, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(56, 24, 70, 0.72) 0%, rgba(18, 10, 30, 0.9) 100%),
    url('https://images.unsplash.com/photo-1522383225653-ed111181a951?w=1920&q=85') center / cover no-repeat fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 168px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 16px;
  z-index: 100;
  background: rgba(88, 28, 135, 0.3);
  backdrop-filter: blur(8px);
  border-right: 1px solid var(--line);
}

.sidebar-label {
  margin: 0 0 24px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.quick-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  background: rgba(88, 28, 135, 0.34);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 14px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-icon {
  font-size: 0.9rem;
}

.quick-link:hover {
  color: var(--text);
  background: rgba(249, 115, 22, 0.18);
  border-color: var(--accent);
  transform: translateX(3px);
}

.quick-link.active {
  color: var(--text);
  background: rgba(249, 115, 22, 0.25);
  border-color: var(--accent);
}

.content {
  padding: 48px 48px 48px 208px;
  max-width: 1000px;
  margin: 0 auto;
}

.tab-content {
  display: none !important;
}

.tab-content.active {
  display: block !important;
}

.bottom-links {
  position: fixed;
  bottom: 24px;
  left: 16px;
  display: flex;
  gap: 16px;
  z-index: 100;
}

.bottom-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.bottom-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn-icon {
  flex-shrink: 0;
}

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

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

.section-heading h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.about-grid,
.project-grid {
  display: grid;
  gap: 20px;
}

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

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

.card,
.project-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.card,
.project-card {
  padding: 24px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card a {
  margin-top: auto;
  color: var(--accent-soft);
  font-weight: 600;
}

.project-tag {
  color: #fdba74;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-page {
  max-width: 1200px;
}

.work-hero {
  margin-bottom: 28px;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(9, 13, 30, 0.72);
  text-align: center;
  box-shadow: var(--shadow);
}

.work-hero h2 {
  margin: 8px 0 10px;
  font-size: 2rem;
  letter-spacing: 0.04em;
}

.work-hero p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.portfolio-hero {
  background: rgba(88, 28, 135, 0.62);
}

.about-hero {
  background: linear-gradient(135deg, rgba(9, 13, 30, 0.78), rgba(88, 28, 135, 0.54));
}

.profile-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr;
  gap: 28px;
  align-items: stretch;
}

.profile-copy,
.profile-photo-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(250, 245, 255, 0.92);
  color: #241330;
  box-shadow: var(--shadow);
}

.profile-copy {
  padding: 32px;
}

.profile-copy h3 {
  margin: 10px 0 18px;
  font-size: 1.6rem;
  color: #241330;
}

.profile-copy p {
  color: #5b4b68;
  line-height: 1.8;
}

.profile-photo-card {
  overflow: hidden;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.profile-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 360px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.18), rgba(249, 115, 22, 0.14));
  color: rgba(36, 19, 48, 0.55);
  font-weight: 800;
}

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

.skill-chip-grid span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(250, 245, 255, 0.9);
  color: #5b21b6;
  font-weight: 800;
  text-align: center;
}

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

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

.work-card,
.portfolio-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(250, 245, 255, 0.92);
  color: #241330;
  box-shadow: var(--shadow);
}

.work-thumb,
.portfolio-thumb {
  min-height: 150px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.26), rgba(249, 115, 22, 0.2));
  border-bottom: 1px solid rgba(88, 28, 135, 0.18);
}

.work-thumb img,
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-thumb span,
.portfolio-thumb span {
  color: rgba(36, 19, 48, 0.55);
  font-weight: 800;
}

.work-body,
.portfolio-item {
  padding: 20px;
}

.work-body h3,
.portfolio-item h3 {
  margin-bottom: 10px;
  color: #241330;
}

.work-body p,
.portfolio-item p {
  color: #5b4b68;
  line-height: 1.65;
}

.work-info {
  margin: 16px 0 0;
  display: grid;
  gap: 8px;
}

.work-info div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
}

.work-info dt {
  color: var(--accent-strong);
  font-weight: 800;
}

.work-info dd {
  margin: 0;
  color: #5b4b68;
}

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

.portfolio-item {
  padding: 0;
}

.portfolio-item h3,
.portfolio-item p,
.portfolio-item .work-tags,
.portfolio-item .work-date {
  margin-left: 18px;
  margin-right: 18px;
}

.portfolio-item h3 {
  margin-top: 18px;
}

.work-tags {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.work-tags li {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(88, 28, 135, 0.12);
  color: #5b21b6;
  font-size: 0.75rem;
  font-weight: 700;
}

.work-date {
  padding-bottom: 18px;
  font-size: 0.8rem;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
}

.skills,
.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.contact-card {
  padding: 28px;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.contact-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-list strong {
  min-width: 72px;
}

.contact-list span,
.contact-list a,
.card p,
.project-card p,
.contact-card p {
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 900px) {
  .about-grid,
  .project-grid,
  .work-grid,
  .portfolio-grid,
  .profile-layout,
  .skill-chip-grid,
  .about-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .quick-links {
    flex-direction: row;
    gap: 6px;
  }

  .quick-link {
    padding: 7px 10px;
    font-size: 0.74rem;
  }

  .content {
    padding: 24px 16px 80px;
  }

  .bottom-links {
    bottom: 16px;
    left: 16px;
    gap: 12px;
  }

  .bottom-btn {
    font-size: 0.75rem;
  }
}
