/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --primary-color: #f70a0b;
  --secondary-color: #022a37;
  --text-dark: #212529;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --white: #ffffff;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 76px;
}

/* =========================================
   HEADER & NAVBAR
========================================= */

.navbar {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  z-index: 1050;
}

.navbar-brand {
  font-weight: 700;
  color: var(--secondary-color) !important;
  font-size: 1.5rem;
}

.navbar-brand .logo {
  max-height: 55px;
  width: auto;
  display: block;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark) !important;
  padding: 10px 15px !important;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

/* =========================================
   MOBILE HAMBURGER BUTTON
========================================= */

.navbar-toggler {
  border: 1px solid #dddddd;
  padding: 7px 10px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(247, 10, 11, 0.15);
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
}

/* =========================================
   DESKTOP MEGA MENU
========================================= */

@media (min-width: 992px) {

  .navbar .has-mega-menu {
    position: static !important;
  }

  .navbar .mega-menu {
    position: absolute;

    width: 100%;
    left: 0;
    right: 0;
    top: 100%;

    margin-top: 0;

    padding: 30px;

    background-color: var(--white);

    border: none;
    border-radius: 0 0 10px 10px;

    box-shadow: 0 10px 25px rgba(0,0,0,0.10);

    /* Bootstrap controls visibility */
    opacity: 0;
    visibility: hidden;
    display: block;

    transition:
      opacity 0.25s ease,
      visibility 0.25s ease;
  }

  /* Open on hover */
  .navbar .has-mega-menu:hover > .mega-menu {
    opacity: 1;
    visibility: visible;
  }

  /* Also work when Bootstrap adds .show */
  .navbar .has-mega-menu.show > .mega-menu {
    opacity: 1;
    visibility: visible;
  }
}

/* =========================================
   MEGA MENU CONTENT
========================================= */

.mega-title {
  font-weight: 700;
  margin-bottom: 15px;

  color: var(--secondary-color);

  border-bottom: 2px solid var(--primary-color);

  display: inline-block;

  padding-bottom: 5px;
}

.mega-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mega-list li {
  margin-bottom: 10px;
}

.mega-list a {
  text-decoration: none;
  color: var(--text-light);

  transition: all 0.2s ease;

  display: flex;
  align-items: center;
}

.mega-list a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.mega-list i {
  margin-right: 10px;
  width: 20px;
  min-width: 20px;
  text-align: center;
}

/* =========================================
   HERO SLIDER
========================================= */

.hero-slider .carousel-item {
  height: 80vh;
  min-height: 500px;

  background-position: center;
  background-size: cover;

  position: relative;
}

.hero-slider .carousel-item::before {
  content: '';

  position: absolute;

  top: 0;
  left: 0;
  right: 0;
  bottom: 0;

  background: rgba(0, 51, 102, 0.7);
}

