@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  color: #1e2a38;
  background: #f9f9f9;
  line-height: 1.6;
}

section {
  padding: 60px 20px;
  position: relative;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 40px;
}

/* ---------------- NAVBAR ---------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 50px;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 60px;
}

.brand-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #006a4e;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #1e2a38;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
}

.nav-links a:hover {
  color: #006a4e;
}

/* ---------------- HERO ---------------- */
.hero {
  /* ✅ Gradient background instead of photo */
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: white;
  text-align: center;
  padding: 120px 20px;
  position: relative;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero .subheading {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #eee;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Optional hero photo */
.hero.with-photo {
  background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)),
              url("images/hero-bg.jpg") center/cover no-repeat;
}

/* Buttons */
.btn-primary, .btn-secondary {
  padding: 12px 25px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #006a4e, #00b377);
  color: white;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #009966, #00cc88);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(135deg, #00c2ff, #0099cc);
  color: white;
}
.btn-secondary:hover {
  background: linear-gradient(135deg, #33d6ff, #00aacc);
  transform: translateY(-2px);
}

/* ---------------- ANGLED SECTIONS ---------------- */
.angled::before {
  content: "";
  position: absolute;
  top: -50px;
  left: 0;
  width: 100%;
  height: 100px;
  background: inherit;
  transform: skewY(-3deg);
  transform-origin: top left;
  z-index: -1;
}

/* ---------------- SERVICES ---------------- */
.services {
  text-align: center;
  background: repeating-linear-gradient(
    45deg,
    #ffffff,
    #ffffff 40px,
    #f9f9f9 40px,
    #f9f9f9 80px
  );
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.service-card {
  background: rgba(255,255,255,0.95);
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.service-card:hover {
  background: #fff;
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.icon-circle {
  width: 60px;
  height: 60px;
  background: #006a4e;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  margin: 0 auto 15px;
}

/* ---------------- PROJECTS ---------------- */
.projects {
  text-align: center;
  background: #f4f7f8;
  position: relative;
  overflow: hidden;
}

.projects::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  background: radial-gradient(circle, #00c2ff, transparent 70%);
  filter: blur(120px);
  z-index: 0;
}
.projects::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  bottom: -100px;
  right: -100px;
  background: radial-gradient(circle, #00b377, transparent 70%);
  filter: blur(120px);
  z-index: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.project-card {
  overflow: hidden;
  border-radius: 12px;
  background: white;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.project-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.overlay {
  padding: 20px;
  text-align: left;
}

.overlay h3 a {
  color: #006a4e;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
}

.overlay h3 a:hover {
  color: #009966;
}

.overlay p {
  font-size: 0.95rem;
  color: #555;
  margin-top: 8px;
}

/* ---------------- CONTACT ---------------- */
.contact {
  text-align: center;
  background: #fff;
}

form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}

form input, form textarea {
  padding: 14px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form button {
  padding: 14px;
  background: linear-gradient(135deg, #006a4e, #00b377);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

form button:hover {
  background: linear-gradient(135deg, #009966, #00cc88);
  transform: translateY(-2px);
}

/* ---------------- MODAL ---------------- */
.modal {
  display: none; /* ✅ hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: white;
  padding: 35px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.close-btn {
  float: right;
  font-size: 22px;
  cursor: pointer;
  color: #777;
}

/* ---------------- FOOTER ---------------- */
footer {
  background: #1e2a38;
  color: white;
  padding: 30px 20px;
}

.footer-content {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
}

.footer-links a {
  color: #bbb;
  font-size: 0.9rem;
  text-decoration: none;
}
.footer-links a:hover {
  color: white;
}

.socials a img {
  width: 22px;
  margin: 0 8px;
  filter: brightness(0) invert(1);
  transition: 0.3s;
}
.socials a:hover img {
  filter: brightness(0.8) invert(1);
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .nav-links { display: none; }
  .hero-cta { flex-direction: column; }
}
