/* Hello to Mohammad from Hostinger */

@font-face {
  font-family: 'Space Grotesk';
  src: url('SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
}

::selection {
  background: rgba(255, 255, 255, 0.3);
}

/* Desktop: centered layout without scroll */
@media (min-width: 769px) {
  body {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
}

canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
}

/* Header section with title and tagline */
.header-section {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 4vh;
  padding: 0 20px;
}

/* Desktop: adjust header positioning */
@media (min-width: 769px) {
  .header-section {
    margin-top: 0;
    margin-bottom: 3vh;
  }
}

.main-title {
  display: inline-block;
  font-size: 4rem;
  font-weight: 600;
  color: #fafafa;
  margin: 0 0 15px 0;
  background: linear-gradient(135deg, #fafafa, #b19cd9, #a077ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
  letter-spacing: 3px;
}

.rotating-tagline {
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  height: 60px; /* Fixed height to prevent layout shift */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
  line-height: 1.4;
}

.rotating-tagline.fade-out {
  opacity: 0;
}

/* Cards container */
.cards-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 2vh auto 3vh;
  padding: 20px;
  flex-wrap: wrap;
}

/* Desktop: tighter spacing for centered layout */
@media (min-width: 769px) {
  .cards-container {
    margin: 2vh auto 2vh;
  }
}

/* Individual profile card */
.profile-card {
  color: #fafafa;
  text-align: center;
  padding: 40px 30px;
  width: 280px;

  /* Glass card effect from css.glass */
  background: rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(3.4px);
  -webkit-backdrop-filter: blur(3.4px);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  @media (hover: hover) and (pointer: fine) {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
  }
}

/* Profile picture */
.profile-picture {
  margin: 0 auto 30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  pointer-events: none;
  user-select: none;
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-card h2 {
  margin: 0 0 8px 0;
  font-size: 1.8rem;
  font-weight: 400;
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}

.profile-card p {
  margin: 0 0 25px 0;
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

/* Social icons */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fafafa;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

.social-icon:hover {
  @media (hover: hover) and (pointer: fine) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
}

/* Call to Action Section */
.cta-section {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 3vh;
  margin-bottom: 5vh;
  padding: 0 20px;
}

/* Desktop: tighter spacing for centered layout */
@media (min-width: 769px) {
  .cta-section {
    margin-top: 2vh;
    margin-bottom: 0;
  }
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  font-size: 1.2rem;
  font-weight: 500;
  color: #fafafa;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(7.4px);
  -webkit-backdrop-filter: blur(7.4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 1px;
}

.cta-button:hover {
  @media (hover: hover) and (pointer: fine) {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.15);
  }
}

/* Responsive design */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
  }

  .header-section {
    margin-top: 3vh;
    margin-bottom: 2vh;
    padding: 0 15px;
  }

  .main-title {
    font-size: 2rem;
    margin: 0 0 10px 0;
    letter-spacing: 1px;
  }

  .rotating-tagline {
    font-size: 0.95rem;
    height: 45px; /* Fixed height for mobile */
    padding: 0 10px;
  }

  .cards-container {
    flex-direction: column;
    gap: 20px;
    margin: 1vh 15px 2vh;
    padding: 10px;
  }

  .profile-card {
    width: 100%;
    max-width: 280px;
    padding: 20px 15px;
  }

  .profile-card h2 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
  }

  .profile-card p {
    font-size: 0.85rem;
    margin: 0 0 15px 0;
  }

  .profile-picture {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
  }

  .social-links {
    gap: 12px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }

  .social-icon svg {
    width: 18px;
    height: 18px;
  }

  .cta-section {
    margin-top: 1vh;
    margin-bottom: 3vh;
    padding: 0 15px;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 1rem;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  body {
    min-height: 100svh;
  }

  .header-section {
    margin-top: 2vh;
    margin-bottom: 1.5vh;
    padding: 0 10px;
  }

  .main-title {
    font-size: 1.8rem;
    letter-spacing: 0.5px;
  }

  .rotating-tagline {
    font-size: 0.9rem;
    height: 40px; /* Fixed height for small screens */
  }

  .cards-container {
    gap: 15px;
    margin: 1vh 10px 1.5vh;
    padding: 5px;
  }

  .profile-card {
    max-width: 260px;
    padding: 15px 10px;

    @media (hover: none), (pointer: coarse) {
      padding-top: 24px;
    }
  }

  .profile-card h2 {
    font-size: 1rem;
  }

  .profile-card p {
    font-size: 0.8rem;
  }

  .profile-picture {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
  }

  .social-links {
    gap: 10px;
  }

  .social-icon {
    width: 35px;
    height: 35px;
  }

  .social-icon svg {
    width: 16px;
    height: 16px;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

.background::before,
.background::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  mix-blend-mode: color;
  content: '';
}

.background::before {
  background: #000;
  opacity: 0.5;

  filter: url(#f);
}

.background::after {
  scale: 1;
  background: radial-gradient(
      ellipse at top right,
      rgb(107, 23, 192),
      transparent
    ),
    radial-gradient(ellipse at top left, #fafafa64, transparent),
    radial-gradient(ellipse at bottom right, #fafafa64, transparent),
    radial-gradient(ellipse at bottom left, purple, transparent);
}

.background svg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
}
