/* DESIGN SYSTEM & CONSTANTS */
:root {
  /* Color Palette */
  --bg-primary: #02060a;
  --bg-secondary: #060e15;
  --bg-tertiary: #0c1a27;
  
  --color-cyan: #00f2fe;
  --color-teal: #00f5d4;
  --color-blue: #2575fc;
  --color-neon-blue: #4facfe;
  --color-purple: #7f00ff;
  
  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Border & Glassmorphic variables */
  --glass-bg: rgba(6, 14, 21, 0.65);
  --glass-border: rgba(0, 242, 254, 0.12);
  --glass-border-hover: rgba(0, 242, 254, 0.3);
  --glass-glow: rgba(0, 242, 254, 0.04);
  
  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.2s var(--ease-smooth);
  --transition-normal: all 0.35s var(--ease-smooth);
  --transition-slow: all 0.6s var(--ease-smooth);
  
  /* Layout */
  --header-height: 80px;
  --max-width: 1280px;
}

/* BASE STYLING */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  outline: none;
}

/* BACKGROUND AMBIENT GLOWS */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(120px);
  opacity: 0.35;
}
.glow-1 {
  top: 10%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--color-cyan) 0%, transparent 70%);
}
.glow-2 {
  top: 40%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-blue) 0%, transparent 70%);
}
.glow-3 {
  bottom: 10%;
  left: 20%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--color-purple) 0%, transparent 70%);
}

/* BUTTONS & LINKS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  color: #03070b;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-cyan) 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s var(--ease-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
  color: #fff;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary i {
  font-size: 0.85em;
  transition: transform 0.3s var(--ease-smooth);
}

.btn-primary:hover i {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-cyan);
  transform: translateY(-2px);
}

/* HEADER & NAVBAR */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(2, 6, 10, 0.3);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(2, 6, 10, 0.85);
  height: 70px;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo Styling */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrapper {
  width: 54px; /* Increased from 44px */
  height: 54px; /* Increased from 44px */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 4px rgba(0, 242, 254, 0.3));
  transition: transform 0.5s var(--ease-smooth);
}

.brand-logo:hover .logo-svg {
  transform: rotate(5deg) scale(1.05);
}

/* Initial Drawing Animation for SVG */
.logo-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: drawPaths 3.5s forwards ease-in-out;
}

.logo-top-lines { animation-delay: 0.1s; }
.logo-bottom-lines { animation-delay: 0.3s; }
.logo-diagonal-main {
  animation-delay: 0.5s;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawPaths 2.5s forwards cubic-bezier(0.16, 1, 0.3, 1);
}
.logo-circuit-1 { animation-delay: 0.7s; }
.logo-circuit-2 { animation-delay: 0.9s; }

.logo-node {
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  animation: scaleIn 0.5s 2.2s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes drawPaths {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes scaleIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .text-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.7rem; /* Increased from 1.45rem */
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  line-height: 1;
}

.logo-text .text-sub {
  font-size: 0.65rem; /* Increased from 0.55rem */
  font-weight: 700;
  letter-spacing: 0.38em;
  color: var(--color-cyan);
  margin-top: 3px;
  line-height: 1;
  text-transform: uppercase;
}

/* Navigation Links */
.desktop-nav {
  height: 100%;
}

.nav-list {
  display: flex;
  list-style: none;
  height: 100%;
  align-items: center;
}

.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
}

.nav-link {
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-link:hover {
  color: var(--color-cyan);
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s var(--ease-smooth);
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.action-btn:hover {
  background: rgba(0, 242, 254, 0.08);
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.burger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 1100;
}

.burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-normal);
  border-radius: 4px;
}


/* DROPDOWN - SERVICES MEGA MENU */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px) scale(0.95);
  width: 800px;
  background: rgba(2, 6, 10, 0.97); /* Solid dark background to prevent text overlapping */
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 242, 254, 0.05);
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth), visibility 0.3s;
  padding: 30px;
  z-index: 99;
}

.nav-services {
  position: static !important; /* Forces mega menu to relative of site container for width math */
}

/* Hover show trigger */
.nav-item:hover .mega-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.mega-menu-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mega-menu-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 16px;
}

.mega-menu-title-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.line-decorator {
  width: 3px;
  height: 38px;
  background: linear-gradient(to bottom, var(--color-cyan), var(--color-blue));
  border-radius: 2px;
}

.mega-menu-title-block h3 {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--color-cyan);
  line-height: 1;
  margin-bottom: 4px;
}

.mega-menu-title-block p {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 500;
  text-transform: uppercase;
}

/* Grid of mega menu cards */
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mega-menu-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  transition: var(--transition-fast);
}

/* Card hover glows */
.card-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 242, 254, 0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
  pointer-events: none;
}

.mega-menu-card:hover .card-bg-glow {
  opacity: 1;
}

