/**
 * =========================
 *    HERO CONTAINER
 * =========================
 *
 * @format
 */

.FirstElement {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%; /* Make container full-width */
  max-width: 1200px; /* Limit max width for large screens */
  margin: auto;

  padding: 5rem 20px 3rem;
  gap: 3rem;
  box-sizing: border-box; /* Prevent overflow */
}

/* =========================
   PROFILE TEXT
========================= */

.profile-text {
  flex: 1; /* Text takes available space */
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Greeting */

.profile-text h1 {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--off-white-base);
}

/* Typing Name Styling */
.typing {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(
    90deg,
    var(--royal-yellow-base),
    var(--deep-saffron-base),
    var(--off-white-light)
  );
  -webkit-background-clip: text;
  color: transparent;
  font-family: "Courier New", Courier, monospace;
  position: relative;
  width: fit-content;
}

/* Blinking cursor */
.typing::after {
  content: "|";
  position: absolute;
  right: -18px;
  animation: blinkCursor 0.7s step-start infinite;
  color: var(--royal-yellow-base);
}

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

/* Role */
.hero-role {
  font-size: 1rem;
  font-weight: 500;
  color: var(--soft-gray-light);
}
.hero-role span {
  color: var(--off-white-light);
  padding: 0 6px;
}

/* Paragraphs */
.profile-text p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--soft-gray-light);
}

/* Highlight text */
.profile-text strong {
  color: var(--royal-yellow-light);
  font-weight: 600;
}

/* =========================
   PROFILE IMAGE
========================= */

.profile-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  perspective: 1000px;
  flex-shrink: 0; /* Prevent shrinking on small screens */
  margin: auto;
}

/* Gradient circular ring */
.profile-photo::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  width: 500px;
  height: 600px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--deep-navy-light),
    var(--trust-blue-base),
    var(--trust-blue-dark),
    var(--trust-blue-light)
  );
  filter: blur(25px);
  z-index: 0;
  animation: rotateRing 10s linear infinite;
  opacity: 0.7;
}

@keyframes rotateRing {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Profile image */
.profile-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  transition:
    transform 0.6s ease,
    filter 0.6s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.profile-photo img:hover {
  transform: scale(1.05) rotateY(10deg) rotateX(3deg);
  filter: brightness(1.1);
}

/* Pulsing inner glow */
.profile-photo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.15),
    transparent 60%
  );
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.3;
  }
}
/* Overlay Text */
.profile-photo .hover-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--off-white-light);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2;
}

/* Show text on hover */
.profile-photo:hover .hover-text {
  opacity: 1;
}

/* =========================
   BUTTON GROUP
========================= */

.btn-group {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.btn-group .btn {
  padding: 12px 28px;
  border-bottom-right-radius: 40px;
  border-top-left-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  color: var(--off-white-light);
  background: linear-gradient(
    135deg,
    var(--trust-blue-base),
    var(--deep-navy-light)
  );
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.btn-group .btn:hover {
  transform: translateY(-4px);
  background: linear-gradient(
    135deg,
    var(--royal-yellow-base),
    var(--deep-saffron-base)
  );
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* =========================
   SOCIAL ICONS
========================= */

.social {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

.social a i {
  font-size: 18px;
  color: var(--soft-gray-light);
}

.social a:hover {
  transform: translateY(-4px);
  background: var(--trust-blue-base);
}

.social a:hover i {
  color: white;
}

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

/* Large Tablets / Medium Screens */
@media (max-width: 992px) {
  .FirstElement {
    flex-direction: column;
    text-align: center;
    padding: 4rem 20px 2.5rem;
    gap: 2.5rem;
  }
  .profile-text {
    align-items: center;
    max-width: 90%;
  }
  .profile-photo {
    width: 260px;
    height: 260px;
  }
  .typing {
    font-size: 2.5rem;
  }
  .profile-text p {
    font-size: 15px;
  }
  .btn-group {
    justify-content: center;
  }
}

/* Tablets / Small Laptops */
@media (max-width: 768px) {
  .FirstElement {
    gap: 2rem;
    padding-top: 3.5rem;
  }
  .profile-photo {
    width: 230px;
    height: 230px;
  }
  .typing {
    font-size: 2.2rem;
  }
  .profile-text p {
    font-size: 14px;
    line-height: 1.5;
  }
  .btn-group {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 0.8rem;
  }
  .btn-group .btn {
    width: 80%;
  }
  .social {
    justify-content: center;
  }
}

/* Small Phones */
@media (max-width: 580px) {
  .FirstElement {
    gap: 1.8rem;
    padding-top: 3rem;
    padding-bottom: 2rem;
  }
  .profile-photo {
    width: 200px;
    height: 200px;
  }
  .typing {
    font-size: 1.9rem;
  }
  .profile-text p {
    font-size: 13.5px;
    line-height: 1.5;
    padding: 0 12px;
  }
  .btn-group .btn {
    width: 90%;
    font-size: 14px;
  }
  .social a {
    width: 36px;
    height: 36px;
  }
  .social a i {
    font-size: 16px;
  }
}

/* Extra Small Phones */
@media (max-width: 350px) {
  .profile-photo {
    width: 170px;
    height: 170px;
  }

  .typing {
    font-size: 1.6rem;
  }

  .profile-text p {
    font-size: 13px;
  }
  .btn-group .btn {
    width: 95%;
    padding: 10px 16px;
    font-size: 13px;
  }
  .social a {
    width: 32px;
    height: 32px;
  }
  .social a i {
    font-size: 15px;
  }
}
