@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* ============================================
   CSS Variables (Header-relevant subset)
   ============================================ */
:root {
  --primary-color: #007bff;
  --secondary-color: #6E6E73;
  --background-color: #f4f4f4;
  --text-color: #6E6E73;
  --heading-color: #1E2460;
  --link-color: #5064F9;
  --link-hover-color: #0056b3;
  --white-color: #ffffff;
  --black-color: #000000;

  --font-family: "Open Sans", sans-serif;
  --header-family: "Poppins", sans-serif;

  --border-radius: 5px;
}

/* ============================================
   Base Reset (Header-scoped)
   ============================================ */
body {
  font-family: var(--font-family);
}

ul {
  padding: 0;
}

li {
  list-style: none;
  padding: 0;
}

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

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

/* ============================================
   Header & Nav
   ============================================ */
header {
  background-color: #f9f9ff;
  padding: 0 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding-top: 10px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
}

/* ============================================
   Logo
   ============================================ */
.logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.logo img {
  width: 124px;
  height: auto;
}

.logo-text {
  background: linear-gradient(45deg, #4285f4, #ea4335);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 24px;
  font-weight: bold;
}

.logo-subtitle {
  color: #666;
  font-size: 14px;
  font-weight: normal;
  margin-left: 5px;
}

/* ============================================
   Navigation Menu
   ============================================ */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
  margin: 0;
  flex: 1;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 16px;
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #4285f4;
}

.nav-link.active {
  color: #4285f4;
  font-weight: 600;
}

/* ============================================
   Dropdown Arrow
   ============================================ */
.dropdown-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* ============================================
   Dropdown Menu
   ============================================ */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  padding: 10px 0;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  list-style: none;
}

.dropdown-link {
  display: block;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.dropdown-link:hover {
  background-color: #f8f9ff;
  color: #4285f4;
  padding-left: 25px;
}

/* ============================================
   Contact Button
   ============================================ */
.contact-btn {
  background: transparent;
  border: 2px solid #4285f4;
  color: #4285f4;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

.contact-btn:hover {
  background-color: #4285f4;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

/* ============================================
   Mobile Menu Toggle (Hamburger)
   ============================================ */
.mobile-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.hamburger {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-toggle.active .hamburger:nth-child(1) {
  transform: rotate(-45deg) translate(-7px, 7px);
}

.mobile-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .hamburger:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ============================================
   Accessibility — Focus States
   ============================================ */
.nav-link:focus,
.dropdown-link:focus,
.contact-btn:focus,
.mobile-toggle:focus {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

/* ============================================
   Responsive — Tablet (769px – 1024px)
   ============================================ */
@media screen and (max-width: 1024px) and (min-width: 769px) {
  .nav-menu {
    gap: 20px;
  }

  .nav-link {
    font-size: 15px;
  }

  .logo img {
    width: 110px;
  }

  .contact-btn {
    padding: 8px 20px;
    font-size: 13px;
  }
}

/* ============================================
   Responsive — Mobile (up to 768px)
   ============================================ */
@media screen and (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  header {
    padding: 0 15px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    gap: 0;
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

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

  .nav-item {
    width: 100%;
    margin: 10px 0;
  }

  .nav-link {
    padding: 15px 20px;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f8f9ff;
    margin-top: 10px;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-item.dropdown-open .dropdown {
    max-height: 300px;
  }

  .nav-item:hover .dropdown {
    max-height: 0;
  }

  .nav-item.dropdown-open:hover .dropdown {
    max-height: 300px;
  }

  .dropdown-link {
    padding: 10px 40px;
    font-size: 14px;
  }

  .dropdown-link:hover {
    padding-left: 40px;
    background-color: #f0f0ff;
  }

  .contact-btn {
    margin: 20px auto 10px auto;
    padding: 14px 40px;
    font-size: 16px;
    display: block;
    text-align: center;
    width: fit-content;
    min-width: 140px;
  }

  .logo img {
    width: 100px;
  }

  .logo-text {
    font-size: 20px;
  }

  .logo-subtitle {
    font-size: 12px;
  }
}

/* ============================================
   Responsive — Small Mobile (up to 480px)
   ============================================ */
@media screen and (max-width: 480px) {
  body {
    padding-top: 60px;
  }

  header {
    padding: 0 15px;
  }

  nav {
    height: 60px;
  }

  .nav-menu {
    top: 60px;
    max-height: calc(100vh - 60px);
  }

  .logo img {
    width: 80px;
  }

  .logo-text {
    font-size: 18px;
  }

  .logo-subtitle {
    display: none;
  }

  .nav-link {
    font-size: 16px;
    padding: 12px 15px;
  }

  .contact-btn {
    padding: 12px 35px;
    font-size: 15px;
    margin: 15px auto 5px auto;
    display: block;
    width: fit-content;
    min-width: 120px;
  }
}

/* ============================================
   Responsive — Very Small Screens (up to 360px)
   ============================================ */
@media screen and (max-width: 360px) {
  header {
    padding: 0 10px;
  }

  .logo img {
    width: 70px;
  }

  .logo-text {
    font-size: 16px;
  }

  .hamburger {
    width: 20px;
    height: 2px;
  }
}

/* ============================================
   Responsive — Landscape Mobile
   ============================================ */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .nav-menu {
    padding: 10px 0;
    max-height: calc(100vh - 50px);
  }

  .nav-link {
    padding: 10px 20px;
  }

  .nav-item {
    margin: 5px 0;
  }
}

/* ============================================
   High DPI Screens
   ============================================ */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
  .logo img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  header {
    position: static;
    box-shadow: none;
  }

  .mobile-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    flex-direction: row;
    gap: 20px;
    padding: 0;
  }
}