.mega-menu-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
  transform: translateY(-1px);
}

.card-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

.mega-menu-card:hover .card-num {
  color: var(--color-cyan);
}

.card-content h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.card-content p {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.card-icon {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  transform: scale(0.9);
  transition: var(--transition-fast);
}

.mega-menu-card:hover .card-icon {
  color: var(--color-cyan);
  transform: scale(1.1) translate(1px, -1px);
}

/* Mega menu footer */
.mega-menu-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
  display: flex;
  justify-content: flex-start;
}

.mega-footer-link {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mega-footer-link i {
  font-size: 0.8em;
  transition: transform 0.3s var(--ease-smooth);
}

.mega-footer-link:hover {
  color: var(--color-cyan);
}

.mega-footer-link:hover i {
  transform: translateX(4px);
}


/* DROP DOWN - STANDARD PACKAGES */
.standard-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(20px) scale(0.95);
  width: 280px;
  background: rgba(2, 6, 10, 0.97); /* Solid dark background to prevent text overlapping */
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 242, 254, 0.03);
  transition: opacity 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth), visibility 0.3s;
  padding: 10px;
  z-index: 99;
}

.nav-item:hover .standard-dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  border-radius: 8px;
  transition: var(--transition-fast);
}

.dropdown-link:hover {
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--color-cyan);
}

.dropdown-link .link-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.link-icon {
  font-size: 0.85em;
  color: var(--color-cyan);
}

.dropdown-link .link-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  padding-left: 22px;
}


/* SEARCH OVERLAY */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 10, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: var(--transition-normal);
}

.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.close-search {
  position: absolute;
  top: 40px;
  right: 40px;
  color: var(--text-secondary);
  font-size: 3rem;
  transition: var(--transition-fast);
}

.close-search:hover {
  color: var(--color-cyan);
  transform: rotate(90deg);
}

.search-container {
  width: 100%;
  max-width: 600px;
  padding: 0 24px;
}

.search-form {
  display: flex;
  border-bottom: 2px solid var(--glass-border);
  padding-bottom: 12px;
  position: relative;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-submit-btn {
  color: var(--color-cyan);
  font-size: 1.5rem;
}

.search-suggestions p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.suggestion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.suggestion-tags .tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.suggestion-tags .tag:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.05);
}


/* MOBILE DRAWER MENU */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  max-width: 100%;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  z-index: 1500;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

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

.drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

.drawer-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.drawer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-link, .drawer-link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  text-align: left;
  transition: var(--transition-fast);
}

.drawer-link:hover, .drawer-link-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-cyan);
}

.drawer-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s var(--ease-smooth);
}

.drawer-link-btn[aria-expanded="true"] .drawer-arrow {
  transform: rotate(180deg);
}

.drawer-sub-menu {
  list-style: none;
  padding-left: 16px;
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.drawer-sub-menu.active {
  display: flex;
}

.drawer-sub-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.drawer-sub-menu a:hover {
  color: var(--color-cyan);
}

.drawer-cta-btn {
  width: 100%;
  justify-content: center;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 10, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1400;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: var(--transition-normal);
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}


/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 20px) 0 60px 0;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.7;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  border-radius: 30px;
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-cyan);
  animation: pulseGlow 1.8s infinite alternate;
}

@keyframes pulseGlow {
  to {
    opacity: 0.4;
    transform: scale(1.3);
  }
}

.badge-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-cyan);
  text-transform: uppercase;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 50%, var(--color-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-taglines {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tagline-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tagline-item i {
  color: var(--color-cyan);
  font-size: 0.85rem;
}

.tagline-divider {
  color: rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
}

.hero-actions-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-large {
  padding: 14px 32px;
  font-size: 1rem;
}

/* Hero visual circuit graphics */
.hero-visual-block {
  display: flex;
  justify-content: center;
}

.visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
}

.glowing-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.circuit-graphics {
  overflow: visible;
}

.spinning-ring {
  transform-origin: 200px 200px;
  animation: spinRing 25s infinite linear;
}

@keyframes spinRing {
  100% {
    transform: rotate(360deg);
  }
}

.pulsing-node {
  animation: pulseNode 2s infinite alternate var(--ease-smooth);
}

@keyframes pulseNode {
  to {
    opacity: 0.4;
    r: 7;
  }
}

.central-node-group {
  cursor: pointer;
  transition: transform 0.5s var(--ease-smooth);
}

.central-node-group:hover {
  transform: scale(1.05);
}


/* REVEAL ON SCROLL EFFECTS */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* SECTIONS GENERAL */
section {
  padding: 100px 0;
  position: relative;
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
}

.section-tag {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--color-cyan), var(--color-blue));
  border-radius: 2px;
}


/* SERVICES CARD GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 242, 254, 0.05);
}

/* Custom background mouse glowing flash */
.card-border-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(0, 242, 254, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
}

