/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #f5f5f5;
  color: #333;
}

/* =========================
   HEADER
========================= */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #ffffff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: 0.3s ease;
}

header.scrolled {
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.logo {
  font-weight: 700;
  font-size: 20px;
  color: #1B7987;
}

.logo span {
  color: #6D6E71;
}

/* =========================
   HAMBURGER
========================= */
.hamburger {
  width: 30px;
  cursor: pointer;
  z-index: 1003;
}

.hamburger span {
  display: block;
  height: 3px;
  background: #1B7987;
  margin: 6px 0;
  transition: 0.3s;
}

/* =========================
   MOBILE MENU
========================= */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background: #ffffff;
  box-shadow: -5px 0 20px rgba(0,0,0,0.1);
  transition: 0.4s ease;
  z-index: 1002;
  padding: 60px 30px;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.mobile-menu a {
  text-decoration: none;
  font-size: 18px;
  color: #333;
  font-weight: 500;
}

.mobile-menu .cta {
  background: #1B7987;
  color: white;
  padding: 12px;
  text-align: center;
  border-radius: 6px;
}

.close-btn {
  font-size: 30px;
  cursor: pointer;
  text-align: right;
  margin-bottom: 40px;
}

/* =========================
   OVERLAY
========================= */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1001;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

body.menu-open {
  overflow: hidden;
}

/* =========================
   HERO
========================= */
.hero {
  padding-top: 140px;
  padding-bottom: 100px;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
  background: #ffffff;
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  animation: fadeInDown 1s ease forwards;
}

.hero p {
  font-size: 18px;
  color: #666;
  margin-bottom: 40px;
  animation: fadeInUp 1.2s ease forwards;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* =========================
   BUTTONS
========================= */
.btn {
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: 0.3s;
}

.primary {
  background: #1B7987;
  color: white;
}

.primary:hover {
  background: #15626d;
}

.secondary {
  border: 2px solid #468C42;
  color: #468C42;
}

.secondary:hover {
  background: #468C42;
  color: white;
}

/* =========================
   SECTION
========================= */
.section {
  padding: 100px 20px;
  text-align: center;
  background: #ffffff;
}

.section.grey {
  background: #f1f1f1;
}

.section h2 {
  font-size: 28px;
  color: #1B7987;
  margin-bottom: 20px;
}

.section p {
  max-width: 700px;
  margin: auto;
  color: #6D6E71;
}

/* =========================
   SERVICES GRID
========================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: white;
  padding: 40px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card:hover {
  transform: translateY(-6px);
}

/* =========================
   PROJECTS GRID
========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 25px;
  margin-top: 40px;
}

.project {
  background: #ddd;
  padding: 80px 20px;
  border-radius: 8px;
  font-weight: 600;
}

/* =========================
   CONTACT FORM
========================= */
.contact-form {
  max-width: 600px;
  margin: auto;
  margin-top: 30px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

#formMessage {
  margin-top: 10px;
  font-weight: 600;
}

/* =========================
   FOOTER
========================= */
footer {
  background: #6D6E71;
  color: white;
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
}

/* =========================
   SCROLL REVEAL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes fadeInDown {
  from {opacity: 0; transform: translateY(-20px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(20px);}
  to {opacity: 1; transform: translateY(0);}
}

/* =========================
   MOBILE FIX
========================= */
@media (max-width: 768px) {

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

}