@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Righteous&family=Space+Grotesk:wght@500;600;700;800&display=swap');

:root {
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-brand: 'Righteous', cursive, sans-serif;
  --font-copperplate: 'Copperplate Gothic Bold', 'Copperplate Gothic', 'Copperplate Gothic Light', 'Copperplate', 'Cinzel', -apple-system, sans-serif, serif;
}

html {
  font-size: 16px;
}
@media (min-width: 640px) {
  html {
    font-size: 16.5px;
  }
}

html, body {
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.012em;
  font-size: 1rem;
  line-height: 1.6;
  background-color: #ffffff;
  background-image: none;
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.dark,
.dark,
html.dark body,
body.dark,
.dark body {
  background-color: #070c1a !important;
  background-image: 
    radial-gradient(at 15% 10%, rgba(30, 58, 138, 0.3) 0px, transparent 55%),
    radial-gradient(at 85% 20%, rgba(14, 116, 144, 0.22) 0px, transparent 50%),
    radial-gradient(at 50% 60%, rgba(67, 56, 202, 0.2) 0px, transparent 55%),
    radial-gradient(at 10% 85%, rgba(126, 34, 206, 0.15) 0px, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.05) 1.2px, transparent 1.2px) !important;
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 32px 32px !important;
  background-attachment: fixed !important;
  color: #f8fafc !important;
}

h1, h2, h3, h4, h5, h6, .font-display, .heading-outfit {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

/* Exact Righteous Typography Matching Screenshot */
.brand-text-righteous {
  font-family: 'Righteous', cursive, sans-serif !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.brand-part-orbit {
  color: #0f172a;
  font-weight: 900;
  transition: color 0.2s ease;
}
.dark .brand-part-orbit {
  color: #ffffff;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
}

.brand-part-pro {
  color: #f97316;
  font-weight: 900;
  transition: color 0.2s ease;
}
.dark .brand-part-pro {
  color: #fb923c;
  text-shadow: 0 0 16px rgba(249, 115, 22, 0.55);
}

.brand-part-tech,
.brand-part-core {
  color: #0284c7;
  font-weight: 900;
  transition: color 0.2s ease;
}
.dark .brand-part-tech,
.dark .brand-part-core {
  color: #38bdf8;
  text-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.brand-part-next {
  color: #7c3aed;
  font-weight: 900;
  transition: color 0.2s ease;
}
.dark .brand-part-next {
  color: #a78bfa;
  text-shadow: 0 0 16px rgba(167, 139, 250, 0.45);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}
.dark .glass {
  background: rgba(11, 20, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Shining Ambient Header */
.site-sticky-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  background: #ffffff !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06) !important;
}

.dark .site-sticky-header,
.dark header.site-sticky-header {
  background: rgba(7, 12, 26, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.18) !important;
  box-shadow: 0 4px 30px -4px rgba(0, 0, 0, 0.8), 0 2px 15px -2px rgba(14, 116, 144, 0.3) !important;
}

/* Shining Header Bottom Line */
.header-shining-border {
  height: 1px;
  width: 100%;
  background: #e2e8f0;
}

.dark .header-shining-border {
  height: 2px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.2) 0%, #38bdf8 25%, #818cf8 50%, #c084fc 75%, rgba(56, 189, 248, 0.2) 100%);
  background-size: 200% 100%;
  animation: shineLineFlow 5s linear infinite;
  box-shadow: 0 1px 8px rgba(99, 102, 241, 0.4);
}

/* Header Navigation Bar & Buttons (Dark Mode Dark Blue & High Contrast) */
.dark nav,
.dark nav.header-nav-container,
.dark header nav {
  background: rgba(11, 20, 42, 0.92) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
}

.dark .header-nav-btn {
  color: #e2e8f0 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
}

.dark .header-nav-btn:hover {
  background: rgba(30, 58, 138, 0.45) !important;
  color: #38bdf8 !important;
  border-color: rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2) !important;
}

.dark .header-nav-btn.active,
.dark .header-nav-btn[data-active="true"] {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #0284c7 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.45) !important;
  border: 1px solid rgba(125, 211, 252, 0.5) !important;
}

.dark #headerSubmitToggleBtn {
  background: rgba(49, 46, 129, 0.5) !important;
  border: 1px solid rgba(99, 102, 241, 0.55) !important;
  color: #c7d2fe !important;
}
.dark #headerSubmitToggleBtn:hover {
  background: rgba(67, 56, 202, 0.7) !important;
  border-color: rgba(129, 140, 248, 0.8) !important;
  color: #ffffff !important;
}

.dark #langDropdownBtn,
.dark #themeToggleBtn,
.dark button[onclick*="openShareSiteModal"] {
  background: rgba(11, 20, 42, 0.92) !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  color: #e2e8f0 !important;
}

.dark #langDropdownBtn:hover,
.dark #themeToggleBtn:hover,
.dark button[onclick*="openShareSiteModal"]:hover {
  background: rgba(30, 58, 138, 0.5) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
}

.dark #authNavBtn {
  background: rgba(159, 18, 57, 0.45) !important;
  border: 1px solid rgba(244, 63, 94, 0.5) !important;
  color: #fecdd3 !important;
}
.dark #authNavBtn:hover {
  background: rgba(190, 18, 60, 0.65) !important;
  border-color: rgba(244, 63, 94, 0.8) !important;
  color: #ffffff !important;
}

