/* --- ROOT & GENERAL STYLES --- */
:root {
  --primary-color: #00446B; /* Dark Blue from logo */
  --secondary-color: #009BDE; /* Bright Blue from logo */
  --accent-color: #8CC63F; /* Lime Green from logo */
  --dark-color: #2c3e50;
  --light-color: #ffffff;
  --gray-color: #7f8c8d;
  --light-gray-color: #f4f6f8;
  --border-color: #ecf0f1;
  --font-family: 'Inter', system-ui, Avenir, Helvetica, Arial, sans-serif;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

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

.section {
  padding: 5rem 0;
}

.section__title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.section__subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray-color);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background-color: var(--primary-color);
  color: var(--light-color);
  border-color: var(--primary-color);
}

.btn--primary:hover {
  background-color: #003350; /* Darker shade of primary */
  color: var(--light-color);
  transform: translateY(-2px);
}

.btn--secondary {
  background-color: var(--light-color);
  color: var(--primary-color);
  border-color: var(--light-color);
}

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

.btn--full {
    width: 100%;
    padding: 1rem 1.5rem;
}

/* --- HEADER --- */
.header {
  background-color: var(--light-color);
  height: var(--header-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header__logo {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--dark-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__logo strong {
  font-weight: 700;
  color: var(--primary-color);
}

.header__logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-group--captcha {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.contact__form input,
.contact__form textarea,
.contact__form select {
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: 6px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact__form input:focus,
.contact__form textarea:focus,
.contact__form select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 68, 107, 0.15);
}

.contact__form .is-invalid {
  border-color: #d93025;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.1);
}

#contact-status[data-type="error"] {
  color: #d93025;
}

#contact-status[data-type="success"] {
  color: #0f9d58;
}

/* Mobile nav: CSS-only toggle */
.nav-toggle-checkbox {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.25rem;
}

.hamburger {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 2px;
  background-color: var(--dark-color);
  transition: background-color 0.3s ease;
}
.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background-color: var(--dark-color);
  transition: transform 0.3s ease, top 0.3s ease;
}
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* Checked state: transform hamburger to X */
#nav-toggle:checked ~ .header__actions .hamburger { background-color: transparent; }
#nav-toggle:checked ~ .header__actions .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}
#nav-toggle:checked ~ .header__actions .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
  color: var(--dark-color);
  padding: 0.5rem 0;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__link--active {
  color: var(--primary-color);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark-color);
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  color: var(--light-color);
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('Images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero__background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 68, 107, 0.75); /* Updated overlay with new primary color */
  z-index: -1;
}

.hero__content {
  max-width: 700px;
}

.hero__title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* --- SERVICES SECTION --- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--light-color);
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(44, 62, 80, 0.1);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  color: var(--primary-color);
  margin-bottom: 1rem;
  margin-left: auto;
  margin-right: auto;
}

