/* 
 * Enterprise Public Stylesheet
 * SMPN 2 Banyakan Satu Atap Platform
 */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

body {
  padding-bottom: 75px;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

/* Header Navbar */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-link {
  font-weight: 600;
  color: #334155 !important;
  padding: 0.65rem 1.1rem !important;
  border-radius: 50rem;
  transition: all 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: #0D9488 !important;
  background: rgba(13, 148, 136, 0.08);
}

/* Hero Section */
.hero-section {
  background: var(--gradient-hero);
  color: #FFFFFF;
  padding: 6rem 0 7rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -25%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.35) 0%, rgba(6, 182, 212, 0.15) 50%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -5%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  filter: blur(50px);
  pointer-events: none;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 400;
  opacity: 0.92;
}

/* Stats Counter Section */
.stats-section {
  margin-top: -3.5rem;
  position: relative;
  z-index: 20;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-weight: 700;
  color: #64748B;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Titles */
.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: #64748B;
  font-size: 1.1rem;
}

/* News Cards */
.news-card {
  border: none;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #FFFFFF;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(13, 148, 136, 0.15);
}

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

.news-card:hover .news-thumb {
  transform: scale(1.06);
}

/* Masonry Gallery Overlay */
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.gallery-item img {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: 260px;
  object-fit: cover;
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 29, 0.9) 0%, rgba(10, 15, 29, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.35s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  color: #FFFFFF;
}

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

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 68px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1040;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748B;
  text-decoration: none;
  font-size: 0.725rem;
  font-weight: 700;
  transition: all 0.2s ease;
  width: 20%;
}

.mobile-bottom-nav a i {
  font-size: 1.35rem;
  margin-bottom: 2px;
}

.mobile-bottom-nav a.active, .mobile-bottom-nav a:hover {
  color: #0D9488;
}


/* Enhanced Premium AI Chatbot Widget & Box */
.ai-chatbot-widget {
  position: fixed;
  bottom: 85px;
  right: 25px;
  z-index: 1050;
}

@media (min-width: 992px) {
  .ai-chatbot-widget {
    bottom: 35px;
    right: 35px;
  }
}

.ai-toggle-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0D9488 0%, #06B6D4 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.45);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: none;
}

.ai-toggle-btn:hover {
  transform: scale(1.1) rotate(6deg);
  box-shadow: 0 15px 35px rgba(13, 148, 136, 0.6);
}

.ai-chat-box {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 390px;
  max-width: calc(100vw - 30px);
  height: 550px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-radius: 1.5rem;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25), 0 0 20px rgba(13, 148, 136, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 1060;
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: aiSlideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.ai-chat-header {
  background: linear-gradient(135deg, #0A0F1D 0%, #1E1B4B 100%);
  color: #FFFFFF;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #F8FAFC;
  scroll-behavior: smooth;
}

.chat-bubble {
  max-width: 84%;
  padding: 0.75rem 1rem;
  border-radius: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.chat-bubble.bot {
  background: #FFFFFF;
  color: #1E293B;
  align-self: flex-start;
  border-bottom-left-radius: 0.25rem;
  border: 1px solid #E2E8F0;
}

.chat-bubble.user {
  background: linear-gradient(135deg, #0D9488 0%, #06B6D4 100%);
  color: #FFFFFF;
  align-self: flex-end;
  border-bottom-right-radius: 0.25rem;
  font-weight: 500;
}

.ai-chat-footer {
  padding: 0.85rem 1rem;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ai-chat-footer input {
  border: 1px solid #CBD5E1;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  background: #F8FAFC;
  transition: all 0.2s ease;
}

.ai-chat-footer input:focus {
  background: #FFFFFF;
  border-color: #0D9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.ai-chat-footer button {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0D9488 0%, #06B6D4 100%);
  border: none;
  transition: transform 0.2s ease;
}

.ai-chat-footer button:hover {
  transform: scale(1.08);
}
