/* =========================
  HEADER BASE
========================= */

.site-header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
}

/* =========================
  NAVBAR (DEFAULT HERO)
========================= */

.navbar-premium {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 20px;

  border-radius: var(--radius-pill);

  background: transparent;
  box-shadow: none;
}

/* =========================
  LOGO
========================= */

.nav-logo img {
  height: 40px;
  transition: var(--transition);
}

.nav-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-logo img {
  height: 40px;
  width: auto;
  transition: opacity 0.3s ease;
}

/* default transparent header logo */
.logo-default {
  opacity: 1;
}

/* scrolled header logo hidden initially */
.logo-on-scroll {
  position: absolute;
  left: 0;
  opacity: 0;
}

/* when header bg appears */
.site-header.scrolled .logo-default {
  opacity: 0;
}

.site-header.scrolled .logo-on-scroll {
  opacity: 1;
}

/* =========================
  MENU
========================= */

.nav-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* NAV LINKS (HERO MODE FIXED) */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #fff;
  border-radius: var(--radius-pill);
  /* NEW: visible on banner */
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
  transition: var(--transition);
}

/* ICON VISIBILITY */
.nav-link i {
  font-size: 16px;
  font-weight: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 1;
  letter-spacing: 1px;
  transform: translateY(-1px);
}

/* HOVER (PREMIUM GLOW EDGE) */
.nav-link:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* ACTIVE (YOUR GRADIENT — ENHANCED) */
.nav-link.active {
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  color: #fff;
  box-shadow:
    0 10px 30px rgba(66, 133, 244, 0.35),
    0 4px 15px rgba(52, 168, 83, 0.25);
}

/* =========================
  CTA BUTTON
========================= */
.nav-cta {
  padding: 10px 22px;
  font-weight: 600;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.nav-cta:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* =========================
  SCROLLED STATE (GLASS++)
========================= */
.site-header.scrolled {
  top: 10px;
}

.site-header.scrolled .navbar-premium {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-radius: var(--radius-pill);

  /* PREMIUM SHADOW STACK */
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.12),
    0 8px 30px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 10px 20px;
}

/* LOGO DARK */
.site-header.scrolled .nav-logo img {
  filter: none;
}

/* NAV LINKS DARK MODE */
.site-header.scrolled .nav-link {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
}

/* ICON FIX DARK */
.site-header.scrolled .nav-link i {
  color: var(--color-text);
  opacity: 0.9;
}

/* HOVER DARK */
.site-header.scrolled .nav-link:hover {
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  color: #fff;
  box-shadow:
    0 10px 30px rgba(66, 133, 244, 0.35),
    0 4px 15px rgba(52, 168, 83, 0.25);
}

.site-header.scrolled .nav-link:hover i {
  color: #fff;
}

/* ACTIVE DARK */
.site-header.scrolled .nav-link.active {
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  color: #fff;
  box-shadow:
    0 10px 30px rgba(66, 133, 244, 0.35),
    0 4px 15px rgba(52, 168, 83, 0.25);
}

.site-header.scrolled .nav-link.active i {
  color: #fff;
}

/* =========================
  MOBILE
========================= */
@media (max-width: 991px) {
  .nav-menu {
    display: none;
  }
}

.mobile-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

/* lines */
.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* when active */
.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

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

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  height: 100%;
  background: linear-gradient(180deg, #0b0f1a, #070a12);
  color: #fff;
  box-shadow: -20px 0 80px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transition: 0.4s;
  z-index: 999;
}