.service-card__title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.service-card__description {
  color: var(--gray-color);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card__link {
  font-weight: 600;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.service-card__link:hover {
  color: var(--primary-color);
}

/* --- ABOUT SECTION --- */
.about {
    background-color: var(--light-gray-color);
}
.about__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about__image {
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.about__text-content .section__title,
.about__text-content .section__subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.about__list {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.about__list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.about__list i {
    color: var(--primary-color);
}

/* --- CONTACT SECTION --- */
.contact {
  background-color: var(--light-gray-color);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact__info-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.contact__info p {
  color: var(--gray-color);
  margin-bottom: 2rem;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__item i {
  color: var(--primary-color);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact__map {
  border-radius: 8px;
  overflow: hidden;
  height: 250px;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact__form-container {
  background-color: var(--light-color);
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--dark-color);
  color: #bdc3c7;
  padding-top: 4rem;
}

.footer__container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer__logo {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--light-color);
  margin-bottom: 1rem;
}

.footer__logo strong {
  font-weight: 700;
  color: var(--light-color); /* Updated for better contrast */
}

.footer__title {
  font-size: 1.2rem;
  color: var(--light-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer__list li {
  margin-bottom: 0.5rem;
}

.footer__list a {
  color: #bdc3c7;
}

.footer__list a:hover {
  color: var(--light-color);
}

.footer__list--contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.4;
}

.footer__list--contact i {
    margin-top: 4px;
    flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid #34495e;
  text-align: center;
  padding: 1.5rem 0;
}

/* --- SERVICE DETAIL PAGE --- */
.service-detail-header {
  padding: 5rem 0 3rem;
  background-color: var(--light-gray-color);
  border-bottom: 1px solid var(--border-color);
  margin-top: var(--header-height);
}

.service-detail-header .container {
  text-align: left;
}

.service-detail__title {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.service-detail__breadcrumb {
  color: var(--gray-color);
}

.service-detail__breadcrumb a {
  color: var(--primary-color);
  font-weight: 500;
}

.service-detail__breadcrumb a:hover {
  text-decoration: underline;
}

.service-detail-content {
  padding: 4rem 1rem;
}

.service-detail-content .container {
  max-width: 850px;
}

.service-detail-content h2 {
  font-size: 1.8rem;
  color: var(--dark-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.service-detail-content p, .service-detail-content ul {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-detail-content ul {
  list-style: none;
  padding-left: 0;
}

.service-detail-content li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.service-detail-content li i {
  color: var(--primary-color);
  margin-top: 4px;
  flex-shrink: 0;
}

/* Align feature subtitles and descriptions in service pages */
.service-detail-content li strong {
  display: inline-block;
  width: 260px; /* fixed title column for alignment */
  flex-shrink: 0;
}

/* Tweak alignment on medium screens */
@media (max-width: 992px) {
  .service-detail-content li strong {
    width: 220px;
  }
}

/* Stack title over description on mobile for readability */
@media (max-width: 768px) {
  .service-detail-content li {
    align-items: flex-start;
  }
  .service-detail-content li strong {
    width: auto;
    display: block;
    margin-bottom: 0.25rem;
  }
}

.service-detail-image {
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* --- TECHNOLOGIES PAGE --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.tech-card {
    background-color: var(--light-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.1);
}

.tech-card__image-container {
    height: 200px;
    overflow: hidden;
}

.tech-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-card__content {
    padding: 1.5rem;
    position: relative;
}

.tech-card__icon {
    position: absolute;
    top: -24px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.tech-card__title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.tech-card__description {
    color: var(--gray-color);
}

/* --- PROJECTS PAGE --- */
.project-category {
    margin-bottom: 4rem;
}

.project-category__title {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--light-color);
    padding: 0.5rem 1.5rem;
    font-size: 1.2rem;
    border-radius: 5px;
    margin-bottom: 2rem;
}

.project-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
    align-items: center;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    transition: box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
}

.project-card__image {
    width: 100%;
    height: 160px;
    border-radius: 5px;
    overflow: hidden;
}

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

.project-card__image--logo {
    padding: 1rem;
    border: 1px solid var(--border-color);
}

.project-card__image--logo img {
    object-fit: contain;
}

.project-card__title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.project-card__description {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.project-card__tech {
    font-weight: 600;
    color: var(--gray-color);
    font-size: 0.9rem;
}


/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: var(--light-color);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }
  /* Reveal nav when toggled */
  #nav-toggle:checked ~ .nav { left: 0; }

  .nav__list {
    flex-direction: column;
    align-items: center;
    padding-top: 3rem;
    gap: 1.5rem;
  }

  .nav__link {
    font-size: 1.2rem;
  }

  .nav__toggle { display: block; }

  .header__actions .btn {
      display: none;
  }

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

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

@media (max-width: 768px) {
  :root {
      --header-height: 70px;
  }
  .section {
      padding: 3rem 0;
  }
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__subtitle {
    font-size: 1.1rem;
  }
  .section__title {
      font-size: 2rem;
  }
  .service-detail__title {
    font-size: 2.2rem;
  }
  .service-detail-header {
    margin-top: var(--header-height);
  }
  .service-detail-header .container {
    text-align: center;
  }
  .project-card {
      grid-template-columns: 1fr;
      padding: 1.5rem;
  }
  .project-card__image {
      height: 200px;
  }
}

@media (max-width: 576px) {
    .footer__container {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .footer__list--contact li {
        justify-content: center;
    }
    .tech-grid {
      grid-template-columns: 1fr;
    }
    .contact__form-container {
      padding: 1.5rem;
    }
}

@media (max-width: 768px) {
  .service-detail-header .container {
    text-align: center;
  }
}



