/* Dark Theme Gallery Styles */
#gallery {
    background: linear-gradient(135deg, #0c0a27 0%,#050b36 50%, #0b363e 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.gallery-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.1;
    transition: all 0.5s ease;
    animation: float 15s infinite ease-in-out;
}

.bg-circle.circle-1 {
    width: 300px;
    height: 300px;
    background: #a56cff;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.bg-circle.circle-2 {
    width: 400px;
    height: 400px;
    background: #5d9dff;
    bottom: 10%;
    right: 5%;
    animation-delay: 3s;
}

.bg-circle.circle-3 {
    width: 200px;
    height: 200px;
    background: #ec4899;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 6s;
}

.gallery-item {
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.gallery-item:hover::after {
    background: rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

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

/* Set Navigation Buttons */
.set-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
    color: #0f172a;
    transition: all 0.3s ease;
    opacity: 0;
}

.set-nav-btn:hover {
    background: var(--prem-gold);
    transform: translateY(-50%) scale(1.1);
}

.prev-set-btn {
    left: 15px;
}

.next-set-btn {
    right: 15px;
}

.rotating-gallery:hover .set-nav-btn {
    opacity: 1;
}

/* Full Gallery Modal Dark Theme */
#fullGalleryModal .modal-content {
    background: #0f172a;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

#fullGalleryModal .modal-header,
#fullGalleryModal .modal-footer {
    border-color: rgba(255,255,255,0.1);
}

#fullGalleryModal .gallery-item {
    height: 200px;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(20px);
    }
}

/* Particle Background for About Section */
#about-premangan {
    position: relative;
    overflow: hidden;
    background: #000;
    z-index: 1;
}

.particle-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
}

/* Add this if you want the content to stand out more */
#about-premangan .container {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 15px;
}

#about-premangan h2,
#about-premangan p,
#about-premangan li {
    color: #fff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Mobile Compatibility Improvements */
@media (max-width: 768px) {
  /* Facilities Section Improvements */
  #facilities .facility-card {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  #facilities .facility-img-container {
    height: 200px;
    overflow: hidden;
  }
  
  #facilities .facility-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  #facilities .facility-card:hover .facility-img {
    transform: scale(1.05);
  }
  
  #facilities .facility-body {
    padding: 1.25rem;
  }
  
  #facilities .facility-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  #facilities .facility-features {
    padding-left: 1rem;
    margin-bottom: 0;
  }
  
  #facilities .facility-features li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  #facilities .facility-features li:last-child {
    margin-bottom: 0;
  }
  
  /* Testimonials Section Improvements */
  #testimonials-fixed {
    padding: 2rem 0 !important;
  }
  
  #testimonials-fixed .testimonial-carousel {
    padding: 0 15px;
  }
  
  #testimonials-fixed .testimonial-card {
    padding: 0.5rem !important;
  }
  
  #testimonials-fixed .testimonial-card > div {
    padding: 1.5rem !important;
  }
  
  #testimonials-fixed blockquote {
    font-size: 1rem !important;
    margin: 1rem 0 !important;
    line-height: 1.6;
  }
  
  #testimonials-fixed img {
    width: 80px !important;
    height: 80px !important;
  }
  
  #testimonials-fixed .carousel-prev,
  #testimonials-fixed .carousel-next {
    width: 35px !important;
    height: 35px !important;
    font-size: 0.8rem;
  }
  
  #testimonials-fixed .carousel-prev {
    left: 5px !important;
  }
  
  #testimonials-fixed .carousel-next {
    right: 5px !important;
  }
  
  /* Admission Section Improvements */
  #admission .accordion-button {
    padding: 0.75rem;
    font-size: 0.95rem;
  }
  
  #admission .badge {
    font-size: 0.7rem;
    padding: 0.35em 0.65em;
  }
  
  #admission .card {
    margin-top: 1.5rem;
  }
  
  /* Gallery Improvements for Mobile */
  .gallery-set {
    margin: 0 -5px;
  }
  
  .gallery-set .gallery-item {
    padding: 5px;
  }
  
  .set-nav-btn {
    width: 40px !important;
    height: 40px !important;
    opacity: 0.8 !important;
  }
  
  /* Text size adjustments for mobile */
  #about-premangan h2 {
    font-size: 1.8rem;
  }
  
  #about-premangan .lead {
    font-size: 1.1rem;
  }
  
  #facilities h2.display-5 {
    font-size: 1.8rem;
  }
  
  #facilities .lead.text-muted {
    font-size: 1.1rem;
  }
}

/* Additional improvements for very small devices */
@media (max-width: 576px) {
  #facilities .facility-img-container {
    height: 180px;
  }
  
  #testimonials-fixed h2 {
    font-size: 1.75rem !important;
  }
  
  #testimonials-fixed > div > p {
    font-size: 1.1rem !important;
  }
  
  #testimonials-fixed blockquote {
    font-size: 0.95rem !important;
  }
  
  .prem-footer-main {
    flex-direction: column;
  }
  
  .prem-footer-links {
    flex-direction: column;
    margin: 1.5rem 0;
  }
  
  .prem-links-column {
    margin-bottom: 1.5rem;
  }
}

