/* === Hero Section === */
.hero {
  position: relative;
  min-height: calc(100svh - 67px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 3.5rem;
}

/* Dot-grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 247, 255, 0.13) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse 90% 100% at 65% 45%, black 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 65% 45%, black 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow behind photo */
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -8%;
  width: 55%;
  height: 110%;
  background: radial-gradient(ellipse at center, rgba(0, 247, 255, 0.055) 0%, transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero-text,
.hero-photo {
  position: relative;
  z-index: 1;
}

/* ── Entry animations ────────────────────────────── */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroRight {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(10px) scale(0.93); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-badge      { animation: heroUp 0.55s ease 0.05s both; }
.hero h1         { animation: heroUp 0.55s ease 0.15s both; }
.hero-role-line  { animation: heroUp 0.55s ease 0.28s both; }
.hero-desc       { animation: heroUp 0.55s ease 0.38s both; }
.hero-stack      { animation: heroUp 0.55s ease 0.46s both; }
.hero-ctas       { animation: heroUp 0.55s ease 0.54s both; }
.hero-stats      { animation: heroUp 0.55s ease 0.62s both; }
.hero-photo-wrap { animation: heroRight 0.65s ease 0.1s both; }
.hero-float-1    { animation: floatIn 0.5s ease 0.75s both; }
.hero-float-2    { animation: floatIn 0.5s ease 0.9s  both; }
.hero-float-3    { animation: floatIn 0.5s ease 1.05s both; }

/* ── Badge ───────────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 247, 255, 0.06);
  border: 1px solid rgba(0, 247, 255, 0.22);
  border-radius: 100px;
  padding: 0.35rem 0.9rem 0.35rem 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(0, 247, 255, 0.85);
  margin-bottom: 1.4rem;
  letter-spacing: 0.2px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: #00e676;
  border-radius: 50%;
  flex-shrink: 0;
  animation: badgePulse 2.4s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.55); }
  50%       { box-shadow: 0 0 0 5px rgba(0, 230, 118, 0); }
}

/* ── Heading ─────────────────────────────────────── */
.hero h1 {
  font-size: clamp(2.8rem, 5.2vw, 4rem);
  line-height: 1.08;
  font-weight: 800;
  margin-bottom: 1.1rem;
  flex-direction: column;
  gap: 0.05em;
}

.hero-h1-top {
  color: var(--color-text);
}

.hero-h1-accent {
  background: linear-gradient(130deg, #ffffff 10%, #00f7ff 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* German / Arabic font-size fix via body class */
body.lang-de .hero h1,
body.lang-ar .hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
}

/* ── Typing role line ────────────────────────────── */
.hero-role-line {
  font-size: 1.08rem;
  color: var(--color-light);
  margin-bottom: 1.1rem;
  min-height: 1.7em;
  line-height: 1.7;
}

.hero-typing {
  color: var(--color-accent);
  font-weight: 700;
  border-right: 2px solid var(--color-accent);
  padding-right: 2px;
  animation: cursorBlink 0.75s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { border-color: var(--color-accent); }
  50%       { border-color: transparent; }
}

/* ── Description ─────────────────────────────────── */
.hero-desc {
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--color-light);
  opacity: 0.88;
  margin-bottom: 2rem;
}

/* ── Tech stack pills ────────────────────────────── */
.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.hero-stack span {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  background: rgba(0, 247, 255, 0.06);
  border: 1px solid rgba(0, 247, 255, 0.18);
  color: var(--color-light);
  letter-spacing: 0.25px;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
  cursor: default;
}

.hero-stack span:hover {
  background: rgba(0, 247, 255, 0.13);
  border-color: rgba(0, 247, 255, 0.42);
  color: var(--color-accent);
}

/* ── CTAs ────────────────────────────────────────── */
.hero-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
}

.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.75rem;
  background: var(--color-accent);
  color: #000;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: none;
  letter-spacing: 0.15px;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.hero-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 247, 255, 0.38);
  background: #1bfeff;
}

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.75rem;
  border: 1.5px solid rgba(0, 247, 255, 0.3);
  color: var(--color-light);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.93rem;
  text-decoration: none;
  transition: border-color 0.24s, color 0.24s, background 0.24s, transform 0.24s;
}

.hero-cta-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(0, 247, 255, 0.06);
  transform: translateY(-2px);
}

.hero-cta-cv {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.72rem 1.25rem;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: var(--color-light);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  opacity: 0.7;
  transition: border-color 0.24s, color 0.24s, opacity 0.24s, transform 0.24s;
}

.hero-cta-cv:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--color-text);
  opacity: 1;
  transform: translateY(-2px);
}

/* ── Stats row ───────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.hero-stat-num {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: -0.5px;
}

.hero-stat-lbl {
  font-size: 0.72rem;
  color: var(--color-light);
  opacity: 0.6;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hero-stat-sep {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ── Photo column ────────────────────────────────── */
.hero-photo {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
  display: inline-block;
}

.hero-photo-img {
  width: 360px;
  height: 450px;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  border: 2px solid rgba(0, 247, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(0, 247, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(0, 247, 255, 0.1);
  display: block;
}

/* ── Floating skill cards ────────────────────────── */
.hero-float {
  position: absolute;
  background: rgba(14, 17, 22, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 247, 255, 0.2);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  animation: floatCard 4s ease-in-out infinite !important;
}

.hero-float-icon {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.hero-float-1 {
  top: 28px;
  left: 20px;
  animation-delay: 0s !important;
}

.hero-float-2 {
  bottom: 36px;
  left: 20px;
  animation-delay: 1.4s !important;
}

.hero-float-3 {
  top: 44%;
  right: 20px;
  transform: translateY(-50%);
  animation-delay: 2.8s !important;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}

.hero-float-3 {
  animation-name: floatCard3 !important;
}

@keyframes floatCard3 {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 7px)); }
}
