/* Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f5f7fa;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  background-color: #0066cc;
  color: white;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  border-radius: 30px;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}
button:hover,
button:focus {
  background-color: #004a99;
  outline: none;
  box-shadow: 0 6px 16px rgba(0, 74, 153, 0.4);
}
input, textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.9rem 1.2rem;
  border: 1.8px solid #cbd2d9;
  border-radius: 8px;
  width: 100%;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  resize: vertical;
}
input:focus, textarea:focus {
  border-color: #0066cc;
  box-shadow: 0 0 6px #79aaff;
  outline: none;
}
label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #102a43;
  display: block;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #004a99;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  z-index: 1200;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  font-weight: 600;
  font-size: 1rem;
}
.navbar .logo {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 3px;
  user-select: none;
  font-family: 'Segoe UI Black', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.navbar nav ul {
  display: flex;
  gap: 2.5rem;
}
.navbar nav ul li a {
  color: white;
  transition: color 0.3s ease;
  padding: 0.4rem 0;
  border-bottom: 3px solid transparent;
}
.navbar nav ul li a:hover,
.navbar nav ul li a:focus {
  color: #a0c4ff;
  border-bottom-color: #a0c4ff;
  outline: none;
}

/* Mobile Navbar */
.menu-toggle {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 22px;
  position: relative;
  background: none;
  border: none;
}
.menu-toggle span {
  position: absolute;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: 0.3s ease;
  left: 0;
}
.menu-toggle span:nth-child(1) {
  top: 0;
}
.menu-toggle span:nth-child(2) {
  top: 9px;
}
.menu-toggle span:nth-child(3) {
  bottom: 0;
}

@media (max-width: 900px) {
  .navbar nav ul {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  nav.open {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 1100;
    background-color: #004a99;
    display: flex !important;
    flex-direction: column;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  }
  nav.open ul {
    flex-direction: column;
    padding: 1rem 0;
  }
  nav.open ul li {
    padding: 0.8rem 2rem;
  }
  nav.open ul li a {
    font-size: 1.1rem;
    width: 100%;
    display: block;
    border-bottom: none;
  }
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center center;
  height: 85vh;
  max-height: 750px;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0, 74, 153, 0.8), rgba(0, 102, 204, 0.7));
  z-index: 0;
}
.hero-content {
  position: relative;
  max-width: 650px;
  z-index: 1;
}
.hero-content h1 {
  font-size: 3.25rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  text-shadow: 3px 4px 10px rgba(0,0,0,0.6);
}
.hero-content button {
  font-size: 1.25rem;
  padding: 1rem 3rem;
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 102, 204, 0.55);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.hero-content button:hover,
.hero-content button:focus {
  background-color: #003366;
  box-shadow: 0 8px 30px rgba(0, 51, 102, 0.7);
  outline: none;
}

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .hero-content button {
    font-size: 1rem;
    padding: 0.75rem 2rem;
  }
  .hero {
    height: 65vh;
  }
}

/* Services Section */
.services {
  max-width: 1100px;
  margin: 3rem auto 1rem;
  padding: 0 1.5rem;
}
.services h2 {
  color: #003366;
  font-weight: 800;
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3.5rem;
  letter-spacing: 0.02em;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}
.card {
  background-color: white;
  border-radius: 18px;
  padding: 2.5rem 2rem 3rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.35s ease;
  cursor: default;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 20px 50px rgba(0, 102, 204, 0.2);
  transform: translateY(-8px);
  outline: none;
}
.card-icon {
  font-size: 3.8rem;
  color: #007acc;
  margin-bottom: 1.3rem;
  user-select: none;
}
.card h3 {
  font-size: 1.375rem;
  color: #003366;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.card p {
  font-size: 1rem;
  color: #555d66;
  line-height: 1.5;
}

