/* ========= Root Variables ========= */
:root {
  --primary: #2563eb;
  --secondary: #3b82f6;
  --accent: #10b981;
  --dark: #1f2937;
  --light: #f9fafb;
  --gray: #9ca3af;
}

/* ========= Global ========= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ========= Header ========= */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

header.shrink {
  padding: 10px 0;
  background: var(--primary);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s;
}

header.shrink .logo {
  color: white;
}

.logo i {
  margin-right: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link.active {
  color: var(--primary);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

/* ========= Hero ========= */
.hero {
  padding: 150px 0 100px;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  color: white;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* ========= Buttons ========= */

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background-color: #0da271;
  transform: translateY(-2px);
}

.btn.small {
  padding: 6px 12px;
  font-size: 0.9rem;
}

/* ========= Sections ========= */
        
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.section-title p {
  color: var(--white);
  max-width: 700px;
  margin: 0 auto;
}

/* ========= Services ========= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

/* ========= Stats ========= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  text-align: center;
  gap: 30px;
}

.stat h2 {
  font-size: 2.5rem;
  color: var(--primary);
}

/* ========= Blog ========= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.blog-img {
  height: 300px;
  background-color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.blog-img {
  height: 300px;
  overflow: hidden;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* crops image nicely */
  display: block;
}



.blog-content {
  padding: 20px;
}

.blog-date {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

/* Testimonials */
.testimonials {
    background-color: #f3f4f6;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;  /* makes it circular */
  object-fit: cover;   /* crops nicely */
  margin-right: 15px;
}

/* ========= Contact Form ========= */
.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 50%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.error {
  color: red;
  font-size: 0.8rem;
  margin-top: 5px;
  display: block;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 0.9rem;
}

/* ========= Fade-in Animation ========= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========= Responsive ========= */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 80px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    transition: 0.3s;
    text-align: center;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 15px 0;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

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

/* ========= Dark Mode ========= */
body.dark-mode {
  background: #111;
  color: #eee;
}

body.dark-mode header {
  background: #1e293b;
}

body.dark-mode .nav-link {
  color: #eee;
}

body.dark-mode .service-card,
body.dark-mode .blog-card {
  background: #1e293b;
  color: #eee;
}

body.dark-mode footer {
  background: #000;
}


/* === About Section Background === */
.about-section {
  background: url("../image/backgroud.jpg") center/cover no-repeat;
  color: white; /* makes text readable */
  position: relative;
  padding: 200px 0;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); /* dark overlay */
  z-index: 0;
}

.about-section .container {
  position: relative;
  z-index: 1; /* keeps text above overlay */
}