/* =========================================================
   AIinfinity – style.css (FINAL)
   ========================================================= */

/* ===== Theme ===== */
:root {
  /* 🔧 AIinfinity ROYALE THEME */
  --bg-deep: #020410;
  --bg-soft: #050a1f;
  --card: rgba(10, 15, 35, 0.9);
  --primary: #4361ee;
  --primary-soft: rgba(67, 97, 238, 0.25);
  --accent: #7209b7;
  --accent-soft: rgba(114, 9, 183, 0.3);
  --text: #f0f4ff;
  --muted: #94a3b8;
  --border: rgba(100, 116, 139, 0.4);
  --radius-lg: 24px;
  --shadow-3d: 0 26px 80px rgba(2, 4, 16, 0.9);
}

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

html {
  height: auto;
  scroll-behavior: auto;
}

body {
  width: 100%;
  min-height: 100vh;
  height: auto;
  background: var(--bg-deep);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Inter",
    sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* Page Transition Overlay */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 10001;
  pointer-events: none; /* Never block interactions */
  opacity: 1;
  transition: opacity 0.4s ease-in-out;
  visibility: visible;
}
.page-transition.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Section Highlight Effect on Target */
@keyframes sectionHighlight {
  0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
  30% { box-shadow: 0 0 40px 10px rgba(67, 97, 238, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}

.section-target-active {
  animation: sectionHighlight 1.5s ease-out;
  border-radius: var(--radius-lg);
}

/* Staggered Delay Logic */
.grid-3 > .fade-in-section:nth-child(1) { transition-delay: 0.1s; }
.grid-3 > .fade-in-section:nth-child(2) { transition-delay: 0.2s; }
.grid-3 > .fade-in-section:nth-child(3) { transition-delay: 0.3s; }

.grid-2 > .fade-in-section:nth-child(1) { transition-delay: 0.1s; }
.grid-2 > .fade-in-section:nth-child(2) { transition-delay: 0.2s; }

/* Hero Text Entrance */
.hero-left h1, .hero-left p, .hero-left .hero-tag, .hero-left div {
  opacity: 0;
  transform: translateY(15px);
  animation: heroReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-left .hero-tag { animation-delay: 0.1s; }
.hero-left h1 { animation-delay: 0.2s; }
.hero-left p { animation-delay: 0.3s; }
.hero-left div { animation-delay: 0.4s; }

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

/* Refined Button States — consolidated into main .btn block below */

/* Hover effects consolidated in MARCH 2026 block */
.card,
.partner-card,
.tech-card,
.dash-card {
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

/* ...rest of base styles... */
section[id] {
  scroll-margin-top: 140px; /* Increased for better header clearance */
}

@media (max-width: 900px) {
  section[id] {
    scroll-margin-top: 100px; /* Adjusted for smaller mobile header */
  }
  * { -webkit-tap-highlight-color: transparent; }
}

a {
  color: inherit;
  text-decoration: none;
  position: relative;
}

/* ===== Screen reader only ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), #a855f7, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Backgrounds --- */
.bg-image-wrap {
  position: fixed;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}
.bg-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.25;
  filter: saturate(1.1) brightness(0.5) blur(1px);
  transform: scale(1.05);
  animation: bgSlowZoom 30s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes bgSlowZoom {
  from {
    transform: scale(1.02);
  }
  to {
    transform: scale(1.08);
  }
}

.space-gradient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 0%,
      rgba(67,97,238,0.2), transparent 55%),
    radial-gradient(circle at 90% 100%,
      rgba(114,9,183,0.25), transparent 60%),
    linear-gradient(to bottom,
      rgba(2,4,16,0.6), rgba(2,4,16,0.97));
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  mix-blend-mode: overlay;
}

.orb {
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.4;
  z-index: -1;
  animation: floatOrb 20s ease-in-out infinite alternate;
}
.orb.orb-blue {
  width: 250px;
  height: 250px;
  background: var(--primary);
  top: 10%;
  left: 5%;
}
.orb.orb-purple {
  width: 300px;
  height: 300px;
  background: var(--accent);
  bottom: 10%;
  right: 5%;
  animation-delay: 5s;
}
@keyframes floatOrb {
  0% {
    transform: translate(0, 0);
    opacity: 0.3;
  }
  100% {
    transform: translate(30px, -30px);
    opacity: 0.5;
  }
}

/* --- Layout --- */
.page,
.gallery-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 40px;
  width: 100%;
  transition: padding 0.3s ease-in-out, max-width 0.3s ease-in-out;
}

@media (max-width: 1100px) {
  .page,
  .gallery-page {
    padding: 0 30px 40px;
  }
}

@media (max-width: 768px) {
  .page,
  .gallery-page {
    padding: 0 20px 40px;
  }
}

.section {
  margin-bottom: 80px;
  transition: margin 0.3s ease-in-out;
}
.section-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 12px;
  transition: font-size 0.3s ease-in-out;
}
.section-sub {
  font-size: 14px;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* --- Header base --- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  background: rgba(2, 4, 16, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.3s ease;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  width: 100%;
}
header.site-header .page {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  padding-top: 18px;
  padding-bottom: 18px;
}

@media (max-width: 1200px) {
  header.site-header .page {
    gap: 20px;
  }
}

@media (max-width: 1024px) {
  .nav {
    gap: 16px;
  }
}

header.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
  background: rgba(2, 4, 16, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
header.site-header.scrolled .page {
  padding-top: 13px;
  padding-bottom: 13px;
}

/* Brand (logo) */
.brand {
  display: flex;
  align-items: center;
  justify-self: start;
}
.brand-logo {
  display: flex;
  align-items: center;
}
.brand-logo img {
  height: 55px; /* desktop */
  width: auto;
  display: block;
}

/* ✅ NAV (desktop base) */
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--muted);
  position: relative;
  justify-self: center;
}

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

