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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #3b82f6;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

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

.section {
  padding: 80px 0;
}

.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: #111827;
}

.section__subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 1.125rem;
  margin-bottom: 48px;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
}

.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.5px;
}

.logo:hover {
  color: #3b82f6;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__link {
  color: #374151;
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav__link:hover {
  color: #111827;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #3b82f6;
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background-color: #374151;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.hero__content {
  max-width: 640px;
  z-index: 2;
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #111827;
}

.hero__highlight {
  color: #3b82f6;
  position: relative;
}

.hero__subtitle {
  font-size: 1.75rem;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 24px;
}

.hero__description {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 32px;
  max-width: 560px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
}

/* ===== Hero Decoration ===== */
.hero__decoration {
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  z-index: 1;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  opacity: 0.1;
  animation: float 8s ease-in-out infinite;
}

.hero__shape--1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 50%;
  animation-delay: 0s;
}

.hero__shape--2 {
  width: 200px;
  height: 200px;
  bottom: 10%;
  left: 60%;
  animation-delay: -2s;
}

.hero__shape--3 {
  width: 120px;
  height: 120px;
  top: 40%;
  left: 30%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-10px, -20px) scale(1.05); }
  66% { transform: translate(-5px, 10px) scale(0.98); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background-color: #3b82f6;
  color: #ffffff;
}

.btn--primary:hover {
  background-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn--secondary {
  background-color: transparent;
  color: #374151;
  border-color: #d1d5db;
}

.btn--secondary:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.btn--full {
  width: 100%;
}

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.about__text h2 {
  font-size: 2.5rem;
  margin-bottom: 4px;
}

.about__text p {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 20px;
}

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

.skills li {
  padding: 8px 16px;
  background-color: #f3f4f6;
  border-radius: 6px;
  color: #374151;
  font-weight: 500;
}

.about__image {
  display: flex;
  justify-content: center;
}

.avatar {
  width: 240px;
  height: 240px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50 -12px rgba(59, 130, 246, 0.25);
}

.avatar__initials {
  font-size: 4rem;
  font-weight: 800;
  color: #ffffff;
}

/* ===== Projects ===== */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.project-card {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: #3b82f6;
  box-shadow: 0 25px 50 -12px rgba(0, 0, 0, 0.08);
}

.project-card__image {
  height: 180px;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__placeholder {
  font-size: 2rem;
  color: #9ca3af;
  font-weight: 600;
}

.project-card__content {
  padding: 24px;
}

.project-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111827;
}

.project-card__description {
  color: #6b7280;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.project-card__content {
  padding: 24px;
}

.project-chart {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background-color: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
}

/* ===== Contact ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact__text {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 24px;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__list li {
  color: #4b5563;
}

/* ===== Form ===== */
.form__field {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #374151;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form__textarea {
  resize: vertical;
}

/* ===== Footer ===== */
.footer {
  background-color: #111827;
  color: #9ca3af;
  padding: 32px 0;
  text-align: center;
}

.footer__text {
  font-size: 0.9rem;
  margin-top: 12px;
}

.footer__text a {
  color: #60a5fa;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.footer__brand {
  text-align: left;
}

.footer__logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.footer__company {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 4px;
}

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

.footer__link {
  color: #93c5fd;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: #ffffff;
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background-color: #3b82f6;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 900;
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: #2563eb;
  transform: scale(1.1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .hero__title {
    font-size: 2.75rem;
  }

  .hero__subtitle {
    font-size: 1.35rem;
  }

  .hero__decoration {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__image {
    display: none;
  }

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

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

  .back-to-top {
    bottom: 24px;
    right: 24px;
  }

  .nav__list {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding-top: 100px;
    transition: left 0.4s ease;
    z-index: 999;
  }

  .nav__list.active {
    left: 0;
  }

  .nav__toggle {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2.25rem;
  }

  .hero__buttons {
    flex-direction: column;
  }
}