@keyframes shineLineFlow {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dark .glass-card {
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}
.dark .glass-card:hover {
  box-shadow: 0 20px 30px -10px rgba(99, 102, 241, 0.25);
  border-color: rgba(129, 140, 248, 0.5);
}

/* Gradients */
.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 50%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dark .gradient-text {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-glow,
.aurora-glow-1,
.aurora-glow-2,
.aurora-glow-3 {
  display: none !important;
}

.dark .hero-glow {
  display: block !important;
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 480px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, rgba(6, 182, 212, 0.2) 40%, rgba(168, 85, 247, 0.1) 60%, rgba(0, 0, 0, 0) 75%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: heroGlowBreathe 8s ease-in-out infinite alternate;
}

.dark .aurora-glow-1 {
  display: block !important;
  position: absolute;
  top: 12%;
  left: -8%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22) 0%, rgba(147, 51, 234, 0.12) 45%, transparent 70%);
  filter: blur(85px);
  border-radius: 50%;
  animation: auroraPulse1 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.dark .aurora-glow-2 {
  display: block !important;
  position: absolute;
  top: 45%;
  right: -8%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, rgba(59, 130, 246, 0.12) 45%, transparent 70%);
  filter: blur(85px);
  border-radius: 50%;
  animation: auroraPulse2 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.dark .aurora-glow-3 {
  display: block !important;
  position: absolute;
  top: 75%;
  left: 20%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(236, 72, 153, 0.08) 45%, transparent 70%);
  filter: blur(95px);
  border-radius: 50%;
  animation: auroraPulse3 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes heroGlowBreathe {
  0% { transform: translateX(-50%) scale(0.95); opacity: 0.75; }
  100% { transform: translateX(-50%) scale(1.1); opacity: 1; }
}

@keyframes auroraPulse1 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(35px, 25px) scale(1.12); opacity: 1; }
  100% { transform: translate(-20px, 45px) scale(0.95); opacity: 0.8; }
}

@keyframes auroraPulse2 {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50% { transform: translate(-35px, -20px) scale(1.15); opacity: 1; }
  100% { transform: translate(25px, -35px) scale(0.9); opacity: 0.75; }
}

@keyframes auroraPulse3 {
  0% { transform: translate(0, 0) scale(0.95); opacity: 0.6; }
  50% { transform: translate(45px, -25px) scale(1.12); opacity: 0.95; }
  100% { transform: translate(-25px, 20px) scale(1); opacity: 0.7; }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

/* Continuous Running Marquee Ticker */
@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: marqueeScroll 36s linear infinite;
  will-change: transform;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

/* Toast styling */
#toast {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ==================== PAGE MAIN WRAPPER LAYOUT ==================== */
.page-main-wrapper {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  transition: all 0.2s ease;
}

/* ==================== ATTRACTIVE HERO SEARCH BUTTON ==================== */
.btn-hero-search {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff0055 0%, #7928ca 45%, #00c6ff 100%);
  background-size: 200% 200%;
  animation: searchGlowFlow 4s ease infinite alternate;
  color: #ffffff !important;
  font-weight: 900;
  letter-spacing: 0.05em;
  border-radius: 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 8px 25px -2px rgba(255, 0, 85, 0.5), 0 4px 18px rgba(121, 40, 202, 0.45), 0 0 20px rgba(0, 198, 255, 0.4);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
}

@keyframes searchGlowFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.btn-hero-search::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.6s ease;
  pointer-events: none;
}

.btn-hero-search:hover::before {
  left: 100%;
}

.btn-hero-search:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 32px -2px rgba(255, 0, 85, 0.7), 0 6px 24px rgba(121, 40, 202, 0.6), 0 0 28px rgba(0, 198, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-hero-search:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 4px 14px rgba(255, 0, 85, 0.4);
}

.search-input-glow {
  box-shadow: 0 8px 30px -4px rgba(121, 40, 202, 0.15), 0 0 0 1.5px rgba(255, 0, 85, 0.25);
  transition: all 0.3s ease;
}

.search-input-glow:focus-within {
  box-shadow: 0 12px 40px -4px rgba(255, 0, 85, 0.3), 0 0 0 2.5px rgba(0, 198, 255, 0.8);
}

/* Eliminate all browser focus outline/borders inside search input */
#heroSearchInput,
#heroSearchInput:focus,
#heroSearchInput:focus-visible,
#heroSearchInput:active {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

#heroCategorySelect,
#heroCategorySelect:focus,
#heroCategorySelect:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

/* Google Translate Hidden Control & Clean Styling */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
  display: none !important;
}
body {
  top: 0px !important;
}
.goog-tooltip {
  display: none !important;
}
.goog-tooltip:hover {
  display: none !important;
}
.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
#google_translate_element {
  display: none !important;
}

/* ==================== HEADER SHUTTER MENUS & ANIMATION ==================== */
.nav-shutter-menu {
  animation: shutterDrop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: top center;
}

@keyframes shutterDrop {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==================== RESPONSIVE & MOBILE FRIENDLY UTILITIES ==================== */
.no-scrollbar::-webkit-scrollbar,
.scrollbar-none::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar,
.scrollbar-none {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

.touch-scroll {
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-x: contain !important;
}

/* App-Like Mobile Sticky Bottom Bar */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1.5px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
}
.dark .mobile-bottom-bar {
  background: rgba(11, 15, 29, 0.96);
  border-top: 1.5px solid rgba(30, 41, 59, 0.9);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.6);
}

/* Mobile Navigation Drawer Animations */
.mobile-drawer-backdrop {
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-drawer-content {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Responsive Touch Target Optimization */
@media (max-width: 768px) {
  button, a, input, select {
    min-height: 38px;
  }
  .glass-card:hover {
    transform: none !important; /* Prevent hover jitter on mobile touch */
  }
}

