:root {
  --primary: #0EA5E9;
  --secondary: #FACC15;
  --bg: #FFFFFF;
  --accent: #F1F5F9;
  --text-dark: #1E293B;
  --text-light: #64748B;
  
  --font-main: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 8px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { margin-bottom: 1rem; color: var(--text-light); }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-white { color: white; }

/* Layout Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section-accent {
  background-color: var(--accent);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:active, .btn-secondary:active, .btn-outline:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background-color: #0284c7;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: #1E293B;
  box-shadow: var(--shadow);
}
.btn-secondary:hover {
  background-color: #EAB308;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: white;
}

/* Moving Promo Banner */
.promo-banner {
  background-color: var(--primary);
  color: white;
  padding: 0.5rem 0;
  overflow: hidden;
  position: relative;
  z-index: 100;
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}

.marquee span {
  padding: 0 2rem;
  font-weight: 600;
  font-size: 0.9rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background: white;
  z-index: 99;
  box-shadow: var(--shadow);
  padding: 1rem 0;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
}

.nav-links a:hover {
  color: var(--primary);
}

.header-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(rgba(14, 165, 233, 0.8), rgba(30, 41, 59, 0.9)), url('assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero p {
  color: #F1F5F9;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Service Cards */
.card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-body p {
  flex-grow: 1;
  font-size: 0.95rem;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Trust / Features Section */
.feature-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feature-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}
.feature-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.feature-item p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

/* Gallery Section */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}

/* Testimonials */
.testimonial-card {
  background: var(--accent);
  padding: 2rem;
  border-radius: var(--radius-lg);
  position: relative;
}
.stars {
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Contact Section & Form */
.contact-wrapper {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}
.contact-info, .contact-form-container {
  flex: 1;
  min-width: 300px;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Popup */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.popup-content {
  background: white;
  padding: 3rem 2rem 2rem;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  position: relative;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.4s ease;
  box-shadow: var(--shadow-lg);
}

.popup-overlay.active .popup-content {
  transform: translateY(0);
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

.progress-bar-container {
  width: 100%;
  height: 4px;
  background: var(--accent);
  margin-top: 2rem;
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--primary);
  width: 100%;
  transition: width linear;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: #CBD5E1;
  padding: 4rem 0 2rem;
}
.footer h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
}

/* Carousel */
.carousel-wrapper {
  position: relative;
}
.carousel-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  /* hide scrollbar for cleaner look if buttons used, or style it */
  scrollbar-width: none; 
}
.carousel-container::-webkit-scrollbar {
  display: none;
}
.carousel-item {
  flex: 0 0 85%;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}
.carousel-item img, .carousel-item video {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.carousel-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.carousel-btn:hover {
  transform: translateY(-2px);
  background: #0284c7;
}

/* Reviews Carousel */
.reviews-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.reviews-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 1rem;
  scrollbar-width: none;
}
.reviews-container::-webkit-scrollbar {
  display: none;
}
.review-card {
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
}
.reviews-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .review-card { flex: 0 0 calc(50% - 0.75rem); }
}

@media (min-width: 1024px) {
  .review-card { flex: 0 0 calc(33.333% - 1rem); }
}

/* Responsive */
@media (min-width: 768px) {
  .carousel-item { flex: 0 0 calc(50% - 0.75rem); }
  .carousel-item img, .carousel-item video { height: 350px; }
}

@media (min-width: 1024px) {
  .carousel-item { flex: 0 0 calc(33.333% - 1rem); }
}

@media (max-width: 768px) {
  .header-container {
    justify-content: flex-start;
  }
  .header-cta {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    margin-right: 1rem;
    order: 2;
  }
  .header-cta .btn {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
  }
  .mobile-toggle {
    display: block;
    order: 3;
    font-size: 1.8rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 2rem;
    box-shadow: var(--shadow);
    z-index: 98;
  }
}
/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
}
