:root {
  --primary: #1e3a5f;
  --secondary: #2a2a2a;
  --accent: #f59e0b;
  --dark: #0a0a0a;
  --light: #f5f5f0;
  --text: #333333;
  --text-light: #6b7280;
}

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

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

body {
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background: transparent;
}

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

.navbar .logo,
.navbar #nav-links a {
  color: white;
  transition: color 0.3s ease;
}

.navbar.scrolled .logo,
.navbar.scrolled #nav-links a {
  color: var(--secondary);
}

.navbar #nav-links a {
  font-weight: 500;
  position: relative;
  text-decoration: none;
}

.navbar #nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.navbar #nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

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

.mobile-menu a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
}

/* Services Section */
#services_1 {
  overflow-x: hidden;
}

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

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

/* CTA Section */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.cta-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Service Cards */
.service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

.service-card:hover img {
  transform: scale(1.05);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 16px;
}

/* Gallery */
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

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

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: white;
  padding: 24px 16px 16px;
  font-weight: 600;
}

/* Contact Cards */
.contact-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: center;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto 12px;
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: var(--accent);
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Contact Form */
#contact-form input,
#contact-form textarea {
  font-family: 'DM Sans', sans-serif;
}

#contact-form input:focus,
#contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

#contact-form .bg-light {
  overflow-x: hidden;
}

#form-message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}

#form-message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Scroll to Top Button */
.scroll-top-btn {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.scroll-top-btn.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.scroll-top-btn:hover {
  transform: translateY(-4px);
}

/* Animations - Initial States (removed - GSAP handles this) */

/* 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;
  }

  /* All animations disabled for reduced motion */
}

/* Responsive */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 2.5rem !important;
  }
  
  .hero-subheadline {
    font-size: 1.125rem !important;
  }
  
  section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  
  h2 {
    font-size: 2rem !important;
  }
}

/* Small phones ≤ 480px */
@media (max-width: 480px) {
  .hero-headline {
    font-size: 2rem !important;
  }
  
  .hero-subheadline {
    font-size: 1rem !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
  }
  
  .service-card,
  .contact-card,
  .gallery-item {
    padding: 1rem;
  }
  
  .service-card img {
    height: 180px;
  }
}

/* Very small screens < 350px */
@media (max-width: 350px) {
  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  
  .navbar .container {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }
  
  .navbar .logo {
    font-size: 1.25rem;
  }
  
  .hero-headline {
    font-size: 1.75rem !important;
  }
  
  .hero-subheadline {
    font-size: 0.875rem !important;
  }
  
  .hero-cta {
    width: 100%;
    padding: 0.875rem 1.5rem !important;
    font-size: 0.875rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }
  
  .service-card,
  .contact-card {
    padding: 0.75rem;
  }
  
  .service-card h3 {
    font-size: 1.25rem !important;
  }
  
  .service-card img {
    height: 160px;
  }
  
  .contact-card a,
  .contact-card p {
    font-size: 0.875rem !important;
    word-break: break-all;
  }
  
  #contact-form {
    padding: 1rem !important;
  }
  
  #contact-form input,
  #contact-form textarea {
    padding: 0.625rem !important;
    font-size: 0.875rem;
  }
  
  #contact-form button {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem;
  }
  
  .cta-section h2 {
    font-size: 1.5rem !important;
  }
  
  .cta-section p {
    font-size: 0.875rem !important;
  }
  
  /* Floating buttons */
  .fixed.bottom-6.right-6 {
    bottom: 1rem !important;
    right: 1rem !important;
  }
  
  .scroll-top-btn {
    bottom: 5rem !important;
    right: 1rem !important;
  }
  
  /* Nav CTA button */
  .nav-cta {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem;
  }
}
