/* assets/css/style.css */

:root {
  /* Color Palette */
  --primary-color: #084734;
  --accent-color: #cef17b;
  --light-accent: #cdedb3;
  --text-color: #1a1a1a;
  --bg-color: #ffffff;

  /* Font families */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Merriweather', serif;

  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;

  /* Typography Sizes */
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 2rem;
  --text-xxl: 3rem;
}

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

html {
  scroll-behavior: smooth;
}


/* Body Base */
body {
  font-family: var(--font-primary);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md);
}

.section {
  padding: var(--space-lg) 0;
}

h1, h2, h3 {
  font-family: var(--font-secondary);
}

button {
  background-color: var(--primary-color);
  color: var(--bg-color);
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--accent-color);
  color: var(--text-color);
}

/* Navbar styles */
.navbar {
  background-color: var(--bg-color);
  padding: 0.5rem 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar .container {
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: var(--text-xl);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  font-family: var(--font-secondary);
  display: flex; /* 👈 make the contents line up horizontally */
  align-items: center; /* 👈 vertically center text and image */
}

.logo-img {
  max-height: 60px;
  display: block;
  border-radius: 4px;
}

.logo-text {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-left: 10px; /* 👈 spacing between text and image */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: var(--space-md);
}

.nav-links li a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: var(--text-base);
  font-weight: bold;
  transition: color 0.3s;
}

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

.nav-links li a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--accent-color);
}

/* Hamburger styles */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: all 0.3s ease-in-out;
}

.burger.toggle .line1 {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.toggle .line2 {
  opacity: 0;
}

.burger.toggle .line3 {
  transform: rotate(-45deg) translate(5px, -5px);
}



/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: var(--bg-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-xl) var(--space-md);
  /* padding: 0 var(--space-md); */
}

.hero-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

/* Grid Layout for Hero Content */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-lg);
  width: 100%;
}

/* Left Column */
.hero-content {
  text-align: left;
}

.hero-content h1 {
  font-size: var(--text-xxl);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
  font-family: var(--font-secondary);
}

.hero-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Right Column */
.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Stats Section */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  width: 100%;
  text-align: center;
}

.stat {
  flex: 1 1 150px;
}

.stat .count {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-red);
}

.stat p {
  font-size: 1.1rem;
  color: var(--text-primary);
}

/* Buttons */
.btn {
  font-size: var(--text-base);
  padding: var(--space-sm) var(--space-md);
  border-radius: 5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  color: var(--text-color);
}

.btn-primary:hover {
  background-color: var(--light-accent);
}

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

.btn-outline:hover {
  background-color: var(--accent-color);
  color: var(--text-color);
}

.green {
  color: var(--text-color);
}




/* Services section */
.section-title {
  text-align: center;
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
  font-family: var(--font-secondary);
  color: var(--primary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  background-color: var(--bg-color);
  padding: var(--space-md);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.3s ease;
}

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

.service-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

.service-card p {
  font-size: var(--text-base);
  margin-bottom: var(--space-md);
  color: var(--text-color);
}

/* portfolio section */
.portfolio-grid {
  display: grid;
  gap: var(--space-md);
  grid-template-areas:
    "project1 project2"
    "project3 project4"
    "project5 project6"
    "project7 project8"
    "project9 project10";
    
  grid-template-columns: 1fr 1fr;
  margin-top: var(--space-lg);
}

.section-subtitle {
  text-align: center;
  font-size: var(--text-lg);
  margin-bottom: var(--space-lg);
  font-family: var(--font-secondary);
  color: var(--primary-color);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: block;
}

.portfolio-item.hidden {
  display: none;
}

.portfolio-item.fade-in {
  display: block;
  animation: fadeInUp 0.6s ease forwards;
}


.load-more-wrapper {
  text-align: center;
  margin-top: 2rem;
}


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

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  opacity: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease;
  text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  font-size: var(--text-lg);
  margin: 0;
  font-family: var(--font-secondary);
}

