:root {
  /* Brand Colors */
  --brand-pink: #FF2D83;
  --brand-purple: #7C3AED;
  --brand-gradient: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));

  /* Neutral Palette - Deep & Professional */
  --bg-core: #050507;
  /* Darker, richer black */
  --bg-surface: #0E0F16;
  /* Slightly lighter for cards/sections */
  --bg-elevated: #161822;
  /* High elevation */

  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  /* Cool gray for professional feel */
  --text-tertiary: #64748B;

  /* Accents & UI */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.15);
  --glass-bg: rgba(5, 5, 7, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(20px);

  /* Spacing & Layout */
  --container-width: 1280px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Animation */
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Fix for Select Options in Dark Mode */
option {
  background-color: var(--bg-surface);
  color: white;
}

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

body {
  margin: 0;
  background-color: var(--bg-core);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  /* Deep shadow for depth */
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: 500;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  max-width: 65ch;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, #FF2D83 0%, #B721FF 50%, #7C3AED 100%);
  /* More vibrant multi-stop gradient */
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.3));
  /* Glow effect */
}

.text-glow {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.text-shadow-sm {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 4px 20px -5px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -5px rgba(124, 58, 237, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-highlight);
}

/* Cards & Glassmorphism */
.glass-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
}

/* Navigation */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  height: var(--header-height);
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  max-width: 100vw;
  /* Prevent header overflow */
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-surface);
}

/* Hero Special */
.hero-wrapper {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 2rem;
}

.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, rgba(255, 45, 131, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  top: -200px;
  right: -200px;
  pointer-events: none;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding-top: 4rem;
  margin-top: auto;
}

/* Responsive */
@media (max-width: 1024px) {
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #08080a !important;
    /* Force solid dark background */
    opacity: 1 !important;
    backdrop-filter: none;
    /* Disable blur to ensure solid color if browser struggles */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center vertically */
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.4s;
    z-index: 1500;
    /* Ensure it's above everything but the toggle */
    visibility: hidden;
    padding: 2rem;
  }



  .desktop-only {
    display: none !important;
  }

  .mobile-only-btn {
    display: block;
  }

  .nav.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s;
    pointer-events: all;
  }

  .nav-link {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .menu-toggle {
    display: flex;
    /* Show hamburger on tablet */
  }

  h1 {
    font-size: 2.75rem;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-visual {
    display: none;
  }

  .hero-wrapper .grid-2 {
    grid-template-columns: 1fr !important;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
    max-width: 800px;
  }

  .hero-content .flex,
  .hero-content>div[style*="display: flex"] {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero-wrapper {
    text-align: center;
    flex-direction: column;
    justify-content: center;
  }

  .hero-wrapper {
    text-align: center;
    flex-direction: column;
    justify-content: center;
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeIn 0.8s var(--ease-out) forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in {
  opacity: 0;
  animation: slideIn 0.8s var(--ease-out) forwards;
}

.hover-lift {
  transition: transform 0.3s var(--ease-out);
}

.hover-lift:hover {
  transform: translateY(-4px);
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

.delay-600 {
  animation-delay: 0.6s;
}

.delay-700 {
  animation-delay: 0.7s;
}

/* Service Cards - Premium Design */
.service-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 58, 237, 0.4);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(124, 58, 237, 0.2);
  /* Purple glow */
}

.service-card:hover::before {
  opacity: 1;
}

/* Icon Box Styling */
.service-card .icon-box {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(255, 45, 131, 0.1), rgba(124, 58, 237, 0.1));
  border: 1px solid var(--border-highlight);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  margin-bottom: 2rem;
  transition: all 0.4s var(--ease-out);
  font-size: 1.5rem;
}

.service-card:hover .icon-box {
  background: var(--brand-gradient);
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px -5px rgba(255, 45, 131, 0.4);
  border-color: transparent;
}

/* Typography in Cards */
.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  /* Pushes learn more to bottom */
  margin-bottom: 2rem;
}

/* Learn More Link */
.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-purple);
  margin-top: auto;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-card:hover .learn-more {
  color: var(--brand-pink);
  transform: translateX(4px);
}

/* Mobile Navigation & Responsive Fixes */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  position: fixed;
  top: 28px;
  right: 24px;
  z-index: 2000;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s var(--ease-out);
}

/* Hamburger Animation */
.menu-toggle.open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }



  .nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
  }

  .hero-title {
    font-size: 2.5rem !important;
  }

  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 20px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-pink), var(--brand-purple));
  border-radius: 99px;
  border: 2px solid var(--bg-core);
}

::-webkit-scrollbar-thumb:hover {
  background: #FF2D83;
}

/* Hide mobile nav btn on desktop */
.mobile-only-btn {
  display: none;
}

/* Dropdown Menu Styles - Appended Fix */
.dropdown-wrapper {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(14, 15, 22, 0.95);
  border: 1px solid var(--border-highlight);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease-out;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  z-index: 1000;
}

.dropdown-wrapper:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.2s;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  transform: translateX(4px);
}