/* ===========================
      HERO SECTION
=========================== */
.hero {
  padding: 20px 0 60px;
}

/* Badge */
.badge-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: #e0f2fe;
  color: #0369a1;
  font-size: 13px;
  font-weight: 500;
}

/* Title & Text */
.hero-title {
  font-size: 42px;
  font-weight: 700;
  margin-top: 15px;
}

.hero-highlight {
  color: #0ea5e9;
}

.hero-typed-text {
  display: inline-block;
  min-width: 1ch;
  padding-right: 4px;
  border-right: 2px solid #0ea5e9;
  white-space: nowrap;
  animation: heroCursorBlink 0.8s steps(1) infinite;
}

@keyframes heroCursorBlink {
  0%,
  49% {
    border-right-color: #0ea5e9;
  }

  50%,
  100% {
    border-right-color: transparent;
  }
}

.hero-sub {
  font-size: 18px;
  color: #4b5563;
  max-width: 470px;
  margin-top: 10px;
}

/* ===========================
   ROUND SOCIAL ICONS
=========================== */
.hero-round-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Icon base */
.round-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: 0.35s ease;
  position: relative;
  overflow: hidden;
  animation: floatIcons 4s ease-in-out infinite;
}

/* Hover */
.round-icon:hover {
  transform: translateY(-6px) scale(1.12);
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.round-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(14,165,233,0.35);
  opacity: 0;
  transition: 0.35s ease;
}

.round-icon:hover::after {
  box-shadow: 0 0 14px 5px rgba(14,165,233,0.2);
  opacity: 1;
}

/* Floating */
@keyframes floatIcons {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Icon colors */
.linkedin i { color: #0a66c2; }
.facebook i { color: #1877f2; }
.youtube i  { color: #ff0000; }
.github i   { color: #111; }

/* ===========================
      CTA BUTTONS
=========================== */
.btn-main {
  padding: 10px 24px;
  border-radius: 999px;
  font-weight: 600;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #ffffff;
  border: none;
}

.btn-secondary {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid #0ea5e9;
  color: #0ea5e9;
  font-weight: 500;
}

.btn-secondary:hover {
  background: #e0f2fe;
}

.btn-main,
.btn-secondary,
.hero-round-icons a {
  text-decoration: none !important;
}

/* ===========================
      HERO IMAGE
=========================== */
.hero-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 420 / 550;
  margin: 0 auto;
}

.hero-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,140,255,0.3) 0%, transparent 70%);
  filter: blur(30px);
  z-index: -1;
}

/* Image */
.hero-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  animation: fadeIn 1.2s ease forwards, floatSmooth 6s ease-in-out infinite;
  animation-delay: .2s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* ===========================
      TECH BADGES
=========================== */
.tech-badge {
  position: absolute;
  padding: 6px 14px;
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #0ea5e9;
  box-shadow: 0 4px 20px rgba(14,165,233,0.15);
  opacity: 0;
  animation: fadeIn 1.2s ease forwards, floatSmooth 6s ease-in-out infinite;
}

/* Desktop positions */
.react { top: 5%; right: 65%; animation-delay: .4s; }
.node  { top: 15%; right: 5%; animation-delay: .6s; }
.js    { bottom: 45%; left: 5%; animation-delay: .8s; }
.mongo { bottom: 28%; right: 10%; animation-delay: 1s; }
.code  { bottom: 10%; left: 40%; animation-delay: 1.2s; }

/* ===========================
      RESPONSIVE
=========================== */
@media (max-width: 992px) {
  .hero-title { font-size: 36px; }
}

@media (max-width: 768px) {
  .hero {
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-round-icons {
    justify-content: center;
  }

  .hero-wrapper {
    max-width: 340px;
    margin-top: 30px;
  }

  /* Hide floating badges on small screens */
  /* .tech-badge {
    display: none;
  } */

  /* FIX: Show hero badge properly on mobile */
  .badge-role {
    margin: 0 auto 12px;
    display: inline-flex;
  }
   .hero .mt-4.d-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .hero .btn-main,
  .hero .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 30px; }
  .hero-sub { font-size: 16px; }

  .round-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .hero-wrapper {
    max-width: 280px;
  }

  .hero .mt-4.d-flex {
    gap: 10px; /* softer vertical spacing */
  }

  .hero .btn-main,
  .hero .btn-secondary {
    width: 100%;
    max-width: 260px;   /* prevents edge-to-edge ugly look */
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;    /* only text size adapts */
  }
  .js {
    bottom: 45%;
    left: -5%;
    animation-delay: .8s;
}

.code {
    bottom: 10%;
    left: 25%;
    animation-delay: 1.2s;
}

.mongo {
    bottom: 20%;
    right: -1%;
    animation-delay: 1s;
}

.tech-badge {
    padding: 4px 9px;
    font-size: 9px;
}
}
