/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 5% 80px;
  position: relative;
  overflow: hidden;
}

.hero-orb1 {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.07) 0%, transparent 65%);
  top: -200px;
  right: -150px;
  border-radius: 50%;
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 80, 180, 0.1) 0%, transparent 65%);
  bottom: -100px;
  left: 10%;
  border-radius: 50%;
  animation: breathe 9s ease-in-out infinite 3s;
  pointer-events: none;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.18), transparent);
  animation: scan 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}

.lbar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--accent) 30%,
    var(--accent) 70%,
    transparent 100%
  );
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  min-width: 0;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    justify-items: start;
  }
}

@media (max-width: 1200px) {
  .hero-socials {
    display: none;
  }
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 74px);
  color: var(--w);
  line-height: 1.02;
  letter-spacing: clamp(-0.015em, -0.4vw, -0.03em);
  margin-bottom: 0.2em;
  max-width: 100%;
  word-break: normal;
  overflow-wrap: normal;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}

@media (max-width: 768px) {
  .hero-name {
    font-size: clamp(34px, 9vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.015em;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(30px, 10vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.01em;
  }
}

.hero-name .accent {
  color: var(--accent);
}

.hero-role {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(18px, 3vw, 32px);
  color: var(--w2);
  line-height: 1.3;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

.hero-desc {
  font-size: 16px;
  color: var(--w2);
  line-height: 1.75;
  max-width: 560px;
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}

.hero-desc strong {
  color: var(--w);
  font-weight: 500;
}

.hero-desc em {
  color: var(--accent);
  font-style: normal;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 0.8s forwards;
}

.hero-meta {
  margin-top: 4rem;
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s 1s forwards;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.hero-stat .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--w3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-stat .note {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--w3);
  opacity: 0.75;
  letter-spacing: 0.06em;
}

/* ── HERO PORTRAIT VISUAL ── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 0.8s 0.55s forwards;
}

.portrait-frame {
  position: relative;
  width: 330px;
  max-width: 82vw;
}

.portrait-glow {
  position: absolute;
  inset: -18% -12%;
  background: radial-gradient(
    circle at 50% 42%,
    rgba(0, 229, 255, 0.22) 0%,
    rgba(0, 153, 204, 0.1) 38%,
    transparent 68%
  );
  filter: blur(6px);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.portrait-ring {
  position: absolute;
  inset: -1.5px;
  border-radius: 20px;
  padding: 1.5px;
  background: conic-gradient(
    from var(--pangle),
    transparent 0deg,
    transparent 120deg,
    rgba(0, 229, 255, 0.12) 165deg,
    var(--accent) 200deg,
    #c4f7ff 218deg,
    var(--accent) 236deg,
    rgba(0, 229, 255, 0.12) 275deg,
    transparent 320deg,
    transparent 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: ringsweep 5.5s linear infinite;
  pointer-events: none;
  z-index: 4;
}

.portrait-card {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  background: linear-gradient(
    165deg,
    rgba(0, 229, 255, 0.12) 0%,
    rgba(15, 32, 64, 0.55) 45%,
    rgba(5, 13, 26, 0.85) 100%
  );
  border: 1px solid var(--bd);
  aspect-ratio: 1 / 1.12;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 60px rgba(0, 229, 255, 0.05);
}

.portrait-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.9;
  pointer-events: none;
}

.portrait-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.pc-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  z-index: 3;
  pointer-events: none;
}

.pc-corner.tl {
  top: 12px;
  left: 12px;
  border-right: none;
  border-bottom: none;
}

.pc-corner.tr {
  top: 12px;
  right: 12px;
  border-left: none;
  border-bottom: none;
}

.pc-corner.bl {
  bottom: 12px;
  left: 12px;
  border-right: none;
  border-top: none;
}

.pc-corner.br {
  bottom: 12px;
  right: 12px;
  border-left: none;
  border-top: none;
}

.float-badge {
  position: absolute;
  top: 26px;
  right: -26px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--w);
  background: rgba(10, 22, 40, 0.92);
  border: 1px solid var(--bd);
  border-radius: 100px;
  padding: 8px 14px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: floaty 5s ease-in-out infinite;
}

.float-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2bff88;
  box-shadow: 0 0 10px 1px rgba(43, 255, 136, 0.8);
  animation: pulse 1.8s ease-in-out infinite;
}

.float-chip {
  position: absolute;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(10, 22, 40, 0.92);
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: 8px 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.float-chip.chip-1 {
  bottom: 58px;
  left: -34px;
  animation: floaty 6s ease-in-out infinite 1s;
}

.float-chip.chip-2 {
  bottom: 6px;
  right: -20px;
  color: var(--w2);
  animation: floaty 5.5s ease-in-out infinite 0.5s;
}

@media (max-width: 940px) {
  .portrait-frame {
    width: 300px;
  }
}

@media (max-width: 480px) {
  .float-badge {
    right: 0;
    font-size: 10px;
    padding: 7px 11px;
  }
  .float-chip.chip-1 {
    left: 6px;
    bottom: 72px;
  }
  .float-chip.chip-2 {
    right: 6px;
  }
}

.hero-socials {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.7s 1.1s forwards;
}

.hero-socials a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--w3);
  text-decoration: none;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transition: color var(--transition-fast);
  padding: 4px;
}

.hero-socials a:hover {
  color: var(--accent);
}

@media (max-width: 768px) {
  .hero-socials {
    display: none;
  }
  .hero-meta {
    gap: 2rem;
  }
}

/* ── SECTION BACKDROPS ── */
#services {
  background: var(--navy2);
}

.services-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.05) 0%, transparent 65%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

#case-studies {
  background: var(--navy2);
}

#projects {
  background: var(--navy);
}

.projects-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 80, 180, 0.08) 0%, transparent 65%);
  bottom: -200px;
  left: -100px;
  border-radius: 50%;
  pointer-events: none;
}

/* ── ABOUT PREVIEW ── */
#about-preview {
  background: var(--navy);
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* ── FINAL CTA ── */
#final-cta {
  background: var(--navy2);
  text-align: center;
  padding: 100px 5% 80px;
}

.final-cta-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.06) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.final-cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 72px);
  color: var(--w);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.final-cta-title .a {
  color: var(--accent);
}

.final-cta-sub {
  font-size: 15px;
  color: var(--w2);
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 2.5rem;
}
