/* Base & Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: #333; background: #f4f7f9; line-height: 1.6; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* Variables */
:root { --primary: #0066ff; --primary-dark: #0052cc; --light: #ffffff; --bg: #f4f7f9; --text: #333; }

/* Header */
.header { background: var(--light); position: fixed; top: 0; width: 100%; box-shadow: 0 2px 5px rgba(0,0,0,0.1); z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo { font-size: 1.5rem; font-weight: 600; color: var(--primary); }
.nav ul { list-style: none; display: flex; }
.nav ul li + li { margin-left: 1.5rem; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; transition: color 0.3s; }
.nav a:hover, .nav a.active { color: var(--primary); }
.nav-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero */
/* .hero, .page-hero { min-height: 60vh; background: center/cover no-repeat; display: flex; align-items: center; justify-content: center; }*/
.hero { background-image: url('images/hero.jpg'); height: 100vh; }
/*.hero-content, .page-hero .hero-content { text-align: center; color: var(--light); }
.hero h1, .page-hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p, .page-hero p { font-size: 1.1rem; margin-bottom: 1.5rem; } */


.hero,
.page-hero {
  position: relative;               /* enable overlay */
  overflow: hidden;                 /* clip zoom */
  min-height: 60vh;
  height: 100vh;                    /* full-screen on desktop */
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;           /* will animate on hover */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-size 1.5s ease;
}

/* dark overlay for contrast */
.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.5s ease;
  pointer-events: none;
}

/* zoom background & darken overlay on hover */
.hero:hover,
.page-hero:hover {
  background-size: 110%;            /* zoom effect */
}
.hero:hover::before,
.page-hero:hover::before {
  background: rgba(0, 0, 0, 0.6);
}

/* ensure content sits above overlay */
.hero-content,
.page-hero .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--light);
  animation: fadeInUp 1s ease-out both;
}

/* text styles */
.hero h1,
.page-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.hero p,
.page-hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

/* call-to-action button pulse and hover */
.hero .btn,
.page-hero .btn {
  animation: pulse 2s infinite 1s; /* delay so text loads first */
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.hero .btn:hover,
.page-hero .btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn { display: inline-block; padding: 0.75rem 1.5rem; background: var(--primary); color: var(--light); font-weight: 500; border: none; border-radius: 4px; cursor: pointer; position: relative; overflow: hidden; transition: background 0.3s; text-decoration: none; }
.btn:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--light); }

/* Ripple */
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.7); transform: scale(0); animation: ripple 600ms linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Cards */
.services-preview { padding: 4rem 0; }
.section-title { text-align: center; font-size: 2rem; margin-bottom: 2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 2rem; }
.card { background: var(--light); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.3s; }
.card:hover { transform: translateY(-10px); }
.card img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.3s; }
.card:hover img { transform: scale(1.05); }
.card h3 { font-size: 1.2rem; margin: 1rem; }
.card p { margin: 0 1rem 1rem; font-size: 0.95rem; }

/* About */
.about-preview {
  background: var(--light);
  padding: 4rem 0;
}
.about-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;               /* allow stacking on mobile */
}
.about-text {
  flex: 1 1 45%;                  /* take ~45% of width */
}
.about-image {
  flex: 1 1 45%;                  /* take ~45% of width */
}
.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* About Page */
.about-section { padding: 4rem 0; }
.about-grid { display: flex; flex-wrap: wrap; gap: 2rem; }
.about-grid .about-image { flex: 1 1 40%; }
.about-grid .about-text { flex: 1 1 55%; }
.about-grid img { width: 100%; border-radius: 8px; }

/* Team */
team-section {
  padding: 4rem 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 5rem;
}
.team-card {
  text-align: center;
}
/* Force all avatars to the same square size */
.team-card img {
  width: 300px;       /* fixed width */
  height: 300px;      /* fixed height */
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1rem; /* center and add bottom gap */
}
.team-card h3 {
  margin-bottom: 0.25rem;
}
.team-card p {
  font-size: 0.9rem;
  color: var(--text);
}
.services-detail {
  padding: 4rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.service-detail {
  text-align: center;
  margin-bottom: 0; /* grid gap handles spacing */
}

.service-detail img {
  width: 350px;               /* fixed smaller width */
  height: 235px;              /* fixed height to match aspect */
  object-fit: cover;          /* crop to fill */
  border-radius: 8px;
  margin: 0 auto 1rem;        /* center and add bottom space */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-detail img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.service-detail h2 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1.2rem;
}

.service-detail p {
  font-size: 0.95rem;
  color: var(--text);
}

/* CTA */
.cta-section { text-align: center; padding: 3rem 0; background: var(--light); }

/* Footer */
.footer { background: #222; color: #fff; padding: 2rem 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.footer-contact p { margin: 0.2rem 0; }
.social-icons { margin-top: 1rem; }
.social-icons a { color: #fff; margin: 0 0.5rem; font-size: 1.2rem; transition: color 0.3s; }
.social-icons a:hover { color: var(--primary); }

/* Responsive */
@media (max-width: 768px) {
  .nav ul { display: none; flex-direction: column; background: var(--light); position: absolute; top: 100%; left: 0; right: 0; text-align: center; }
  .nav.active ul { display: flex; }
  .nav ul li { margin: 1rem 0; }
  .nav-toggle { display: block; }
  .about-inner, .about-grid { flex-direction: column; }
}