.nav-link {
  color: var(--muted);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 14px;
  border-radius: 8px;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
  background: rgba(67, 97, 238, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.25s ease;
  transform-origin: center;
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ✅ Hamburger (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  cursor: pointer;
  padding: 10px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.25s ease;
}

.nav-toggle:hover {
  border-color: var(--primary);
  box-shadow: 0 0 18px rgba(67, 97, 238, 0.35);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* Buttons */
.btn {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 12px 28px;
  border: none;
  font-size: 14px;
  cursor: pointer;
  font-weight: 600;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  line-height: 1;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after {
  opacity: 1;
}
.btn:active {
  transform: scale(0.96);
}

/* Desktop: header-cta alignment */
.header-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 15px rgba(67, 97, 238, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 0 25px rgba(114, 9, 183, 0.6);
  transform: translateY(-2px) scale(1.05);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 11px 27px; /* Account for 1px border to match primary height */
}
.btn-ghost:hover {
  border-color: var(--primary);
  background: rgba(67, 97, 238, 0.1);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
}

/* ✨ GLOWING BUTTON EFFECT */
.btn-glow {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 15px rgba(67, 97, 238, 0.6);
  animation: buttonPulse 2s infinite;
}
.btn-glow:hover {
  animation: none;
  box-shadow: 0 0 30px rgba(114, 9, 183, 0.8);
  transform: translateY(-2px) scale(1.05);
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 10px rgba(67, 97, 238, 0.5);
  }
  50% {
    box-shadow:
      0 0 25px rgba(67, 97, 238, 1),
      0 0 10px rgba(67, 97, 238, 0.4);
  }
  100% {
    box-shadow: 0 0 10px rgba(67, 97, 238, 0.5);
  }
}

/* --- Hero --- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 50px;
  align-items: center;
  margin-bottom: 90px;
  margin-top: 30px;
}

.hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.1;
  margin-bottom: 18px;
  font-weight: 800;
}

.hero-sub {
  font-size: 16px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--primary);
  background: rgba(67, 97, 238, 0.1);
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

/* --- 3D Panel --- */
.hero-panel {
  perspective: 1200px;
}

.panel-wrapper {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: radial-gradient(
    circle at top left,
    rgba(20, 25, 50, 0.9),
    rgba(2, 4, 16, 0.98)
  );
  box-shadow: var(--shadow-3d);
  border: 1px solid rgba(100, 116, 139, 0.3);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.3s ease;
}

.panel-wrapper:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.tab-header {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.tab-pill {
  flex: 1;
  padding: 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}

input[name="panel-tab"] {
  display: none;
}

input#tab-1:checked ~ .panel-wrapper .tab-header label[for="tab-1"],
input#tab-2:checked ~ .panel-wrapper .tab-header label[for="tab-2"],
input#tab-3:checked ~ .panel-wrapper .tab-header label[for="tab-3"] {
  border-color: var(--primary);
  background: linear-gradient(
    90deg,
    rgba(67, 97, 238, 0.2),
    rgba(114, 9, 183, 0.2)
  );
  color: #fff;
  box-shadow: 0 0 15px rgba(67, 97, 238, 0.3);
}

.tab-content {
  position: relative;
  min-height: 180px;
}

.tab-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

input#tab-1:checked ~ .panel-wrapper .tab-content .pane-1,
input#tab-2:checked ~ .panel-wrapper .tab-content .pane-2,
input#tab-3:checked ~ .panel-wrapper .tab-content .pane-3 {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.metric-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.03),
    rgba(0, 0, 0, 0.4)
  );
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 12px;
}

.metric-card h4 {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.metric-main {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.code-line {
  font-family: monospace;
  font-size: 11px;
  color: var(--primary);
  background: rgba(0, 0, 0, 0.4);
  padding: 8px;
  border-radius: 6px;
  margin-top: 5px;
}

/* --- Cards --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

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

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

.card {
  background: linear-gradient(
    135deg,
    rgba(10, 15, 40, 0.8),
    rgba(5, 5, 15, 0.95)
  );
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.3s ease;
  height: 100%;
}

.mini-pill {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  display: inline-block;
  border: 1px solid rgba(67, 97, 238, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}

.card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 10px;
}

/* 🔧 CAROUSEL */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 20px 0;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: scroll;
  padding: 30px 0;
  width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  /* Force hardware acceleration for smooth scrolling */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}
.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  min-width: 300px;
  background: rgba(10, 15, 35, 0.8);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(100, 116, 139, 0.4);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}
.carousel-item:hover {
  background: rgba(20, 25, 50, 0.95);
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(67, 97, 238, 0.2);
}
.carousel-item h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 6px;
}
.carousel-item p {
  font-size: 12px;
  color: var(--muted);
}

/* Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--primary);
  box-shadow:
    0 0 15px rgba(67, 97, 238, 0.4),
    inset 0 0 10px rgba(67, 97, 238, 0.1);
  color: var(--primary);
  font-size: 28px;
  line-height: 1;
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.3s ease;
}
.carousel-arrow:hover {
  box-shadow:
    0 0 30px rgba(67, 97, 238, 0.9),
    0 0 60px rgba(114, 9, 183, 0.6);
  border-color: #fff;
  color: #fff;
  text-shadow: 0 0 10px #fff;
  transform: translateY(-50%) scale(1.15);
}
.arrow-left {
  left: -10px;
}
.arrow-right {
  right: -10px;
}
@media (min-width: 1200px) {
  .arrow-left {
    left: -40px;
  }
  .arrow-right {
    right: -40px;
  }
}

/* Partners */
.partner-card {
  text-align: center;
  padding: 30px 20px;
  border-radius: 24px;
  background: radial-gradient(
    circle at top,
    rgba(20, 25, 50, 0.8),
    rgba(2, 4, 16, 1)
  );
  border: 1px solid var(--border);
  transition: transform 0.3s;
}
.partner-avatar {
  width: 85px;
  height: 85px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #020410;
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  padding: 0;
}
.partner-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Contact Form */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  margin-bottom: 15px;
  font-size: 14px;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* --- Main Footer --- */
