/* Tema Biru Muda Minimalis */
:root {
  --primary: #4dabf7;
  --primary-light: #c5e3ff;
  --primary-dark: #1971c2;
  --accent: #36f1cd;
  --text: #343a40;
  --text-light: #868e96;
  --background: #f8fbff;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset dan styling dasar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background-color: var(--background);
  color: var(--text);
  overflow-x: hidden;
  padding-bottom: 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

/* Konten utama */
main {
  flex: 1 0 auto;
  margin-top: 70px; /* Spasi untuk header fixed */
}

/* Header Modern */
.header {
  background-color: var(--white);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.header.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.logo {
  height: 40px;
  transition: var(--transition);
}

.header.scrolled .logo {
  height: 35px;
}

.navbar-title {
  font-size: 22px;
  color: var(--primary);
  font-weight: 700;
  margin-right: 20px;
  transition: var(--transition);
  letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
  color: var(--text);
  font-weight: 500;
  padding: 8px 15px;
  position: relative;
  transition: var(--transition);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover {
  color: var(--primary);
}

.navbar-nav .nav-link:hover::after {
  width: 70%;
}

/* WhatsApp bubble dengan animasi pulse */
.whatsapp-bubble {
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-decoration: none;
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(37, 211, 102, 0.5);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  }
}

.whatsapp-bubble:hover {
  transform: scale(1.1) rotate(10deg);
  background-color: #20bd57;
}

.whatsapp-logo {
  font-size: 28px;
}

/* Slider Modern */
.slider {
  margin-top: 80px;
  padding: 0;
  overflow: hidden;
}

.carousel-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.carousel-item img {
  height: 500px;
  object-fit: cover;
  transition: transform 8s ease;
}

.carousel-item:hover img {
  transform: scale(1.05);
}

.carousel-caption {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  padding: 30px 15px 20px;
  border-radius: 0;
  text-align: left;
  left: 0;
  right: 0;
  bottom: 0;
  transition: var(--transition);
}

.carousel-caption h5 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease 0.2s;
}

.carousel-caption p {
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s ease 0.4s;
  text-align: left;
}

.carousel-item.active .carousel-caption h5,
.carousel-item.active .carousel-caption p {
  transform: translateY(0);
  opacity: 1;
}

/* Styling untuk section dengan animasi scroll */
.section {
  padding: 80px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80px;
  height: 3px;
  background: var(--primary);
  transform: translateX(-50%);
  border-radius: 3px;
}

p {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Jurusan dengan hover effect */
.major-card {
  background: var(--white);
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin-bottom: 30px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  height: 100%;
}

.major-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.major-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.major-card:hover img {
  transform: scale(1.05);
}

.major-card-content {
  padding: 25px 20px;
}

.major-card h3 {
  color: var(--primary);
  margin: 0 0 15px;
  font-weight: 600;
  font-size: 1.25rem;
}

.major-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: left;
}

.read-more {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--primary-light);
  color: var(--primary-dark);
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.read-more:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* Motto dengan background gradient */
.motto {
  background: linear-gradient(135deg, var(--primary-light), #e3f6ff);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.motto::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: -150px;
  left: -150px;
}

.motto::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  bottom: -100px;
  right: -100px;
}

.motto-container {
  position: relative;
  z-index: 1;
}

.motto p {
  font-size: 28px;
  font-weight: 300;
  font-style: italic;
  color: var(--primary-dark);
  line-height: 1.6;
  max-width: 900px;
  text-align: center;
  margin: 0 auto;
  position: relative;
}

.motto p::before,
.motto p::after {
  content: '"';
  font-size: 80px;
  color: rgba(77, 171, 247, 0.2);
  position: absolute;
  font-family: Georgia, serif;
}

.motto p::before {
  top: -40px;
  left: -20px;
}

.motto p::after {
  bottom: -70px;
  right: -20px;
  transform: rotate(180deg);
}

/* Informasi */
.info .btn {
  background-color: var(--primary);
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(77, 171, 247, 0.3);
}

.info .btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(77, 171, 247, 0.4);
}

/* Statistik dengan counter animasi */
.stats {
  background-color: var(--white);
  position: relative;
}

.stat-item {
  text-align: center;
  position: relative;
  padding: 30px 15px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  margin-bottom: 20px;
  transition: var(--transition);
  overflow: hidden;
  height: 100%;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  font-size: 40px;
  color: var(--primary);
  margin-bottom: 15px;
  background: var(--primary-light);
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  display: inline-block;
  transition: var(--transition);
}

.stat-item:hover .stat-icon {
  transform: rotate(10deg) scale(1.1);
  background: var(--primary);
  color: white;
}

.stat-item h3 {
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1.1rem;
}

.counter {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  margin-bottom: 15px;
  display: block;
}

.counter::after {
  content: '+';
  font-size: 24px;
  position: relative;
  top: -5px;
}

