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

:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #555;
  --color-text-muted: #888;
  --color-accent: #e63312;
  --color-accent-light: #fff1ee;
  --color-border: #e8e8e8;
  --color-tag-bg: #f0f0f0;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 960px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

/* ===== HERO ===== */
.hero {
  background: var(--color-text);
  color: #fff;
  padding: 4rem 2rem;
}

.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.hero__info h1 {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.4rem;
  font-weight: 400;
}

.hero__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.2rem;
  list-style: none;
}

.hero__contact a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__contact a:hover {
  color: #fff;
  opacity: 1;
}

.hero__contact svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--color-accent);
  color: #fff;
  padding: 1.25rem 2rem;
}

.stats-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat__number {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat__label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
  margin-top: 0.15rem;
}

/* ===== NAV ===== */
.nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 2rem;
  overflow-x: auto;
}

.nav a {
  color: var(--color-text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.9rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover,
.nav a:focus {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
  opacity: 1;
}

/* ===== SECTIONS ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 2rem;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

.section__title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.section__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* ===== ABOUT ===== */
.about__text {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.skills-category h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--color-tag-bg);
  color: var(--color-text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 500;
}

/* ===== EXPERIENCE ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.timeline-item {
  position: relative;
  padding-left: 1.75rem;
  border-left: 2px solid var(--color-border);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: 50%;
}

.timeline-item__header {
  margin-bottom: 0.75rem;
}

.timeline-item__role {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.timeline-item__company {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-top: 0.15rem;
}

.timeline-item__date {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.timeline-item__details ul {
  list-style: none;
  padding: 0;
}

.timeline-item__details li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.timeline-item__details li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
}

.timeline-item__tech {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech-tag {
  background: var(--color-accent-light);
  color: var(--color-accent);
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ===== PROJECT CASE STUDIES ===== */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.case-study {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
}

.case-study__header {
  background: var(--color-text);
  color: #fff;
  padding: 1.25rem 1.5rem;
}

.case-study__header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.2rem;
}

.case-study__role {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.case-study__video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.case-study__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.case-study__body {
  padding: 1.5rem;
}

.case-study__details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.case-study__col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.case-study__col ul {
  list-style: none;
  padding: 0;
}

.case-study__col li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.case-study__col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
}

.case-study__col li strong {
  color: var(--color-text);
  font-weight: 600;
}

.case-study__impact {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.case-study__tags {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* ===== SHOWCASE GRID ===== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.showcase-item {
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.showcase-item video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.showcase-item span {
  display: block;
  padding: 0.6rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, 0.85);
}

/* ===== EDUCATION ===== */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.education-item h3 {
  font-size: 1rem;
  font-weight: 700;
}

.education-item p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.education-item span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ===== AWARDS ===== */
.awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.awards-list li {
  padding-left: 1rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.awards-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--color-accent);
  border-radius: 50%;
}

/* ===== HERO CV BUTTON ===== */
.hero__cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  padding: 0.65rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.hero__cv-btn:hover {
  background: #c92a0e;
  transform: translateY(-1px);
  opacity: 1;
}

.hero__cv-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== TESTIMONIAL ===== */
.testimonial-section {
  background: var(--color-surface);
}

.testimonial {
  max-width: 720px;
  margin: 0;
  padding: 0;
  border: none;
}

.testimonial + .testimonial {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.testimonial__quote {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  font-style: italic;
}

.testimonial__author {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-top: 1rem;
  font-style: normal;
}

.testimonial__author strong {
  font-size: 0.95rem;
  color: var(--color-text);
}

.testimonial__author span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ===== CTA ===== */
.cta {
  background: var(--color-text);
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

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

.cta__title {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.cta__text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

.cta__btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 0.85rem 2.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.cta__btn:hover {
  background: #c92a0e;
  transform: translateY(-1px);
  opacity: 1;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 1.5rem;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .hero__photo {
    width: 120px;
    height: 120px;
  }

  .hero__info h1 {
    font-size: 1.8rem;
  }

  .hero__contact {
    justify-content: center;
  }

  .hero__cv-btn {
    align-self: center;
  }

  .stats-bar__inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .stat__number {
    font-size: 1.3rem;
  }

  .section {
    padding: 2.5rem 1.5rem;
  }

  .nav__inner {
    padding: 0 1.5rem;
    gap: 1.5rem;
  }

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

  .case-study__details {
    grid-template-columns: 1fr;
  }

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

  .cta {
    padding: 3rem 1.5rem;
  }

  .cta__title {
    font-size: 1.4rem;
  }
}