.hero-content {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  text-align: center;

  color: var(--white);

  width: 100%;

  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;

  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* =========================================
   GENERAL SECTIONS
========================================= */

.section-padding {
  padding: 80px 0;
}

.bg-light-gray {
  background-color: var(--bg-light);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;

  color: var(--secondary-color);

  margin-bottom: 15px;
}

.section-subtitle {
  color: var(--text-light);

  font-size: 1.1rem;

  margin-bottom: 40px;
}

/* =========================================
   CARDS
========================================= */

.service-card,
.tech-card,
.industry-card,
.job-card {

  background: var(--white);

  border-radius: 10px;

  padding: 30px;

  box-shadow: 0 5px 15px rgba(0,0,0,0.05);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;

  height: 100%;

  border: 1px solid rgba(0,0,0,0.05);
}

.service-card:hover,
.tech-card:hover,
.industry-card:hover,
.job-card:hover {

  transform: translateY(-10px);

  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 3rem;

  color: var(--primary-color);

  margin-bottom: 20px;
}

.card-title {
  font-weight: 700;

  color: var(--secondary-color);

  margin-bottom: 15px;
}

/* =========================================
   BUTTONS
========================================= */

.btn-primary-custom {

  background-color: var(--primary-color);

  color: var(--white);

  padding: 12px 30px;

  border-radius: 5px;

  font-weight: 600;

  border: none;

  transition: background 0.3s ease;
}

.btn-primary-custom:hover {

  background-color: var(--secondary-color);

  color: var(--white);
}

.btn-outline-custom {

  background-color: transparent;

  color: var(--white);

  padding: 12px 30px;

  border-radius: 5px;

  font-weight: 600;

  border: 2px solid var(--white);

  transition: all 0.3s ease;
}

.btn-outline-custom:hover {

  background-color: var(--white);

  color: var(--secondary-color);
}

/* =========================================
   FOOTER
========================================= */

.footer {

  background-color: var(--secondary-color);

  color: #a0aec0;

  padding: 60px 0 30px;
}

.footer-title {

  color: var(--white);

  font-weight: 700;

  margin-bottom: 20px;
}

.footer-links {

  list-style: none;

  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {

  color: #a0aec0;

  text-decoration: none;

  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.social-icons a {

  color: var(--white);

  background: rgba(255,255,255,0.1);

  width: 40px;
  height: 40px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  margin-right: 10px;

  transition: background 0.3s;
}

.social-icons a:hover {
  background: var(--primary-color);
}

/* =========================================
   MOBILE / TABLET NAVBAR
========================================= */

@media (max-width: 991.98px) {

  /* Navbar */
  .navbar {
    z-index: 1050;
  }

  /* Navbar collapse */
  .navbar-collapse {

    max-height: calc(100vh - 76px);

    overflow-y: auto;
    overflow-x: hidden;

    background-color: var(--white);

    padding: 10px 15px 25px;

    margin-top: 5px;

    border-radius: 0 0 10px 10px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  }

  /* Navigation links */
  .navbar-nav .nav-link {

    padding: 12px 5px !important;

    font-size: 16px;

    border-bottom: 1px solid #f1f1f1;
  }

  /* Dropdown */
  .navbar .has-mega-menu {

    position: relative !important;
  }

  /*
     IMPORTANT:
     Do NOT use display:none here.
     Bootstrap needs to control the dropdown.
  */

  .navbar .mega-menu {

    position: static !important;

    width: 100% !important;

    min-width: 0 !important;

    max-width: 100% !important;

    margin: 0 !important;

    padding: 10px 0 15px !important;

    background-color: var(--white) !important;

    border: 0 !important;

    border-radius: 0 !important;

    box-shadow: none !important;

    transform: none !important;

    opacity: 1;

    visibility: visible;
  }

  /* Mega menu container */
  .navbar .mega-menu .container {

    width: 100%;

    max-width: 100%;

    padding-left: 0;
    padding-right: 0;
  }

  /* Mega menu row */
  .navbar .mega-menu .row {

    margin-left: 0;
    margin-right: 0;
  }

  /* Mega menu columns */
  .navbar .mega-menu .col-lg-3,
  .navbar .mega-menu .col-lg-4,
  .navbar .mega-menu .col-md-6 {

    width: 100% !important;

    max-width: 100% !important;

    padding-left: 0;
    padding-right: 0;

    margin-bottom: 15px !important;
  }

  /* Mega titles */
  .navbar .mega-title {

    display: block;

    margin: 10px 0 5px;

    padding: 8px 5px;

    font-size: 17px;

    font-weight: 700;

    color: var(--secondary-color);

    border-bottom: 2px solid var(--primary-color);
  }

  /* Mega list */
  .navbar .mega-list {

    margin: 0;

    padding: 0 5px;

    list-style: none;
  }

  /* Mega list items */
  .navbar .mega-list li {

    width: 100%;

    margin: 0;

    padding: 0;
  }

  /* Mega links */
  .navbar .mega-list li a {

    display: flex;

    align-items: center;

    width: 100%;

    padding: 11px 5px;

    font-size: 15px;

    line-height: 1.4;

    color: #666666;

    text-decoration: none;

    border-bottom: 1px solid #eeeeee;
  }

  /* Mega icons */
  .navbar .mega-list li a i {

    width: 30px;

    min-width: 30px;

    margin-right: 8px;

    font-size: 17px;

    text-align: center;
  }

  /* Mega link hover */
  .navbar .mega-list li a:hover {

    color: var(--primary-color);

    background-color: #f8f9fa;

    transform: none;
  }

  /* Dropdown arrow */
  .navbar .dropdown-toggle::after {

    margin-left: 8px;
  }

  /* Contact button */
  .navbar-collapse .btn-primary-custom {

    display: inline-block;

    margin: 15px 5px;
  }

  /* Hero */
  .hero-content h1 {

    font-size: 2.5rem;
  }
}

/* =========================================
   SMALL MOBILE DEVICES
========================================= */

@media (max-width: 575.98px) {

  body {
    padding-top: 70px;
  }

  .navbar-brand .logo {
    max-height: 45px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-padding {
    padding: 50px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .service-card,
  .tech-card,
  .industry-card,
  .job-card {
    padding: 20px;
  }

  .navbar-collapse {
    max-height: calc(100vh - 70px);
  }
}