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

:root {
  --navy: #000000;
  --navy-mid: #000000;
  --navy-light: #1f1d3d;
  --electric: #000000;
  --electric-hover: #1a1a1a;
  --electric-light: #f7f7f5;
  --teal: #1ea64a;
  --teal-dark: #128235;
  --amber: #f3c9b6;
  --white: #ffffff;
  --off-white: #f7f7f5;
  --text-body: #000000;
  --text-light: #5f5f5f;
  --border: #e6e6e6;
  --sans: 'Inter', sans-serif;
  --heading: 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;

  /* Figma Pastel Blocks (For Section Backgrounds) */
  --block-lime: #dceeb1;
  --block-lilac: #c5b0f4;
  --block-cream: #f4ecd6;
  --block-pink: #efd4d4;
  --block-mint: #c8e6cd;
  --block-coral: #f3c9b6;
  --accent-magenta: #ff3d8b;

  /* Border Radii */
  --rounded-xs: 2px;
  --rounded-sm: 6px;
  --rounded-md: 8px;
  --rounded-lg: 24px;
  --rounded-xl: 32px;
  --rounded-pill: 50px;
  --rounded-full: 9999px;
}

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

body {
  font-family: var(--sans);
  color: var(--text-body);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  height: 72px;
  background-color: var(--navy);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-item {
  position: relative;
  display: inline-block;
}

.nav-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--sans);
}

.nav-link-direct {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  display: block;
}

.nav-link-direct:hover, .nav-btn:hover {
  background-color: rgba(255,255,255,0.05);
  color: var(--teal);
}

/* Dropdown menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 240px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
  flex-direction: column;
  z-index: 100;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  display: flex;
}

.dropdown-item {
  color: rgba(255,255,255,0.85);
  padding: 10px 20px;
  font-size: 14px;
  display: block;
}

.dropdown-item:hover {
  color: var(--teal);
  background-color: rgba(255, 255, 255, 0.04);
}

/* Mobile Nav Drawer */
.mobile-menu-trigger {
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  display: block;
}

@media (min-width: 1024px) {
  .mobile-menu-trigger {
    display: none !important;
  }
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--navy);
  padding: 24px;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
  overflow-y: auto;
}

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

/* Footer */
footer {
  background-color: var(--navy);
  color: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 70px 0 30px 0;
}

/* Utility buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--rounded-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 15px;
  border: 2px solid transparent;
}

.btn-electric {
  background-color: var(--electric);
  color: var(--white);
}

.btn-electric:hover {
  background-color: var(--electric-hover);
}

.btn-teal {
  background-color: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background-color: var(--teal-dark);
}

.btn-outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy-light);
}

.btn-outline-navy:hover {
  background-color: rgba(10, 22, 40, 0.05);
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

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

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

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

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.card-shadow {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card-shadow:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

/* Breadcrumbs */
.breadcrumbs {
  background-color: var(--off-white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 14px;
}

.breadcrumbs-container {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--electric);
  font-weight: 500;
}

/* Contact form */
.form-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--rounded-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

.form-group label {
  font-size: 14px;
  font-weight: 600;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--rounded-md);
  font-family: inherit;
  font-size: 15px;
}

/* Aurora Background Scene CSS */
.hero-wrapper {
  position: relative;
  background-color: #000500; /* Dark bg as requested */
  overflow: hidden;
  padding: 100px 0;
  color: #FFFFFF;
}

.scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.floor {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: radial-gradient(ellipse at bottom, rgba(0, 255, 127, 0.25), transparent 70%);
  opacity: 0.8;
  animation: floorGlow 8s ease-in-out infinite;
  z-index: 1;
}

.main-column {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(60, 255, 157, 0.15), transparent);
  filter: blur(25px);
  opacity: 0.7;
  animation: mainGlow 6s ease-in-out infinite alternate;
  z-index: 1;
}

.light-stream-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.light-beam {
  position: absolute;
  bottom: -20px;
  height: 120px;
  background: linear-gradient(to top, #00ff7f, transparent);
  animation-name: rise, fade;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite;
  opacity: 0;
}

@keyframes rise {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-500px);
  }
}

@keyframes fade {
  0%, 100% {
    opacity: 0;
  }
  10%, 80% {
    opacity: 0.6;
  }
}

