.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 600px;
}

.hero__badge {
  margin-bottom: 24px;
  opacity: 0;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero__title-line {
  display: block;
  overflow: hidden;
}

.hero__title-line span {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

.hero__typewriter {
  display: inline;
}

.hero__typewriter-cursor {
  display: inline-block;
  width: 3px;
  height: 0.9em;
  background: var(--accent-secondary);
  margin-left: 4px;
  vertical-align: text-bottom;
  animation: blink 0.8s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.8;
  opacity: 0;
}

.hero__subtitle strong {
  color: var(--text-accent);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  opacity: 0;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  opacity: 0;
}

.hero__stats span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__stats-dot {
  color: var(--accent-primary);
}

/* Photo area */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}

.hero-photo-card {
  position: relative;
  padding: 24px;
  background: rgba(17, 17, 40, 0.6);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

.hero-photo-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
    var(--accent-gradient) border-box;
  box-shadow: var(--glow-purple), inset 0 0 30px rgba(124, 58, 237, 0.1);
}

.hero-photo-wrapper::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.35) 0%, rgba(6, 182, 212, 0.2) 50%, transparent 70%);
  z-index: -1;
}

.hero-photo-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(6, 182, 212, 0.1) 100%);
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.hero-photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Replace /images/abu-bakkar.png with your portrait for best results */
.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a3e 0%, #0d0d2a 100%);
  font-family: var(--font-heading);
  font-size: 64px;
  font-weight: 700;
  color: var(--text-accent);
}

/* Rotating circular text */
.hero-circular-text {
  position: absolute;
  width: 380px;
  height: 380px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotateText 20s linear infinite;
}

.hero-circular-text svg {
  width: 100%;
  height: 100%;
}

.hero-circular-text text {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  fill: var(--text-secondary);
  text-transform: uppercase;
}

@keyframes rotateText {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Floating badges */
.hero-float-badge {
  position: absolute;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  background: rgba(17, 17, 40, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero-float-badge--1 { top: 5%; right: -5%; }
.hero-float-badge--2 { top: 35%; left: -15%; }
.hero-float-badge--3 { bottom: 30%; right: -10%; }
.hero-float-badge--4 { bottom: 5%; left: -5%; }

@media (max-width: 1024px) {
  .hero__grid {
    gap: 40px;
  }

  .hero-photo-wrapper {
    width: 280px;
    height: 280px;
  }

  .hero-circular-text {
    width: 340px;
    height: 340px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 100px 0 60px;
    min-height: auto;
    overflow: visible;
  }

  .hero__visual {
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
  }

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

  .hero__content {
    max-width: 100%;
    order: 1;
  }

  .hero__visual {
    order: 2;
  }

  .hero__actions {
    justify-content: center;
    margin-bottom: 26px;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero-photo-wrapper {
    width: min(76vw, 260px);
    height: min(76vw, 260px);
  }

  .hero-circular-text {
    width: min(88vw, 320px);
    height: min(88vw, 320px);
  }

  .hero-float-badge {
    font-size: 11px;
    padding: 8px 10px;
  }

  .hero-float-badge--2 { left: -2%; }

  .hero-circular-text {
    animation: none;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 88px 0 40px;
  }

  .hero__title {
    margin-bottom: 16px;
  }

  .hero__subtitle {
    margin-bottom: 22px;
    line-height: 1.6;
    font-size: 15px;
  }

  .hero__actions {
    gap: 10px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__stats {
    gap: 6px 12px;
    font-size: 12px;
  }

  .hero-photo-card {
    padding: 14px;
  }

  .hero-photo-wrapper {
    width: min(78vw, 230px);
    height: min(78vw, 230px);
  }

  .hero-circular-text {
    width: min(95vw, 290px);
    height: min(95vw, 290px);
  }

  .hero-float-badge--1,
  .hero-float-badge--3 {
    display: none;
  }
}
