/* Hero Section Layout */
.hero-section {
  min-height: 92vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(180deg, #124170, #67C090);
  color: #DDF4E7;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Left Content */
.hero-left { flex: 1; }

.intro-text {
  font-size: 0.9rem;
  color: #cbd5e0;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.hero-left h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.highlight-name {
  font-weight: 800;
  color: #DDF4E7;
  overflow: hidden;
  border-right: 0.15em solid #67C090;
  white-space: nowrap;
  display: inline-block;
  width: 0ch;
  animation: typing 3s steps(20, end) forwards, blink 0.8s infinite;
}

.role-title {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #529872, #c5ffe0, #529872);
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  animation: shimmer 2s linear infinite;
}

.description {
  max-width: 500px;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateX(-50px);
  animation: slideIn 4s ease forwards;
}

/* Buttons */
.button-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline {
  width: 110px;
  border: 2px solid #001933;
  background: transparent;
  color: #001933;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center; /* ✅ centers text horizontally */
}

.btn-outline:hover {
  background: #185795;
  color: #DDF4E7;
  border: 2px solid #185795;
}



/* New Download Button */
.btn-4 {
  --width: 160px;
  --height: 50px;
  --tooltip-height: 30px;
  --tooltip-width: 100px;
  --gap-between-tooltip-to-button: 18px;
  --button-color: #001933;
  --tooltip-color: #DDF4E7;
  width: var(--width);
  height: var(--height);
  background: var(--button-color);
  text-align: center;
  border-radius: 32px;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
  text-decoration: none; /* fixes anchor underline */
  display: inline-block;
}

.btn-4::before {
  position: absolute;
  content: attr(data-tooltip);
  width: var(--tooltip-width);
  height: var(--tooltip-height);
  background-color: var(--tooltip-color);
  font-size: 16px;
  color: #001933;
  border-radius: 6px;
  line-height: var(--tooltip-height);
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) + 10px);
  left: calc(50% - var(--tooltip-width) / 2);
}

.btn-4::after,
.btn-4::before {
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}

.btn-4 .text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-4 .button-wrapper,
.btn-4 .text,
.btn-4 .icon {
  overflow: hidden;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  color: #DDF4E7;
}

.btn-4 .text {
  top: 0;
}

.btn-4 .text,
.btn-4 .icon {
  transition: top 0.5s;
}

.btn-4 .icon {
  color: #DDF4E7;
  top: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-4 .icon svg {
  width: 24px;
  height: 24px;
}

.btn-4:hover {
  background: #185795;
}

.btn-4:hover .text {
  top: -100%;
}

.btn-4:hover .icon {
  top: 0;
}

.btn-4:hover:before,
.btn-4:hover:after {
  opacity: 1;
  visibility: visible;
}

.btn-4:hover:after {
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button) - 20px);
}

.btn-4:hover:before {
  bottom: calc(var(--height) + var(--gap-between-tooltip-to-button));
}


/* Social Icons */
.social-icons a {
  margin-right: 1rem;
  font-size: 1.5rem;
  color: #DDF4E7;
  transition: color 0.3s;
}

.social-icons a:hover { color: #67C090; }

/* Right Illustration */
.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-img-container {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  padding: 5px;
  transition: box-shadow 0.5s ease;
  perspective: 1000px;
}

.hero-img-container:hover {
  background: linear-gradient(135deg, #67C090, #002145);

  box-shadow: 0 15px 30px rgba(103, 192, 144, 0.4);
}

.hero-img-container img.hero-illustration {
  width: 310px;
  height: 310px;
  border-radius: 50%;
  border: 10px solid rgba(103, 192, 144, 0.8);
  box-shadow: 0 8px 25px rgba(103, 192, 144, 0.5);
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  filter: none; 

}

.hero-img-container:hover img.hero-illustration {
  transform: scale(1.05);
}

/* Glow & Shapes */
.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: all 0.2s ease;
  z-index: 1;

}

.abstract-shapes {
  position: absolute;
  top: -30px;
  left: -40px;
  height: 400px;
  background: radial-gradient(circle at 30% 30%, #67C090, transparent 70%),
              radial-gradient(circle at 70% 70%, #67C090, transparent 70%);
  filter: blur(80px);
  border-radius: 50%;
  z-index: 0;
}

/* Scroll Down Arrow */
/* .down-arrow {
  position: absolute; 
  bottom: 20px;   
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  font-size: 1rem;
  color: #DDF4E7;
  background-color: #001933;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: bounce 1.5s infinite;
  border: none;
  z-index: 1000;
} */

/* .down-arrow:hover {
  background: #DDF4E7;
  color: #001933;
} */


@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,-10px); } }

/* Animations */
@keyframes typing { from { width: 0ch; } to { width: 15ch; } }
@keyframes blink { 50% { border-color: transparent; } }
@keyframes shimmer { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }
@keyframes slideIn { to { opacity: 1; transform: translateX(0); } }

/* Responsive */
@media (max-width: 865px) {
  .hero-container { flex-direction: column; text-align: center; padding-top: 70px; }
  .hero-left, .hero-right { flex: unset; }
  .description { margin: 1rem auto; }
  /* .down-arrow { bottom: -33%;} */
  .button-group { justify-content: center; }
  .hero-illustration { width: 260px; height: 260px; }
  .hero-right { margin-bottom: 4rem; }
}

/* @media (max-width: 450px) {
  .down-arrow { bottom: -3%;}
} */

/* Responsive for small mobile devices (360px width) */
@media (max-width: 430px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 70px;
  }

  .hero-left, .hero-right {
    flex: unset;
    width: 100%;
  }

  .hero-left h1 {
    font-size: 1.8rem;
  }

  .highlight-name {
    font-size: 1.6rem;
  }

  .role-title {
    font-size: 1.5rem;
  }

  .intro-text, .description {
    font-size: 0.85rem;
    line-height: 1.3;
    max-width: 95%;
    margin: 0.8rem auto;
  }

  .button-group {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .btn, .btn-outline {
    font-size: 0.85rem;
    padding: 0.9rem 1rem;
    width: 7rem;
  }
  .btn-4{
    font-size: 0.85rem;
  }

  .hero-img-container img.hero-illustration {
    width: 180px;
    height: 180px;
    border-width: 6px;
  }

  .hero-right {
    margin-top: 2rem;
  }

  .glow {
    width: 200px;
    height: 200px;
  }

  .abstract-shapes {
    height: 250px;
    top: -20px;
    left: -20px;
    filter: blur(50px);
  }
}