.service-card:hover .card-border-glow {
  opacity: 1;
}

.card-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--color-cyan);
  transition: var(--transition-normal);
}

.service-card:hover .card-icon-wrapper {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  color: #03070b;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-features li i {
  color: var(--color-teal);
  font-size: 0.8rem;
}


/* PACKAGES PRICING CARDS */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: stretch;
}

.package-card {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}

.package-card:hover {
  transform: translateY(-5px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.package-card.featured {
  background: linear-gradient(to bottom, rgba(6, 14, 21, 0.9), rgba(12, 26, 39, 0.9));
  border: 2px solid var(--color-cyan);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.1);
}

.package-card.featured:hover {
  box-shadow: 0 15px 40px rgba(0, 242, 254, 0.25);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  color: #03070b;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 30px;
  letter-spacing: 0.1em;
}

.package-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.package-header h3 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.package-price {
  font-size: 2.25rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.package-price span {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.package-header .badge {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(0, 242, 254, 0.15);
  margin-top: 8px;
}

.package-body {
  flex-grow: 1;
  margin-bottom: 30px;
}

.package-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.package-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.package-features li i {
  color: var(--color-cyan);
  margin-top: 4px;
}

.package-footer {
  width: 100%;
}

.package-footer .btn-primary, .package-footer .btn-secondary {
  width: 100%;
  justify-content: center;
}


/* CONTACT FORM SECTION */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.contact-info h2 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-top: 10px;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-detail-item i {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan);
  font-size: 1.1rem;
}

.contact-detail-item h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-detail-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.contact-detail-item p a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-detail-item p a:hover {
  color: var(--color-cyan);
}

.contact-form-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.form-group input, .form-group select, .form-group textarea {
  background: rgba(2, 6, 10, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
  background: rgba(2, 6, 10, 0.7);
}

.form-group select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.submit-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
}


/* FOOTER STYLING */
.site-footer {
  background: #010407;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 80px 0 30px 0;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.social-links a:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.05);
  transform: translateY(-2px);
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-link-group h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-link-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link-group ul a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-link-group ul a:hover {
  color: var(--color-cyan);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
}

.footer-bottom-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-legal a:hover {
  color: var(--color-cyan);
}

.footer-legal .divider {
  color: rgba(255, 255, 255, 0.05);
}


/* PORTFOLIO SHOWCASE */
.work-section {
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}
.work-showcase {
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.work-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}
.project-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-smooth);
}
.work-showcase:hover .project-img {
  transform: scale(1.04);
}
.image-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 50%, rgba(6, 14, 21, 0.95) 100%);
}
.project-details {
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}
.project-category {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-cyan);
  letter-spacing: 0.1em;
}
.project-details h3 {
  font-size: 2rem;
  color: var(--text-primary);
}
.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.project-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 0;
  margin: 8px 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}
.stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* PROCESS & WORKSPACE SECTIONS */
.process-section {
  background: var(--bg-primary);
}
.workspace-section {
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
}
.process-grid, .workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 80px;
}
.image-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-tertiary);
  border: 1px solid var(--glass-border);
  transition: var(--transition-normal);
}
.image-frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease-smooth);
}
.image-frame:hover img {
  transform: scale(1.03);
}
.frame-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.03) 0%, rgba(37, 117, 252, 0.03) 100%);
  pointer-events: none;
}
.glow-cyan {
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}
.glow-cyan:hover {
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 15px 40px rgba(0, 242, 254, 0.15);
}
.glow-blue {
  box-shadow: 0 10px 30px rgba(37, 117, 252, 0.05);
}
.glow-blue:hover {
  border-color: rgba(37, 117, 252, 0.35);
  box-shadow: 0 15px 40px rgba(37, 117, 252, 0.15);
}
.process-text-block h2, .workspace-text-block h2 {
  font-size: 2.25rem;
  margin-top: 10px;
  margin-bottom: 20px;
}
.process-text-block p, .workspace-text-block p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.15);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-item h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.step-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}
.workspace-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.workspace-highlights li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.workspace-highlights li i {
  color: var(--color-cyan);
  margin-top: 5px;
  font-size: 0.9rem;
}


/* SCROLLBAR CUSTOMIZATION */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 10px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 242, 254, 0.3);
}


/* RESPONSIVE MEDIA QUERIES */

/* Large Tablets & Desktop scaling */
@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .burger-menu {
    display: flex;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-text-block {
    align-items: center;
  }
  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-taglines {
    justify-content: center;
  }
  .hero-actions-group {
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Mega menu overrides on lower widths */
  .mega-menu {
    width: 90vw;
  }

  /* Portfolio & Process responsive grids */
  .work-grid {
    grid-template-columns: 1fr;
  }
  .project-image-wrapper {
    min-height: 300px;
  }
  .image-gradient-overlay {
    background: linear-gradient(to bottom, transparent 40%, rgba(6, 14, 21, 0.95) 100%);
  }
  .process-grid, .workspace-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .workspace-grid .workspace-image-block {
    grid-row: 1;
  }
}

/* Small Tablets & Mobile */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-form-wrapper {
    padding: 24px;
  }

  /* Project details & header size adjustments on mobile */
  .project-details {
    padding: 30px 20px;
  }
  .project-details h3 {
    font-size: 1.6rem;
  }
  .process-text-block h2, .workspace-text-block h2 {
    font-size: 1.8rem;
  }
}