/* Portfolio Section */
.portfolio {
  background-color: white;
  max-width: 1100px;
  margin: 5rem auto 3rem;
  padding: 0 1.5rem 2rem;
}
.portfolio h2 {
  color: #003366;
  font-weight: 800;
  text-align: center;
  font-size: 2.25rem;
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}
.portfolio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2.8rem;
}
.portfolio-card {
  background-color: #f9fbff;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 102, 204, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #1c325d;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.portfolio-card:hover,
.portfolio-card:focus {
  box-shadow: 0 20px 60px rgba(0, 102, 204, 0.25);
  transform: translateY(-12px);
  outline: none;
}
.portfolio-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  flex-shrink: 0;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}
.portfolio-content {
  padding: 2rem 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.portfolio-content h3 {
  margin: 0 0 0.75rem 0;
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: 0.01em;
}
.portfolio-content p {
  flex-grow: 1;
  font-size: 1rem;
  color: #3c4a6b;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.portfolio-link {
  font-weight: 700;
  color: #005bb5;
  user-select: none;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  cursor: pointer;
}
.portfolio-link:hover,
.portfolio-link:focus {
  color: #004080;
  outline: none;
}

/* Contact Section */
.contact {
  max-width: 1100px;
  margin: 5rem auto 3rem;
  padding: 0 1.5rem 3rem;
  background: white;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.07);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem 4rem;
  align-items: start;
}
.contact h2 {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #003366;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-form label {
  cursor: pointer;
}
.contact-form input,
.contact-form textarea {
  padding: 1rem 1.25rem;
  border: 2px solid #d1d9e6;
  border-radius: 12px;
  transition: border-color 0.3s ease;
  font-size: 1rem;
  color: #122d5a;
  background-color: #f7f9fc;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0066cc;
  box-shadow: 0 0 8px #79aaff;
  outline: none;
}
.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}
.contact-form button {
  width: fit-content;
  font-weight: 700;
  font-size: 1.125rem;
  padding: 0.9rem 3.25rem;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.45);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.contact-form button:hover,
.contact-form button:focus {
  background-color: #004080;
  box-shadow: 0 8px 28px rgba(0, 64, 128, 0.65);
  outline: none;
}
.contact-details {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #003366;
  border-left: 4px solid #0066cc;
  padding-left: 1.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.contact-details p {
  margin-bottom: 1.1rem;
}
.contact-details a {
  color: #004a99;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}
.contact-details a:hover,
.contact-details a:focus {
  border-color: #004a99;
  outline: none;
}

/* Responsive Contact */
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
  .contact h2 {
    margin-bottom: 2rem;
  }
  .contact-details {
    border-left: none;
    padding-left: 0;
    margin-top: 2rem;
  }
  .contact-form button {
    width: 100%;
  }
}

/* Testimonials Section */
.testimonials {
  background-color: #004a99;
  color: white;
  padding: 5rem 1.5rem 6rem;
}
.testimonials h2 {
  text-align: center;
  font-weight: 800;
  font-size: 2.75rem;
  margin-bottom: 3rem;
  letter-spacing: 0.03em;
}
.testimonial-slider {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  background-color: #003366;
  padding: 3rem 4rem;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 1.13rem;
  line-height: 1.5;
  font-style: italic;
  letter-spacing: 0.015em;
  color: #c9d1e3;
}
.testimonial.active {
  display: flex;
}
.testimonial p {
  margin-bottom: 1.7rem;
}
.testimonial cite {
  font-weight: 700;
  font-style: normal;
  font-size: 1.1rem;
  color: #a9bedf;
}
.testimonial-controls {
  margin-top: 1.5rem;
  text-align: center;
}
.testimonial-btn {
  background: none;
  border: 2px solid white;
  color: white;
  padding: 0.5rem 0.95rem;
  margin: 0 0.5rem;
  border-radius: 50%;
  user-select: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}
.testimonial-btn:hover,
.testimonial-btn:focus {
  background-color: white;
  color: #004a99;
  outline: none;
}

/* Footer */
footer {
  background-color: #001833;
  color: #bbbfc5;
  padding: 3.5rem 1.75rem;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto 3rem;
  gap: 1.5rem;
  border-top: 1.5px solid #004a99;
}
.footer-contact,
.footer-social {
  flex: 1 1 280px;
}
.footer-contact h3,
.footer-social h3 {
  color: white;
  margin-bottom: 1.25rem;
  font-size: 1.175rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.footer-contact address {
  font-style: normal;
  line-height: 1.7;
  color: #b0b8c1;
}
.social-icons {
  display: flex;
  gap: 18px;
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: #003366;
  border-radius: 50%;
  color: white;
  transition: background-color 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.social-icons a:hover,
.social-icons a:focus {
  background-color: #007acc;
  outline: none;
  box-shadow: 0 5px 14px rgba(0, 122, 204, 0.6);
}

/* Responsive Footer */
@media (max-width: 580px) {
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-contact,
  .footer-social {
    flex: unset;
    width: 100%;
  }
}