.portfolio-item {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.about-text p {
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.about-image img {
  width: 100%;
  /* border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); */
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-accent);
  padding: var(--space-xl) var(--space-sm);
  text-align: center;
  font-family: var(--font-primary);
}

.testimonials .section-title {
  margin-bottom: var(--space-md);
  font-size: var(--text-xl);
  color: var(--primary-color);
  font-family: var(--font-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.testimonial-card {
  background: var(--bg-color);
  padding: calc(var(--space-md) * 0.75); /* 1.5rem */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease;
}

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

.testimonial-text {
  font-style: italic;
  margin-bottom: var(--space-sm);
  color: var(--text-color);
  font-size: var(--text-base);
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  color: var(--primary-color);
  font-size: var(--text-sm);
  font-family: var(--font-secondary);
}





/* Contact Section */
#contact {
  background-color: var(--bg-light);
  padding: var(--space-xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: flex-start;
}

.contact-text {
  max-width: 500px;
}

.contact-text h2 {
  font-size: 2.25rem;
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
}

.contact-text p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.contact-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.fas {
  color: var(--primary-color);
}

.fab {
  color: var(--primary-color);
  font-size: 1.2rem; /* Slightly larger for more weight */
  font-weight: bold;
  text-shadow: 
    0 0 1px var(--primary-color),
    0 0 1px var(--primary-color);
}


/* FAQ Section - Updated */
/* #faq {
  background-color: var(--bg-color);
  color: var(--text-color);
}

.faq-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.faq-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: var(--space-md);
  cursor: pointer;
  border: 1px solid #ddd;
  transition: background-color 0.3s;
  font-family: var(--font-primary);
}

.faq-item summary {
  font-weight: 600;
  font-size: var(--text-base);
  list-style: none;
  position: relative;
  font-family: var(--font-secondary);
  color: var(--primary-color);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item[open] {
  background-color: var(--light-accent);
}

.faq-item summary::after {
  content: '+';
  font-weight: bold;
  font-size: 2rem;
  color: var(--primary-color);
  margin-left: var(--space-xs);
  float: right;
  transition: transform 0.3s;
}

.faq-item[open] summary::after {
  content: '-';
}


.faq-item p {
  margin-top: var(--space-xs);
  line-height: 1.5;
  font-size: var(--text-base);
  color: var(--text-color);
}

.faq-item[open] p {
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.faq-item p {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
} */

.faq-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-bottom: var(--space-md);
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md);
  background: none;
  border: none;
  text-align: left;
  font-size: var(--text-base);
  font-family: var(--font-secondary);
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  gap: var(--space-sm); /* works now because of flex! */
}

.faq-question::after {
  content: '+';
  font-weight: bold;
  font-size: 2rem;
  color: var(--primary-color);
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  content: '-';
}


.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  padding: 0 var(--space-md);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* adjust as needed */
  opacity: 1;
  padding: var(--space-md);
  
}

.faq-answer p {
  margin: 0;
  line-height: 1.5;
  font-size: var(--text-base);
  color: var(--text-color);
}





/* Contact Section */
.contact-text a:hover {
  text-decoration: underline;
}

/* Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  background: #fff;
  padding: var(--space-lg);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form input,
.contact-form textarea {
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color, #ddd);
  border-radius: 6px;
  background-color: #f9f9f9;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-color);
  outline: none;
}

.contact-form button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--accent-color);
}


/* Footer */
.footer {
  text-align: center;
  font-size: var(--text-sm);
  background-color: var(--bg-dark);
  color: var(--primary-color);
  padding: var(--space-md) 0;
}

.footer-links a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Free Consultation Banner */
#freeConsultBanner {
  background-color: var(--accent-color);
  color: var(--text-color);
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-base);
  font-weight: 500;
  font-family: var(--font-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 998;
}

#freeConsultBanner p {
  margin: 0;
}