/* Burger Active State animations */
.burger-menu.active .line-1 {
  transform: rotate(45deg) translate(5px, 6px);
}
.burger-menu.active .line-2 {
  opacity: 0;
  transform: translateX(-10px);
}
.burger-menu.active .line-3 {
  transform: rotate(-45deg) translate(5px, -6px);
}


/* INFINITE SCROLLING TICKER MARQUEE */
.marquee-container {
  overflow: hidden;
  background: rgba(2, 6, 10, 0.65); /* Translucent dark space background */
  backdrop-filter: blur(12px);
  padding: 24px 0; /* Substantial padding */
  display: flex;
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(0, 242, 254, 0.25); /* Glowing cyan top border */
  border-bottom: 1px solid rgba(0, 242, 254, 0.25); /* Glowing cyan bottom border */
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.1);
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 22s linear infinite; /* Smooth slide */
  gap: 50px;
  padding-right: 50px;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.55rem; /* Substantially larger text */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  
  /* Glowing gradient neon text flow */
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-neon-blue) 50%, var(--color-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.4));
  transition: filter 0.3s ease;
}

.marquee-container:hover .marquee-item {
  filter: drop-shadow(0 0 12px rgba(0, 242, 254, 0.75));
}

.marquee-dot {
  width: 9px;
  height: 9px;
  background-color: var(--color-cyan);
  border-radius: 50%;
  align-self: center;
  box-shadow: 0 0 10px var(--color-cyan);
  animation: pulseDot 1.5s infinite alternate ease-in-out;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.85);
    opacity: 0.6;
    box-shadow: 0 0 6px var(--color-cyan);
  }
  100% {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 14px var(--color-cyan);
  }
}

/* FINANCIALS & BANKING ECOSYSTEM SECTION */
.financials-section {
  position: relative;
  background-color: var(--bg-primary);
  z-index: 2;
}

.section-subtitle-text {
  max-width: 640px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-top: 10px;
  line-height: 1.6;
}

.financials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  align-items: stretch;
}

.financial-panel {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  transition: var(--transition-normal);
  backdrop-filter: blur(12px);
}

.financial-panel:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 242, 254, 0.04);
}

.panel-border-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(0, 242, 254, 0.06), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
}

.financial-panel:hover .panel-border-glow {
  opacity: 1;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.panel-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: var(--transition-normal);
}

.panel-icon-wrapper.cyan-glow {
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--color-cyan);
}

.panel-icon-wrapper.blue-glow {
  background: rgba(37, 117, 252, 0.05);
  border: 1px solid rgba(37, 117, 252, 0.2);
  color: var(--color-blue);
}

.financial-panel:hover .panel-icon-wrapper.cyan-glow {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-teal) 100%);
  color: #02060a;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.45);
}

.financial-panel:hover .panel-icon-wrapper.blue-glow {
  background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-neon-blue) 100%);
  color: #02060a;
  box-shadow: 0 0 20px rgba(37, 117, 252, 0.45);
}

.panel-header h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
}

.panel-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.panel-services-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-service-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: var(--transition-fast);
}

.service-item-bullet {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.panel-service-item:hover .service-item-bullet {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.service-item-content h4 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  transition: var(--transition-fast);
}

.panel-service-item:hover h4 {
  color: var(--color-cyan);
}

.service-item-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.panel-callout {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.panel-callout p {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-callout i {
  color: var(--color-cyan);
  font-size: 0.95rem;
}


/* CORPORATE INSURANCE SHOWCASE SECTION */
.insurance-section {
  position: relative;
  background-color: var(--bg-secondary);
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.insurance-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 50px;
}

.insurance-track {
  background: rgba(2, 6, 10, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 40px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.insurance-track::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent 60%, rgba(255, 255, 255, 0.01));
  pointer-events: none;
}

.insurance-track:hover {
  background: rgba(2, 6, 10, 0.65);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.track-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 35px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 20px;
}

.track-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition-normal);
}

.track-title-block h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.track-title-block p {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.partner-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-normal);
  align-items: center;
  text-align: center;
}

.partner-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
}