/* Liquid animation background for stats */
.liquid-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.liquid-bg .wave {
  position: absolute;
  width: 100%;
  height: 100px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0 C150,80 350,0 500,80 C650,160 850,80 1000,140 L1200,0 L1200,120 L0,120 Z" fill="%23f1f7ff"/></svg>') repeat-x;
  background-size: 1200px 100px;
  animation: wave 20s linear infinite;
  bottom: 0;
}

.liquid-bg .wave:nth-child(2) {
  animation-delay: -5s;
  animation-duration: 15s;
  opacity: 0.7;
  bottom: 10px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0 C150,40 350,0 500,40 C650,80 850,40 1000,70 L1200,0 L1200,120 L0,120 Z" fill="%23e3f2fd"/></svg>') repeat-x;
}

.liquid-bg .wave:nth-child(3) {
  animation-delay: -10s;
  animation-duration: 25s;
  opacity: 0.5;
  bottom: 20px;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0 C150,20 350,0 500,20 C650,40 850,20 1000,35 L1200,0 L1200,120 L0,120 Z" fill="%23bbdefb"/></svg>') repeat-x;
}

@keyframes wave {
  0% { background-position: 0 0; }
  100% { background-position: 1200px 0; }
}

/* Ekstrakurikuler dengan hover animasi */
.extracurricular {
  background-color: var(--background);
}

.extracurricular-list {
  list-style-type: none;
  padding: 0;
}

.extracurricular-list li {
  background: var(--white);
  margin: 10px 0;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  color: var(--text);
  transition: var(--transition);
  display: flex;
  align-items: center;
  border-left: 3px solid transparent;
}

.extracurricular-list li:hover {
  background-color: white;
  transform: translateX(5px);
  border-left: 3px solid var(--primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.extracurricular-list li i {
  color: var(--primary);
  margin-right: 15px;
  font-size: 20px;
  transition: var(--transition);
}

.extracurricular-list li:hover i {
  transform: scale(1.2);
}

/* Galeri dengan efek hover modern */
.gallery {
  background-color: var(--white);
  overflow: hidden;
}

.gallery-container {
  margin: 0 -10px;
}

.gallery-item {
  margin-bottom: 20px;
  padding: 0 10px;
}

.gallery-inner {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  height: 250px;
}

.gallery-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-inner:hover .gallery-img {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  transition: var(--transition);
}

.gallery-inner:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  color: white;
  font-size: 1.1rem;
  margin: 0;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.1s;
}

.gallery-inner:hover .gallery-title {
  transform: translateY(0);
}

.gallery-zoom {
  position: absolute;
  top: 15px;
  right: 15px;
  background: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transform: translateY(-20px) rotate(-90deg);
  opacity: 0;
  transition: var(--transition);
}

.gallery-inner:hover .gallery-zoom {
  transform: translateY(0) rotate(0);
  opacity: 1;
}

/* Modal Gallery */
.modal-content {
  background-color: white;
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

.modal-header {
  border-bottom: none;
  padding: 20px 30px 10px;
}

.modal-body {
  padding: 0;
}

.modal-footer {
  border-top: none;
  padding: 15px 30px 20px;
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
  opacity: 1;
  width: 35px;
  height: 35px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.close:hover {
  background: var(--primary);
  color: white;
  transform: rotate(90deg);
}

.modal-body img {
  max-height: 75vh;
  object-fit: contain;
  width: 100%;
}

/* Stylish navigation for gallery modal */
.carousel-control-prev,
.carousel-control-next {
  background: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: var(--transition);
}

.carousel-control-prev {
  left: 20px;
}

.carousel-control-next {
  right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: var(--primary);
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

/* Footer Modern */
.footer {
  background: linear-gradient(135deg, var(--primary-dark), #1864ab);
  color: white;
  padding: 40px 0 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.social-media {
  margin-bottom: 20px;
}

.social-icon-container {
  display: inline-block;
  margin: 0 10px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon-container:hover {
  transform: translateY(-5px) rotate(10deg);
  background: white;
}

.social-icon {
  color: white;
  font-size: 18px;
  transition: var(--transition);
}

.social-icon-container:hover .social-icon {
  color: var(--primary);
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 20px;
}

/* Animasi teks */
.text-animate {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}

.text-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Media Queries */
@media (max-width: 991.98px) {
  .navbar-title {
    font-size: 20px;
  }
  
  .carousel-item img {
    height: 400px;
  }
  
  .motto p {
    font-size: 24px;
  }
}

@media (max-width: 767.98px) {
  .section {
    padding: 60px 0;
  }
  
  .carousel-item img {
    height: 350px;
  }
  
  .motto p {
    font-size: 20px;
  }
  
  .counter {
    font-size: 32px;
  }
  
  .stat-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    font-size: 30px;
  }
}

@media (max-width: 575.98px) {
  .navbar-title {
    font-size: 18px;
  }
  
  .carousel-item img {
    height: 300px;
  }
  
  .section {
    padding: 50px 0;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .gallery-inner {
    height: 200px;
  }
}