/* Global reset and base styles */
* {
  box-sizing: border-box;
}

html {
  background: #3A41C6;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  box-sizing: border-box;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: #ffffff;

  /* Animated gradient background */
  background: linear-gradient(
    -45deg,
    #23d5ab,
    #23a6d5,
    #3A41C6,
    #8E54E9
  );

  background-size: 400% 400%;
  animation: gradient 15s ease infinite;

  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 100vh;
}

@supports (-webkit-touch-callout: none) {
  body {
    padding-bottom: calc( env(safe-area-inset-bottom) + 10vh);
    min-height: 110vh;
  }
}

/* Container styling */
.card {
  max-width: 800px;
  margin: 0 20px;
  text-align: center;
}

/* Typography styles */
h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0.5rem 0;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0.5rem 0 1.5rem;
  color: #dddddd;
}

p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.5rem 0;
}

a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

/* Icons inside links */
.bi {
  font-size: 1.2em;
  vertical-align: middle;
  margin-right: 0.4em;
}

/* Subtle text shadow for contrast */
.card h1,
.card h2,
.card p {
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
  cursor: default;
}

/* Fade-in-up effect */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* Blinking cursor for tagline */
#tagline::after {
  content: '|';
  display: inline-block;
  margin-left: 4px;
  opacity: 1;
  animation: blink 0.8s steps(2, start) infinite;
}

/* Remove cursor after typing */
#tagline.done::after {
  content: '';
}

/* Instagram profiles */
.social-profiles {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.social-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.social-profile:hover {
  /* text-decoration: none; */
}

.social-profile-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.social-profile:hover .social-profile-photo {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.social-profile-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.social-profile-name .bi-instagram {
  font-size: 1.1rem;
  margin-right: 0;
}

/* Keyframe animations */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

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

  50.01%,
  100% {
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animate the name and role on page load */
#name {
  animation: fadeInUp 0.8s ease both;
  animation-delay: 0.25s;
}

#role {
  animation: fadeInUp 0.8s ease both;
  animation-delay: 1.05s;
}