.partner-logo {
  width: 100%;
  max-width: 180px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  transition: var(--transition-normal);
  background: #ffffff;
  padding: 10px 14px;
  box-sizing: border-box;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.partner-card:hover .partner-logo {
  transform: scale(1.03);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}

.logo-img-insurance,
.logo-svg-insurance {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.partner-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.partner-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* TRACK THEMES & COLOR GATES */

/* Track 1: Life Insurance (Crimson) */
.crimson-theme .track-icon-wrapper {
  background: rgba(255, 59, 92, 0.05);
  border: 1px solid rgba(255, 59, 92, 0.2);
  color: #ff3b5c;
}

.crimson-theme:hover {
  border-color: rgba(255, 59, 92, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(255, 59, 92, 0.04);
}

.crimson-theme .partner-card:hover {
  border-color: rgba(255, 59, 92, 0.3);
  box-shadow: 0 10px 25px rgba(255, 59, 92, 0.05);
}

/* Track 2: Health Insurance (Emerald) */
.emerald-theme .track-icon-wrapper {
  background: rgba(0, 245, 212, 0.05);
  border: 1px solid rgba(0, 245, 212, 0.2);
  color: var(--color-teal);
}

.emerald-theme:hover {
  border-color: rgba(0, 245, 212, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(0, 245, 212, 0.04);
}

.emerald-theme .partner-card:hover {
  border-color: rgba(0, 245, 212, 0.3);
  box-shadow: 0 10px 25px rgba(0, 245, 212, 0.05);
}

/* Track 3: General Insurance (Blue) */
.blue-theme .track-icon-wrapper {
  background: rgba(37, 117, 252, 0.05);
  border: 1px solid rgba(37, 117, 252, 0.2);
  color: var(--color-blue);
}

.blue-theme:hover {
  border-color: rgba(37, 117, 252, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 35px rgba(37, 117, 252, 0.04);
}

.blue-theme .partner-card:hover {
  border-color: rgba(37, 117, 252, 0.3);
  box-shadow: 0 10px 25px rgba(37, 117, 252, 0.05);
}


/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .financials-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .insurance-track {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .financial-panel {
    padding: 30px 20px;
  }

  .track-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }

  .partners-grid {
    grid-template-columns: 1fr;
  }
  
  .partner-card {
    padding: 20px 15px;
  }
}


/* ==========================================
   WORK & CLIENT SHOWCASE SECTION
   ========================================== */
.work-section {
  padding: 100px 0;
  position: relative;
}

.scale-at-speed-grid {
  max-width: var(--max-width);
  margin: 40px auto 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.scale-content-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scale-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.scale-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-cyan);
  letter-spacing: 0.05em;
  margin-top: -10px;
}

.scale-desc-1 {
  font-size: 1.1rem;
  color: var(--text-primary);
  line-height: 1.6;
}

.scale-brand-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  margin-top: 10px;
}

.scale-brand-block h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  color: var(--color-teal);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scale-desc-2 {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Action Buttons styled like the user's reference image */
.scale-actions-group {
  display: flex;
  gap: 20px;
  margin-top: 15px;
}

.btn-scale-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background-color: #e31b23; /* Solid red from image */
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(227, 27, 35, 0.25);
  transition: all 0.3s ease;
  border: 1px solid #e31b23;
}

.btn-scale-red:hover {
  background-color: #ff2a33;
  border-color: #ff2a33;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(227, 27, 35, 0.45);
}

.btn-scale-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background-color: transparent;
  color: #e31b23; /* Red text and outline */
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #e31b23;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-scale-outline:hover {
  background-color: rgba(227, 27, 35, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(227, 27, 35, 0.15);
}

/* Right Column Image Styles */
.scale-image-block {
  display: flex;
  justify-content: center;
  position: relative;
}

.scale-image-block::before {
  content: '';
  position: absolute;
  inset: 10% 0 5%;
  background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.14), transparent 35%),
              radial-gradient(circle at bottom left, rgba(227, 27, 35, 0.08), transparent 30%);
  pointer-events: none;
  z-index: 0;
}

.scale-image-wrapper {
  position: relative;
  width: min(700px, 100%);
  border-radius: 24px;
  overflow: hidden;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

.scale-image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 40%);
  transform: skewX(-20deg) translateX(-110%);
  opacity: 0.18;
  pointer-events: none;
  animation: speedTrail 0.75s linear infinite;
}

.scale-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 242, 254, 0.06), transparent 38%);
  pointer-events: none;
}

.scale-image-wrapper:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: rgba(227, 27, 35, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 32px 64px rgba(0, 0, 0, 0.55), 0 0 30px rgba(227, 27, 35, 0.18);
}

.scale-brand-image {
  width: 103%;
  height: auto;
  max-width: 590px;
  display: block;
  object-fit: cover;
  animation: driveForward 1.4s ease-in-out infinite alternate;
  will-change: transform, filter;
  position: relative;
  left: -1.5%;
}

.scale-image-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(227, 27, 35, 0.12) 0%, transparent 60%);
  pointer-events: none;
  mix-blend-mode: screen;
}