.mobile-menu.active {
  right: 0;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 1100;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-header img {
  height: 40px;
  margin-bottom: 10px;
}

.mobile-menu-header p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* LINKS */
.mobile-menu-links a,
.dropdown-toggle {
  display: block;
  padding: 12px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.menu-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

/* DROPDOWN */
.menu-dropdown .dropdown-menu {
  display: none;
  padding-left: 10px;
}

.menu-dropdown.active .dropdown-menu {
  display: block;
}

/* NEWSLETTER */
.mobile-newsletter {
  margin-top: 20px;
}

.mobile-newsletter h5 {
  margin-bottom: 8px;
}

/* CONTACT */
.mobile-contact {
  margin-top: 20px;
  font-size: 13px;
}

.mobile-contact i {
  margin-right: 8px;
}

/* SOCIALS */
.mobile-socials {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.mobile-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

/* =========================
  SERVICES MEGA MENU ONLY
========================= */
.services-mega-parent {
  position: static;
}

.services-mega-arrow {
  font-size: 12px;
  margin-left: 4px;
  transition: transform 0.35s ease;
}

.services-mega-parent:hover .services-mega-arrow {
  transform: rotate(180deg);
}

/* hover bridge: fixes gap between header and menu */
.services-mega-parent::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
}

/* panel */
.services-mega-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  width: min(1200px, calc(100vw - 40px));
  padding: 22px;
  border-radius: 34px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.86),
    rgba(248, 250, 255, 0.94)
  );
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 35px 100px rgba(15, 23, 42, 0.16),
    0 12px 40px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.4s var(--premium-ease);
  z-index: 1200;
  overflow: hidden;
}

.services-mega-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(66, 133, 244, 0.1),
      transparent 35%
    ),
    radial-gradient(
      circle at top right,
      rgba(52, 168, 83, 0.08),
      transparent 35%
    );
  pointer-events: none;
}

.services-mega-menu::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(66, 133, 244, 0.28),
    transparent
  );
}

/* show */
.services-mega-parent:hover .services-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* head */
.services-mega-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.services-mega-head span {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--color-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.services-mega-title {
  margin: 0;
  color: #0f172a;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.services-mega-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  color: #fff;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 28px rgba(66, 133, 244, 0.25);
  transition: var(--transition);
}

.services-mega-view-all:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.services-mega-grid{
    display:flex;
    gap:18px;
}

/* LEFT SIDE */

.services-grid-left{
    flex:1;

    display:grid;
    grid-template-columns:repeat(2,1fr);
    grid-template-rows:repeat(2,190px);

    gap:18px;
}

/* RIGHT SIDE */

.services-grid-right{
    flex:1;

    display:flex;
    flex-direction:column;
    gap:18px;
}

.services-grid-right .services-mega-card{
    height:190px;
}

/* ALL CARDS */

.services-mega-card{
    position:relative;
    overflow:hidden;

    height:190px;

    border-radius:24px;
}

.services-mega-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
}

.services-mega-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition:
    transform 0.8s var(--premium-ease),
    opacity 0.5s ease;
}

.services-mega-card:hover img {
  transform: scale(1.08);
  opacity: 0.38;
}

/* overlay */
.services-mega-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.45) 45%,
    rgba(0, 0, 0, 0.04) 75%
  );
}

.services-mega-overlay span {
  color: var(--color-yellow);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 7px;
  opacity: 0;
}

.services-card-title {
  color: #fff;
  margin: 0;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  transform: translateY(8px);
  opacity: 1;
  transition: all 0.4s var(--premium-ease);
}

.services-mega-card:hover .services-mega-overlay span {
  opacity: 1;
  transform: translateY(0);
}

/* responsive */
@media (max-width: 1200px) {
  .services-mega-menu {
    width: calc(100vw - 30px);
  }

  .services-mega-grid {
    gap: 14px;
  }

  .services-mega-card {
    min-height: 175px;
  }
}

@media (max-width: 1024px) {
  .services-mega-menu {
    display: none;
  }
}

/* =========================
  MEGA MENU PARENT
========================= */

.mega-menu-parent {
  position: static;
}

/* =========================
  DROPDOWN ARROW
========================= */

.dropdown-arrow {
  font-size: 12px;
  margin-left: 4px;

  transition: transform 0.35s ease;
}

.mega-menu-parent:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* =========================
  MEGA MENU PANEL
========================= */

