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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* Navbar Styles */
nav {
  background: transparent;
}

nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-logo,
.nav-link,
.nav-icon {
  color: white;
  transition: color 0.3s ease;
}

nav.scrolled .nav-logo,
nav.scrolled .nav-link,
nav.scrolled .nav-icon {
  color: #1E293B;
}

.nav-link {
  position: relative;
  font-weight: 500;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0EA5E9;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

nav.scrolled .nav-cta {
  background: #0EA5E9;
  color: white;
}

/* Mobile Menu */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

#mobile-menu.active {
  max-height: 500px;
}

/* Hero Section */
#hero_1 {
  overflow-x: hidden;
}

#hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Feature Cards */
#features_1 {
  overflow-x: hidden;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.15);
  border-color: #0EA5E9;
}

.feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Service Cards */
#services_1 {
  overflow-x: hidden;
}

.service-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(14, 165, 233, 0.2);
  border-color: #0EA5E9;
}

.service-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image {
  transform: scale(1.15);
}

.service-image-wrapper {
  overflow: hidden;
  position: relative;
  background: #f8fafc;
}

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, #0EA5E9 0%, #06B6D4 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
  transition: transform 0.3s ease;
}

.service-card:hover .service-badge {
  transform: scale(1.1) rotate(5deg);
}

.service-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-cta {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.service-cta:hover {
  transform: translateY(-2px);
}

/* Gallery */
#gallery_1 {
  overflow-x: hidden;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.15);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 165, 233, 0.9) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

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

.gallery-caption {
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

/* Map */
#contact_1 {
  overflow-x: hidden;
}

#map {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 24rem;
  min-height: 384px;
  background: #f1f5f9;
  border-radius: 0.75rem;
  overflow: hidden;
}

.leaflet-container {
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  font-family: 'DM Sans', sans-serif;
}

/* Scroll to Top Button */
#scroll-top.visible {
  opacity: 1;
  pointer-events: all;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .feature-card {
    padding: 1.5rem;
  }

  .service-image {
    height: 200px;
  }
  
  .service-content {
    padding: 1.25rem;
  }
  
  #map {
    height: 20rem;
    min-height: 320px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  nav .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .feature-card {
    padding: 1.25rem;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
  
  .service-image {
    height: 180px;
  }
  
  .service-content {
    padding: 1rem;
  }
  
  .gallery-item {
    margin-bottom: 0.75rem;
  }
  
  #map {
    height: 18rem;
    min-height: 288px;
  }
}

/* Very small screens */
@media (max-width: 350px) {
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  nav .h-20 {
    height: 4rem;
  }
  
  .nav-logo {
    font-size: 1.25rem;
  }
  
  #hero_1 h1 {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  #hero_1 p {
    font-size: 0.95rem;
  }
  
  #hero_1 a {
    width: 100%;
    text-align: center;
    padding: 0.875rem 1.5rem;
  }
  
  section h2 {
    font-size: 1.75rem !important;
  }
  
  section h2 + p {
    font-size: 0.95rem;
  }
  
  .feature-card {
    padding: 1rem;
  }
  
  .feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .feature-card h3 {
    font-size: 1rem;
  }
  
  .feature-card p {
    font-size: 0.875rem;
  }
  
  .service-image {
    height: 160px;
  }
  
  .service-content {
    padding: 0.875rem;
  }
  
  .service-card h3 {
    font-size: 1rem;
  }
  
  .service-card p {
    font-size: 0.8125rem;
  }
  
  .service-cta {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }
  
  #contact_1 .bg-light,
  #contact_1 .bg-gradient-to-br {
    padding: 1rem;
  }
  
  #contact_1 h3 {
    font-size: 1rem;
  }
  
  #contact_1 .w-12 {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  #map {
    height: 16rem;
    min-height: 256px;
  }
  
  #scroll-top {
    width: 2.75rem;
    height: 2.75rem;
    bottom: 1rem;
    right: 1rem;
  }
  
  footer {
    padding: 2rem 0;
  }
  
  footer h3,
  footer h4 {
    font-size: 1rem;
  }
  
  footer p,
  footer a,
  footer li {
    font-size: 0.8125rem;
  }
}

/* GLightbox Custom Styles */
.glightbox-clean .gslide-description {
  background: rgba(14, 165, 233, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* Leaflet Map Custom Styles */
.leaflet-popup-content-wrapper {
  border-radius: 0.75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-tip {
  background: white;
}