/* Fix for iOS Safari specific issues */
@supports (-webkit-touch-callout: none) {
  .facility-card {
    -webkit-transform: translateZ(0);
  }
  
  .testimonial-card > div {
    -webkit-backface-visibility: hidden;
  }
}

/* Prevent horizontal scrolling on mobile */
html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Plan Options Section Styles */
#plan-options {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.plan-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.05) 2px, transparent 0),
                    radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.05) 2px, transparent 0);
  background-size: 50px 50px;
  z-index: -1;
}

.plan-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 175, 55, 0.5);
}

.plan-header {
  background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.plan-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  transform: rotate(30deg);
}

.plan-popular .plan-header {
  background: linear-gradient(135deg, #f72585 0%, #7209b7 100%);
}

.plan-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

.plan-period {
  font-size: 1rem;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

.plan-body {
  padding: 2rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.plan-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features i {
  color: var(--prem-gold);
  margin-right: 1rem;
  font-size: 1.2rem;
}

.plan-deposit {
  background: rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  border: 1px dashed rgba(212, 175, 55, 0.3);
}

.plan-deposit h5 {
  color: var(--prem-gold);
  margin-bottom: 0.5rem;
}

.plan-note {
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: center;
  margin-top: 1.5rem;
  font-style: italic;
}

.plan-cta {
  text-align: center;
  margin-top: 1.5rem;
}

/* Social Media Section Styles */
#social-connect {
  background: #0f172a;
  position: relative;
  overflow: hidden;
}

.social-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23d4af37' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  z-index: 0;
}

.social-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.1);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
  z-index: 1;
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: rgba(212, 175, 55, 0.3);
}

.social-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  transition: all 0.3s ease;
}

.social-card:hover .social-icon {
  transform: scale(1.1);
}

.social-facebook .social-icon {
  background: rgba(59, 89, 152, 0.1);
  color: #3b5998;
  border: 1px solid rgba(59, 89, 152, 0.3);
}

.social-instagram .social-icon {
  background: rgba(225, 48, 108, 0.1);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.3);
}

.social-twitter .social-icon {
  background: rgba(29, 161, 242, 0.1);
  color: #1da1f2;
  border: 1px solid rgba(29, 161, 242, 0.3);
}

.social-whatsapp .social-icon {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.social-email .social-icon {
  background: rgba(219, 68, 55, 0.1);
  color: #db4437;
  border: 1px solid rgba(219, 68, 55, 0.3);
}

.social-phone .social-icon {
  background: rgba(0, 128, 0, 0.1);
  color: #008000;
  border: 1px solid rgba(0, 128, 0, 0.3);
}

.social-maps .social-icon {
  background: rgba(66, 133, 244, 0.1);
  color: #4285f4;
  border: 1px solid rgba(66, 133, 244, 0.3);
}

.social-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.social-desc {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.social-link {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.social-facebook .social-link {
  background: rgba(59, 89, 152, 0.2);
  color: #3b5998;
  border: 1px solid rgba(59, 89, 152, 0.4);
}

.social-facebook .social-link:hover {
  background: #3b5998;
  color: #fff;
}

.social-instagram .social-link {
  background: rgba(225, 48, 108, 0.2);
  color: #e1306c;
  border: 1px solid rgba(225, 48, 108, 0.4);
}

.social-instagram .social-link:hover {
  background: #e1306c;
  color: #fff;
}

.social-twitter .social-link {
  background: rgba(29, 161, 242, 0.2);
  color: #1da1f2;
  border: 1px solid rgba(29, 161, 242, 0.4);
}

.social-twitter .social-link:hover {
  background: #1da1f2;
  color: #fff;
}

.social-whatsapp .social-link {
  background: rgba(37, 211, 102, 0.2);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.4);
}

.social-whatsapp .social-link:hover {
  background: #25d366;
  color: #fff;
}

.social-email .social-link {
  background: rgba(219, 68, 55, 0.2);
  color: #db4437;
  border: 1px solid rgba(219, 68, 55, 0.4);
}

.social-email .social-link:hover {
  background: #db4437;
  color: #fff;
}

.social-phone .social-link {
  background: rgba(0, 128, 0, 0.2);
  color: #008000;
  border: 1px solid rgba(0, 128, 0, 0.4);
}

.social-phone .social-link:hover {
  background: #008000;
  color: #fff;
}

.social-maps .social-link {
  background: rgba(66, 133, 244, 0.2);
  color: #4285f4;
  border: 1px solid rgba(66, 133, 244, 0.4);
}

.social-maps .social-link:hover {
  background: #4285f4;
  color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .plan-card {
    margin-bottom: 2rem;
  }
  
  .plan-title {
    font-size: 1.5rem;
  }
  
  .plan-price {
    font-size: 2rem;
  }
  
  .social-card {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
  }
  
  .social-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}
