/* ========================================
   PREMIUM CINEMATIC PORTFOLIO — Style System
   ======================================== */

/* ---------- Custom Properties ---------- */
:root {
  --black: #050505;
  --black-soft: #0a0a0a;
  --red: #E50914;
  --red-dim: #b00710;
  --white: #FFFFFF;
  --white-muted: rgba(255, 255, 255, 0.55);
  --white-faint: rgba(255, 255, 255, 0.08);
  --red-glow: rgba(229, 9, 20, 0.35);
  --red-glow-strong: rgba(229, 9, 20, 0.6);
  --red-glow-soft: rgba(229, 9, 20, 0.12);
  --font-ar: "Tajawal", "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-en: "Inter", "Segoe UI", system-ui, sans-serif;
  --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.25s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-ar);
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* ========================================
   LOADING SCREEN — GSAP Cinematic
   ======================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Soft radial glow */
.loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgba(229, 9, 20, 0.12) 0%,
    rgba(229, 9, 20, 0.04) 30%,
    transparent 60%
  );
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.loader.is-hidden {
  pointer-events: none;
}

/* Particle canvas behind loader */
.loader__canvas {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  z-index: 1;
}

/* Content container */
.loader__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Outer spinning ring */
.loader__ring-outer {
  position: absolute;
  inline-size: 160px;
  block-size: 160px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--red);
  border-right-color: rgba(229, 9, 20, 0.2);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
  pointer-events: none;
}

/* Inner spinning ring */
.loader__ring-inner {
  position: absolute;
  inline-size: 125px;
  block-size: 125px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.12);
  border-left-color: rgba(229, 9, 20, 0.4);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 0;
  pointer-events: none;
}

/* Center glow dot */
.loader__center-dot {
  position: absolute;
  inline-size: 10px;
  block-size: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 20px var(--red-glow-strong), 0 0 50px var(--red-glow);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

/* Name — LTR for correct character order */
.loader__name {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.01em;
  min-inline-size: 280px;
  text-align: center;
  min-block-size: 1.2em;
  position: relative;
  z-index: 2;
  overflow: hidden;
  direction: ltr;
  text-shadow: 0 0 30px rgba(229, 9, 20, 0.3);
}

.loader__name .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px) rotateX(-90deg);
}

/* Cursor blink */
.loader__name::after {
  content: "|";
  color: var(--red);
  animation: cursorBlink 0.8s step-end infinite;
  font-weight: 300;
  margin-inline-start: 2px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Subtitle */
.loader__subtitle {
  font-family: var(--font-en);
  font-size: clamp(0.55rem, 1vw, 0.7rem);
  font-weight: 600;
  color: var(--white-muted);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  position: relative;
  z-index: 2;
  direction: ltr;
}

/* Progress bar */
.loader__bar-track {
  position: relative;
  inline-size: clamp(200px, 40vw, 280px);
  block-size: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-block-start: 0.75rem;
  opacity: 0;
  z-index: 2;
}

.loader__bar-fill {
  inline-size: 0%;
  block-size: 100%;
  background: linear-gradient(90deg, var(--red), #ff3030, var(--red));
  border-radius: 3px;
  position: relative;
  z-index: 1;
}

.loader__bar-glow {
  position: absolute;
  inset-block: -4px;
  inset-inline: 0;
  background: linear-gradient(90deg, transparent, rgba(229, 9, 20, 0.4), transparent);
  filter: blur(6px);
  opacity: 0;
  z-index: 0;
}

/* Counter */
.loader__counter {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.1em;
  opacity: 0;
  z-index: 2;
}

/* ========================================
   PARTICLES CANVAS
   ======================================== */
.particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease 0.5s;
}

.particles-canvas.is-active {
  opacity: 1;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 4rem);
  z-index: 1;
}

/* ---------- Background Lines ---------- */
.hero__bg-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.line {
  position: absolute;
  background: var(--red);
  opacity: 0.06;
}

.line--1 {
  inline-size: 1px;
  block-size: 40%;
  inset-block-start: 10%;
  inset-inline-start: 15%;
  animation: lineFloat1 8s ease-in-out infinite;
}

.line--2 {
  inline-size: 1px;
  block-size: 55%;
  inset-block-start: 25%;
  inset-inline-end: 20%;
  animation: lineFloat2 10s ease-in-out infinite;
}

.line--3 {
  inline-size: 30%;
  block-size: 1px;
  inset-block-end: 20%;
  inset-inline-start: 35%;
  animation: lineFloat3 12s ease-in-out infinite;
}

