/* ==========================================
   Section Styles
   ========================================== */

/* === Section Headers === */
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.section-title h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.5px;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 999px;
}

/* === Hero Section === */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  width: 150%;
  height: 150%;
  background: radial-gradient(ellipse at center, var(--gradient-start) 0%, var(--gradient-end) 40%, transparent 70%);
  transform: translateX(-50%);
  opacity: 0.6;
  pointer-events: none;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateX(-50%) translateY(0px);
  }
  50% {
    transform: translateX(-50%) translateY(-30px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.lead {
  margin: 0;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--muted);
  max-width: 75ch;
  line-height: 1.7;
}

.meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* === About Section === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* === Skills Section === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.skill-category {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--bg);
  transition: all .3s var(--ease);
}

.skill-category:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .08);
  border-color: var(--accent-light);
}

.skill-category h3 {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-category h3::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* === Experience Section === */
.xp {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.xp-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  transition: all .3s var(--ease);
}

.xp-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--success));
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.xp-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .10);
  border-color: var(--accent-light);
}

.xp-item:hover::before {
  opacity: 1;
}

/* Stagger animation */
.xp-item:nth-child(1) {
  transition-delay: 0s;
}

.xp-item:nth-child(2) {
  transition-delay: .05s;
}

.xp-item:nth-child(3) {
  transition-delay: .1s;
}

.xp-item:nth-child(4) {
  transition-delay: .15s;
}

.xp-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.xp-role {
  font-weight: 700;
  letter-spacing: -0.3px;
  font-size: 18px;
  line-height: 1.3;
}

.xp-meta {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
  font-weight: 500;
}

.xp-time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  padding: 6px 12px;
  background: var(--soft);
  border-radius: 8px;
  font-weight: 600;
}

.achievements {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.achievement {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: linear-gradient(135deg, var(--accent-light), var(--gradient-end));
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.achievement::before {
  content: '✓';
  font-size: 14px;
}

/* === Contact Section === */
.contact-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.contact-row a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 2px solid var(--accent-light);
  padding-bottom: 2px;
  transition: all .2s var(--ease);
}

.contact-row a:hover {
  border-bottom-color: var(--accent);
  transform: translateY(-1px);
}
