/* css/style.css */
body {
    font-family: 'Inter', sans-serif;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    transition: background-image 0.3s ease;
}
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}
.dark-mode .glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-hover:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}
.active-menu {
    background: rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.5);
}
.hero-section {
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}
.dark-mode .hero-section {
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.9) 100%);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}
.news-card {
    transition: all 0.3s ease;
}
.news-card:hover {
    transform: scale(1.02);
}
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.mobile-menu.open {
    max-height: 500px;
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}
.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
}
/* Theme toggle styling */
.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}
/* Desktop theme toggle - positioned separately */
.desktop-theme-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}
@media (max-width: 768px) {
    .desktop-theme-container {
        display: none;
    }
}
/* Menu spacing */
.menu-start {
    margin-left: 2rem;
    /* Geser menu ke kanan dari posisi logo */
}
@media (max-width: 768px) {
    .menu-start {
        margin-left: 0;
    }
}
/*Glass Slides*/
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#mainImage {
    width: 1000px;
    height: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    transition: opacity 0.5s ease;
}

.menu-wrapper {
    display: flex;
    justify-content: center;
    /* posisi tengah */
    margin-top: 20px;
}

.glass-menu {
    display: flex;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    /* oval */
    padding: 10px 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-menu button {
    background: transparent;
    border: none;
    color: white;
    font-size: 16px;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.glass-menu button.active {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-menu button:hover {
    background: rgba(255, 255, 255, 0.4);
}
/* Sponsorship */
.sponsor-section {
    position: relative;
    overflow-x: auto;
    display: flex;
    gap: 2rem;
    padding: 1rem 2rem;
}

.sponsor-track {
    display: flex;
    gap: 50px;
    padding: 0 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* smooth di iOS */
}

.sponsor-track::-webkit-scrollbar {
    display: none;
    /* hilangkan scrollbar */
}

.sponsor-track img {
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.3s ease;
    flex-shrink: 0;
    /* biar ukuran logo tetap */
}

.sponsor-track img:hover {
    filter: grayscale(0%) brightness(1);
}

/*Video CSS*/

/* Kartu glass transparan blur */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(140, 100, 255, 0.3);
    max-width: 800px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.8s ease-in-out;
}

/* Container video transparan blur */
.glass-video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;

    /* Efek kaca */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Kartu glass transparan blur */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 40px rgba(140, 100, 255, 0.3);
    max-width: 800px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.8s ease-in-out;
}

/* Video */
.video-element {
    width: 100%;
    border-radius: 15px;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 15px;
}

/* Tombol Play/Pause */
.video-controls button {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.video-controls button img {
    width: 24px;
    height: 24px;
    display: block;
}

.video-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Animasi */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.chat-bubble {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom;
}

.chat-bubble-user {
  animation: slideInRight 0.3s ease-out;
}

.chat-bubble-bot {
  animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.message-input {
  transition: all 0.2s ease;
}

.message-input:focus {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.send-button {
  transition: all 0.2s ease;
}

.send-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.send-button:active {
  transform: translateY(0);
}

.typing-indicator {
  display: inline-block;
}

.typing-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #a5b4fc;
  margin: 0 2px;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.bot-avatar {
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  box-shadow: 0 4px 6px rgba(99, 102, 241, 0.2);
}

.skeleton-line {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
  height: 12px;
}

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