/* ========================================
   HERO SECTION - PROFESSIONAL PREMIUM DESIGN v2.0
   Design ultra-moderne professionnel avec glassmorphism avancé
   Animations fluides, responsive parfait, accessibilité optimisée
   ======================================== */

:root {
  --gradient-text: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  --gradient-text-strong: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
  --shadow-elevation: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-elevation-high: 0 30px 80px rgba(0, 0, 0, 0.4);
  --blur-light: blur(20px);
  --blur-strong: blur(30px);
}

/* ========================================
   HERO BACKGROUND - ANIMATED GRADIENT ORBS
   ======================================== */

.hero-bg-decoration {
  position: fixed;
  top: 0;
  right: -100px;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(0, 102, 255, 0.2) 0%,
    rgba(0, 102, 255, 0.08) 30%,
    transparent 70%
  );
  border-radius: 50%;
  filter: var(--blur-strong);
  pointer-events: none;
  animation: float 12s ease-in-out infinite;
  z-index: 0;
}

.hero-bg-decoration::before {
  content: "";
  position: absolute;
  bottom: -200px;
  left: 100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 82, 204, 0.15) 0%,
    rgba(0, 82, 204, 0.05) 40%,
    transparent 70%
  );
  border-radius: 50%;
  filter: var(--blur-strong);
  animation: float 15s ease-in-out infinite reverse;
}

/* ========================================
   TYPOGRAPHY - OPTIMISÉ PROFESSIONNEL
   ======================================== */

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero h1 {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.9) 50%,
    #e8e8f0 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 0;
  word-spacing: 0.1em;
  animation: slideInDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.75)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  letter-spacing: 0.8px;
  margin: 0;
  animation: fadeInUp 1s ease 0.2s both;
}

/* ========================================
   BADGE - GLASSMORPHISM AVANCÉ
   ======================================== */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.15), 0 0 40px rgba(0, 102, 255, 0.05);
  animation: slideInDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hero-badge:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2),
    0 12px 48px rgba(0, 0, 0, 0.2), 0 0 60px rgba(0, 102, 255, 0.12);
  transform: translateY(-2px);
}

.badge-icon {
  font-size: 1.3rem;
  display: inline-block;
  animation: bounce 2.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.badge-text {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   DESCRIPTION - TEXTE RICHE
   ======================================== */

.hero-description {
  font-size: 1.1rem;
  margin: 0;
  opacity: 0.9;
  line-height: 1.85;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.85);
  animation: fadeInUp 1s ease 0.3s both;
  font-weight: 500;
}

.hero-description strong {
  color: rgba(255, 255, 255, 0.99);
  font-weight: 800;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.2px;
}

.hero-description em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

/* ========================================
   FEATURES - CARTES MODERNES AVANCÉES
   ======================================== */

.hero-features {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s both;
  margin: 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  font-weight: 700;
  padding: 1.15rem 1.8rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  font-size: 0.98rem;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  cursor: default;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 4px 16px rgba(0, 0, 0, 0.1);
}

.feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
  z-index: 1;
}

.feature-item:hover::before {
  left: 100%;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.15),
    0 12px 32px rgba(0, 102, 255, 0.18), 0 0 30px rgba(0, 102, 255, 0.08);
}

.feature-icon {
  font-size: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  line-height: 1;
}

.feature-text {
  color: rgba(255, 255, 255, 0.97);
  position: relative;
  z-index: 2;
}

/* ========================================
   BUTTONS - CTA PROFESSIONNEL
   ======================================== */

.hero-buttons {
  display: flex;
  gap: 1.3rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.5s both;
  margin: 0;
}

.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 1.1rem 2.4rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.3px;
  text-decoration: none;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.15);
  transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.btn:hover::before {
  left: 100%;
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
  color: #0066ff;
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(0, 102, 255, 0.15);
  position: relative;
  z-index: 2;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(255, 255, 255, 0.35),
    0 0 50px rgba(0, 102, 255, 0.25), inset 0 0 0 1px rgba(0, 102, 255, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
}

.btn-primary:active {
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  position: relative;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15),
    0 10px 32px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25),
    0 15px 48px rgba(0, 102, 255, 0.2), 0 0 40px rgba(0, 102, 255, 0.1);
  color: #ffffff;
}

.btn-outline:active {
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 1.3rem;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 2;
}

.btn:hover .btn-icon {
  transform: scale(1.2) rotate(12deg);
}

.btn-primary:hover .btn-icon {
  animation: bounce 0.6s ease;
}

.btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

