:root {
  color-scheme: dark;
  color: #e9edf8;
  background: #05060d;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top right, rgba(120, 86, 255, 0.2), transparent 28%),
              radial-gradient(circle at bottom left, rgba(0, 255, 210, 0.1), transparent 22%),
              #05060d;
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7c6cff;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: #a8b3f5;
  text-decoration: none;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #ffffff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 0.9fr;
  gap: 40px;
  align-items: start;
  padding: 64px 0 56px;
}

.hero-copy .eyebrow {
  color: #7c6cff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.82rem;
  margin: 0 0 22px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1.02;
  max-width: 700px;
}

.hero-text {
  margin: 28px 0 34px;
  max-width: 680px;
  color: #c6cce5;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 999px;
  background: #7c6cff;
  color: #f8f9ff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #9887ff;
}

.button.secondary {
  background: rgba(124, 108, 255, 0.14);
  color: #b9c0f2;
}

.hero-aside {
  position: sticky;
  top: 106px;
}

.profile-card {
  background: rgba(14, 17, 34, 0.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 32px;
  display: grid;
  gap: 16px;
}

.profile-card .label {
  color: #7a84c7;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  margin: 0;
}

.profile-card strong,
.profile-card a {
  color: #f2f5ff;
  text-decoration: none;
}

.section-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.9fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 56px;
}

.section-title {
  margin: 0 0 22px;
  color: #7c6cff;
  font-size: 0.94rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-copy p,
.section-card p,
.timeline-card p,
.skill-card p,
.contact-card p {
  color: #bcc3eb;
  margin: 0;
}

.section-copy {
  padding-top: 6px;
}

.section-card {
  background: rgba(14, 17, 34, 0.95);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 26px;
  padding: 28px;
}

.section-card h2 {
  margin: 0 0 18px;
  font-size: 1.35rem;
}

.section-card ul,
.timeline-card ul {
  padding-left: 20px;
  margin: 0;
}

.section-card li,
.timeline-card li {
  margin-bottom: 12px;
}

.timeline {
  display: grid;
  gap: 24px;
  margin-bottom: 56px;
}

.timeline-card {
  background: rgba(10, 14, 28, 0.94);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 28px;
  padding: 28px;
}

.timeline-card strong {
  display: block;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.timeline-card span {
  color: #8a95c4;
  font-size: 0.95rem;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.skill-card {
  background: rgba(14, 17, 34, 0.9);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 24px;
}

.skill-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.contact {
  background: rgba(14, 17, 34, 0.92);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 32px;
  padding: 36px;
}

.contact h2 {
  margin: 0 0 18px;
}

.contact-grid {
  grid-template-columns: 1fr 360px;
}

.contact-card {
  background: #08101f;
  border-radius: 24px;
  padding: 28px;
  display: grid;
  gap: 12px;
}

.contact-card p {
  display: flex;
  gap: 12px;
  align-items: center;
}

.contact-card a {
  color: #f7f9ff;
}

footer {
  margin-top: 40px;
  text-align: center;
  color: #6c75a8;
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .hero,
  .section-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    position: static;
  }
}

@media (max-width: 680px) {
  .page-shell {
    padding: 24px 18px 32px;
  }

  nav {
    gap: 14px;
  }

  .skill-grid {
    grid-template-columns: 1fr;
  }
}


/* Profile photo and lang toggle styles */
.profile-photo {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 20px;
}

.social-links a,
.cv-links a {
  display: inline-block;
  margin-right: 10px;
  color: #bfc7ff;
  text-decoration: none;
  font-weight: 600;
}

.lang-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.lang-toggle button {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: #dfe6ff;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.lang-toggle button[aria-pressed="true"] {
  background: #7c6cff;
  color: #fff;
  border-color: transparent;
}

.projects {
  margin-bottom: 56px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.project-card {
  background: rgba(14, 17, 34, 0.95);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 26px;
}

.project-card h3 {
  margin: 0 0 12px;
}

.project-card p {
  color: #c6cce5;
  margin: 0 0 16px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tags span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 108, 255, 0.15);
  color: #dfe6ff;
  font-size: 0.85rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 10px;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(124, 108, 255, 0.14);
  color: #dfe6ff;
  font-size: 0.85rem;
  font-weight: 600;
}

.tech-badge img {
  width: 16px;
  height: 16px;
  display: block;
  filter: brightness(0) invert(1);
}

.project-link {
  display: inline-block;
  margin-top: 14px;
  color: #7c6cff;
  font-weight: 700;
  text-decoration: none;
}

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

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.project-link.secondary {
  color: #7c6cff;
  text-decoration: none;
  padding: 0;
  background: transparent;
}

.project-link.secondary:hover {
  text-decoration: underline;
  background: transparent;
}

.project-note {
  margin-top: 20px;
  color: #a8afe2;
  font-size: 0.95rem;
}

.project-feature {
  border-color: rgba(124, 108, 255, 0.2);
}

/* Responsive header and hero spacing */
.topbar {
  flex-wrap: wrap;
}

.lang-toggle {
  margin-left: 12px;
}

@media (max-width: 680px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .lang-toggle {
    margin-left: 0;
  }
}
