@import url("https://fonts.googleapis.com/css2?family=Mona+Sans:wght@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,
.lecturer-name,
.nav-link,
.text-gradient,
.text-gradient-light,
.footer h3 {
  font-family: "Mona Sans", 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;
}

/* Hero background with gradient only on top portion */
.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);
  }
}

/* Lecturers section background */
.lecturers-bg {
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(173, 216, 230, 0.15) 20%,
    rgba(221, 160, 221, 0.12) 40%,
    rgba(255, 182, 193, 0.12) 60%,
    rgba(255, 218, 185, 0.1) 80%,
    rgba(240, 248, 255, 0.05) 100%
  );
  position: relative;
}

.lecturer-card {
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  width: 150px;
  height: 200px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(50px) scale(0.9);
}

@media (min-width: 640px) {
  .lecturer-card {
    width: 150px;
    height: 200px;
  }
}

@media (min-width: 768px) {
  .lecturer-card {
    width: 240px;
    height: 300px;
  }
}

@media (min-width: 1024px) {
  .lecturer-card {
    width: 260px;
    height: 330px;
  }
}

@media (min-width: 1280px) {
  .lecturer-card {
    width: 300px;
    height: 350px;
  }
}

@media (min-width: 1880px) {
  .lecturer-card {
    width: 350px;
    height: 450px;
  }
}

.lecturer-card {
  animation: slideInCard 0.8s ease-out forwards;
}

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

.lecturer-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .lecturer-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  }
}

@media (min-width: 1024px) {
  .lecturer-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  }
}

.lecturer-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(176, 178, 181, 0.1),
    rgba(198, 201, 205, 0.1)
  );
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}

.lecturer-card:hover::before {
  opacity: 1;
}

.lecturer-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.lecturer-card:hover img {
  transform: scale(1.1);
}

.lecturer-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    rgba(197, 197, 197, 0) 0%,
    rgba(85, 85, 85, 0.4) 50%,
    rgba(165, 165, 165, 0.54) 100%
  );
  color: white;
  padding: 20px 12px 12px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: left;
  z-index: 2;
  transition: all 0.4s ease;
  transform: translateY(10px);
}

@media (min-width: 640px) {
  .lecturer-name {
    padding: 25px 14px 14px;
    font-size: 12px;
  }
}

@media (min-width: 768px) {
  .lecturer-name {
    padding: 30px 16px 16px;
    font-size: 13px;
  }
}

@media (min-width: 1024px) {
  .lecturer-name {
    padding: 35px 16px 16px;
    font-size: 14px;
  }
}

@media (min-width: 1280px) {
  .lecturer-name {
    padding: 40px 16px 16px;
    font-size: 14px;
  }
}

.lecturer-card:hover .lecturer-name {
  transform: translateY(0);
  background: linear-gradient(
    180deg,
    rgba(71, 71, 71, 0) 0%,
    rgba(16, 16, 16, 0.6) 50%,
    rgba(5, 5, 5, 0.8) 100%
  );
}

.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;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 0;
  max-width: 1200px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  transform: scale(0.7) rotateX(20deg);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-overlay.active .modal-content {
  transform: scale(1) rotateX(0deg);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 1);
}

.modal-image-section {
  flex: 0 0 40%;
  background: black;
  position: relative;
  overflow: hidden;
}

.modal-image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.modal-overlay.active .modal-image-section img {
  transform: scale(1.05);
}

.modal-content-section {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  min-height: 0;
}

.modal-description {
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideInContent 0.6s ease-out 0.3s forwards;
}

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

.classes-section {
  margin-top: 20px;
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(30px);
  animation: slideInClasses 0.6s ease-out 0.6s forwards;
}

@keyframes slideInClasses {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.class-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.class-item:hover img {
  transform: scale(1.2);
}

.class-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    180deg,
    rgba(232, 230, 230, 0.37) 0%,
    rgba(253, 253, 253, 0.7) 100%
  );
  color: #1b80ff;
  padding: 20px 5px 5px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom-right-radius: 5px;
  border-bottom-left-radius: 5px;
  transition: all 0.3s ease;
}

.class-arrow {
  background: transparent;
  border-radius: 50%;
  border: 1px solid #0a0a0d;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 8px;
}

.class-arrow i {
  color: #0a0a0d;
  font-size: 10px;
  transition: transform 0.3s ease;
}

.class-item:hover .class-arrow {
  background: #0a0a0d;
  transform: scale(1.2);
}

.class-item:hover .class-arrow i {
  color: white;
  transform: translateX(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 {
  transform: translateY(-5px) scale(1.2);
  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;
  }
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    width: 95%;
    max-height: 95vh;
  }

  .modal-image-section {
    flex: 0 0 300px;
  }

  .modal-content-section {
    padding: 30px;
  }

  .classes-section {
    justify-content: center;
    gap: 10px;
  }
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
