@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --primary: #B91C1C;
  /* Deep Red */
  --primary-dark: #991B1B;
  --secondary: #DC2626;
  /* Bright Red */
  --accent-red: #EF4444;
  --accent-green: #10B981;
  --bg-light: #F8FAFC;
  --text-dark: #0F172A;
  --text-muted: #64748B;
  --white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  /* or block with visibility hidden if we want transition, but we'll use display: none for simplicity, and toggle it */
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 0.5rem 0;
  z-index: 1000;
  border: 1px solid #E2E8F0;
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: fadeUpDropdown 0.3s ease;
}

@keyframes fadeUpDropdown {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.dropdown-content a {
  color: var(--text-dark);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-content a:hover {
  background-color: var(--bg-light);
  color: var(--primary);
}

.cta-btn {
  background-color: var(--secondary);
  color: #FFFFFF !important;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(220, 38, 38, 0.4);
}

.cta-btn:hover {
  background-color: #B91C1C;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(220, 38, 38, 0.6);
}

/* Mobile Menu */
.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9) border-box, rgba(15, 23, 42, 0.4));
  z-index: -1;
}

.hero-content {
  color: var(--white);
  max-width: 600px;
  animation: fadeUp 1s ease-out forwards;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--secondary);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #E2E8F0;
}

.btn-primary {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 15px -3px rgba(185, 28, 28, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 20px -3px rgba(185, 28, 28, 0.5);
}

/* Sections */
section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 3rem;
}

.title-line {
  width: 80px;
  height: 4px;
  background-color: var(--secondary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: rotate(-2deg);
  transition: transform 0.3s;
}

.about-img:hover {
  transform: rotate(0) scale(1.02);
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.features-list {
  list-style: none;
  margin-top: 1.5rem;
}

.features-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-dark);
}

.features-list i {
  color: var(--accent-green);
  font-size: 1.2rem;
}

/* Facilities Section */
.facilities {
  background-color: var(--white);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.facility-card {
  background: var(--bg-light);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #E2E8F0;
}

.facility-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.facility-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.facility-content {
  padding: 1.5rem;
}

.facility-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Footer */
footer {
  background-color: #0F172A;
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  display: block;
}

.footer-text {
  color: #94A3B8;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s;
}

.footer-social a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #94A3B8;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94A3B8;
  font-size: 0.9rem;
}

/* Page Header */
.page-header {
  padding: 10rem 0 4rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Forms */
.form-container {
  max-width: 700px;
  margin: -3rem auto 4rem;
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
  background-color: var(--bg-light);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  background-color: white;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  background-color: var(--secondary);
  color: var(--text-dark);
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(220, 38, 38, 0.4);
}

.btn-submit:hover {
  background-color: #B91C1C;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(220, 38, 38, 0.6);
}

.alert {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  font-weight: 600;
  text-align: center;
}

.alert-success {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #34D399;
}

img.facility-img {
  cursor: pointer;
}

/* Image Modal */
.img-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.img-modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.img-modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.img-modal-close:hover,
.img-modal-close:focus {
  color: var(--secondary);
  text-decoration: none;
  cursor: pointer;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 6rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.4s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: block;
    z-index: 1001;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-img {
    order: -1;
  }
}

/* Music Player */
.music-player-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.music-toggle-btn {
  background-color: var(--secondary);
  color: var(--text-dark);
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.music-toggle-btn:hover {
  transform: scale(1.1);
  background-color: #F59E0B;
}

.music-toggle-btn.playing {
  animation: none;
  background-color: var(--primary);
  color: white;
}


@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(220, 38, 38, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
  }
}

/* Sambutan & Statistik Section */
.sambutan-statistik-section {
  padding: 4.5rem 0;
  background-color: var(--white);
  border-bottom: 1px solid #E2E8F0;
}

.sambutan-statistik-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

/* Sambutan Left Box */
.sambutan-box {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.kepsek-photo-wrapper {
  flex-shrink: 0;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  border: 4px solid var(--white);
}

.kepsek-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sambutan-content h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.4rem;
}

.kepsek-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 0.75rem;
}

.sambutan-text {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.btn-sambutan {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0B0B80;
  color: #FFFFFF !important;
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(11, 11, 128, 0.25);
  cursor: pointer;
  border: none;
}

.btn-sambutan:hover {
  background-color: #050559;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 11, 128, 0.35);
}

/* Statistik Right Box */
.statistik-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.statistik-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 2rem;
}

.statistik-items {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.stat-item {
  flex: 1;
  padding: 0 1rem;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 55px;
  background-color: #CBD5E1;
}

/* Modal Sambutan */
.modal-sambutan-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-sambutan-overlay.active {
  display: flex;
}

.modal-sambutan-card {
  background: white;
  border-radius: 20px;
  max-width: 650px;
  width: 100%;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748B;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Responsive Media Query */
@media (max-width: 992px) {
  .sambutan-statistik-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

/* Staf Pengajar & Ekstrakulikuler Sections */
.pink-section {
  background-color: #FDF0F5;
  padding: 4.5rem 0;
  border-bottom: 1px solid #FBCFE8;
}

.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.section-header-title h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.4rem;
}

.section-header-title p {
  color: #64748B;
  font-size: 1.05rem;
}

.btn-selengkapnya-pink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #0B0B80;
  color: #FFFFFF !important;
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(11, 11, 128, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-selengkapnya-pink:hover {
  background-color: #050559;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 11, 128, 0.3);
}

/* Staf Grid / Cards */
.staf-scroll-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .staf-scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
  }
  .staf-card {
    min-width: 220px;
    flex: 0 0 220px;
    scroll-snap-align: start;
  }
}

.staf-card {
  text-align: center;
  transition: transform 0.3s ease;
}

.staf-card:hover {
  transform: translateY(-5px);
}

.staf-photo-box {
  width: 100%;
  height: 290px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
  background-color: #5B7B88;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.staf-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staf-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.25rem;
}

.staf-role {
  font-size: 0.95rem;
  color: #64748B;
  font-weight: 600;
}

/* Ekstrakulikuler Controls & Slider */
.slider-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-circle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #0B0B80;
  background: transparent;
  color: #0B0B80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-circle-btn:hover {
  background-color: #0B0B80;
  color: #FFFFFF;
  transform: scale(1.05);
}

.eskul-slider {
  display: flex;
  gap: 1.8rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.eskul-slider::-webkit-scrollbar {
  display: none;
}

.eskul-card {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  flex: 0 0 calc(33.333% - 1.2rem);
  min-width: 300px;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eskul-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.eskul-img-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #E2E8F0;
}

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

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

.eskul-title-box {
  padding: 1.5rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
}