@keyframes driveForward {
  0% {
    transform: translateX(-4px) scale(0.998);
    filter: brightness(0.96) saturate(1);
  }
  50% {
    transform: translateX(4px) scale(1.005);
    filter: brightness(1.03) saturate(1.08);
  }
  100% {
    transform: translateX(-4px) scale(0.998);
    filter: brightness(0.96) saturate(1);
  }
}

@keyframes speedTrail {
  0% {
    transform: skewX(-20deg) translateX(-110%);
    opacity: 0.28;
  }
  50% {
    transform: skewX(-20deg) translateX(10%);
    opacity: 0.12;
  }
  100% {
    transform: skewX(-20deg) translateX(110%);
    opacity: 0.28;
  }
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .scale-at-speed-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .scale-title {
    font-size: 2.5rem;
  }
  
  .scale-actions-group {
    justify-content: center;
  }
  
  .scale-brand-block {
    text-align: left;
  }

  /* Responsive image: let image scale down on narrower viewports */
  .scale-brand-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    left: 0;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .scale-actions-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn-scale-red, .btn-scale-outline {
    width: 100%;
  }
  
  .logo-wrapper {
    width: 40px !important;
    height: 40px !important;
  }
  .logo-text .text-main {
    font-size: 1.25rem !important;
  }
  .logo-text .text-sub {
    font-size: 0.55rem !important;
    letter-spacing: 0.25em !important;
  }
  .site-header {
    height: 60px !important;
  }
  .header-container {
    padding: 0 16px !important;
  }
}


/* ==========================================
   DIGITAL MARKETING CARD SPECIFIC STYLES
   ========================================== */
.marketing-toggle {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 4px;
  margin-top: 15px;
  margin-bottom: 15px;
  gap: 4px;
}

.toggle-btn {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: none;
  border: none;
  cursor: pointer;
}

.toggle-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  color: #03070b;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

/* ==========================================
   THREE PANELS HIGHLIGHT
   ========================================== */
.three-panels-section {
  padding: 40px 0;
}

.three-panels-header {
  max-width: var(--max-width);
  margin: 0 auto 18px auto;
  padding: 0 24px;
}

.three-panels-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.three-panels-sub {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.panel-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

/* FOUR CARDS INSIGHTS */
.four-cards-section {
  padding: 40px 0;
}
.four-cards-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.four-cards-grid .panel-card .panel-image {
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  animation: floatUpDown 6s ease-in-out infinite;
}
.four-cards-grid .panel-card .panel-image img {
  transition: transform .5s ease, filter .3s ease;
  display: block;
}
.four-cards-grid .panel-card .panel-image:hover img {
  transform: scale(1.06);
  filter: brightness(1.03);
}
.four-cards-grid .panel-body { padding: 18px; }

@keyframes floatUpDown {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@media (max-width: 1100px) {
  .four-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .four-cards-grid { grid-template-columns: 1fr; }
  .four-cards-grid .panel-card .panel-image { height: 160px; }
}

.panel-card {
  background: transparent;
  display: flex;
  flex-direction: column;
}

.panel-image {
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}

.panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.panel-body {
  background: rgba(7,11,13,0.85);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 0 0 6px 6px;
}

.panel-body h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  margin: 0;
}

.panel-body p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  flex: 1 1 auto;
}

.panel-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #6ea0e8 0%, #4b7fd6 100%);
  color: white;
  text-decoration: none;
  font-weight: 700;
  align-self: flex-end;
  box-shadow: 0 6px 18px rgba(75,127,214,0.18);
}

.panel-cta .arrow { font-size: 1.2rem; }

@media (max-width: 1100px) {
  .panel-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .panel-grid { grid-template-columns: 1fr; }
  .panel-image { height: 180px; }
  .three-panels-header h2 { font-size: 1.4rem; }
}

.marketing-description {
  position: relative;
  min-height: 100px;
}

.desc-text {
  display: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.desc-text.active {
  display: block;
  animation: fadeInText 0.4s var(--ease-smooth) forwards;
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.features-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.marketing-features {
  margin-top: 0;
}

/* Col-left and Col-right details */
#seo.service-card .col-left,
#seo.service-card .col-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 992px) {
  #seo.service-card {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
    padding: 50px;
  }
  
  #seo.service-card .col-left {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 40px;
  }
  
  #seo.service-card .col-right {
    padding-left: 10px;
  }
  
  .marketing-description {
    min-height: 80px;
  }
}

/* ==========================================
   VIDEO INTRO PRELOADER & SITE POPUP ENTRY
   ========================================== */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), visibility 0.8s;
}

.intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Skip Intro Button */
.skip-intro-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 10001;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  transition: all 0.3s var(--ease-smooth);
  cursor: pointer;
}
.skip-intro-btn:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.3);
  transform: translateY(-2px);
}
.skip-intro-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}
.skip-intro-btn:hover i {
  transform: translateX(3px);
}

#intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
  opacity: 0;
  transition: opacity 1.5s ease;
}

#intro-video.visible {
  opacity: 1;
}

/* Site Wrapper popup transition */
#main-site-wrapper {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#main-site-wrapper.site-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* Video Brand Watermark Overlay (Centered, Large, Animated) */
.video-brand-watermark {
  position: absolute;
  top: 44%; /* Shifted slightly higher for better optical centering */
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  z-index: 10000;
  pointer-events: none;
  user-select: none;
  text-align: center;
  animation: floatWatermark 6s ease-in-out infinite alternate;
}

@keyframes floatWatermark {
  0% {
    transform: translate(-50%, -46%);
  }
  100% {
    transform: translate(-50%, -54%);
  }
}

.watermark-logo-svg {
  filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.55));
}

/* Stroke Path Drawing Animation for SVG */
.water-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawWaterPath 3.2s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

.water-top {
  animation-delay: 0.1s;
}

.water-diag {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawWaterPath 2.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
}

.water-bottom {
  animation-delay: 0.6s;
}

@keyframes drawWaterPath {
  to {
    stroke-dashoffset: 0;
  }
}

.watermark-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.watermark-main {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 25px rgba(0, 242, 254, 0.35);
  opacity: 0;
  animation: fadeInTextWatermark 1.6s cubic-bezier(0.25, 0.8, 0.25, 1) 1.2s forwards;
}

.watermark-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.45em;
  color: var(--color-cyan);
  margin-top: 8px;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInTextWatermark 1.6s cubic-bezier(0.25, 0.8, 0.25, 1) 1.6s forwards;
}

@keyframes fadeInTextWatermark {
  from {
    opacity: 0;
    transform: translateY(28px); /* Increased range for a clearer slide-up motion */
    letter-spacing: 0.6em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   AI AGENT WIDGET
   ========================================== */
#ai-agent-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
}

/* Floating Action Button (FAB) */
#ai-agent-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  color: #03070b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.4);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#ai-agent-fab:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 0 30px rgba(0, 242, 254, 0.7);
  color: #fff;
}

/* Pulsing effect ring for FAB */
.fab-pulse-ring {
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 50%;
  border: 2px solid var(--color-cyan);
  opacity: 0.6;
  animation: pulseFab 2.5s infinite;
  pointer-events: none;
}

@keyframes pulseFab {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.2;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Chat Window Container */
#ai-agent-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 440px;
  max-width: calc(100vw - 40px);
  height: 620px;
  background: rgba(6, 14, 21, 0.95);
  backdrop-filter: blur(25px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(30px) scale(0.95);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
  visibility: hidden;
}

#ai-agent-window.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

/* Header styling */
.ai-agent-header {
  padding: 16px 20px;
  background: rgba(12, 26, 39, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-header-logo {
  filter: drop-shadow(0 0 4px var(--color-cyan));
}

.ai-header-text {
  display: flex;
  flex-direction: column;
}

.ai-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.ai-status {
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-teal);
  box-shadow: 0 0 8px var(--color-teal);
}

#ai-agent-close {
  color: var(--text-secondary);
  font-size: 1.8rem;
  line-height: 1;
  transition: var(--transition-fast);
  padding: 4px;
}

#ai-agent-close:hover {
  color: #ef4444;
  transform: rotate(90deg);
}

/* Messages area */
.ai-agent-messages {
  flex-grow: 1;
  padding: 24px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.1) transparent;
}

.ai-agent-messages::-webkit-scrollbar {
  width: 5px;
}

.ai-agent-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.15);
  border-radius: 3px;
}

.ai-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
  animation: messageSlideIn 0.3s var(--ease-smooth) forwards;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-message.agent {
  align-self: flex-start;
}

.ai-message.user {
  align-self: flex-end;
}

.ai-message .message-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.ai-message.agent .message-bubble {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-bottom-left-radius: 2px;
}

.ai-message.user .message-bubble {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(37, 117, 252, 0.15) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--text-primary);
  border-bottom-right-radius: 2px;
}

/* Typing Indicator */
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 6px 8px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background-color: var(--color-cyan);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ==========================================
   INPUT CARD (Styled exact like user image)
   ========================================== */
.ai-input-card {
  margin: 16px 20px 20px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Floating Voice Input Button at top center */
.ai-mic-btn {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00f2fe 0%, #2575fc 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  border: 4px solid rgba(6, 14, 21, 0.95);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10;
}

.ai-mic-btn:hover {
  transform: translate(-50%, -55%) scale(1.06);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.65);
}

/* Pulsing voice wave when listening */
.ai-mic-btn.listening {
  background: linear-gradient(135deg, #ef4444 0%, #ff5e62 100%);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.7);
  animation: micPulse 1.5s infinite;
}

@keyframes micPulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.08); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.mic-wave {
  display: none;
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.5);
  animation: wavePulse 1.5s infinite linear;
}

