/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Roboto:wght@400;500&display=swap');

:root {
  --primary: #1E40AF;
  --accent: #00C853;
  --light-bg: #F4F6F8;
  --text-dark: #212121;
  --text-muted: #5F6368;
  --white: #FFFFFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
}

body {
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  scroll-behavior: smooth; /* smooth scrolling for nav links */
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Poppins', sans-serif;
}
.nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}
.nav a:hover {
  color: var(--accent);
}

.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Buttons */
.btn {
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}
.primary-btn {
  background: var(--primary);
  color: var(--white);
}
.primary-btn:hover {
  background: var(--accent);
}
.secondary-btn {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}
.secondary-btn:hover {
  background: var(--primary);
  color: var(--white);
}
/* Button hover motion */
.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 2rem;
  background: var(--light-bg);
}
.hero-content {
  max-width: 50%;
}
.hero-content h1 {
  font-size: 2.5rem;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 1rem;
}
.hero-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.hero-buttons .btn {
  margin-right: 1rem;
}
.hero-image {
  flex: 1;
  background: url('images/hero-image.jpg') no-repeat center center;
  background-size: contain;   /* show full image */
  background-position: top center; /* align top */
  background-repeat: no-repeat;
  min-height: 300px;
  border-radius: 12px;
}


/* Services */
.services {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--white);
}
.services h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-weight: 600;
  color: var(--primary);
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.15); /* blue glow */
}

/* About section*/
.about-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3rem 2rem;
  gap: 2rem; /* space between text and image */
  flex-wrap: wrap; /* ensures it stacks on smaller screens */
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  margin-bottom: 1.5rem; /* spacing between paragraphs and button */
}

.about-text .btn {
  margin-top: 1rem; /* spacing above the button */
}

.about-image {
  flex: 1;
  min-width: 300px;
}

/* Portfolio Section */
.portfolio {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--light-bg);
}

.portfolio h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.portfolio-card img {
  width: 100%;
  max-height: 250px;       /* cap height */
  object-fit: contain;     /* no crop */
}



.portfolio-info {
  padding: 1rem;
  text-align: left;
}

.portfolio-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.portfolio-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Testimonials */
/* Testimonials Section */
.testimonials {
  padding: 3rem 2rem;
  background: var(--light-bg);
  text-align: center;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.testimonial-card p {
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.testimonial-card h4 {
  font-weight: 600;
  color: var(--primary);
}


/* CTA Banner */
.cta-banner {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  border-radius: 12px;
  margin: 2rem;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem; /* add space below heading */
}

.cta-banner .btn {
  margin-top: 1rem; /* add space above button */
}



/* Blog */
.blog-post {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.contact {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--white);
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-info p {
  margin: 0.5rem 0;
  color: var(--text-dark);
}


/* About Section */
.about-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Blog Section */
.blog-preview {
  padding: 3rem 2rem;
  background: var(--white);
  text-align: center;
}

.blog-preview h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.blog-intro {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background: var(--light-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-content {
  padding: 1rem;
  text-align: left;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.blog-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.read-more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.read-more:hover {
  color: var(--primary);
}


/* Footer */
.footer {
  padding: 2rem;
  background: var(--primary);
  color: var(--white);
  text-align: center;
  font-size: 0.9rem;
}
.footer a {
  color: var(--white);
  margin: 0 0.5rem;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--white);
    width: 200px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  .nav.active {
    transform: translateX(0);
  }
  .nav ul {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  .hamburger {
    display: block;
  }
  .desktop-cta {
    display: none;
  }
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-image {
    width: 100%;
    min-height: 250px;
    margin-top: 1.5rem;
  }
}

.footer-social {
  margin: 1rem 0;
}

.footer-social a {
  color: var(--white);
  margin: 0 0.5rem;
  font-size: 1.2rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