@keyframes lineFloat1 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(8px); }
}
@keyframes lineFloat2 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-10px); }
}
@keyframes lineFloat3 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---------- Red Glow ---------- */
.hero__glow {
  position: absolute;
  inline-size: clamp(300px, 40vw, 700px);
  block-size: clamp(300px, 40vw, 700px);
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  inset-block-start: 50%;
  inset-inline-end: 10%;
  transform: translate(30%, -50%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: glowDrift 8s ease-in-out infinite;
}

@keyframes glowDrift {
  0%, 100% { transform: translate(30%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(30%, -50%) scale(1.08); opacity: 1; }
}

/* ---------- Container ---------- */
.hero__container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 1400px;
  inline-size: 100%;
  margin-inline: auto;
}

/* ---------- Content Side ---------- */
.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

/* Greeting */
.hero__greeting {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  color: var(--white-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Name */
.hero__name {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  position: relative;
  display: inline-block;
}

.hero__name::after {
  content: "";
  display: block;
  inline-size: clamp(60px, 8vw, 100px);
  block-size: 4px;
  background: var(--red);
  margin-block-start: 0.3em;
  border-radius: 2px;
  box-shadow: 0 0 12px var(--red-glow);
}

/* Roles */
.hero__roles {
  display: flex;
  align-items: center;
  gap: 0.6em;
  flex-wrap: wrap;
}

.role {
  font-family: var(--font-en);
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.5s ease;
}

.dot {
  color: var(--red);
  font-size: 1.1em;
}

/* Description */
.hero__desc {
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  color: var(--white-muted);
  max-inline-size: 480px;
  line-height: 1.8;
  font-weight: 300;
}

/* Actions wrapper — CTA + Socials */
.hero__actions {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  flex-wrap: wrap;
}

/* ========================================
   CTA BUTTON — Premium Animated Badge
   ======================================== */
.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding: clamp(0.7rem, 1.2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-en);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--red);
  border-radius: 6px;
  cursor: pointer;
  inline-size: fit-content;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px var(--red-glow), 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Light sweep on CTA */
.hero__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.15) 48%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.15) 52%,
    transparent 65%
  );
  transform: translateX(-150%);
  pointer-events: none;
  z-index: 1;
}

.cta__shine {
  display: none;
}

.cta__text {
  position: relative;
  z-index: 2;
}

.arrow {
  position: relative;
  z-index: 2;
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

/* CTA Hover */
.hero__cta:hover {
  background: transparent;
  color: var(--white);
  box-shadow:
    0 0 40px var(--red-glow-strong),
    0 0 80px rgba(229, 9, 20, 0.15),
    0 6px 25px rgba(0, 0, 0, 0.5);
}

.hero__cta:hover::before {
  transform: translateX(150%);
  transition: transform 0.6s ease;
}

.hero__cta:hover .arrow {
  transform: translateX(-5px);
}

/* ========================================
   SOCIAL ICONS — Enhanced Hover
   ======================================== */
.hero__socials {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.2vw, 1rem);
  margin-block-start: clamp(0.25rem, 0.5vw, 0.5rem);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  inline-size: clamp(36px, 3vw, 44px);
  block-size: clamp(36px, 3vw, 44px);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: var(--white-muted);
  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.social-link svg {
  inline-size: 55%;
  block-size: 55%;
  transition: transform 0.3s ease;
}

.social-link:hover {
  color: var(--white);
  border-color: var(--red);
  background: rgba(229, 9, 20, 0.12);
  box-shadow: 0 0 18px var(--red-glow);
  transform: translateY(-4px) scale(1.1);
}

.social-link:hover svg {
  transform: scale(1.1);
}

/* ========================================
   IMAGE — Enhanced with Hover
   ======================================== */
.hero__image-wrapper {
  position: relative;
  flex-shrink: 0;
  inline-size: clamp(240px, 30vw, 420px);
  transition: transform 0.5s ease;
}

.hero__image-wrapper:hover {
  transform: scale(1.02);
}

.hero__image-wrapper:hover .hero__image-frame {
  box-shadow:
    0 0 45px var(--red-glow-strong),
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 30px rgba(229, 9, 20, 0.12);
}

.hero__image-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--red);
  box-shadow:
    0 0 30px var(--red-glow),
    0 20px 60px rgba(0, 0, 0, 0.6),
    inset 0 0 30px rgba(229, 9, 20, 0.08);
  transition: box-shadow 0.5s ease;
}

.hero__image-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(229, 9, 20, 0.2);
  z-index: 2;
  pointer-events: none;
}

.hero__image {
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  transition: filter 0.5s ease;
}

.hero__image-wrapper:hover .hero__image {
  filter: brightness(1.05) contrast(1.02);
}

/* Shine overlay */
.hero__image-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 40%,
    transparent 60%,
    rgba(229, 9, 20, 0.06) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Frame corners */
.frame-corner {
  position: absolute;
  inline-size: 24px;
  block-size: 24px;
  z-index: 3;
  pointer-events: none;
}

.frame-corner::before,
.frame-corner::after {
  content: "";
  position: absolute;
  background: var(--red);
  box-shadow: 0 0 6px var(--red-glow);
}