/* ========================================
   CTA - SCROLL INDICATOR AMÉLIORÉ
   ======================================== */

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  opacity: 0.85;
  animation: fadeInUp 1s ease 0.6s both;
}

.cta-text {
  font-size: 0.95rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.scroll-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 8px 24px rgba(0, 0, 0, 0.1);
}

.scroll-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  z-index: 1;
}

.scroll-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.scroll-link:hover::after {
  opacity: 1;
}

.scroll-link:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2),
    0 16px 40px rgba(0, 102, 255, 0.25), 0 0 40px rgba(0, 102, 255, 0.1);
}

.scroll-icon {
  font-size: 1.4rem;
  animation: slideDown 2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  position: relative;
  z-index: 2;
}

/* ========================================
   PROFILE CARD - GLASSMORPHISM PREMIUM
   ======================================== */

.hero-image {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
  justify-content: center;
}

.profile-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.06) 100%
  );
  backdrop-filter: var(--blur-strong);
  -webkit-backdrop-filter: var(--blur-strong);
  border-radius: 28px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  padding: 2.8rem;
  animation: fadeInRight 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.15),
    0 25px 70px rgba(0, 0, 0, 0.25), 0 0 60px rgba(0, 102, 255, 0.12);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-card:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2),
    0 35px 100px rgba(0, 0, 0, 0.3), 0 0 80px rgba(0, 102, 255, 0.18);
}

.card-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(0, 102, 255, 0.25) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(0, 82, 204, 0.2) 0%,
      transparent 50%
    );
  pointer-events: none;
  opacity: 0.8;
}

.card-gradient {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: shimmer 5s ease-in-out infinite;
  pointer-events: none;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.7rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fadeInUp 0.8s ease backwards;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.1);
}

.stat-item:nth-child(1) {
  animation-delay: 0.15s;
}
.stat-item:nth-child(2) {
  animation-delay: 0.25s;
}
.stat-item:nth-child(3) {
  animation-delay: 0.35s;
}
.stat-item:nth-child(4) {
  animation-delay: 0.45s;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-6px) scale(1.02);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.15),
    0 16px 40px rgba(0, 102, 255, 0.2), 0 0 40px rgba(0, 102, 255, 0.1);
}

.stat-item .number {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, 1);
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.stat-item .label {
  font-size: 0.82rem;
  opacity: 0.9;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
}

.stat-item .sublabel {
  font-size: 0.72rem;
  opacity: 0.7;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* ========================================
   TECH STACK - BADGES TECHNOLOGIQUES
   ======================================== */

.hero-tech-stack {
  width: 100%;
  animation: fadeInUp 1s ease 0.6s both;
}

.tech-label {
  font-size: 0.88rem;
  opacity: 0.85;
  margin: 0 0 1.2rem 0;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.9);
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
}

.tech-badge {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.97);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: var(--blur-light);
  -webkit-backdrop-filter: var(--blur-light);
  cursor: default;
  position: relative;
  letter-spacing: 0.4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.1);
  text-transform: capitalize;
}

.tech-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tech-badge:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-4px) scale(1.08);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.18),
    0 12px 32px rgba(0, 102, 255, 0.22), 0 0 30px rgba(0, 102, 255, 0.1);
}

.tech-badge:hover::before {
  opacity: 1;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideDown {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(12px);
  }
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-30px) translateX(20px);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* ========================================
   RESPONSIVE - TABLETS (968px max)
   ======================================== */
@media (max-width: 968px) {
  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-container {
    padding: 2rem 1.5rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
  }

  .hero-bg-decoration {
    width: 600px;
    height: 600px;
    right: -150px;
    top: 50px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }

  .hero .subtitle {
    font-size: 1.2rem;
  }

  .hero-description {
    font-size: 1.05rem;
    max-width: 100%;
  }

  .hero-badge {
    padding: 0.75rem 1.4rem;
    font-size: 0.9rem;
  }

  .hero-features {
    gap: 1rem;
  }

  .feature-item {
    padding: 1rem 1.3rem;
    font-size: 0.95rem;
  }

  .hero-buttons {
    gap: 1rem;
  }

  .btn {
    padding: 1rem 2rem;
    font-size: 0.98rem;
  }

  .hero-image {
    gap: 2rem;
  }

  .profile-card {
    max-width: 380px;
    padding: 2.2rem;
  }

  .profile-stats {
    gap: 1.2rem;
  }

  .stat-item {
    padding: 1.2rem;
  }

  .stat-item .number {
    font-size: 1.8rem;
  }

  .hero-tech-stack {
    margin-top: 1.5rem;
  }

  .tech-badge {
    padding: 0.65rem 1.3rem;
    font-size: 0.85rem;
  }
}

