/* Base styles */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #1A0A2E;
}
::-webkit-scrollbar-thumb {
  background: #3F1A6E;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4A017;
}

/* Selection */
::selection {
  background: rgba(212, 160, 23, 0.3);
  color: #fff;
}

/* Section labels */
.section-label {
  position: relative;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #D4A017;
  vertical-align: middle;
  margin-right: 12px;
}

/* Hero animations */
.hero-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s ease forwards;
}
.hero-anim:nth-child(1) { animation-delay: 0.1s; }
.hero-anim:nth-child(2) { animation-delay: 0.3s; }
.hero-anim:nth-child(3) { animation-delay: 0.5s; }
.hero-anim:nth-child(4) { animation-delay: 0.7s; }
.hero-anim:nth-child(5) { animation-delay: 0.9s; }

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

/* Section animations */
.section-title {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-label {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-label.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Service cards */
.service-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About animations */
.about-anim {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.about-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Community cards */
.community-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.community-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonial cards */
.testimonial-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Gold shimmer effect on hover for cards */
.service-card::after,
.testimonial-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent 40%, rgba(212, 160, 23, 0.03) 50%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.service-card:hover::after,
.testimonial-card:hover::after {
  opacity: 1;
}

/* Navbar glass effect */
.nav-glass {
  background: rgba(13, 5, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 160, 23, 0.1);
}

/* Mobile menu active state */
.mobile-menu-open #mobileMenu {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-open .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}
.mobile-menu-open .menu-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-open .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 6px;
}

/* Mobile link animations */
.mobile-link {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-menu-open .mobile-link:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.mobile-menu-open .mobile-link:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }

/* Subtle gradient border animation */
@keyframes borderShimmer {
  0%, 100% { border-color: rgba(212, 160, 23, 0.2); }
  50% { border-color: rgba(212, 160, 23, 0.4); }
}

/* Floating animation for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

/* Gold line decoration */
.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #D4A017, #E8B931, #D4A017);
  border-radius: 1px;
}

/* Form focus states */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(212, 160, 23, 0.1);
}

/* Smooth image loading */
img {
  image-rendering: auto;
  loading: lazy;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.5rem !important;
  }
  
  #hero h1 {
    font-size: 2.5rem !important;
  }
  
  #hero h1 span {
    font-size: 2.5rem !important;
  }
}

@media (min-width: 768px) {
  #hero h1 {
    font-size: 3.5rem !important;
  }
  
  #hero h1 span {
    font-size: 3.5rem !important;
  }
}

@media (min-width: 1024px) {
  #hero h1 {
    font-size: 4.5rem !important;
  }
  
  #hero h1 span {
    font-size: 4.5rem !important;
  }
}
