﻿/* â”€â”€â”€ 8. Hero â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.hero {
  position: relative;
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: flex;
  flex-direction: column;
  background: var(--clr-bg);
  overflow: hidden;
}

.hero__bg-effect {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  pointer-events: none;
}

/* Concentric dashed circles â€” originate from image centre */
.hero__circles {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.hero__circles svg {
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  overflow: visible;
}
.circles-group {
  transform-box: fill-box;
  transform-origin: center;
  animation: circles-rotate 90s linear infinite;
}
@keyframes circles-rotate {
  to { transform: rotate(360deg); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-2xl);
  padding-block: var(--sp-3xl);
}

/* Hero content */
.hero__title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--clr-text);
  margin-bottom: var(--sp-sm);
}
.hero__title-hello {
  display: block;
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--clr-accent);
  margin-bottom:1.4rem;
  letter-spacing: .04em;
}
.hero__title .gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__tagline {
  
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-weight: 600;
  color: var(--clr-text);
  margin-bottom: var(--sp-md);
  letter-spacing: -.01em;
}
.hero__subtitle {
  font-size: clamp(.9375rem, 1.3vw, 1.0625rem);
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-xl);
  max-width: 44ch;
  line-height: 1.8;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

/* Stats */
.hero__stats {
  display: flex;
  gap: var(--sp-xl);
}
.stat { }
.stat__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.stat__label {
  display: block;
  font-size: .8125rem;
  color: var(--clr-text-dim);
  margin-top: .125rem;
}

/* Floating skill tags around the portrait */
.hero__tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem 1.05rem;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(14px) saturate(200%);
  -webkit-backdrop-filter: blur(14px) saturate(200%);
  border: 1px solid rgba(255,255,255,.95);
  border-radius: var(--r-full);
  font-size: .8rem;
  font-weight: 700;
  color: var(--clr-text);
  white-space: nowrap;
  box-shadow: 0 4px 18px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  z-index: 3;
  animation: tag-float var(--tag-dur, 4s) ease-in-out infinite;
  animation-delay: var(--tag-delay, 0s);
  pointer-events: none;
}
/* Dot indicator */
.hero__tag::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tag-dot, var(--clr-primary));
  flex-shrink: 0;
}
/* Individual positions + durations + dot colours â€” tight to image edges */
.hero__tag--1 { top: 6%;    left: 6%;   --tag-dur: 3.8s; --tag-delay: 0s;    --tag-dot: #FA3DC7; }
.hero__tag--2 { top: 12%;   right: 5%;  --tag-dur: 4.6s; --tag-delay: -1.3s; --tag-dot: #A870DB; }
.hero__tag--3 { bottom: 28%; left: 5%;  --tag-dur: 4.2s; --tag-delay: -2.1s; --tag-dot: #46C0DF; }
.hero__tag--4 { bottom: 12%; right: 6%; --tag-dur: 3.5s; --tag-delay: -0.7s; --tag-dot: #FEDC31; }
@keyframes tag-float {
  0%, 100% { transform: translateY(0px)   rotate(-1deg); }
  50%       { transform: translateY(-10px) rotate( 1deg); }
}

/* Hero visual â€” right side image */
.hero__visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}
/* Mobile tag strip â€” hidden on desktop, shown on tablet/mobile */
.hero__tags-strip {
  display: none;
}
.hero__img-frame {
  position: relative;
  width: 100%;
  max-width: 500px;
  overflow: visible;
}
.hero__img-deco {
  position: absolute;
  inset: -14px -14px 14px 14px;
 /* border: 2px solid rgba(108,92,231,.18); */
  border-radius: var(--r-xl);
  z-index: 0;
  pointer-events: none;
}
.hero__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--r-xl);
 /* box-shadow: var(--shadow-lg), var(--shadow-glow); */
  display: block;
}

/* Scroll hint */
.hero__scroll {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
  padding-bottom: var(--sp-lg);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--clr-text-dim);
}
.hero__scroll-line {
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, var(--clr-primary), transparent);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* --- Hero responsive (self-contained — also enforced by responsive.css) ----- */

@media (max-width: 992px) {
  /* Stack: image above content */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-block: var(--sp-2xl);
    gap: var(--sp-xl);
  }
  .hero__visual      { justify-content: center; order: -1; }
  .hero__img-frame   { max-width: 280px; }
  .hero__subtitle    { max-width: 100%; }
  .hero__actions     { justify-content: center; }
  .hero__stats       { justify-content: center; }

  /* Hide decorative elements */
  .hero__circles     { display: none; }
  .hero__tag--1,
  .hero__tag--2,
  .hero__tag--3,
  .hero__tag--4      { display: none; }
  .hero__tags-strip  { display: none; }
}

@media (max-width: 480px) {
  .hero__img-frame  { max-width: 220px; }
  .hero__actions    { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .hero__actions .btn { width: auto; }
  .hero__stats      { flex-wrap: wrap; gap: var(--sp-lg); justify-content: center; }
}
