/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #e4e4e7;
  background: #0a0a0b;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ===== Container ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Section title ===== */
.section__title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  color: #fff;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.35);
}

.btn--primary:hover {
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: #c4b5fd;
  border: 2px solid rgba(139, 92, 246, 0.4);
}

.btn--outline:hover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.08);
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.1rem;
  border-radius: 14px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}

.logo span {
  color: #8b5cf6;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: #a1a1aa;
  transition: color 0.2s;
}

.nav__link:hover {
  color: #fff;
}

/* Language toggle */
.lang-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a1a1aa;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-toggle:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  gap: 5px;
  transition: all 0.25s;
}

.burger:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #e4e4e7;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero__label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8b5cf6;
  margin-bottom: 20px;
  padding: 6px 16px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 100px;
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
}

.hero__title span {
  background: linear-gradient(135deg, #8b5cf6, #c084fc, #e879f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__text {
  max-width: 560px;
  font-size: 1.15rem;
  color: #a1a1aa;
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.hero__bg {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 60%);
  z-index: 1;
  pointer-events: none;
}

/* ===== About ===== */
.about {
  padding: 120px 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__text p {
  color: #a1a1aa;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.about__text p:last-child {
  margin-bottom: 0;
}

.about__stats {
  display: flex;
  gap: 40px;
  padding-top: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat__number {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #8b5cf6, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  font-size: 0.9rem;
  color: #71717a;
  margin-top: 8px;
  font-weight: 500;
}

/* ===== Skills ===== */
.skills {
  padding: 120px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 32px 28px;
  transition: all 0.3s ease;
}

.skill-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.05);
  transform: translateY(-4px);
}

.skill-card__icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.skill-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.skill-card p {
  font-size: 0.92rem;
  color: #a1a1aa;
  line-height: 1.6;
}

/* ===== Services ===== */
.services {
  padding: 120px 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 40px 36px;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: rgba(139, 92, 246, 0.3);
  background: rgba(139, 92, 246, 0.04);
}

.service-card__num {
  font-size: 0.85rem;
  font-weight: 700;
  color: #8b5cf6;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  display: block;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.service-card p {
  color: #a1a1aa;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Contact ===== */
.contact {
  padding: 120px 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.contact__inner {
  text-align: center;
}

.contact__text {
  max-width: 480px;
  margin: 0 auto 40px;
  font-size: 1.1rem;
  color: #a1a1aa;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: 0.85rem;
  color: #52525b;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.85rem;
  color: #71717a;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #fff;
}

/* ====================================
   Responsive
   ==================================== */

/* Tablet */
@media (max-width: 1024px) {
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Burger visible */
  .burger {
    display: flex;
  }

  /* Nav → fullscreen overlay */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(10, 10, 11, 0.98);
    backdrop-filter: blur(24px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0.35s ease;
  }

  .nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
  }

  .nav__link {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #71717a;
    padding: 20px 0;
    text-align: center;
    transition: color 0.2s, transform 0.3s;
    transform: translateY(20px);
    opacity: 0;
  }

  .nav.open .nav__link {
    opacity: 1;
    transform: translateY(0);
    color: #e4e4e7;
  }

  .nav.open .nav__link:nth-child(1) { transition-delay: 0.08s; }
  .nav.open .nav__link:nth-child(2) { transition-delay: 0.14s; }
  .nav.open .nav__link:nth-child(3) { transition-delay: 0.20s; }
  .nav.open .nav__link:nth-child(4) { transition-delay: 0.26s; }

  .nav__link:hover {
    color: #c4b5fd !important;
  }

  /* Remove backdrop-filter so fixed .nav uses viewport, not header, as containing block */
  .header {
    z-index: 300;
    backdrop-filter: none;
    background: #0a0a0b;
  }

  /* Hero */
  .hero__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__text {
    font-size: 1rem;
  }

  /* About */
  .about {
    padding: 80px 0;
  }

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

  .about__stats {
    justify-content: space-between;
  }

  /* Skills */
  .skills {
    padding: 80px 0;
  }

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

  /* Services */
  .services {
    padding: 80px 0;
  }

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

  /* Contact */
  .contact {
    padding: 80px 0;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero__inner {
    padding: 60px 16px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .about__stats {
    gap: 24px;
  }

  .stat__number {
    font-size: 2.2rem;
  }

  .skill-card {
    padding: 24px 20px;
  }

  .service-card {
    padding: 28px 24px;
  }

  .btn--lg {
    padding: 16px 24px;
    font-size: 0.95rem;
  }

  .nav__link {
    font-size: 1.6rem;
    padding: 16px 0;
  }
}