@keyframes floorGlow {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

@keyframes mainGlow {
  from {
    opacity: 0.5;
    filter: blur(30px);
  }
  to {
    opacity: 0.75;
    filter: blur(20px);
  }
}

/* Ensure hero content sits on top */
.hero-content {
  position: relative;
  z-index: 10;
}

.hero-title {
  color: #FFFFFF;
  font-family: var(--heading);
  font-size: 40px;
  line-height: 1.25;
  margin-top: 10px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 28px !important;
    line-height: 1.3 !important;
  }
  .hero-wrapper {
    padding: 60px 0 !important;
  }
}

/* Floating WhatsApp Widget */
.wa-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: var(--sans);
}

.wa-trigger {
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  position: relative;
}

.wa-trigger:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.wa-trigger svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.wa-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background-color: #00c4a0;
  border: 2px solid #fff;
  border-radius: 50%;
}

.wa-badge-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border: 2px solid #00c4a0;
  border-radius: 50%;
  animation: wa-pulse 1.8s infinite ease-in-out;
  opacity: 0;
}

@keyframes wa-pulse {
  0% { transform: scale(0.6); opacity: 0; }
  50% { opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

.wa-tooltip {
  position: absolute;
  right: 76px;
  top: 15px;
  background-color: #fff;
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(10, 22, 40, 0.08);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  border: 1px solid var(--border);
}

.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.wa-widget.show-tooltip .wa-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Chatbox Container */
.wa-chatbox {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 340px;
  background-color: #f0f2f5;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(10, 22, 40, 0.15);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(10, 22, 40, 0.06);
  transform: scale(0.9) translateY(15px);
  transform-origin: bottom right;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15), opacity 0.3s ease;
}

.wa-widget.chatbox-open .wa-chatbox {
  display: flex;
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Header */
.wa-chat-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.wa-avatar-container {
  position: relative;
  width: 40px;
  height: 40px;
}

.wa-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: var(--teal);
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 16px;
}

.wa-avatar-online {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #25D366;
  border: 2px solid var(--navy-mid);
  border-radius: 50%;
}

.wa-chat-info {
  flex-grow: 1;
}

.wa-chat-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.wa-chat-title {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.wa-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.wa-close:hover {
  color: #fff;
}

/* Body */
.wa-chat-body {
  padding: 20px;
  max-height: 260px;
  overflow-y: auto;
  background-color: #e5ddd5;
  background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 0), radial-gradient(rgba(0,0,0,0.03) 1px, transparent 0);
  background-size: 12px 12px;
  background-position: 0 0, 6px 6px;
  display: flex;
  flex-direction: column;
}

.wa-message {
  background-color: #fff;
  padding: 10px 14px;
  border-radius: 0 12px 12px 12px;
  font-size: 13px;
  color: var(--text-body);
  max-width: 85%;
  line-height: 1.45;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
  position: relative;
}

.wa-message::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 12px;
  background-color: #fff;
  clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.wa-time {
  display: block;
  font-size: 10px;
  color: var(--text-light);
  text-align: right;
  margin-top: 4px;
}

/* Footer / Input */
.wa-chat-footer {
  background-color: #f0f2f5;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.wa-input-container {
  flex-grow: 1;
  position: relative;
}

.wa-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #fff;
  border-radius: 20px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: border-color 0.2s ease;
}

.wa-input:focus {
  border-color: var(--teal);
}

.wa-send-btn {
  width: 36px;
  height: 36px;
  border: none;
  background-color: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.wa-send-btn:hover {
  background-color: var(--navy-mid);
}

.wa-send-btn:active {
  transform: scale(0.95);
}

.wa-send-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
  transform: translateX(1px);
}

/* Mobile responsive adjustments */
@media (max-width: 480px) {
  .wa-widget {
    bottom: 16px;
    right: 16px;
  }
  .wa-chatbox {
    position: fixed;
    bottom: 84px;
    left: 16px;
    right: 16px;
    width: auto;
  }
  .wa-tooltip {
    display: none !important;
  }
}

/* Header logo tagline */
.logo-tagline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 10px;
  font-weight: 400;
  line-height: 1.3;
  max-width: 140px;
  font-family: var(--sans);
}

@media (max-width: 768px) {
  .logo-tagline {
    display: none;
  }
}

/* Hover Submenu for Services dropdown */
.dropdown-submenu-container {
  position: relative;
}

.dropdown-submenu-trigger {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.submenu-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 240px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
  flex-direction: column;
  z-index: 101;
}

.dropdown-submenu-container:hover .submenu-menu {
  display: flex;
}

/* On screens where hover is not ideal (e.g. tablet), support standard flow if clicked */
.dropdown-submenu-container:focus-within .submenu-menu {
  display: flex;
}

/* Responsive Logo Sizing */
.logo img {
  height: 48px;
  width: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo img {
    height: 36px;
  }
}