.main-footer {
  margin-top: 100px;
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.main-footer .page {
  padding-bottom: 0;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.footer-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-heading {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-link {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.social-links {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.social-link {
  color: var(--muted);
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

@media (max-width: 1024px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

/* =========================================================
   ✅ MOBILE RESPONSIVENESS
   ========================================================= */

@media (max-width: 900px) {
  /* Switch header .page to flex for mobile */
  header.site-header .page {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px; 
  }

  /* Hamburger/nav to far right */
  header.site-header .nav {
    margin-left: auto;
    justify-self: auto;
  }

  /* Hide desktop header CTA on mobile */
  header.site-header .header-cta {
    display: none !important;
  }

  /* Mobile dropdown menu */
  .nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .nav-menu {
    display: none;
    position: absolute;
    right: 0;
    left: auto;
    top: calc(100% + 18px);
    width: 280px;
    padding: 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(2, 4, 16, 0.98);
    backdrop-filter: blur(32px) saturate(1.8);
    -webkit-backdrop-filter: blur(32px) saturate(1.8);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9);
    z-index: 10001;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }

  /* Mobile menu backdrop */
  .nav.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 10000;
    pointer-events: auto;
  }

  .nav.nav-open .nav-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-menu .nav-link {
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
  }

  .nav-menu .nav-link:hover {
    border-color: var(--primary);
    background: rgba(67, 97, 238, 0.15);
    transform: translateX(6px);
  }

  .nav-menu .nav-link.active {
    background: rgba(67, 97, 238, 0.1);
    border-color: rgba(67, 97, 238, 0.3);
    color: var(--primary) !important;
  }

  .nav-menu .nav-link::after {
    display: none; /* Hide desktop underline indicator on mobile */
  }

  /* Hamburger -> X */
  .nav.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile logo height */
  .brand-logo img {
    height: 44px;
  }

  /* Responsive grids */
  .hero,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* Hero adjustments */
  .hero {
    text-align: center;
    justify-items: center;
    gap: 40px;
    padding-top: 40px;
  }
  .hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-panel {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }
  .panel-wrapper {
    transform: none;
  }

  /* Carousel mobile sizing */
  .carousel-track {
    padding: 16px 0;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
  .carousel-item {
    min-width: 82vw;
    max-width: 82vw;
    padding: 24px;
  }
  .carousel-arrow {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 32px;
  }
  .section-title {
    font-size: 26px;
  }
  .main-footer {
    padding: 60px 0 30px 0;
    margin-top: 60px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .footer-section {
    align-items: center;
  }
  .footer-desc {
    max-width: 100%;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  .footer-legal {
    justify-content: center;
    gap: 20px;
  }
}

/* --- Simple Footer --- */
.simple-footer {
  margin-top: 80px;
  padding: 60px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  background: rgba(0, 0, 0, 0.5); /* Improved contrast */
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.simple-footer p {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.simple-footer a {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 4px;
}

.simple-footer a:hover {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-soft);
}

/* --- Tech-Stack Cards Styles (Moved from index.html) --- */
.tech-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 36px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--border);
  transition: 0.3s;
}

.tech-card.fabric:hover::before {
  background: var(--primary);
}
.tech-card.ai:hover::before {
  background: var(--accent);
}
.tech-card.pbi:hover::before {
  background: var(--primary);
}

.tech-card .card-icon {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  color: var(--primary);
  transition: 0.3s;
}

.tech-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.1);
}

.tech-card.ai .card-icon {
  color: var(--accent);
}
.tech-card.pbi .card-icon {
  color: var(--primary);
}

.tech-card h3 {
  font-size: 22px;
  margin-bottom: 16px;
  color: #fff;
  font-weight: 700;
}

.tech-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* =========================================================
   ✅ FINAL HEADER ALIGNMENT ACROSS ALL WRAPPERS
   Ensures logo and Get a Free Demo button position match
   on index.html (.page) vs dashboards.html (.gallery-page)
   ========================================================= */

.profile-toggle {
  margin-top: 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  padding: 5px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.profile-toggle:hover {
  border-color: var(--primary);
  color: #fff;
  background: rgba(67, 97, 238, 0.1);
}

.profile-expanded {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  animation: expandIn 0.3s ease forwards;
}

.profile-expanded p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.profile-role {
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  font-weight: 600;
}

.profile-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.partner-card.card-open {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(67, 97, 238, 0.2);
}

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

/* ===== FOUNDER PROFILE MODAL ===== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: linear-gradient(
    145deg,
    rgba(10, 15, 40, 0.98),
    rgba(2, 4, 16, 0.99)
  );
  border: 1px solid var(--primary);
  border-radius: 24px;
  padding: 40px;
  max-width: 560px;
  width: 100%;
  position: relative;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(67, 97, 238, 0.15);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.modal-close:hover {
  border-color: var(--primary);
  color: #fff;
  background: rgba(67, 97, 238, 0.15);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.modal-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(67, 97, 238, 0.3);
}

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

.modal-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.modal-role {
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.modal-body p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.modal-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.modal-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.modal-linkedin:hover {
  color: #fff;
  border-color: var(--primary);
  background: rgba(67, 97, 238, 0.15);
}

.partner-card {
  cursor: pointer;
}

@media (max-width: 600px) {
  .modal-card {
    padding: 28px 20px;
  }
  .modal-header {
    flex-direction: column;
    text-align: center;
  }
}

/* Scrollbar styling for modal */
.modal-card::-webkit-scrollbar {
  width: 4px;
}
.modal-card::-webkit-scrollbar-track {
  background: transparent;
}
.modal-card::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

/* --- New Effects Added --- */

/* A) Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #4361ee, #7209b7);
  z-index: 99999;
  width: 0%;
  transition: width 0.1s linear;
}

/* B) Floating particles in hero */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  bottom: -10px;
  background: rgba(67, 97, 238, 0.5);
  border-radius: 50%;
  animation: floatUp linear infinite;
}

.particle:nth-child(even) {
  background: rgba(114, 9, 183, 0.4);
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) scale(0.5);
    opacity: 0;
  }
}

/* Particles positioning logic (25 items) */
.particle:nth-child(1) { left: 5%; width: 4px; height: 4px; animation-duration: 8s; animation-delay: 1s; }
.particle:nth-child(2) { left: 15%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(3) { left: 25%; width: 2px; height: 2px; animation-duration: 6s; animation-delay: 4s; }
.particle:nth-child(4) { left: 35%; width: 4px; height: 4px; animation-duration: 10s; animation-delay: 2s; }
.particle:nth-child(5) { left: 45%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: 5s; }
.particle:nth-child(6) { left: 55%; width: 2px; height: 2px; animation-duration: 7s; animation-delay: 1s; }
.particle:nth-child(7) { left: 65%; width: 4px; height: 4px; animation-duration: 9s; animation-delay: 3s; }
.particle:nth-child(8) { left: 75%; width: 3px; height: 3px; animation-duration: 11s; animation-delay: 0s; }
.particle:nth-child(9) { left: 85%; width: 2px; height: 2px; animation-duration: 13s; animation-delay: 2s; }
.particle:nth-child(10) { left: 95%; width: 4px; height: 4px; animation-duration: 8s; animation-delay: 4s; }
.particle:nth-child(11) { left: 10%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: 1s; }
.particle:nth-child(12) { left: 20%; width: 2px; height: 2px; animation-duration: 14s; animation-delay: 3s; }
.particle:nth-child(13) { left: 30%; width: 4px; height: 4px; animation-duration: 7s; animation-delay: 5s; }
.particle:nth-child(14) { left: 40%; width: 3px; height: 3px; animation-duration: 12s; animation-delay: 2s; }
.particle:nth-child(15) { left: 50%; width: 2px; height: 2px; animation-duration: 9s; animation-delay: 0s; }
.particle:nth-child(16) { left: 60%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 4s; }
.particle:nth-child(17) { left: 70%; width: 3px; height: 3px; animation-duration: 13s; animation-delay: 1s; }
.particle:nth-child(18) { left: 80%; width: 2px; height: 2px; animation-duration: 6s; animation-delay: 3s; }
.particle:nth-child(19) { left: 90%; width: 4px; height: 4px; animation-duration: 10s; animation-delay: 5s; }
.particle:nth-child(20) { left: 5%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: 2s; }
.particle:nth-child(21) { left: 25%; width: 2px; height: 2px; animation-duration: 8s; animation-delay: 0s; }
.particle:nth-child(22) { left: 45%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: 4s; }
.particle:nth-child(23) { left: 65%; width: 3px; height: 3px; animation-duration: 7s; animation-delay: 1s; }
.particle:nth-child(24) { left: 85%; width: 2px; height: 2px; animation-duration: 9s; animation-delay: 3s; }
.particle:nth-child(25) { left: 50%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 2s; }

/* D) Button shine sweep on hover */
.btn-primary::after, .btn-glow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary:hover::after, .btn-glow:hover::after {
  left: 100%;
}

/* E) Neon avatar ring on partner-card hover */
.partner-avatar {
  position: relative;
}

.partner-avatar::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px dashed var(--primary);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: rotateRing 3s linear infinite;
  pointer-events: none;
}

.partner-card:hover .partner-avatar::after {
  opacity: 1;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* F) Input focus neon underline */
.contact-form input, .contact-form textarea {
  background-image: linear-gradient(var(--primary), var(--primary));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
  background-size: 100% 2px;
  border-bottom: 2px solid transparent;
}

/* G) prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Step 2 Addition: Ripple Effect Animation */
@keyframes rippleAnim {
  to { transform: scale(30); opacity: 0; }
}

/* =========================================================
   UI/UX REFINEMENTS - MARCH 2026
   ========================================================= */

/* FIX 1 & 2: SMOOTH GLOW BORDER PULSE */
@keyframes borderGlowPulse {
  0%   { box-shadow: 0 0 0 1px rgba(67, 97, 238, 0.3), 0 0 10px rgba(67, 97, 238, 0.1); }
  50%  { box-shadow: 0 0 0 1px rgba(114, 9, 183, 0.7), 0 0 30px rgba(114, 9, 183, 0.25), 0 0 60px rgba(67, 97, 238, 0.1); }
  100% { box-shadow: 0 0 0 1px rgba(67, 97, 238, 0.6), 0 0 20px rgba(67, 97, 238, 0.2); }
}

.card:hover, .partner-card:hover, .tech-card:hover, .dash-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: transparent;
  background-clip: padding-box;
  box-shadow: 
    0 0 0 1px rgba(67, 97, 238, 0.6),
    0 0 20px rgba(67, 97, 238, 0.2),
    0 12px 40px rgba(67, 97, 238, 0.15);
  animation: borderGlowPulse 1.2s ease forwards;
}

.partner-card:hover {
  box-shadow:
    0 0 0 1px rgba(114, 9, 183, 0.6),
    0 0 25px rgba(114, 9, 183, 0.2),
    0 12px 40px rgba(114, 9, 183, 0.15);
}

.card::before, .card::after,
.partner-card::before, .partner-card::after,
.tech-card::before, .tech-card::after,
.dash-card::before, .dash-card::after {
  content: none !important; /* Force remove any corner accents */
}

.modal-card {
  border-color: var(--primary);
  box-shadow: 0 30px 80px rgba(2, 4, 16, 0.9), 0 0 40px rgba(67, 97, 238, 0.2);
}

/* FIX 3: TYPOGRAPHY HIERARCHY */
.section-title {
  letter-spacing: -0.02em;
}

.hero h1 {
  font-feature-settings: "kern" 1;
}

.card h3, .dash-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.card p, .dash-card p, .hero-sub {
  line-height: 1.65;
}

.footer-desc, .footer-text, .footer-link, .section-sub {
  opacity: 0.85;
}

/* FIX 4: SPACING & VISUAL RHYTHM */
.section {
  padding-top: 20px;
}

.grid-3, .grid-2, .dashboard-grid {
  gap: 24px;
}

.hero {
  margin-top: 40px;
}

/* FIX 5: MICRO-INTERACTIONS */
.footer-link {
  display: inline-block;
  transition: color 0.25s ease, transform 0.25s ease;
}
.footer-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.mini-pill:hover {
  background: rgba(67, 97, 238, 0.2);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(67, 97, 238, 0.3);
}

.partner-card:hover .partner-avatar {
  box-shadow: 0 0 20px rgba(67, 97, 238, 0.5);
  transform: scale(1.05);
  transition: all 0.3s ease;
}
.partner-avatar {
  transition: all 0.3s ease;
}

.carousel-item {
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}
.carousel-item:hover {
  border-left-color: var(--primary);
}

.code-line::after {
  content: '|';
  animation: cursorBlink 1s step-end infinite;
  color: var(--primary);
  margin-left: 2px;
}
@keyframes cursorBlink {
  50% { opacity: 0; }
}

/* FIX 6: FORM UX IMPROVEMENTS */
.contact-form input, .contact-form textarea {
  border-radius: 10px;
  transition: all 0.25s ease;
}

.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.contact-form input:focus, .contact-form textarea:focus {
  box-shadow: inset 0 0 0 1px var(--primary), 0 0 15px rgba(67, 97, 238, 0.1);
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* FIX 7: MOBILE UX POLISH */
@media (max-width: 900px) {
  .hero div[style*="flex"] {
    flex-direction: column;
    gap: 12px;
  }
  .hero .btn {
    width: 100%;
  }
  .section-title {
    font-size: 22px;
  }
  .card, .partner-card, .tech-card, .dash-card {
    padding: 20px;
  }
  .partner-avatar {
    width: 70px;
    height: 70px;
  }
  .tech-card {
    padding: 24px;
  }
  .footer-link:hover {
    transform: none;
  }
  .carousel-arrow {
    width: 38px;
    height: 38px;
  }
  .hero {
    margin-top: 20px;
  }
}

/* FIX 8: ACCESSIBILITY & BEST PRACTICES */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

a, button, .card, .nav-link, .btn {
  transition-property: color, background, border-color, box-shadow, transform, opacity;
  transition-duration: 0.25s;
  transition-timing-function: ease;
}

::selection {
  background: rgba(67, 97, 238, 0.3);
  color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* FIX 10: LEGAL PAGE SIDEBAR & ACCENTS */
.legal-nav {
  position: sticky;
  top: 140px;
  height: fit-content;
}

.legal-nav-link {
  display: block;
  padding: 8px 16px;
  color: var(--muted);
  border-left: 2px solid transparent;
  font-size: 14px;
  transition: all 0.2s;
}

.legal-nav-link.active {
  color: var(--primary);
  border-left-color: var(--primary);
  background: rgba(67, 97, 238, 0.05);
}

.legal-section h3 {
  border-left: 3px solid var(--primary) !important;
  padding-left: 16px !important;
  margin-left: 0 !important;
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
}

.legal-content li {
  position: relative;
  padding-left: 24px;
}

.legal-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
}

#back-to-top:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.partner-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