.banner-btn {
  background-color: var(--primary-color);
  color: var(--bg-color);
  padding: 0.5rem 1rem;
  margin-left: var(--space-sm);
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.banner-btn:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
}


/* Consultation Modal */
.consult-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

/* Modal Content */
.consult-modal-content {
  background-color: var(--bg-color);
  margin: 10% auto;
  padding: var(--space-lg);
  border-radius: 10px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.4s ease;
  position: relative; /* Ensures close button is positioned within */
}

/* Modal Title */
.consult-modal-content h3 {
  font-size: var(--text-xl);
  color: var(--primary-color);
  margin-bottom: var(--space-sm);
  font-family: var(--font-secondary);
}

/* Modal Paragraph */
.consult-modal-content p {
  font-size: var(--text-base);
  color: var(--text-color);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

/* Close Button */
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-modal:hover {
  color: var(--accent-color);
}

@keyframes flashBackground {
  0% { background-color: #fffcdb; }
  50% { background-color: #fff1a8; }
  100% { background-color: transparent; }
}

.highlight-flash {
  animation: flashBackground 1.5s ease-in-out;
}



/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* pricing page */



.package-highlight {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.1rem;
  font-style: italic;
  margin-top: var(--space-sm);
}



.blog-title {
  font-size: var(--text-xxl);
  text-align: center;
  font-family: var(--font-secondary);
  margin-bottom: var(--space-sm);
  color: var(--primary-color);
}

.blog-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  font-size: var(--text-lg);
  color: var(--text-color);
}

.blog-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-card {
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.blog-card img {
  width: 100%;
  height: auto;
  display: block;
}

.blog-card h2 {
  font-size: var(--text-xl);
  margin: var(--space-sm);
  font-family: var(--font-secondary);
}

.blog-card h2 a {
  color: var(--primary-color);
  text-decoration: none;
}

.blog-card .blog-excerpt {
  font-size: var(--text-base);
  color: var(--text-color);
  margin: 0 var(--space-sm) var(--space-md);
}

.blog-card-link {
  text-decoration: none;
  color: var(--primary-color);
  display: block;
  transition: transform 0.3s ease;
}

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

/* BLOG POST PAGE STYLES */

/* Container spacing and layout */
.blog-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-color);
  font-family: var(--font-primary, 'Poppins', sans-serif);
}

/* Headings within post */
.blog-content h2 {
  font-size: var(--text-lg);
  margin-top: 2rem;
  color: var(--primary-color);
  font-family: var(--font-secondary, 'Merriweather', serif);
}

/* Paragraphs */
.blog-content p {
  margin-bottom: 1.2rem;
}

/* Blockquotes */
.blog-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
  color: #555;
}

/* Blog image styling */
.blog-content img {
  max-width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: 8px;
}

.blog-post-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin: 2rem 0;
}

/* pricing page */
/* Hero style for pricing page */
.pricing-hero {
  background-color: var(--bg-secondary); /* or a soft tone for contrast */
  padding: 4rem 1rem;
  text-align: center;
  color: var(--primary-color);
}

.pricing-hero .section-title {
  font-size: 2rem;
  color: var(--primary-red); /* or your brand primary */
  margin-bottom: 1rem;
}

.pricing-hero .section-subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.pricing-hero .section-description {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-main, #1c1d22); /* fallback if --bg-main missing */
  display: flex;
  flex-direction: column; /* stack spinner + text vertically */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  width: 50px;
  height: 50px;
  border: 6px solid #ffffff40;
  border-top: 6px solid var(--accent-red, #084734);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem; /* space below spinner */
}

.preloader-text {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.8;
  animation: fadeIn 1.5s ease-in-out infinite alternate;
}

.preloader-logo {
  width: 120px;
  height: auto;
  opacity: 0.9;
  animation: fadeIn 1.5s ease-in-out infinite alternate;
}

/* Spin Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Fade in animation for text/logo */
@keyframes fadeIn {
  from {
    opacity: 0.3;
  }
  to {
    opacity: 1;
  }
}


.glow-text {
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 5px #fff, 0 0 10px #0fa, 0 0 20px #0fa;
  animation: glow 3s ease-in-out infinite alternate;
  margin-top: 1rem;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 5px #fff, 0 0 10px #0fa, 0 0 20px #0fa;
  }
  50% {
    text-shadow: 0 0 8px #fff, 0 0 16px #0fa, 0 0 24px #0fa;
  }
  100% {
    text-shadow: 0 0 10px #fff, 0 0 20px #0fa, 0 0 30px #0fa;
  }
}








