/* Base Styles */
:root {
  --primary-color: #002147;
  --secondary-color: #0056b3;
  --accent-color: #00bfff;
  --light-color: #e6f2ff;
  --white-color: #ffffff;
  --text-color: #333333;
  --light-text: #666666;
  --border-color: #dddddd;
  --shadow-color: rgba(0, 33, 71, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white-color);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--primary-color);
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 22px;
}

h4 {
  font-size: 18px;
}

p {
  font-size: 16px;
  margin-bottom: 1em;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-color);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white-color);
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
}

.logo-image {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-container h1 {
  font-size: 22px;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--white-color);
}

.logo-container h1 span {
  font-size: 14px;
  font-weight: 400;
  color: var(--light-color);
}

.navbar {
  display: flex;
  align-items: center;
}

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

.nav-links li {
  margin-left: 20px;
}

.nav-links a {
  color: var(--white-color);
  font-size: 16px;
  font-weight: 600;
  padding: 5px 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-color);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.underline {
  height: 3px;
  width: 80px;
  background-color: var(--accent-color);
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  position: relative;
  color: var(--white-color);
  text-align: left;
  padding: 220px 0 180px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-bottom: 100px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/hero.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: -2;
  opacity: 0.5;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(135deg, rgba(0, 33, 71, 0.8) 0%, rgba(183, 186, 189, 0.8) 100%); */
  background-color: transparent;
  z-index: -1;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0;
  margin-left: calc(-50px + 2vw);
  text-align: left;
  z-index: 1;
}

.hero-content h2 {
  font-size: 44px;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 24px;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.hero-content .btn {
  padding: 12px 30px;
  font-size: 18px;
}

/* About Section */
.about-section {
  background-color: var(--white-color);
  background-image: none;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-color);
}

/* Services Section */
.services-section {
  background-color: var(--light-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white-color);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.service-icon {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.02);
}

.service-card h3 {
  margin-bottom: 15px;
  transition: var(--transition);
}

.service-card:hover h3 {
  transform: translateY(-2px);
}

/* Team Section */
.team-section {
  background-color: var(--white-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  justify-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.team-member {
  background-color: var(--white-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  text-align: center;
  transition: var(--transition);
  width: 100%;
  max-width: 350px;
  transform: translateY(0) scale(1);
}

/* First row - 3 cards centered */
.team-grid .team-member:nth-child(1) {
  grid-column: 1 / 3;
}

.team-grid .team-member:nth-child(2) {
  grid-column: 3 / 5;
}

.team-grid .team-member:nth-child(3) {
  grid-column: 5 / 7;
}

/* Second row - 2 cards centered */
.team-grid .team-member:nth-child(4) {
  grid-column: 2 / 4;
}

.team-grid .team-member:nth-child(5) {
  grid-column: 4 / 6;
}

.team-member:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.member-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.team-member:hover .member-image img {
  transform: scale(1.1);
}

.team-member h3 {
  margin-top: 20px;
  padding: 0 20px;
  transition: var(--transition);
}

.team-member:hover h3 {
  transform: translateY(-2px);
}

.member-title {
  color: var(--light-text);
  font-weight: 600;
  margin-bottom: 5px;
  padding: 0 20px;
  transition: var(--transition);
}

.team-member:hover .member-title {
  color: var(--primary-color);
}

.member-contact {
  margin-bottom: 10px;
  padding: 0 20px;
}

.member-bio {
  padding: 0 20px 20px;
  font-size: 14px;
  transition: var(--transition);
}

.team-member:hover .member-bio {
  transform: translateY(-2px);
}

/* Careers Section */
.careers-section {
  background-color: var(--light-color);
  text-align: center;
}

.careers-content h3 {
  margin-bottom: 10px;
}

.job-openings {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.job-card {
  background-color: var(--white-color);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px var(--shadow-color);
  width: 100%;
  max-width: 350px;
  text-align: left;
}

.job-card h4 {
  margin-bottom: 15px;
}

.job-card p {
  margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
  background-color: var(--white-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.office h3 {
  margin-bottom: 10px;
}

.contact-details {
  margin-bottom: 20px;
}

.contact-form h3 {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(0, 191, 255, 0.2);
}

.contact-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background-color: var(--light-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 30px 0;
  text-align: center;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--white-color);
  font-size: 20px;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .hero-content {
    margin-left: calc(-30px + 1.5vw);
  }

  .hero-content h2 {
    font-size: 38px;
    max-width: 500px;
  }
}

@media (max-width: 992px) {
  .hero-content h2 {
    font-size: 36px;
    max-width: 450px;
  }

  .hero-content p {
    font-size: 22px;
  }

  .about-content {
    flex-direction: column;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 180px 0 140px;
    padding-bottom: 80px;
  }

  .hero-content h2 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 22px;
  }

  .hero-content {
    margin-left: 0;
    max-width: 100%;
  }

  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1000px;
  }

  .team-grid .team-member:nth-child(1) {
    grid-column: 1 / 3;
  }

  .team-grid .team-member:nth-child(2) {
    grid-column: 3 / 5;
  }

  .team-grid .team-member:nth-child(3) {
    grid-column: 1 / 3;
  }

  .team-grid .team-member:nth-child(4) {
    grid-column: 3 / 5;
  }

  .team-grid .team-member:nth-child(5) {
    grid-column: 2 / 4;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--primary-color);
    flex-direction: column;
    align-items: center;
    padding: 40px 0;
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 15px 0;
  }

  .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }

  .team-grid .team-member:nth-child(1),
  .team-grid .team-member:nth-child(2),
  .team-grid .team-member:nth-child(3),
  .team-grid .team-member:nth-child(4),
  .team-grid .team-member:nth-child(5) {
    grid-column: auto;
  }

  .team-grid .team-member:nth-child(5) {
    grid-column: 1 / 3;
    max-width: 350px;
    justify-self: center;
  }

  .job-openings {
    flex-direction: column;
    align-items: center;
  }

  .footer .container {
    flex-direction: column;
    gap: 20px;
  }

  .hero-section {
    padding: 120px 0 80px;
    min-height: 70vh;
  }

  .hero-content h2 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 20px;
  }

  .hero-content {
    margin-left: 0;
  }

  /* Reduce hover effects on mobile for better touch experience */
  .team-member:hover {
    transform: translateY(-5px) scale(1.02);
  }

  .service-card:hover {
    transform: translateY(-5px) scale(1.01);
  }

  .hero-background {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
  }
}

@media (max-width: 576px) {
  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 22px;
  }

  .hero-content h2 {
    font-size: 30px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .logo-image {
    height: 40px;
  }

  .logo-container {
    gap: 10px;
  }

  .logo-container h1 {
    font-size: 18px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding: 100px 0 60px;
    min-height: 60vh;
  }

  .hero-content {
    margin-left: 0;
  }

  .hero-background {
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
  }
}
