:root {
  /* High-Contrast Light Palette - Professional & Clean */
  --bg-dark: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --accent-primary: #4f46e5;
  /* Deeper indigo for contrast */
  --accent-glow: rgba(79, 70, 229, 0.2);
  --accent-secondary: #7c3aed;
  /* Deeper purple */
  --accent-vibrant: #e11d48;
  /* Deeper rose */
  --text-primary: #0f172a;
  /* Slate 900 */
  --text-secondary: #475569;
  /* Slate 600 */
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.5);

  /* Layout */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --section-padding: 8rem 10%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Noise Texture Overlay - Adjusted for Light Mode */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.02;
  /* Reduced opacity for light background */
  pointer-events: none;
  z-index: 9999;
}

/* Advanced Mesh Background - Adjusted for Light Mode */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(225, 29, 72, 0.03) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(79, 70, 229, 0.03) 0px, transparent 50%);
  z-index: -1;
}

/* Global Navigation - Ultra Premium */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.3);
  /* Initial glass look */
  backdrop-filter: blur(10px);
}

@media (max-width: 991px) {
  nav {
    padding: 0 5%;
    height: 70px;
  }
}

nav.glass-nav {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  height: 70px;
  border-bottom: 1px solid var(--glass-border) !important;
}

/* Base Headings - Anti-Overflow */
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.logo {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

/* Bootstrap Navigation - Responsive Adjustments */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 1rem 0;
    margin-top: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  }

  .nav-item {
    text-align: center;
    padding: 0.8rem 0;
  }

  .nav-link {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    /* Force dark on white mobile bg */
  }

  .cta-button {
    width: 100%;
    margin-top: 1rem;
  }
}

/* --- Rest of Styles --- */
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.cta-button {
  padding: 0.8rem 2rem;
  background: var(--accent-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-block;
}

.cta-button:hover {
  background: var(--accent-secondary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(79, 70, 229, 0.3);
}

/* Sections */
.section {
  padding: var(--section-padding);
  position: relative;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Professional Cards */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 3rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  /* Crucial: Allow clicking through the overlay */
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

/* Image Wrappers */
.image-reveal {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.image-reveal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-reveal:hover img {
  transform: scale(1.05);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 968px) {

  .nav-links.desktop-only,
  .cta-button.desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  :root {
    --section-padding: 4rem 5%;
  }
}

/* Removed old Mobile HUD Toggle and Overlay styles */

/* HUD Toggler - 3 Lines */
.hud-toggler {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hud-toggler .bar {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hud-toggler.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hud-toggler.active .bar:nth-child(2) {
  opacity: 0;
}

.hud-toggler.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Utilities for compatibility */
@media (min-width: 992px) {
  .mobile-only {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .desktop-only {
    display: none !important;
  }
}