.frame-corner--tl {
  inset-block-start: -1px;
  inset-inline-start: -1px;
}
.frame-corner--tl::before { inline-size: 24px; block-size: 2px; inset-block-start: 0; inset-inline-start: 0; }
.frame-corner--tl::after  { inline-size: 2px;  block-size: 24px; inset-block-start: 0; inset-inline-start: 0; }

.frame-corner--tr {
  inset-block-start: -1px;
  inset-inline-end: -1px;
}
.frame-corner--tr::before { inline-size: 24px; block-size: 2px; inset-block-start: 0; inset-inline-end: 0; }
.frame-corner--tr::after  { inline-size: 2px;  block-size: 24px; inset-block-start: 0; inset-inline-end: 0; }

.frame-corner--bl {
  inset-block-end: -1px;
  inset-inline-start: -1px;
}
.frame-corner--bl::before { inline-size: 24px; block-size: 2px; inset-block-end: 0; inset-inline-start: 0; }
.frame-corner--bl::after  { inline-size: 2px;  block-size: 24px; inset-block-end: 0; inset-inline-start: 0; }

.frame-corner--br {
  inset-block-end: -1px;
  inset-inline-end: -1px;
}
.frame-corner--br::before { inline-size: 24px; block-size: 2px; inset-block-end: 0; inset-inline-end: 0; }
.frame-corner--br::after  { inline-size: 2px;  block-size: 24px; inset-block-end: 0; inset-inline-end: 0; }

/* Decorative dots near image */
.hero__image-dots {
  position: absolute;
  inset-block-start: -16px;
  inset-inline-end: -24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  opacity: 0.25;
  pointer-events: none;
  animation: dotsPulse 4s ease-in-out infinite;
}

.hero__image-dots span {
  inline-size: 4px;
  block-size: 4px;
  border-radius: 50%;
  background: var(--red);
}

@keyframes dotsPulse {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.4; }
}

/* ========================================
   SCROLL HINT
   ======================================== */
.hero__scroll-hint {
  position: absolute;
  inset-block-end: clamp(1rem, 2vw, 2rem);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-line {
  display: block;
  inline-size: 1px;
  block-size: 40px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========================================
   ANIMATIONS — Hero Entrance
   ======================================== */

/* Reveal up */
.anim-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image fade + scale */
.anim-image {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.anim-image.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Float animation for image */
@keyframes imageFloat {
  0%, 100% { transform: scale(1) translateY(0px); }
  50% { transform: scale(1) translateY(-12px); }
}

/* Stagger delays — controlled by JS data-delay attribute */
.anim-reveal[data-delay="1"] { transition-delay: 0.15s; }
.anim-reveal[data-delay="2"] { transition-delay: 0.3s; }
.anim-reveal[data-delay="3"] { transition-delay: 0.45s; }
.anim-reveal[data-delay="4"] { transition-delay: 0.6s; }
.anim-reveal[data-delay="5"] { transition-delay: 0.75s; }

/* ========================================
   HIRE ME — Inline Button (next to WORK)
   ======================================== */
.hire-me {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: clamp(0.7rem, 1.2vw, 1rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--red);
  border-radius: 6px;
  font-family: var(--font-en);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  inline-size: fit-content;
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  box-shadow: 0 0 20px var(--red-glow), 0 4px 15px rgba(0, 0, 0, 0.4);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease;
}

.hire-me.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Glow pulse */
@keyframes hireGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.2), 0 4px 15px rgba(0, 0, 0, 0.4);
    border-color: rgba(229, 9, 20, 0.6);
  }
  25% {
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.45), 0 0 60px rgba(229, 9, 20, 0.1), 0 4px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 18px rgba(229, 9, 20, 0.25), 0 4px 15px rgba(0, 0, 0, 0.4);
    border-color: rgba(229, 9, 20, 0.65);
  }
  70% {
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.4), 0 0 50px rgba(229, 9, 20, 0.08), 0 4px 20px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
  }
}

/* Light sweep */
.hire-me::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.15) 48%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.15) 52%,
    transparent 65%
  );
  transform: translateX(-150%);
  pointer-events: none;
  z-index: 1;
}

/* Glow element */
.hire-me__glow {
  position: absolute;
  inset: -8px;
  border-radius: 6px;
  background: radial-gradient(
    ellipse at center,
    rgba(229, 9, 20, 0.35) 0%,
    transparent 70%
  );
  opacity: 0.2;
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
}