.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  width: min(1200px, calc(100vw - 40px));
  padding: 22px;
  border-radius: 34px;

  /* LIGHT PREMIUM BG */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82),
    rgba(248, 250, 255, 0.92)
  );
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 35px 100px rgba(15, 23, 42, 0.16),
    0 12px 40px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: all 0.45s var(--premium-ease);
  z-index: 1200;
  overflow: hidden;
}

/* PREMIUM GLOW LAYER */
.mega-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at top left,
      rgba(66, 133, 244, 0.1),
      transparent 35%
    ),
    radial-gradient(
      circle at top right,
      rgba(52, 168, 83, 0.08),
      transparent 35%
    );
  pointer-events: none;
}

/* TOP GLOW LINE */
.mega-menu::after {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(66, 133, 244, 0.25),
    transparent
  );
}

/* SHOW MENU */
.mega-menu-parent:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =========================
  GRID LAYOUT
========================= */
.mega-menu-grid {
  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

/* RIGHT GRID */
.mega-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* =========================
  CARD BASE
========================= */
.mega-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  min-height: 240px;
  background: #000;
  isolation: isolate;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.45s var(--premium-ease),
    box-shadow 0.45s var(--premium-ease);
}

/* FEATURED CARD */
.mega-featured {
  min-height: 520px;
}

/* TALL CARD */
.tall-card {
  grid-row: span 2;
}

/* CARD HOVER */
.mega-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.18);
}

/* =========================
  CARD IMAGES
========================= */
.mega-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s var(--premium-ease),
    opacity 0.5s ease;
  opacity: 0.96;
}

/* IMAGE HOVER */
.mega-card:hover img {
  transform: scale(1.08);
  opacity: 0.45;
}

/* =========================
  OVERLAY
========================= */
.mega-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.38) 45%,
    rgba(0, 0, 0, 0.02) 75%
  );
  transition: 0.4s ease;
}

/* CATEGORY LABEL */
.mega-overlay span {
  color: var(--color-yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* TITLE */
.mega-card-title {
  color: #fff;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.45s var(--premium-ease);
}

/* SHOW TITLE ON HOVER */
.mega-card:hover .mega-card-title {
  opacity: 1;
  transform: translateY(0);
}

.mega-card-title{
    color:#fff;
    font-size:clamp(18px,1.35vw,24px);
    font-weight:700;
    line-height:1.2;
    letter-spacing:-0.02em;
    margin-bottom:6px;
}

.mega-card-category{
    display:inline-flex;
    align-items:center;
    gap:6px;

    color:var(--color-yellow);

    font-size:12px;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;
}

/* =========================
  OPTIONAL SUBTEXT
========================= */
.mega-overlay p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.45s var(--premium-ease);
}

/* SHOW SUBTEXT */
.mega-card:hover .mega-overlay p {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
  RESPONSIVE
========================= */
@media (max-width: 1200px) {
  .mega-menu {
    width: calc(100vw - 30px);
  }
}

@media (max-width: 991px) {
  .mega-menu {
    display: none;
  }
}

/* =========================
  MOBILE SERVICES DROPDOWN
========================= */
.mobile-service-dropdown {
  width: 100%;
}

.mobile-service-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.4px;
  cursor: pointer;
}

.mobile-service-toggle span {
  color: inherit;
}

.mobile-service-toggle i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.mobile-service-dropdown.active .mobile-service-toggle i {
  transform: rotate(180deg);
}

.mobile-service-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease,
    padding 0.3s ease;
}

.mobile-service-dropdown.active .mobile-service-menu {
  max-height: 520px;
  opacity: 1;
  padding: 8px 0 10px;
}

.mobile-service-menu a {
  display: block;
  padding: 10px 0 10px 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition:
    color 0.25s ease,
    padding-left 0.25s ease;
}

.mobile-service-menu a:hover {
  color: var(--color-yellow);
  padding-left: 22px;
}

/* lock body scroll when mobile menu is open */
body.mobile-menu-open {
  overflow: hidden;
}
