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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f97316;
}

/* Navigation Links */
.nav-link {
  position: relative;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: #f97316;
  border-radius: 1px;
}

/* Mobile Nav Links */
.mobile-nav-link {
  display: block;
  padding: 12px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* Navbar scrolled state */
.navbar-scrolled {
  background: rgba(2, 6, 23, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Slider */
.slide.active-slide {
  opacity: 1 !important;
  z-index: 1;
}

.slider-dot.active-dot {
  background: #f97316 !important;
  width: 2rem !important;
  border-radius: 9999px !important;
}

/* Feature Cards */
.feature-card {
  transform: translateY(0);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -15px rgba(249, 115, 22, 0.15);
}

/* Gallery Filter Buttons */
.gallery-filter {
  color: #64748b;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-filter:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}

.gallery-filter.active {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.3);
}

/* Gallery Items Animation */
.gallery-item {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.hidden-item {
  opacity: 0;
  transform: scale(0.8);
  position: absolute;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Parallax Background */
.parallax-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  will-change: transform;
}

@media (max-width: 768px) {
  .parallax-bg {
    background-attachment: scroll;
  }
}

/* Lightbox */
#lightbox.open {
  display: flex !important;
  animation: lightboxIn 0.3s ease-out;
}

@keyframes lightboxIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Form Success Animation */
#form-success {
  animation: fadeInUp 0.5s ease-out;
}

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

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Pricing card hover */
.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form input styles */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  background: rgba(30, 41, 59, 0.8) !important;
}

/* Pulse animation for stats */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Smooth section transitions */
section {
  position: relative;
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  padding: 16px 24px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: 0.875rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: toastIn 0.4s ease-out;
}

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

/* Responsive adjustments */
@media (max-width: 640px) {
  .slide .max-w-2xl h1 {
    font-size: 2rem;
  }
}