/* Icon */
.hire-me__icon {
  inline-size: 18px;
  block-size: 18px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.hire-me__text {
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

/* Hover */
.hire-me:hover {
  background: #b00710;
  border-color: #ff1a1a;
  box-shadow:
    0 0 40px var(--red-glow-strong),
    0 0 80px rgba(229, 9, 20, 0.2),
    0 6px 25px rgba(0, 0, 0, 0.6);
  transform: scale(1.05) !important;
}

.hire-me:hover::before {
  transform: translateX(150%);
  transition: transform 0.6s ease;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet & below */
@media (max-width: 900px) {
  .hero__container {
    flex-direction: column-reverse;
    text-align: center;
    gap: clamp(2rem, 5vw, 3rem);
  }

  .hero__content {
    align-items: center;
  }

  .hero__name::after {
    margin-inline: auto;
  }

  .hero__roles {
    justify-content: center;
  }

  .hero__desc {
    text-align: center;
    max-inline-size: 100%;
  }

  .hero__actions {
    justify-content: center;
    gap: clamp(0.75rem, 2vw, 1.25rem);
  }

  .hero__cta {
    margin-inline: auto;
  }

  .hero__socials {
    justify-content: center;
  }

  .hero__image-wrapper {
    inline-size: clamp(200px, 55vw, 320px);
  }

  .hero__glow {
    inset-inline-end: auto;
    inset-inline-start: 50%;
    transform: translate(-50%, -50%);
  }

  .hero__image-dots {
    inset-inline-end: -12px;
  }

  .hero__scroll-hint {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero {
    padding-block: 1.5rem;
    padding-inline: 1rem;
  }

  .hero__greeting {
    font-size: 0.9rem;
  }

  .hero__name {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero__roles {
    gap: 0.35em;
  }

  .role {
    font-size: clamp(0.65rem, 3.2vw, 0.8rem);
  }

  .hero__desc {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    inline-size: 100%;
  }

  .hero__cta,
  .hire-me {
    padding: 0.55rem 1.2rem;
    font-size: 0.78rem;
    inline-size: 100%;
    justify-content: center;
    max-inline-size: 280px;
  }

  .hero__socials {
    gap: 0.4rem;
  }

  .social-link {
    inline-size: 32px;
    block-size: 32px;
  }

  .social-link svg {
    inline-size: 50%;
    block-size: 50%;
  }

  .hero__image-wrapper {
    inline-size: clamp(160px, 55vw, 240px);
  }
}

/* Tiny mobile */
@media (max-width: 360px) {
  .hero {
    padding: 1rem;
  }

  .hero__name {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .hero__roles {
    gap: 0.25em;
  }

  .role {
    font-size: 0.65rem;
  }

  .hero__actions {
    gap: 0.6rem;
  }

  .hero__cta,
  .hire-me {
    padding: 0.5rem 1rem;
    font-size: 0.72rem;
  }

  .social-link {
    inline-size: 28px;
    block-size: 28px;
  }

  .hire-me__icon {
    inline-size: 14px;
    block-size: 14px;
  }
}

/* Large screens */
@media (min-width: 1600px) {
  .hero {
    padding: 5rem;
  }

  .hero__container {
    max-width: 1600px;
    gap: 8rem;
  }

  .hero__image-wrapper {
    inline-size: 480px;
  }
}

/* 4K */
@media (min-width: 2560px) {
  .hero {
    padding: 6rem;
  }

  .hero__container {
    max-width: 2000px;
    gap: 10rem;
  }

  .hero__image-wrapper {
    inline-size: 560px;
  }

  .hero__name {
    font-size: 6.5rem;
  }

  .hire-me {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .anim-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .anim-image {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .anim-image.is-visible {
    animation: none;
  }

  .scroll-line {
    animation: none;
    opacity: 0.5;
  }

  .loader__name,
  .loader__subtitle {
    opacity: 1;
    transform: none;
  }

  .loader__name::after {
    animation: none;
    display: none;
  }

  .loader__ring-outer,
  .loader__ring-inner,
  .loader__center-dot {
    animation: none;
  }

  .loader__canvas {
    display: none;
  }

  .loader::before {
    animation: none;
  }

  .loader::after {
    animation: none;
  }

  .hire-me,
  .hire-me.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hire-me::before {
    animation: none;
    display: none;
  }

  .hire-me__glow {
    animation: none;
    opacity: 0.2;
  }

  .hire-me__icon {
    animation: none;
  }

  .hero__cta {
    animation: none;
  }

  .hero__cta::before {
    animation: none;
    display: none;
  }

  .hero__glow {
    animation: none;
  }

  .line--1,
  .line--2,
  .line--3 {
    animation: none;
  }

  .hero__image-dots {
    animation: none;
  }

  .cta__shine {
    animation: none !important;
  }

  .particles-canvas {
    display: none;
  }
}

/* ========================================
   SELECTION STYLES
   ======================================== */
::selection {
  background: var(--red);
  color: var(--white);
}

::-moz-selection {
  background: var(--red);
  color: var(--white);
}

/* ========================================
   FOCUS VISIBLE
   ======================================== */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