/* ========================================
   RESPONSIVE - MOBILES (576px max)
   ======================================== */
@media (max-width: 576px) {
  .hero {
    min-height: auto;
    padding: 1.5rem 0;
  }

  .hero-container {
    padding: 1.5rem 1rem;
  }

  .hero-content {
    gap: 2rem;
  }

  .hero-bg-decoration {
    width: 450px;
    height: 450px;
    right: -150px;
    top: -100px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 0.3rem;
  }

  .hero .subtitle {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }

  .hero-badge {
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    margin-bottom: 1rem;
  }

  .badge-icon {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 0.98rem;
    margin-bottom: 1.2rem;
    max-width: 100%;
  }

  .hero-features {
    gap: 0.8rem;
    flex-direction: column;
    width: 100%;
    margin: 1.2rem 0;
  }

  .feature-item {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 0.92rem;
  }

  .feature-icon {
    font-size: 1.3rem;
    min-width: 32px;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.9rem;
    margin: 1.5rem 0;
  }

  .btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-size: 0.95rem;
    justify-content: center;
  }

  .hero-cta {
    margin-top: 1.5rem;
    gap: 0.8rem;
  }

  .cta-text {
    font-size: 0.9rem;
  }

  .scroll-link {
    width: 48px;
    height: 48px;
  }

  .scroll-icon {
    font-size: 1.2rem;
  }

  .profile-card {
    max-width: 100%;
    padding: 1.8rem;
    margin-top: 1.5rem;
  }

  .profile-stats {
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem;
    border-radius: 12px;
  }

  .stat-item .number {
    font-size: 1.7rem;
  }

  .stat-item .label {
    font-size: 0.78rem;
  }

  .stat-item .sublabel {
    font-size: 0.68rem;
  }

  .hero-image {
    gap: 1.5rem;
  }

  .hero-tech-stack {
    margin-top: 1.2rem;
  }

  .tech-label {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .tech-badges {
    gap: 0.6rem;
  }

  .tech-badge {
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }
}

/* ========================================
   RESPONSIVE - ULTRA-SMALL DEVICES (375px max)
   ======================================== */
@media (max-width: 375px) {
  .hero-container {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 1.6rem;
    letter-spacing: -0.8px;
  }

  .hero .subtitle {
    font-size: 0.95rem;
  }

  .hero-description {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .hero-description strong {
    font-weight: 800;
  }

  .feature-item {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    gap: 0.8rem;
  }

  .feature-icon {
    font-size: 1.2rem;
    min-width: 28px;
  }

  .btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    gap: 0.6rem;
  }

  .btn-icon {
    font-size: 1.1rem;
  }

  .btn-text {
    font-size: 0.9rem;
  }

  .tech-badge {
    padding: 0.48rem 0.9rem;
    font-size: 0.75rem;
  }

  .stat-item .number {
    font-size: 1.5rem;
  }

  .stat-item .label {
    font-size: 0.7rem;
    letter-spacing: 0.3px;
  }

  .scroll-link {
    width: 44px;
    height: 44px;
  }

  .scroll-icon {
    font-size: 1.1rem;
  }
}

/* ========================================
   LANDSCAPE MODE OPTIMIZATION
   ======================================== */
@media (max-height: 700px) {
  .hero {
    min-height: 90vh;
  }

  .hero-bg-decoration {
    top: -50px;
  }

  .hero h1 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
    margin-bottom: 0.8rem;
  }

  .hero-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .hero-features {
    margin: 0.8rem 0;
  }

  .hero-buttons {
    margin: 0.8rem 0;
  }

  .hero-cta {
    margin-top: 1rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
  }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */
@media (prefers-color-scheme: dark) {
  .hero {
    background: linear-gradient(
      135deg,
      rgba(0, 10, 40, 0.98) 0%,
      rgba(10, 20, 50, 0.99) 100%
    );
  }

  .profile-card:hover {
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2),
      0 35px 100px rgba(0, 0, 0, 0.35), 0 0 80px rgba(0, 102, 255, 0.2);
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.btn:focus-visible,
.scroll-link:focus-visible,
.tech-badge:focus-visible,
.hero-badge:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.8);
  outline-offset: 2px;
}

@media (prefers-contrast: more) {
  .hero-badge {
    border-width: 2px;
  }

  .stat-item {
    border-width: 2px;
  }

  .tech-badge {
    border-width: 2px;
    font-weight: 800;
  }
}
