/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* adjust to your navbar height */
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 1000;
}

.navbar .container {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #007bff;
}

/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Hero Section with Background Image */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: url('hero-bg.jpg') no-repeat center center/cover;
  color: white;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); /* dark overlay */
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* About Us with Image */
.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
}


.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
}

/* Section Base */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #222;
}

/* Services Section */
.services {
  padding: 60px 20px;
  text-align: center;
  background: #f9f9f9;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: auto;
}

.service-card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s ease-in-out;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 15px;
}

.service-card h3 {
  margin: 10px 0;
  font-size: 1.2rem;
  color: #333;
}

.service-card p {
  font-size: 0.95rem;
  color: #666;
}

/* About */
.about p {
  text-align: center;
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Reviews */
.reviews {
  background: #f9f9f9;
  padding: 80px 20px;
  text-align: center;
}

.reviews h2 {
  font-size: 2.2rem;
  margin-bottom: 50px;
  color: #007bff;
}

.carousel {
  perspective: 1000px; 
  width: 100%;
  max-width: 600px;
  margin: auto;
  position: relative;
  height: 250px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
}

.review-card {
  width: 400px;
  background: #fff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  opacity: 0.5;
  transition: all 0.6s ease;
  z-index: 1;
}

.review-card.active { transform: translateX(-50%) scale(1); opacity: 1; z-index: 3; }
.review-card.prev { transform: translateX(-60%) scale(0.8); opacity: 0.4; z-index: 2; }
.review-card.next { transform: translateX(-40%) scale(0.8); opacity: 0.4; z-index: 2; }

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,123,255,0.8);
  color: #fff;
  border: none;
  font-size: 24px;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.carousel-btn:hover { background: #007bff; }

.review-card.active {
  transform: translateX(-50%) scale(1);
  opacity: 1;
  z-index: 3;
}

.review-card.prev {
  transform: translateX(-60%) scale(0.8); /* peek left */
  opacity: 0.4;
  z-index: 2;
}

.review-card.next {
  transform: translateX(-40%) scale(0.8); /* peek right */
  opacity: 0.4;
  z-index: 2;
}


.review-card.prev {
  transform: translateX(calc(-50% - 120px)) scale(0.8);
}

.review-card p {
  font-style: italic;
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: center;
}

.reviewer img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #007bff;
}

.reviewer h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #222;
}

.reviewer span {
  font-size: 0.85rem;
  color: #777;
}

/* Contact Info Section */
.quick-contact {
  text-align: center;
  padding: 15px;
  background: #f4f4f4;
  font-size: 14px;
  color: #333;
}

.quick-contact a {
  color: #007bff;
  text-decoration: none;
}

.quick-contact a:hover {
  text-decoration: underline;
}


/* Contact */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: auto;
}

.contact label {
  font-weight: bold;
  color: #444;
}

.contact input,
.contact textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact textarea {
  resize: vertical;
  min-height: 120px;
}

.contact button {
  background: #007bff;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact button:hover {
  background: #0056b3;
}

/* Footer */
.footer {
  background: #222;
  color: #bbb;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
