/* ===== VARIABLES ===== */
:root {
  --primary: #452FA8;
  --primary-hover: #352489;
  --text: #0D0D0D;
  --text-secondary: #6B6B6B;
  --bg: #FFFFFF;
  --bg-secondary: #F8F7FF;
  --border: #E5E5E5;
  --accent-light: #EDE9FF;
  --font-title: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 24px rgba(69, 47, 168, 0.08);
  --shadow-lg: 0 12px 48px rgba(69, 47, 168, 0.14);
  --transition: 0.3s ease;
  --max-width: 1140px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.nav__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav__logo img {
  height: 36px;
  width: auto;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav__link:hover,
.nav__link.active { color: var(--text); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav overlay */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-title);
  font-size: 1.5rem;
  color: var(--text);
  transition: color var(--transition);
}
.nav__mobile a:hover { color: var(--primary); }
.nav__close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav__close:hover { color: var(--text); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}
.btn--primary {
  background: var(--primary);
  color: #FFFFFF;
  border: 1.5px solid var(--primary);
}
.btn--primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(69, 47, 168, 0.28);
}
.btn--secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn--secondary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}
.btn--nav {
  padding: 8px 18px;
  font-size: 0.85rem;
}
.btn--white {
  background: #FFFFFF;
  color: var(--primary);
  border: 1.5px solid #FFFFFF;
}
.btn--white:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}
.btn--full {
  width: 100%;
  justify-content: center;
}

/* ===== BADGES / TAGS ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  padding: 4px 12px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
.badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

/* Section label */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 1.5px;
  background: var(--text-secondary);
  flex-shrink: 0;
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero__title {
  font-family: var(--font-title);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  line-height: 1.12;
  color: var(--text);
}
.hero__title em {
  font-style: italic;
  color: var(--primary);
}
.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
}
.hero__buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.stat__value {
  display: block;
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--primary);
  line-height: 1.1;
}
.stat__label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}

/* Hero right column */
.hero__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.hero__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.hero__card-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-light);
  flex-shrink: 0;
}
.hero__card-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--text);
}
.hero__card-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: -4px;
}
.hero__card-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 11px;
  text-align: left;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.hero__card-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.hero__card-details svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--primary);
}
.hero__tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.tool-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  border-radius: 100px;
  padding: 5px 14px;
}

/* ===== SECTIONS COMMONS ===== */
.section {
  padding: 100px 0;
}
.section--alt {
  background: var(--bg-secondary);
}
.section__header {
  margin-bottom: 56px;
}
.section__title {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}
.section__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ===== PROJECTS ===== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.project-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.project-card__img {
  height: 200px;
  background: linear-gradient(135deg, var(--accent-light) 0%, #D6CCFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.project-card__img span {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.6;
}
.project-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card__img img { transform: scale(1.03); }
.project-card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.project-card__title {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.project-card__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.project-card__result {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.project-card__link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-top: auto;
  padding-top: 4px;
  transition: opacity var(--transition);
}
.project-card__link:hover { text-decoration: underline; opacity: 0.8; }
.project-card__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* ===== FOOTER / CONTACT ===== */
.footer-contact {
  background: var(--primary);
  padding: 80px 24px;
}
.footer-contact__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.footer-contact__title {
  font-family: var(--font-title);
  font-size: 3rem;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 20px;
}
.footer-contact__title em { font-style: italic; }
.footer-contact__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 36px;
  line-height: 1.7;
}
.footer-contact__socials {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-contact__socials a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color var(--transition);
}
.footer-contact__socials a:hover { color: #FFFFFF; }
.footer-contact__socials .sep {
  color: rgba(255, 255, 255, 0.25);
}
.footer-contact__copy {
  margin-top: 40px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.6;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  background: var(--bg-secondary);
  padding: 80px 0;
}
.about-hero__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}
.identity-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  position: sticky;
  top: 90px;
}
.identity-card__photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--accent-light);
}
.identity-card__name {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--text);
  line-height: 1.2;
}
.identity-card__role {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: -6px;
}
.about-hero__text h1 {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 24px;
}
.about-hero__text p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-hero__text p:last-child { margin-bottom: 0; }

/* ===== SKILLS ===== */
.skills__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.skills__bars {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.skill-bar__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.skill-bar__name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}
.skill-bar__pct {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.skill-bar__track {
  height: 6px;
  background: var(--accent-light);
  border-radius: 100px;
  overflow: hidden;
}
.skill-bar__fill {
  height: 100%;
  width: 0;
  background: var(--primary);
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-bar__fill.animated { width: var(--skill-width); }

.tools-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tools-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent-light));
}
.timeline__item {
  position: relative;
  padding-bottom: 44px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -39px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.timeline__company {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.timeline__date {
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 2px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
}
.timeline__role {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 10px;
}
.timeline__missions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.timeline__missions li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.6;
}
.timeline__missions li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* ===== EDUCATION ===== */
.education__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.edu-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.edu-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent-light);
}
.edu-card__year {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.edu-card__title {
  font-family: var(--font-title);
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.edu-card__school {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero {
    min-height: auto;
    padding: 60px 0;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__visual {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }
  .hero__stats { gap: 24px; }

  .section { padding: 72px 0; }
  .section__header { margin-bottom: 40px; }

  .about-hero { padding: 60px 0; }
  .about-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .identity-card {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }
  .timeline__dot { left: -38px; }

  .skills__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-contact__title { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .hero__buttons { flex-direction: column; align-items: flex-start; }
  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }
  .footer-contact__title { font-size: 1.8rem; }
  .projects__grid { grid-template-columns: 1fr; }
}
