.hero {
  padding-top: 120px;
  padding-bottom: 40px;
}

.hero .section-container {
  padding-top: 0;
  padding-bottom: 0;
}

.hero-layout {
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-text {
  flex: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-image-wrap {
  flex: 2;
  display: flex;
  justify-content: center;
}

.hero-comment {
  color: rgba(139, 149, 165, 0.3);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 16px;
}

.hero-name {
  font-size: 76px;
  font-weight: 900;
  letter-spacing: 6px;
  line-height: 1.0;
  background: linear-gradient(90deg, #fff 0%, #C0C8D4 40%, #fff 60%, #8B95A5 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.hero-title-line {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.title-bar {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-secondary));
  border-radius: 1px;
  margin-right: 10px;
  flex-shrink: 0;
}

.hero-title {
  font-size: 24px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1.5px;
}

.typing-cursor {
  font-size: 24px;
  color: var(--accent);
  margin-left: 1px;
}

.hero-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 28px;
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(25%);
  transition: opacity 0.7s, transform 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.hero-stats.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.stat-value {
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.stat-label {
  color: rgba(99, 110, 128, 0.6);
  font-size: 10px;
  letter-spacing: 0.8px;
  margin-top: 2px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 26px;
  margin: 0 18px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* Role tags */
.hero-roles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.role-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid rgba(139, 149, 165, 0.1);
  border-radius: 20px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.3px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.role-tag:hover {
  border-color: rgba(139, 149, 165, 0.35);
  color: var(--accent);
  background: rgba(139, 149, 165, 0.04);
}

.role-icon {
  font-size: 12px;
}

/* Social buttons */
.hero-socials {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, transform 0.3s;
}

.social-btn:hover {
  border-color: rgba(139, 149, 165, 0.5);
  background-color: rgba(139, 149, 165, 0.07);
  transform: translateY(-2px);
}

.social-btn img {
  width: 18px;
  height: 18px;
  opacity: 0.45;
  transition: opacity 0.3s;
  filter: brightness(0) invert(1);
}

.social-btn:hover img {
  opacity: 0.9;
  filter: brightness(0) saturate(100%) invert(63%) sepia(8%) saturate(481%) hue-rotate(182deg) brightness(92%) contrast(87%);
}

/* CV button */
.cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid rgba(139, 149, 165, 0.2);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.cv-btn:hover {
  border-color: var(--accent);
  background-color: rgba(139, 149, 165, 0.08);
  box-shadow: 0 0 20px rgba(139, 149, 165, 0.08);
  transform: translateY(-1px);
}

.cv-btn .cv-icon {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.54);
  transition: color 0.3s;
}

.cv-btn:hover .cv-icon {
  color: var(--accent);
}

.cv-btn span {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.54);
  transition: color 0.3s;
}

.cv-btn:hover span {
  color: var(--accent);
}

/* Photo with orbit rings — circular shape */
.hero-photo-outer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 420px;
  height: 420px;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(139, 149, 165, 0.06);
}

.orbit-ring-1 {
  width: 340px;
  height: 340px;
  animation: orbitSpin 30s linear infinite;
  border-style: dashed;
  border-width: 1px;
  border-color: rgba(139, 149, 165, 0.18);
}

.orbit-ring-2 {
  width: 310px;
  height: 310px;
  animation: orbitSpinReverse 25s linear infinite;
  border-width: 1px;
  border-color: rgba(139, 149, 165, 0.12);
}

.orbit-ring-3 {
  width: 280px;
  height: 280px;
  animation: orbitSpin 40s linear infinite;
  border-style: dotted;
  border-width: 1px;
  border-color: rgba(139, 149, 165, 0.08);
}

.orbit-ring-4 {
  width: 370px;
  height: 370px;
  animation: orbitSpinReverse 38s linear infinite;
  border-style: dotted;
  border-width: 1px;
  border-color: rgba(139, 149, 165, 0.1);
}

.orbit-ring-5 {
  width: 410px;
  height: 410px;
  animation: orbitSpin 50s linear infinite;
  border-style: dashed;
  border-width: 1px;
  border-color: rgba(139, 149, 165, 0.08);
}

.orbit-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.orbit-dot-1 {
  width: 4px; height: 4px;
  animation: orbitSpinReverse 37.0s linear infinite;
  transform-origin: 139.99px -96.46px;
  top: calc(50% - 2.0px + 96.46px);
  left: calc(50% - 2.0px + -139.99px);
  background: #81C784;
  box-shadow: 0 0 8px #81C78480;
}

.orbit-dot-2 {
  width: 3px; height: 3px;
  animation: orbitSpin 30.9s linear infinite;
  transform-origin: -103.78px -115.13px;
  top: calc(50% - 1.5px + 115.13px);
  left: calc(50% - 1.5px + 103.78px);
  background: #FF8A65;
  box-shadow: 0 0 6px #FF8A6580;
}

.orbit-dot-3 {
  width: 5px; height: 5px;
  animation: orbitSpinReverse 29.2s linear infinite;
  transform-origin: 139.68px -9.43px;
  top: calc(50% - 2.5px + 9.43px);
  left: calc(50% - 2.5px + -139.68px);
  background: #FFD54F;
  box-shadow: 0 0 10px #FFD54F80;
}

.orbit-dot-4 {
  width: 4px; height: 4px;
  animation: orbitSpin 47.1s linear infinite;
  transform-origin: -119.25px 141.43px;
  top: calc(50% - 2.0px + -141.43px);
  left: calc(50% - 2.0px + 119.25px);
  background: #FF8A65;
  box-shadow: 0 0 8px #FF8A6580;
}

.orbit-dot-5 {
  width: 6px; height: 6px;
  animation: orbitSpinReverse 64.5s linear infinite;
  transform-origin: 108.54px -173.91px;
  top: calc(50% - 3.0px + 173.91px);
  left: calc(50% - 3.0px + -108.54px);
  background: #64B5F6;
  box-shadow: 0 0 12px #64B5F680;
}

.orbit-dot-6 {
  width: 6px; height: 6px;
  animation: orbitSpinReverse 37.7s linear infinite;
  transform-origin: 139.16px -97.64px;
  top: calc(50% - 3.0px + 97.64px);
  left: calc(50% - 3.0px + -139.16px);
  background: #81C784;
  box-shadow: 0 0 12px #81C78480;
}

.orbit-dot-7 {
  width: 6px; height: 6px;
  animation: orbitSpinReverse 39.3s linear infinite;
  transform-origin: 100.69px -117.84px;
  top: calc(50% - 3.0px + 117.84px);
  left: calc(50% - 3.0px + -100.69px);
  background: #4DB6AC;
  box-shadow: 0 0 12px #4DB6AC80;
}

.orbit-dot-8 {
  width: 5px; height: 5px;
  animation: orbitSpinReverse 31.1s linear infinite;
  transform-origin: -113.39px 82.12px;
  top: calc(50% - 2.5px + -82.12px);
  left: calc(50% - 2.5px + 113.39px);
  background: #9FA8DA;
  box-shadow: 0 0 10px #9FA8DA80;
}

.orbit-dot-9 {
  width: 6px; height: 6px;
  animation: orbitSpinReverse 54.2s linear infinite;
  transform-origin: -39.42px -180.75px;
  top: calc(50% - 3.0px + 180.75px);
  left: calc(50% - 3.0px + 39.42px);
  background: #FF8A65;
  box-shadow: 0 0 12px #FF8A6580;
}

.orbit-dot-10 {
  width: 3px; height: 3px;
  animation: orbitSpinReverse 56.8s linear infinite;
  transform-origin: -182.57px 93.24px;
  top: calc(50% - 1.5px + -93.24px);
  left: calc(50% - 1.5px + 182.57px);
  background: #E8A838;
  box-shadow: 0 0 6px #E8A83880;
}

.orbit-dot-11 {
  width: 3px; height: 3px;
  animation: orbitSpin 39.7s linear infinite;
  transform-origin: -168.18px -24.80px;
  top: calc(50% - 1.5px + 24.80px);
  left: calc(50% - 1.5px + 168.18px);
  background: #FFD54F;
  box-shadow: 0 0 6px #FFD54F80;
}

.orbit-dot-12 {
  width: 6px; height: 6px;
  animation: orbitSpinReverse 31.4s linear infinite;
  transform-origin: 104.67px 114.32px;
  top: calc(50% - 3.0px + -114.32px);
  left: calc(50% - 3.0px + -104.67px);
  background: #64B5F6;
  box-shadow: 0 0 12px #64B5F680;
}

.orbit-dot-13 {
  width: 4px; height: 4px;
  animation: orbitSpinReverse 29.1s linear infinite;
  transform-origin: -92.04px -105.49px;
  top: calc(50% - 2.0px + 105.49px);
  left: calc(50% - 2.0px + 92.04px);
  background: #BA68C8;
  box-shadow: 0 0 8px #BA68C880;
}

.orbit-dot-14 {
  width: 5px; height: 5px;
  animation: orbitSpinReverse 49.0s linear infinite;
  transform-origin: 8.80px -184.79px;
  top: calc(50% - 2.5px + 184.79px);
  left: calc(50% - 2.5px + -8.80px);
  background: #BA68C8;
  box-shadow: 0 0 10px #BA68C880;
}

.orbit-dot-15 {
  width: 6px; height: 6px;
  animation: orbitSpinReverse 56.3s linear infinite;
  transform-origin: -180.99px 96.27px;
  top: calc(50% - 3.0px + -96.27px);
  left: calc(50% - 3.0px + 180.99px);
  background: #E8A838;
  box-shadow: 0 0 12px #E8A83880;
}

.hero-photo-clip {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  z-index: 1;
  /* Safari fix */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
  transform: translateZ(0);
  background: transparent;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transform: scale(1.3);
  background: transparent;
}

.hero-photo-container::before {
  content: '';
  position: absolute;
  width: 252px;
  height: 252px;
  border-radius: 50%;
  animation: hexGlow 4s ease-in-out infinite;
  z-index: 0;
}

.hero-photo-container::after {
  content: '';
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  z-index: -1;
}

/* Mobile */
@media (max-width: 599px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 20px;
  }

  .hero-layout {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .hero-text {
    align-items: center;
    text-align: center;
  }

  .hero-comment {
    font-size: 11px;
  }

  .hero-name {
    font-size: 36px;
    letter-spacing: 3px;
  }

  .hero-title-line {
    justify-content: center;
  }

  .title-bar {
    height: 16px;
  }

  .hero-title,
  .typing-cursor {
    font-size: 14px;
  }

  .hero-subtitle {
    font-size: 12px;
    text-align: center;
  }

  .hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .stat-divider {
    margin: 0 12px;
  }

  .hero-roles {
    justify-content: center;
  }

  .hero-socials {
    justify-content: center;
  }

  .hero-photo-outer {
    width: 320px;
    height: 320px;
  }

  .hero-photo-clip {
    width: 180px;
    height: 180px;
  }

  .orbit-ring-1 {
    width: 240px;
    height: 240px;
  }

  .orbit-ring-2 {
    width: 210px;
    height: 210px;
  }

  .orbit-ring-3 {
    width: 190px;
    height: 190px;
  }

  .orbit-ring-4 {
    width: 265px;
    height: 265px;
  }

  .orbit-ring-5 {
    width: 290px;
    height: 290px;
  }

  /* Basic scale down for dots on mobile for simplicity, but dots will automatically adapt based on absolute positioning */
  .orbit-dot {
    transform: scale(0.7);
  }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 1099px) {
  .hero-name {
    font-size: 56px;
  }

  .hero-title,
  .typing-cursor {
    font-size: 20px;
  }

  .hero-photo-outer {
    width: 380px;
    height: 380px;
  }

  .hero-photo-clip {
    width: 230px;
    height: 230px;
  }

  .orbit-ring-1 {
    width: 300px;
    height: 300px;
  }

  .orbit-ring-2 {
    width: 270px;
    height: 270px;
  }

  .orbit-ring-3 {
    width: 240px;
    height: 240px;
  }

  .orbit-ring-4 {
    width: 330px;
    height: 330px;
  }

  .orbit-ring-5 {
    width: 360px;
    height: 360px;
  }
}