@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

:root {
  --main-colour: #2971fd; /* Main brand color */
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f9f9f6;
  color: #000000;
  line-height: 1.6;
  transition: background-color 0.3s ease;
}

/* ================================
   Base Navbar & Header
   ================================ */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100px;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0));
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  border-bottom: 0.5px solid rgba(255,255,255,0.15);
}

.navbar {
  width: 100%; max-width: 1400px;
  margin: 0 auto;
  padding: 0 70px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100px;
  box-sizing: border-box;
}

/* ================================
   Logo, Menu Toggle & Main Links
   ================================ */
.logo img { height:90px; object-fit:contain; transition:transform .2s; padding-top: 10px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));}

.logo img:hover { transform:scale(1.05) }

.menu-icon { display:none; }

.nav-links {
  display:flex; gap:4rem; margin-left:auto;
}

.nav-links li { list-style:none }

.nav-links a {
  color:#fff; text-decoration:none; font-weight:500;
  transition:color .2s;
}

/* Base styles for target nav links */
.nav-links > li:not(:last-child) > a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
}

/* Underline effect */
.nav-links > li:not(:last-child) > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background-color: var(--main-colour);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}


.nav-links > li:not(:last-child) > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}


/* contact button */
.contact-button {
  background:var(--main-colour); 
  color:#ffffff;
  padding:.6rem 1.4rem; 
  border-radius:25px;
  box-shadow:0 3px 6px rgba(0,0,0,0.1);
  transition:background .2s, transform .2s;
}

.contact-button:hover {
  background: #ffffff;
  color: var(--main-colour);
  box-shadow: 0 6px 16px rgba(0, 180, 216, 0.3);
}

.contact-button:active {
  box-shadow: 0 4px 12px rgba(0, 150, 199, 0.2);
}


/* ================================
   Simplified Mega-Menu
   ================================ */
.dropdown-menu.mega {
  max-height: 0; /* start hidden */
  transition: max-height 0.25s ease;
  position: absolute;
  top: 100px; left: 50%;
  transform: translateX(-50%);
  width: 90vw; max-width: 1300px;
  background: #fbfcff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  font-family: 'Montserrat', sans-serif; 
  color: #333; 
  overflow: hidden; 
}

/* show when parent has .open */
.dropdown.open > .dropdown-menu.mega {
  display: flex;
  max-height: 600px;  
  padding: 1.5rem;    /* restore vertical padding when open */
}

/* two-column flex wrapper */
.mega-wrapper {
  display: flex; width:100%; 
  gap: 2rem;
  z-index: 1;
}

/* left column */
.primary-menu {
  flex: 1;
  border-right:1px solid rgba(0,0,0,0.1);
  
}

/* right column */
.sub-menu {
  flex: 1.5;
}

/* strip default list styles */
.primary-menu li,
.sub-menu .sub-block li {
  margin:0; padding:0; list-style:none;
}

/* base links */
.primary-menu a,
.sub-menu a {
  display:block;
  padding:.75rem 1rem;
  color: #333;
  text-decoration:none;
  transition: background .2s, color .2s;
  border-radius: 4px;
}

/* hover state */
.primary-menu a:hover,
.sub-menu a:hover {
  font-weight: 600;
  background: rgba(0,180,216,0.1);
  color: #00b4d8;
}

/* mark the active primary item (keeps highlight when submenu open) */
.primary-menu li.active > a {
  background: rgba(0,180,216,0.2);
  color: var(--main-colour);
  font-weight: 600;
}

.primary-menu li.active > a::after {
  content: '▸';
  margin-left: 0.5rem;
  color: var(--main-colour);
}

/* hide all sub-blocks, show only .active */
.sub-menu .sub-block { display: none; }
.sub-menu .sub-block.active { display: block; }

/* slightly indent sub-links */
.sub-menu .sub-block li a {
  padding-left: 1.5rem;
  color: #555;
}

.mega-wrapper {
  display: flex;
  width: 100%;
  gap: 2rem;
}

/* cyan circle top-left */
.mega-wrapper::before {
  content: "";
  position: absolute;
  top: -150px;
  left: -150px;
  width: 400px;
  height: 400px;
  background: rgba(0, 180, 216, 0.2);
  border-radius: 50%;
  z-index: 0;
}

/* gold circle bottom-right */
.mega-wrapper::after {
  content: "";
  position: absolute;
  bottom: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: rgba(255, 119, 0, 0.066);
  border-radius: 50%;
  z-index: 0;
}

/* left column now holds a video */
.mega-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mega-video {
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
  background-color: white;  
}

/*  ──────────────────────────────────────────────────────────
    VIDEO PREVIEW WRAPPER
    ────────────────────────────────────────────────────────── */
.mega-preview {
  position: relative;
  width: 300px;               
  height: 300px;              
  margin-right: 2rem;         
  border: 6px solid var(--main-colour);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  flex-shrink: 0;             
}

.mega-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; 
}

/* soft “glow” underneath the video */
.mega-preview::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 16px;
  background: radial-gradient(
    circle at center,
    rgba(0,180,216,0.6),
    transparent 70%
  );
  filter: blur(8px);
  pointer-events: none;
  z-index: -1;
}

.mobile-nav-overlay {
  display: none;
}

/* ================================
   Responsive (Mobile)
   ================================ */
@media (max-width:768px) {
  .mobile-nav-overlay {
  display: flex;
  }
  .mobile-nav-header {
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #979797;
    width: 100vw;              /* Force full screen width */
    position: relative;
    left: 50%;
    transform: translateX(-50%);  /* Center it across screen */
    box-sizing: border-box;    /* Ensure padding behaves properly */
  }
  .mobile-nav-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    position: relative;
    top: -20px;
  }
  .menu-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10001;
  }
  .menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: black;
    border-radius: 1px;
    transition: background 0.3s ease, transform 0.3s ease;
  }
  .logo img { 
    height:80px;
  }

  .nav-links {
    display: none;
  }

  .navbar {
    justify-content: space-between;
    padding: 0 1rem;
  }

  .mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100vw;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    
  }

  /* SHOW when toggled */
  .mobile-nav-overlay.open {
    right: 0;
    visibility: visible;
    opacity: 1;
  }
  .close-mobile-nav {
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    align-self: flex-end;
    margin-bottom: 10px;
    cursor: pointer;
    color: #000;
  }
  .mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .mobile-nav-links li a {
    text-decoration: none;
    font-size: 1.1rem;
    color: #000;
    padding: 0.75rem 0;
    display: block;
  }
  .mobile-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: #fff;
    transition: left 0.3s ease;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
    z-index: 10000;
  }
  .mobile-submenu.open {
  left: 0;
  }
  .submenu-toggle {
    all: unset; /* reset all default styles */
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 400;
    color: #000;
    cursor: pointer;
  }
  .back-button {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #000;
    margin-bottom: 2rem;
    cursor: pointer;
    transform: translateY(15px);
  }
  .back-button-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }

  .back-button-wrapper h2 {
    margin: 0;
  }

  .mobile-submenu-links {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-submenu-links li {
    margin-bottom: 0.75rem;
  }

  .mobile-submenu-links li a {
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    display: block;
    padding: 0.5rem 0;
  }
}

@media (min-width: 769px) {
  .mobile-nav-overlay {
    display: none !important;
  }
}