/* === 1. HERO SECTION (IMPROVED) === */
.hero {
  padding-top: calc(var(--header-height) + 6rem);
  padding-bottom: 6rem;
  text-align: center;
  background: linear-gradient(180deg, #f0ede6 0%, var(--bg-color) 100%);
  border-bottom: 1px solid var(--border-color);
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  color: #555;
}

.hero-content .btn {
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(58, 74, 93, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(58, 74, 93, 0.3);
}

/* === 2. CORE SERVICES === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--card-bg-color);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(58, 74, 93, 0.07);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(58, 74, 93, 0.12);
}

.service-card i {
  font-size: 3rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

/* === 3. WHY CHOOSE US === */
.features-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.features-image img {
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(58, 74, 93, 0.07);
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.feature-item i {
  font-size: 1.2rem;
  color: var(--primary-dark);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.feature-item span {
  color: #555;
}

/* === 4. OUR PROCESS (NEW SECTION) === */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.process-step {
  background-color: var(--card-bg-color);
  padding: 2.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(58, 74, 93, 0.07);
  border: 1px solid var(--border-color);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(58, 74, 93, 0.12);
}

.process-icon {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  background-color: var(--light-bg-inner);
  width: 70px;
  height: 70px;
  line-height: 70px;
  border-radius: 50%;
  margin: 0 auto 1.5rem auto;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.process-step p {
  color: #555;
  font-size: 0.9rem;
}

/* === 5. ACHIEVEMENTS SECTION (Our Milestones) === */
.stats-section {
  background-color: var(--primary-dark);
  border-radius: 12px;
  padding: 4rem 3rem;
  margin: 2.5rem auto;
  color: var(--text-light);
}

.stats-section .section-title {
  color: var(--text-light);
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item i {
  font-size: 2.5rem;
  color: var(--secondary-muted);
  margin-bottom: 1rem;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  color: #ccc;
}

/* === 6. TECHNICAL EXPERTISE === */
/* Uses .service-card style */

/* === 7. PORTFOLIO PREVIEW (NEW SECTION) === */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(58, 74, 93, 0.07);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(58, 74, 93, 0.12);
}

.portfolio-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-info {
  padding: 1.5rem;
}

.portfolio-info h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.portfolio-info p {
  font-size: 0.95rem;
  color: #555;
}

.portfolio-view-all {
  text-align: center;
  margin-top: 3rem;
}

/* === 8. TESTIMONIALS === */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--card-bg-color);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(58, 74, 93, 0.07);
  border: 1px solid var(--border-color);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #444;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.author-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-weight: 600;
  color: var(--primary-dark);
}

.author-info p {
  font-size: 0.9rem;
  color: #555;
}

/* === 9. BLOG PREVIEW === */
/* Blog grid/card styles inherited from style.css */
#home-blog-grid .blog-card:hover {
  /* Override hover from style.css if needed, same as portfolio */
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(58, 74, 93, 0.12);
}

.blog-view-all {
  text-align: center;
  margin-top: 3rem;
}

/* === 10. PARTNERS SECTION === */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.partner-logo img {
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logo img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* === 11. "LET'S START PROJECT" SECTION STYLE === */
.cta {
  background-color: var(--primary-dark);
  color: var(--text-light);
  text-align: center;
  padding: 6rem 3rem;
  border-radius: 12px;
  margin: 2.5rem auto;
}

.cta-container {
  max-width: 700px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: #eee;
}

.cta-btn {
  padding: 1rem 3rem;
  font-size: 1.2rem;
  font-weight: 600;
  border-radius: 50px;
  background-color: var(--bg-color);
  color: var(--primary-dark);
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* === MULTI-STEP MODAL SPECIFIC STYLE === */
.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.step-indicator {
  color: #ccc;
  font-weight: 500;
  text-align: center;
  flex: 1;
  padding-bottom: 10px;
  border-bottom: 3px solid #ccc;
  font-size: 0.9rem;
}

.step-indicator.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.form-step-title {
  text-align: center;
  color: var(--primary-dark);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background-color: var(--light-bg-inner);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(58, 74, 93, 0.1);
  background-color: var(--card-bg-color);
}

.file-input {
  padding: 0.5rem;
  font-size: 0.9rem;
  border: 1px dashed #ccc;
  background-color: var(--card-bg-color);
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.btn-prev {
  background-color: #ccc;
  color: var(--text-dark);
}

.btn-prev:hover {
  background-color: #bbb;
}

.message-card {
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 5px;
}

.message-card i {
  font-size: 1.2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.message-card h3 {
  display: none;
}

#success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

#error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}


/* === HOME PAGE SPECIFIC MEDIA QUERIES === */
@media screen and (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .features-container {
    grid-template-columns: 1fr;
  }

  .features-image {
    order: -1;
    margin-bottom: 2rem;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 4rem 1.5rem;
  }

  .cta h2 {
    font-size: 2rem;
  }

  .cta-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .step-indicator {
    font-size: 0.8rem;
  }
}