.ai-mic-btn.listening .mic-wave {
  display: block;
}

@keyframes wavePulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* Input Area styling */
.ai-input-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px; /* Space for the floating button */
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.3s ease;
}

.ai-input-wrapper:focus-within {
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.08);
}

.ai-sparkle-icon {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 3px;
  animation: glowSparkle 4s infinite alternate;
}

@keyframes glowSparkle {
  0% { color: var(--text-muted); }
  100% { color: var(--color-cyan); filter: drop-shadow(0 0 3px var(--color-cyan)); }
}

#ai-input-field {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  resize: none;
  line-height: 1.4;
  height: 22px;
}

#ai-input-field::placeholder {
  color: var(--text-muted);
}

/* Suggestions pills layout */
.ai-suggestions {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 14px;
  padding-bottom: 4px;
  scrollbar-width: none; /* Hide scrollbar for standard browsers */
}

.ai-suggestions::-webkit-scrollbar {
  display: none; /* Hide scrollbar for webkit */
}

.ai-pill-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: var(--transition-fast);
}

.ai-pill-btn:hover {
  border-color: rgba(0, 242, 254, 0.3);
  color: var(--color-cyan);
  background: rgba(0, 242, 254, 0.03);
}

/* Card footer Row */
.ai-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.ai-disclaimer {
  font-size: 0.7rem;
  font-style: italic;
  color: var(--text-muted);
}

.ai-footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-security-icon {
  color: #22c55e;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.3));
}

.ai-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.ai-send-btn:hover {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-blue) 100%);
  color: #03070b;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

/* Media Query for Mobile */
@media (max-width: 576px) {
  #ai-agent-window {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    max-width: 100vw;
    border: none;
    bottom: auto;
    right: auto;
  }

  #ai-agent-widget {
    bottom: 20px;
    right: 20px;
  }
  
  .ai-welcome-popup {
    right: 5px;
    bottom: 75px;
  }
  
  .btn-primary#cta-btn {
    display: none;
  }
  
  /* Stack action buttons */
  .hero-actions-group, .scale-actions-group {
    flex-direction: column;
    width: 100%;
    align-items: center;
    gap: 12px;
  }
  .hero-actions-group .btn-primary,
  .hero-actions-group .btn-secondary,
  .scale-actions-group .btn-scale-red,
  .scale-actions-group .btn-scale-outline {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  
  /* Scale down watermark logo on mobile */
  .watermark-logo-svg {
    width: 80px !important;
    height: 80px !important;
  }
  .watermark-main {
    font-size: 2rem !important;
  }
  .watermark-sub {
    font-size: 0.7rem !important;
    letter-spacing: 0.3em !important;
  }
}

/* ==========================================
   AI AGENT WELCOME POPUP STYLES
   ========================================== */
.ai-welcome-popup {
  position: absolute;
  bottom: 75px;
  right: 0;
  min-width: 220px;
  max-width: 280px;
  background: rgba(6, 14, 21, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 16px 16px 2px 16px;
  padding: 12px 32px 12px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px) scale(0.92);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9998;
}

.ai-welcome-popup.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  animation: floatWelcome 4s ease-in-out infinite alternate;
  animation-delay: 0.5s; /* Start floating after entrance transition */
}

/* Floating animation */
@keyframes floatWelcome {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

/* Speech bubble tail */
.welcome-popup-arrow {
  position: absolute;
  bottom: -6px;
  right: 22px;
  width: 12px;
  height: 12px;
  background: rgba(6, 14, 21, 0.92);
  border-right: 1px solid rgba(0, 242, 254, 0.25);
  border-bottom: 1px solid rgba(0, 242, 254, 0.25);
  transform: rotate(45deg);
  z-index: -1;
}

/* Content layout */
.ai-welcome-popup-content {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.welcome-emoji {
  font-size: 1.5rem;
  line-height: 1;
  animation: waveHand 2.5s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes waveHand {
  0%, 100% { transform: rotate(0deg); }
  20%, 60% { transform: rotate(-10deg); }
  40%, 80% { transform: rotate(14deg); }
}

.welcome-text-block {
  display: flex;
  flex-direction: column;
}

.welcome-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--color-cyan);
  margin: 0;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.welcome-subtitle {
  margin: 2px 0 0 0;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
  font-family: 'Inter', sans-serif;
}

/* Close button */
.ai-welcome-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: 2px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.ai-welcome-popup-close:hover {
  color: #ef4444;
  transform: scale(1.15);
}

/* ==========================================
   MOBILE VIDEO INTRO BYPASS
   ========================================== */
@media (max-width: 768px) {
  #video-intro-container {
    display: none !important;
  }
  #main-site-wrapper {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    transition: none !important;
  }
}










