/* =======================
   Header Styling (DK ENTERPRISE Custom)
======================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  z-index: 999;
  box-shadow: none;
}

.site-header.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px 0 rgba(0,120,255,0.08), 0 1.5px 0 #0078ff22;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #005fcc;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s;
  gap: 8px;
}

.site-header.scrolled .logo {
  color: #0078ff;
}

.logo img {
  height: 44px;
  margin-right: 8px;
  border-radius: 8px;
  box-shadow: 0 2px 8px #0078ff11;
}

/* Nav Menu */
.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-menu a {
  text-decoration: none;
  font-size: 1.07rem;
  font-weight: 600;
  color: #1a237e;
  transition: 
    color 0.22s cubic-bezier(.4,0,.2,1), 
    background 0.22s cubic-bezier(.4,0,.2,1), 
    box-shadow 0.22s, 
    border-radius 0.22s,
    transform 0.13s;
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  padding: 8px 20px;
  border-radius: 14px;
  position: relative;
  z-index: 1;
  box-shadow: none;
}

.site-header.scrolled .nav-menu a {
  color: #222e3a;
  background: transparent;
}

.nav-menu li:hover > a,
.nav-menu a:hover {
  color: #fff;
  background: linear-gradient(90deg, #0078ff 0%, #005fcc 100%);
  box-shadow: 0 6px 24px 0 rgba(0,120,255,0.13);
  border-radius: 18px;
  transform: translateY(-2px) scale(1.04);
}

.site-header.scrolled .nav-menu li:hover > a,
.site-header.scrolled .nav-menu a:hover {
  color: #fff;
  background: linear-gradient(90deg, #0078ff 0%, #005fcc 100%);
  box-shadow: 0 6px 24px 0 rgba(0,120,255,0.13);
  border-radius: 18px;
}

.nav-menu li {
  transition: background 0.2s, border-radius 0.2s;
}

/* Active nav link (clicked) design */
.nav-menu a:active,
.nav-menu .nav-link-active {
  background: linear-gradient(90deg, #005fcc 0%, #0078ff 100%);
  color: #fff !important;
  box-shadow: 0 8px 32px 0 rgba(0,120,255,0.18);
  border-radius: 22px;
  outline: 2px solid #0078ff33;
  outline-offset: 0;
  transform: scale(0.97);
  transition: 
    background 0.15s, 
    color 0.15s, 
    box-shadow 0.15s, 
    border-radius 0.15s,
    transform 0.13s;
}

/* CTA Button in header */
.site-header.scrolled .btn-cta {
  background: #0078ff !important;
  color: #fff !important;
}

.btn-cta {
  background: linear-gradient(90deg, #0078ff 0%, #005fcc 100%);
  color: #fff;
  border-radius: 18px;
  font-weight: 700;
  padding: 8px 22px;
  box-shadow: 0 4px 16px rgba(0,120,255,0.13);
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, border-radius 0.2s;
}

.btn-cta:hover {
  background: linear-gradient(90deg, #005fcc 0%, #0078ff 100%) !important;
  box-shadow: 0 8px 32px rgba(0,120,255,0.18);
  color: #fff !important;
  border-radius: 22px !important;
}

/* Show button background on hover for all buttons */
button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
  background: linear-gradient(90deg, #0078ff 0%, #005fcc 100%) !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(0,120,255,0.13);
  border-radius: 16px !important;
  transition: background 0.2s, box-shadow 0.2s, border-radius 0.2s;
}

/* Mail Icon & Label */
.mail-icon-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  font-size: 1rem;
}

.mail-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 2px;
  width: 18px;
  height: 16px;
  transition: transform 0.2s;
}

.btn-cta:hover .mail-icon,
button:hover .mail-icon,
input[type="button"]:hover .mail-icon,
input[type="submit"]:hover .mail-icon,
input[type="reset"]:hover .mail-icon {
  transform: scale(1.12) rotate(-8deg);
  filter: drop-shadow(0 2px 6px #0078ff33);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  transition: filter 0.2s;
}

.hamburger span {
  display: block;
  width: 27px;
  height: 3.2px;
  background: #fff;
  transition: 0.3s;
  border-radius: 2px;
}

.site-header.scrolled .hamburger span {
  background: #333;
}

/* Hamburger open animation */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile styles */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 240px;
    height: 100vh;
    background: linear-gradient(120deg, #f7fafc 60%, #e6fffa 100%);
    backdrop-filter: blur(10px);
    padding-top: 90px;
    transition: right 0.33s cubic-bezier(.4,0,.2,1), opacity 0.2s;
    z-index: 1000;
    box-shadow: -2px 0 24px rgba(0,120,255,0.09);
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    border-radius: 24px 0 0 24px;
  }

  .nav-menu ul {
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }

  .nav-menu.active {
    right: 0 !important;   /* slides in when active */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: -2px 0 32px 0 rgba(0,120,255,0.13);
    animation: navMenuSlideIn 0.33s cubic-bezier(.4,0,.2,1);
  }

  @keyframes navMenuSlideIn {
    from { right: -100%; opacity: 0; }
    to { right: 0; opacity: 1; }
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100;
    background: none;
    border: none;
    padding: 0;
  }

  .hamburger span {
    display: block;
    width: 30px;
    height: 3.2px;
    background: #333;
    transition: 0.3s;
    border-radius: 2px;
  }

  .logo {
    font-size: 1.18rem;
  }
  .logo img {
    height: 34px;
  }

  .header-container {
    padding: 10px 0;
  }

  .nav-menu a {
    padding: 13px 0;
    border-radius: 14px;
    width: 92%;
    margin: 0 auto;
    justify-content: center;
    font-size: 1.08rem;
    background: transparent;
    color: #1a237e;
    box-shadow: none;
    transition: 
      background 0.18s, 
      color 0.18s, 
      box-shadow 0.18s, 
      border-radius 0.18s,
      transform 0.13s;
  }
  .nav-menu li:hover > a,
  .nav-menu a:hover {
    border-radius: 18px;
    background: linear-gradient(90deg, #0078ff 0%, #005fcc 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(0,120,255,0.13);
    transform: scale(1.03);
  }

  /* --- DESIGN FOR CLICKED NAVBAR LINK ON MOBILE --- */
  .nav-menu a:active,
  .nav-menu .nav-link-active {
    background: linear-gradient(90deg, #005fcc 0%, #0078ff 100%);
    color: #fff !important;
    box-shadow: 0 8px 32px 0 rgba(0,120,255,0.18);
    border-radius: 22px;
    outline: 2px solid #0078ff33;
    outline-offset: 0;
    /* subtle scale for tap feedback */
    transform: scale(0.97);
    transition: 
      background 0.15s, 
      color 0.15s, 
      box-shadow 0.15s, 
      border-radius 0.15s,
      transform 0.13s;
  }
}

/* When a nav link is clicked on mobile, hide the menu (for JS logic) */
@media (max-width: 768px) {
  .nav-menu.hide-after-click {
    right: -100% !important;
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: right 0.3s cubic-bezier(.4,0,.2,1), opacity 0.2s;
  }
}

/* Extra: Improve focus for accessibility */
.nav-menu a:focus,
.btn-cta:focus,
button:focus,
input[type="button"]:focus,
input[type="submit"]:focus,
input[type="reset"]:focus {
  outline: 2px solid #0078ff;
  outline-offset: 2px;
  border-radius: 18px;
  box-shadow: 0 0 0 2px #0078ff33;
}

/* Extra: Hide mail icon label text on very small screens, show only icon */
@media (max-width: 400px) {
  .mail-icon-label {
    font-size: 0;
  }
  .mail-icon-label .mail-icon {
    margin-right: 0;
  }
  .mail-icon-label::after {
    content: "";
  }
}
