/* SharkOps - Minimal custom CSS (used alongside Tailwind) */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Header: transparent → glassmorphism on scroll */
#header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

#header.header-scrolled {
  background: rgba(15, 27, 45, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

/* Geometric hero shapes */
.geo-shape { position: absolute; border-radius: 50%; opacity: 0.08; }
.geo-1 { width: 400px; height: 400px; background: #d7c01b; top: -100px; right: -100px; animation: geo-float 20s ease-in-out infinite; }
.geo-2 { width: 200px; height: 200px; background: #2aa5df; bottom: 10%; left: 5%; animation: geo-float 15s ease-in-out infinite reverse; }
.geo-3 { width: 150px; height: 150px; border: 2px solid rgba(255,255,255,0.15); top: 30%; right: 20%; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; animation: geo-morph 12s ease-in-out infinite; }
.geo-4 { width: 80px; height: 80px; background: #d7c01b; bottom: 20%; right: 10%; border-radius: 30%; animation: geo-float 10s ease-in-out infinite; opacity: 0.12; }

@keyframes geo-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-30px) rotate(5deg); } }
@keyframes geo-morph { 0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } 50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; } }

/* Clients marquee */
.clients-marquee { mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%); }
.clients-track { animation: marquee 30s linear infinite; }
.clients-marquee:hover .clients-track { animation-play-state: paused; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Mega menu - drop from top, centered, with hover bridge */
@media (min-width: 1024px) {
  .mega-dropdown { position: relative !important; }

  /* Invisible bridge so hover doesn't break when moving to dropdown */
  .mega-menu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 20px;
  }

  .mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    position: absolute !important;
    top: calc(100% + 12px) !important;
    left: 50% !important;
    translate: -50% 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Prevent mega menus from going off-screen on the right */
  .mega-dropdown:last-child .mega-menu,
  .mega-dropdown:nth-last-child(2) .mega-menu {
    left: auto !important;
    right: 0 !important;
    translate: 0 0;
  }
}

/* ---- Animated Hamburger Icon ---- */
.hamburger-icon {
  width: 24px;
  height: 18px;
  position: relative;
  cursor: pointer;
}

.hamburger-icon span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  left: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 8px; width: 70%; }
.hamburger-icon span:nth-child(3) { top: 16px; }

/* Active state - X animation */
.hamburger-active .hamburger-icon span:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.hamburger-active .hamburger-icon span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.hamburger-active .hamburger-icon span:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

/* ---- Mobile Nav Panel Stagger Animation ---- */
.mobile-nav-link {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-open .mobile-nav-link {
  opacity: 1;
  transform: translateX(0);
}

.nav-open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.nav-open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
.nav-open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.nav-open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }
.nav-open .mobile-nav-link:nth-child(5) { transition-delay: 0.25s; }
.nav-open .mobile-nav-link:nth-child(6) { transition-delay: 0.3s; }
.nav-open .mobile-nav-link:nth-child(7) { transition-delay: 0.35s; }
.nav-open .mobile-nav-link:nth-child(8) { transition-delay: 0.4s; }
.nav-open .mobile-nav-link:nth-child(9) { transition-delay: 0.45s; }
.nav-open .mobile-nav-link:nth-child(10) { transition-delay: 0.5s; }

/* Preloader */
#preloader { position: fixed; inset: 0; z-index: 9999; background: #fff; transition: all 0.6s ease-out; }
#preloader::before { content: ""; position: fixed; top: calc(50% - 30px); left: calc(50% - 30px); border: 4px solid #d7c01b; border-top-color: transparent; border-radius: 50%; width: 60px; height: 60px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Hero Events Section ---- */
.hero-events {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 0%, #1b2f45 0%, #1b2f45 40%, #0f1b2d 100%);
  overflow: hidden;
  padding: 90px 20px 40px;
}

.hero-events-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255,255,255,0.5) 50%, transparent 50%),
    radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(255,255,255,0.4) 50%, transparent 50%),
    radial-gradient(1px 1px at 70% 80%, rgba(255,255,255,0.25) 50%, transparent 50%),
    radial-gradient(1.2px 1.2px at 85% 35%, rgba(255,255,255,0.35) 50%, transparent 50%),
    radial-gradient(1px 1px at 20% 90%, rgba(255,255,255,0.2) 50%, transparent 50%),
    radial-gradient(1.5px 1.5px at 45% 45%, rgba(255,255,255,0.3) 50%, transparent 50%),
    radial-gradient(1px 1px at 90% 10%, rgba(255,255,255,0.4) 50%, transparent 50%);
  pointer-events: none;
}

.hero-events::after {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42,165,223,0.08) 0%, transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-events-inner {
  position: relative;
  z-index: 1;
  max-width: 2000px;
  margin: 0 auto;
  text-align: center;
}

.hero-events-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d7c01b;
  margin-bottom: 20px;
}

.hero-events-title {
  font-size: clamp(28px, 5vw, 30px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.hero-events-cards {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-events-card {
  display: block;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 32px;
  max-width: 600px;
  width: 100%;
  text-align: left;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-events-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
}

.hero-events-card-top {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.hero-events-card-logo {
  height: 60px;
  object-fit: contain;
}

.hero-events-card-tagline {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.hero-events-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.hero-events-card-dot {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 50%;
}

.hero-events-card-cta {
  font-size: 14px;
  font-weight: 600;
  color: #2aa5df;
}

.hero-events-bottom {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px 32px;
  max-width: 700px;
  margin: 0 auto;
}

.hero-events-qr {
  flex-shrink: 0;
  text-align: center;
}

.hero-events-qr-img {
  width: 90px;
  height: 90px;
}

.hero-events-qr-hint {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
  margin-top: 6px;
}

.hero-events-bottom-text {
  flex: 1;
  text-align: left;
}

.hero-events-bottom-heading {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}

.hero-events-bottom-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.hero-events-btn {
  flex-shrink: 0;
  padding: 12px 28px;
  background: #10b981;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-events-btn:hover {
  background: #34d399;
  transform: translateY(-2px);
  color: #fff;
}

@media (max-width: 640px) {
  .hero-events-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  .hero-events-bottom-text { text-align: center; }
  .hero-events-card { padding: 20px; }
}