/* Mobile Responsiveness */
@media (max-width: 600px) {
  .consult-modal-content {
    margin: 20% var(--space-sm);
    padding: var(--space-md);
  }

  .close-modal {
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
  }

   #freeConsultBanner {
    font-size: var(--text-sm);
    padding: var(--space-sm);
  }

  .banner-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  #freeConsultBanner p {
    flex-direction: column;
    gap: 0.75rem;
  }

  .blog-title {
    font-size: var(--text-xl);
    padding: 0 var(--space-sm);
  }

  .blog-intro {
    font-size: var(--text-base);
    padding: 0 var(--space-sm);
  }

  .blog-grid {
    gap: var(--space-md);
  }

  .blog-card {
    margin: 0 auto;
    border-radius: 6px;
  }

  .blog-card h2 {
    font-size: var(--text-lg);
    margin: var(--space-sm);
  }

  .blog-card .blog-excerpt {
    font-size: var(--text-sm);
    margin: 0 var(--space-sm) var(--space-md);
  }

.blog-card img {
  width: calc(100% - 40px); /* subtract left and right margin */
  margin: 0 20px;
  border-radius: 8px;
  max-height: 350px;
  object-fit: cover;
}
}







@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-areas:
      "project1"
      "project2"
      "project3"
      "project4";
    grid-template-columns: 1fr;
  }
}



@media (max-width: 768px) {

   /* .logo-img {
    display: none;
  } */

  .logo-text {
    display: inline;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-color);
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: var(--space-md);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .burger {
    display: flex;
  }

   .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    
  }

  .hero-content {
    order: 2;
        text-align: center;

  }

  .hero-image {
    order: 1;
  }

   .hero-image img {
    margin-top: 2rem;
  }
  .hero h1 {
    font-size: var(--text-xl);
  }

  .hero p {
    font-size: var(--text-base);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .service-card {
    text-align: center;
  }

  .portfolio-overlay h3 {
    font-size: var(--text-base);
  }

  .portfolio-grid {
    gap: var(--space-sm);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

   .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-form {
    padding: var(--space-md);
  }

  .contact-form button {
    align-self: center;
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }

    .blog-title {
    font-size: var(--text-xl);
  }

  .blog-intro {
    font-size: var(--text-base);
  }

  .blog-content h2 {
    font-size: var(--text-base);
  }

  .blog-content {
    padding: 0 1rem;
  }

  /* Pricing page improvements */
.services-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-card {
  padding: var(--space-md);
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #fff;
  margin-bottom: var(--space-md);
  text-align: left; /* keeps bullet lists clean */
}

.service-card h3,
.service-card h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-card ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
}

.service-card ul li {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.package-highlight {
  color: #084734;
  font-weight: 500;
  font-style: italic;
  font-size: 1rem;
  margin-top: 0.75rem;
}

/* Center the CTA section */
#pricing .btn-primary {
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1rem;
}

/* Ensure add-ons are stacked and readable */
#pricing h3.section-title {
  text-align: center;
  margin-top: var(--space-lg);
}

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

 .pricing-hero {
    padding: 3rem 1rem;
  }

  .pricing-hero .section-title {
    font-size: 1.6rem;
  }

  .pricing-hero .section-subtitle {
    font-size: 1rem;
  }

  .pricing-hero .section-description {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

}
