/* Improved Base Styles */
:root {
  --bs-success: #28a745;
  --bs-dark: #212529;
  --section-padding: 8rem;
  --section-padding-md: 6rem;
  --section-padding-sm: 4rem;
  --container-max: 1400px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

.bg-dark {
    --bs-bg-opacity: 1;
    background-color: #ffffff !important;
}

/* Improved Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }

/* Section Styles */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

@media (max-width: 992px) {
  .section {
    padding: var(--section-padding-md) 0;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-sm) 0;
  }
}

/* Full-width container with max-width */
.container-xxl {
  max-width: var(--container-max);
  padding: 0 2rem;
}

/* Card Improvements */
.card {
  border: none;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.card-img-container {
  height: 250px;
  overflow: hidden;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  aspect-ratio: 4/3;
}

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

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

/* Testimonials */
.testimonial-card {
  border-left: 4px solid var(--bs-success);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Contact Form */
.contact-form .form-control {
  padding: 1rem;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .card-img-container {
    height: 200px;
  }
}