@import url("https://fonts.googleapis.com/css2?family=Mona+Sans:wght@200;300;400;500;600;700;800;900&display=swap");
@import url("https://fonts.cdnfonts.com/css/sf-pro-display");

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont,
  sans-serif;
}

/* Mona Sans for titles and headers */
h1,
h2,
h3,
h4,
h5,
h6,
.nav-link,
.text-gradient,
.text-gradient-light,
.footer h3 {
  font-family: "SF Pro Display", sans-serif;
}

/* Hero background with gradient only on top portion */
.hero-bg {
  background: linear-gradient(
          180deg,
          rgba(173, 216, 230, 0.4) 0%,
          rgba(221, 160, 221, 0.3) 20%,
          rgba(255, 182, 193, 0.3) 40%,
          rgba(255, 218, 185, 0.2) 60%,
          rgba(240, 248, 255, 0.1) 80%,
          transparent 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -30%;
  width: 160%;
  height: 100%;
  background: radial-gradient(
          ellipse at 30% 20%,
          rgba(173, 216, 230, 0.21) 0%,
          transparent 70%
  ),
  radial-gradient(
          ellipse at 70% 10%,
          rgba(221, 160, 221, 0.13) 0%,
          transparent 70%
  ),
  radial-gradient(
          ellipse at 20% 40%,
          rgba(255, 182, 193, 0.12) 0%,
          transparent 60%
  ),
  radial-gradient(
          ellipse at 80% 30%,
          rgba(255, 218, 185, 0.16) 0%,
          transparent 60%
  );
  animation: float-shapes 15s ease-in-out infinite;
}

/* Footer background */
.footer-bg {
  rotate: 180deg;
  background: linear-gradient(
          180deg,
          rgba(173, 216, 230, 0.4) 0%,
          rgba(221, 160, 221, 0.2) 20%,
          rgba(255, 182, 193, 0.15) 40%,
          rgba(255, 218, 185, 0.12) 60%,
          rgba(240, 248, 255, 0.07) 80%,
          transparent 100%
  );
  position: relative;
  overflow: hidden;
}

.footer-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -30%;
  width: 160%;
  height: 100%;
  background: radial-gradient(
          ellipse at 30% 20%,
          rgba(173, 216, 230, 0.21) 0%,
          transparent 70%
  ),
  radial-gradient(
          ellipse at 70% 10%,
          rgba(221, 160, 221, 0.13) 0%,
          transparent 70%
  ),
  radial-gradient(
          ellipse at 20% 40%,
          rgba(255, 182, 193, 0.12) 0%,
          transparent 60%
  ),
  radial-gradient(
          ellipse at 80% 30%,
          rgba(255, 218, 185, 0.16) 0%,
          transparent 60%
  );
  animation: float-shapes 15s ease-in-out infinite;
}

@keyframes float-shapes {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-10px, -15px) rotate(1deg);
  }
  50% {
    transform: translate(15px, -10px) rotate(-1deg);
  }
  75% {
    transform: translate(-5px, 10px) rotate(0.5deg);
  }
}

.floating-icon {
  position: absolute;
  animation: smoothFloat 6s ease-in-out infinite;
  opacity: 0;
  animation-fill-mode: forwards;
}

.floating-icon:nth-child(1) {
  animation-delay: 0.5s;
}

.floating-icon:nth-child(2) {
  animation-delay: 2s;
}

.floating-icon:nth-child(3) {
  animation-delay: 3.5s;
}

@keyframes smoothFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
    opacity: 1;
  }
  25% {
    transform: translateY(-15px) rotate(2deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-30px) rotate(-2deg);
    opacity: 1;
  }
  75% {
    transform: translateY(-15px) rotate(1deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 1;
  }
}

.header-floating {
  backdrop-filter: blur(50px);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(-20px);
  animation: slideInHeader 1s ease-out 0.3s forwards;
}

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

.nav-link {
  border-radius: 25px;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #000000;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 8px 16px;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.3),
          transparent
  );
  transition: left 0.8s ease;
  pointer-events: none;
  z-index: -1;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: #6b7280;
  transform: translateY(-1px);
}

.nav-link.active {
  background: #0a0a0d;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: scale(1.02);
}

.text-gradient {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInText 1.2s ease-out 1s forwards;
}

.text-gradient-light {
  background: linear-gradient(135deg, #93c5fd, #dbeafe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  transform: translateY(30px);
  animation: slideInText 1.2s ease-out 1.3s forwards;
}

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

.footer-link {
  color: rgba(51, 51, 51, 0.85);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.3s ease;
  position: relative;
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #374151;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

.footer-link:hover {
  color: #374151;
  transform: translateY(-2px);
}

/* Newsletter input animation */
.newsletter-input {
  transition: all 0.3s ease;
}

.newsletter-input:focus {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.newsletter-button {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

/* Social icons animation */
.social-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
  color: #3b82f6 !important;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Page load animation */
.page-fade-in {
  opacity: 0;
  animation: pageLoad 1s ease-out forwards;
}

@keyframes pageLoad {
  to {
    opacity: 1;
  }
}

@media (min-width: 1800px) {
  .custom-4k\:top-96 {
    top: 20rem !important;
  }
  .custom-4k\:left-96 {
    left: 30rem !important;
  }
  .custom-4k\:right-96 {
    right: 30rem !important;
  }
  .custom-4k\:bottom-32 {
    bottom: 8rem !important;
  }
}

  /* Carousel word animation - smoother */

   .courses-gradient {
    background: linear-gradient(180deg, #3b82f6, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .carousel-word {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    position: absolute;
    left: 0;
    bottom: 0;
    animation: wordFade 12s infinite;
    transform: translateY(30px);
  }

  .carousel-word:nth-child(1) {
    animation-delay: 0s;
  }
  .carousel-word:nth-child(2) {
    animation-delay: 4s;
  }
  .carousel-word:nth-child(3) {
    animation-delay: 8s;
  }

  @keyframes wordFade {
    0% {
      opacity: 0;
      transform: translateY(30px);
    }
    8.33% {
      opacity: 1;
      transform: translateY(0);
    }
    25% {
      opacity: 1;
      transform: translateY(0);
    }
    33.33% {
      opacity: 0;
      transform: translateY(-30px);
    }
    100% {
      opacity: 0;
      transform: translateY(-30px);
    }
  }

   /* Fade-in animations for sections */
  .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

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

  /* Loading animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(50px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Profile images styling */
  .profile-group {
    display: flex;
    align-items: center;
  }

  .profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .profile-img:first-child {
    margin-left: 0;
  }

  .profile-img:hover {
    transform: scale(1.1) translateY(-3px);
    z-index: 10;
  }

  .lecturer-card {
    position: relative;
    height: 600px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  }
