/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #f7f9fb;
  overflow-x: hidden;
}

/* COLOUR VARIABLES */
:root {
  --navy: #0a2342;
  --gold: #f0b429;
  --light: #ffffff;
  --grey: #eef3f8;
}

/* HEADER */
.navbar {
  background: var(--navy);
  color: var(--light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease-in-out;
}

.navbar.scrolled {
  background: #06172b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.navbar .container {
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.logo img { width: 40px; height: 40px; }
.logo h1 { font-size: 1.3rem; color: var(--gold); }

nav a {
  color: var(--light);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  transition: color 0.3s;
}
nav a:hover { color: var(--gold); }

.menu-toggle {
  display: none;
  background: none;
  color: var(--light);
  border: none;
  font-size: 1.8rem;
}

/* HERO */
.hero {
  background: linear-gradient(rgba(10,35,66,0.7), rgba(10,35,66,0.7)),
              url('images/banner.jpg') center/cover no-repeat;
  color: var(--light);
  text-align: center;
  padding: 6rem 1rem;
}
.hero-content {
  max-width: 700px;
  margin: auto;
  animation: fadeInUp 1.2s ease;
}
.hero h2 { font-size: 2.2rem; margin-bottom: 1rem; color: var(--light); }
.hero p { font-size: 1.1rem; margin-bottom: 1.5rem; }

.btn {
  background: var(--gold);
  color: var(--navy);
  border: 0;
  padding: 0.9rem 1.8rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}
.btn:hover {
  background: #ffcc33;
  transform: translateY(-3px);
}

/* SECTIONS */
section { padding: 4rem 1rem; text-align: center; }
h2 { color: var(--navy); font-size: 2rem; margin-bottom: 1rem; }

/* SERVICES */
.services { background: var(--grey); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service {
  background: var(--light);
  padding: 1.8rem;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.service h3 { color: var(--navy); margin-bottom: 0.8rem; }

/* ABOUT */
.about { background: var(--light); }
.about-content {
  max-width: 700px;
  margin: auto;
  line-height: 1.7;
  color: #444;
}

/* TESTIMONIALS */
.testimonials { background: var(--grey); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.testimonial {
  background: var(--light);
  padding: 1.5rem;
  border-left: 4px solid var(--gold);
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* CONTACT */
.contact {
  background: var(--light);
}
form {
  max-width: 600px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
input, textarea {
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}
textarea { resize: vertical; min-height: 120px; }

/* FOOTER */
footer {
  background: var(--navy);
  color: var(--light);
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE MENU */
@media (max-width: 768px) {
  #nav-links {
    display: none;
    flex-direction: column;
    background: var(--navy);
    width: 100%;
    text-align: center;
  }

  #nav-links.active { display: flex; }

  .menu-toggle { display: block; }
  .btn.small {display: none;}
}

/* ===== MODAL STYLES ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--light);
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
}

.modal-content h2 {
  color: var(--navy);
  margin-bottom: 1rem;
}

.modal-content input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.modal-content .btn {
  width: 100%;
}

/* Close Button */
.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8rem;
  color: var(--navy);
  cursor: pointer;
}

.close:hover { color: var(--gold); }

/* Small Button */
.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn.outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  margin-left: 0.5rem;
}
.btn.outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Modal Animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
