/* ==========================================================================
   Sections — Hero, About, Projects, Contact, Footer
   ========================================================================== */

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--space-xl);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero__headline {
  margin-bottom: var(--space-md);
}

.hero__tagline {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 520px;
}

.hero__cta {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Decorative geometric element */
.hero__decor {
  position: absolute;
  top: 15%;
  right: -5%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
  opacity: 0.06;
  pointer-events: none;
}

.hero__decor::after {
  content: '';
  position: absolute;
  top: 30%;
  left: 30%;
  width: 60%;
  height: 60%;
  border: 1px solid var(--border);
  border-radius: 50%;
}

/* Staggered fade-up animations */
.hero__content > * {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.hero__content > *:nth-child(1) { animation-delay: 0.1s; }
.hero__content > *:nth-child(2) { animation-delay: 0.25s; }
.hero__content > *:nth-child(3) { animation-delay: 0.4s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- About --- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.about__text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.about__skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

/* --- Experience --- */
.experience__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border);
}

.exp-row:first-child {
  border-top: 1px solid var(--border);
}

.exp-row__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-row__company {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-primary);
}

.exp-row__period {
  color: var(--text-muted);
}

.exp-row__right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-row__role {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
}

.exp-row__desc {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Projects --- */
.projects__list {
  margin-top: 0;
}

/* --- Contact --- */
.contact {
  text-align: center;
}

.contact__headline {
  margin-bottom: var(--space-md);
}

.contact__subtext {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.contact__email {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  color: var(--accent);
  transition: color var(--transition);
  display: inline-block;
  margin-bottom: var(--space-lg);
}

.contact__email:hover {
  color: var(--accent-hover);
}

.contact .social-links {
  justify-content: center;
}

/* --- Footer --- */
.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}

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

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer__top {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer__top:hover {
  color: var(--text-primary);
}

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

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-xl);
  }

  .hero__decor {
    width: 250px;
    height: 250px;
    top: 5%;
    right: -15%;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

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

  .exp-row {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .footer__inner {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .about__skills {
    grid-template-columns: 1fr;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    justify-content: center;
  }
}
