/* CV – clean two-column, purple accent, icon sidebar (reference style) */

:root {
  --text: #333;
  --muted: #555;
  --bg: #fff;
  --border: #e0e0e0;
  --accent: #7E41A3;
  --accent-hover: #6a3590;
  --nav-active-bg: rgba(126, 65, 163, 0.15);
  --max-main: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar – logo + icon nav (fixed so it stays put while main content scrolls) */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.sidebar-logo {
  width: 48px;
  height: 48px;
  background: var(--text);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}

.nav-item:hover {
  background: var(--nav-active-bg);
  color: var(--accent);
}

.nav-item:hover .nav-icon {
  color: var(--accent);
}

.nav-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-item-linkedin:hover {
  color: #0A66C2;
}

.nav-item-linkedin:hover .nav-icon {
  color: #0A66C2;
}

.nav-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.nav-item:hover .nav-icon {
  background: var(--nav-active-bg);
}

.nav-icon svg {
  display: block;
}

/* Main wrap – offset so content sits to the right of fixed sidebar */
.main-wrap {
  flex: 1;
  min-width: 0;
  margin-left: 200px;
  display: flex;
  flex-direction: column;
}

/* Hero – large image + greeting + contact */
.hero {
  padding: 2rem 2.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.hero-photo {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.no-copy {
  user-select: none;
  -webkit-user-select: none;
}

.no-copy img {
  pointer-events: none;
  -webkit-user-drag: none;
  user-drag: none;
}

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

.profile-initials {
  position: absolute;
  font-size: 3rem;
  font-weight: 600;
  color: var(--muted);
  pointer-events: none;
}

.hero-photo.profile-loaded .profile-initials {
  display: none;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-greeting {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.hero-bio {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.hero-bio-accent {
  color: var(--accent);
  font-weight: 600;
}

.hero-contact {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.hero-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--text);
}

.hero-contact-icon {
  color: var(--accent);
  font-size: 1rem;
  min-width: 1.25rem;
}

.hero-contact a {
  color: var(--text);
  text-decoration: none;
}

.hero-contact a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.hero-quote {
  margin: 0.75rem 0 0.5rem;
  padding: 0.5rem 0 0.5rem 0.85rem;
  border-left: 3px solid var(--accent);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
}

.hero-quote cite {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--muted);
}

.scroll-down {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.scroll-down:hover {
  color: var(--accent);
}

.scroll-arrow {
  font-size: 1rem;
}

/* Skill cards – 3 across, purple underline, READ MORE + icon */
.skills-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.skill-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
}

.skill-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.skill-card-underline {
  width: 36px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 0.75rem;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.skill-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.skill-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}

.skill-card-link:hover {
  color: var(--accent);
}

.skill-card-icon {
  color: var(--accent);
  font-size: 1.1rem;
}

/* Main content sections */
.main {
  flex: 1;
  padding: 0 2.5rem 3rem;
}

.main .section {
  max-width: var(--max-main);
  margin: 0 auto;
}

.section {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.section:last-of-type {
  border-bottom: none;
}

.section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section p {
  margin: 0 0 0.5rem;
}

.about-quote {
  margin: 0 0 1rem;
  padding: 0.75rem 0 0.75rem 1rem;
  border-left: 4px solid var(--accent);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
}

.about-quote cite {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--muted);
}

.help-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.help-list li {
  margin-bottom: 0.5rem;
}

/* Experience */
.role {
  margin-bottom: 1.25rem;
}

.role:last-child {
  margin-bottom: 0;
}

.role h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--text);
}

.role .meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.role ul {
  margin: 0;
  padding-left: 1.2rem;
}

.role li {
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.certs {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.certs li {
  margin-bottom: 0.25rem;
}

/* Projects */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-category {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  margin: 1.5rem 0 0.5rem;
}

.project-category:first-child {
  margin-top: 0;
}

.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.project-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.project-summary {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.project-toggle {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.25rem 0;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.project-toggle:hover {
  color: var(--accent-hover);
}

.project-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.project-details {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.project-details[hidden] {
  display: none;
}

.project-details ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.project-details li {
  margin-bottom: 0.25rem;
}

/* Contact */
#contact a {
  color: var(--accent);
  text-decoration: none;
}

#contact a:hover {
  text-decoration: underline;
}

#contact a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Footer */
.footer {
  padding: 1.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: var(--max-main);
  margin: 0 auto;
}

.footer p {
  margin: 0;
}

/* Responsive */
@media (max-width: 900px) {
  .skills-cards {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

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

  .hero-contact li {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1rem;
    gap: 0.25rem;
  }

  .main-wrap {
    margin-left: 0;
  }

  .sidebar-logo {
    margin-bottom: 0;
    margin-right: 0.5rem;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }

  .nav-item {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
  }

  .nav-icon {
    width: 28px;
    height: 28px;
  }

  .nav-icon svg {
    width: 16px;
    height: 16px;
  }

  .hero {
    padding: 1.5rem 1rem;
  }

  .skills-cards {
    padding: 1.5rem 1rem;
  }

  .main {
    padding: 0 1rem 2rem;
  }
}
