/* ==========================================================================
   Variables & Theme Setup
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500&family=Orbitron:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Default Dark Mode */
  --bg-primary: #0A0A0C;
  --bg-secondary: #0D0D11;
  --bg-surface: #141418;
  --bg-glass: rgba(20, 20, 24, 0.7);

  --text-primary: #FFFFFF;
  --text-secondary: #A0A0B0;

  --accent-primary: #00AAFF;
  --accent-secondary: #00D4FF;

  --border-light: rgba(0, 170, 255, 0.15);
  --border-glow: rgba(0, 170, 255, 0.4);

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 15px rgba(0, 170, 255, 0.2);
  --shadow-glow-intense: 0 0 25px rgba(0, 170, 255, 0.4);

  --font-heading: 'Orbitron', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-normal: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="light"] {
  --bg-primary: #F5F5F7;
  --bg-secondary: #EAEAEF;
  --bg-surface: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.8);

  --text-primary: #0A0A0A;
  --text-secondary: #555566;

  --accent-primary: #0088FF;

  --border-light: rgba(0, 136, 255, 0.2);
  --border-glow: rgba(0, 136, 255, 0.4);

  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 4px 20px rgba(0, 136, 255, 0.15);
  --shadow-glow-intense: 0 8px 30px rgba(0, 136, 255, 0.3);
}

/* ==========================================================================
   Global Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 100px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  overflow-wrap: break-word;
  word-break: break-word;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-normal), text-shadow var(--transition-normal);
}

a:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 8px var(--accent-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Base Selection */
::selection {
  background-color: var(--accent-primary);
  color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* ==========================================================================
   Layout Utils & Grid
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-5 {
  margin-top: 3rem;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  display: inline-block;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 3px;
  bottom: -10px;
  left: 20%;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 1;
  text-decoration: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all var(--transition-normal);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background: var(--accent-primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--accent-secondary);
  box-shadow: var(--shadow-glow-intense);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

.btn-secondary:hover {
  background: rgba(0, 170, 255, 0.1);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 2.5rem;
  transition: transform var(--transition-bounce), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transform: skewX(-25deg);
  transition: left 0.7s ease;
  z-index: -1;
}

.card:hover::before {
  left: 150%;
}

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 170, 255, 0.2);
  border-color: var(--accent-primary);
}

.product-card {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(0, 170, 255, 0.05) 100%);
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-primary), transparent) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.5;
  transition: opacity var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-15px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 170, 255, 0.4);
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(0, 170, 255, 0.15) 100%);
}

.product-card:hover::after {
  opacity: 1;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 170, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-light);
  transition: all var(--transition-normal);
}

.card:hover .card-icon {
  background: var(--accent-primary);
  color: #fff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: var(--shadow-glow);
}

.card-title {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Navbar */
.navbar {
  overflow-y: hidden;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all var(--transition-normal);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  max-height: 150px;
  width: auto;
  object-fit: contain;
}

/* Light/Dark logo swap */
.brand-logo-dark {
  display: block;
}

.brand-logo-light {
  display: none;
}

[data-theme="light"] .brand-logo-dark {
  display: none;
}

[data-theme="light"] .brand-logo-light {
  display: block;
}

.footer-brand .brand-logo {
  max-height: 150px;
  margin-bottom: -2rem;
  margin-top: -3rem;
  margin-left: -1.5rem;
}

.nav-logo {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 3.5rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding: 5px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition-normal);
  box-shadow: 0 0 8px var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(0, 170, 255, 0.4);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition-normal), transform var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.theme-toggle:hover {
  color: var(--accent-primary);
  transform: rotate(15deg) scale(1.1);
  background: rgba(0, 170, 255, 0.1);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer */
.footer {
  background: #050505;
  /* Always dark */
  color: #fff;
  padding: 80px 0 30px;
  border-top: 1px solid rgba(0, 170, 255, 0.2);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
  opacity: 0.5;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: #A0A0B0;
  margin-top: 1.5rem;
  max-width: 300px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #A0A0B0;
  transition: color 0.3s, padding-left 0.3s;
}

.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--transition-normal);
}

.social-link:hover {
  background: var(--accent-primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 170, 255, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #777;
  font-size: 0.9rem;
}

/* Abstract Tech Details - Shared */
.tech-accent {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-primary);
  opacity: 0.3;
  letter-spacing: 2px;
  user-select: none;
  pointer-events: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  h1.home-hero {
    font-size: 1.5rem;
    padding-bottom: 2rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section {
    padding: 60px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-actions .btn {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 80px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 80px);
  background: var(--bg-primary);
  z-index: 999;
  transition: left var(--transition-normal);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}

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

.mobile-drawer .nav-link {
  font-size: 1.5rem;
  display: block;
}

/* Responsive Grid Utilities (Added) */
.contact-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 4rem;
}

@media (max-width: 768px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.responsive-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .responsive-grid-2 {
    grid-template-columns: 1fr;
  }
}

.stat-glass-card {
  transform: translateX(var(--tx, 0));
}

@media (max-width: 768px) {
  .stat-glass-card {
    transform: none !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-control {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-normal);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Approach Timeline */
.approach-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 50px;
}

.approach-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  width: 2px;
  height: 100%;
  background: var(--border-light);
  z-index: 0;
}

.approach-step {
  position: relative;
  margin-bottom: 3rem;
  z-index: 1;
}

.approach-step:last-child {
  margin-bottom: 0;
}

.step-marker {
  position: absolute;
  left: -50px;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: bold;
  color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
  transition: all var(--transition-normal);
}

.approach-step:hover .step-marker {
  background: var(--accent-primary);
  color: #fff;
  transform: scale(1.2);
  box-shadow: 0 0 25px rgba(0, 170, 255, 0.8);
}

.step-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 2rem;
  border-radius: 12px;
  transition: all var(--transition-bounce);
}

.approach-step:hover .step-content {
  transform: translateX(10px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}

/* Partners Marquee */
.marquee-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.marquee-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 170, 255, 0.1);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.25rem;
}

.marquee-arrow:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
}

.marquee-arrow-prev {
  left: 20px;
}

.marquee-arrow-next {
  right: 20px;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused !important;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 0;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  padding: 0 4rem;
  border-right: 1px solid var(--border-light);
  white-space: nowrap;
  cursor: default;
  transition: all 0.3s ease;
}

.marquee-item h3 {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  transition: color 0.3s, text-shadow 0.3s;
}

.marquee-item:hover h3 {
  color: var(--accent-primary);
  text-shadow: 0 0 20px rgba(0, 170, 255, 0.6);
}

.marquee-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-primary);
  border-radius: 50%;
  margin-right: 4rem;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--accent-primary);
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ===== Service Category Tiles ===== */
.service-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 600px) {
  .service-categories-grid {
    grid-template-columns: 1fr;
  }
}

.service-cat-tile {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 2.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-bounce);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.service-cat-tile:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 170, 255, 0.2);
}

.cat-tile-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at bottom right, rgba(0, 170, 255, 0.2) 0%, transparent 70%);
  transition: opacity var(--transition-normal);
  opacity: 0.4;
  z-index: 0;
}

.service-cat-tile:hover .cat-tile-bg {
  opacity: 1;
}

.cat-tile-icon {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  background: rgba(0, 170, 255, 0.12);
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  transition: all var(--transition-bounce);
}

.service-cat-tile:hover .cat-tile-icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 5px 20px currentColor;
}

.cat-tile-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
}

.cat-tile-title {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.cat-tile-desc {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex: 1;
  line-height: 1.6;
}

.cat-tile-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-primary);
  border: 1px solid var(--border-glow);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  transition: all var(--transition-normal);
  text-decoration: none;
  width: fit-content;
  margin-top: auto;
}

.cat-tile-link i {
  transition: transform var(--transition-normal);
}

.cat-tile-link:hover {
  background: var(--accent-primary);
  color: #fff !important;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.4);
  text-shadow: none;
}

.cat-tile-link:hover i {
  transform: translateX(4px);
}

/* ===== Product Cards v2 ===== */
.product-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card-v2 {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-bounce);
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.product-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
  border-radius: 20px 20px 0 0;
  opacity: 0.7;
  transition: opacity var(--transition-normal);
}

.product-card-v2:hover::before {
  opacity: 1;
}

.product-card-v2:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 170, 255, 0.1);
  border-color: var(--accent-primary);
}

.product-card-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 170, 255, 0.12);
  border: 1px solid rgba(0, 170, 255, 0.3);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.product-card-icon-area {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, rgba(0, 170, 255, 0.2), rgba(0, 170, 255, 0.05));
  border: 1px solid rgba(0, 170, 255, 0.25);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  transition: all var(--transition-bounce);
}

.product-card-v2:hover .product-card-icon-area {
  background: rgba(0, 170, 255, 0.25);
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 0 25px rgba(0, 170, 255, 0.5);
}

.product-card-v2 h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.product-card-v2>p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex: 1;
  margin-bottom: 2rem;
}

/* ===== Approach Timeline Enhanced ===== */
.approach-timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}

.approach-timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 17px;
  width: 2px;
  height: calc(100% - 36px);
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  z-index: 0;
}

.approach-step {
  position: relative;
  margin-bottom: 2rem;
  z-index: 1;
}

.approach-step:last-child {
  margin-bottom: 0;
}

.step-marker {
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
  transition: all var(--transition-normal);
  z-index: 2;
}

.approach-step:hover .step-marker {
  background: var(--accent-primary);
  color: #fff;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 0 30px rgba(0, 170, 255, 0.8);
}

.step-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 1.75rem 2rem;
  border-radius: 16px;
  transition: all var(--transition-bounce);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step-content-icon {
  font-size: 2.5rem;
  color: var(--accent-primary);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition-bounce);
}

.approach-step:hover .step-content {
  transform: translateX(12px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 170, 255, 0.15), -4px 0 0 var(--accent-primary);
}

.approach-step:hover .step-content-icon {
  transform: scale(1.2) rotate(-10deg);
}

.step-content-text h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

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

/* ===== Mission / Vision Grid ===== */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.mv-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  opacity: 0.7;
}

.mv-card-vision::before {
  background: linear-gradient(90deg, var(--accent-secondary), #a855f7);
}

.mv-card-icon {
  font-size: 3rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  line-height: 1;
}

.mv-card-vision .mv-card-icon {
  color: #a855f7;
}

.mv-card-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 3px;
  margin-bottom: 1rem;
  display: block;
}

.mv-card-vision .mv-card-label {
  color: #a855f7;
}

.mv-card-title {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.mv-card-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
}

.mv-card-text strong {
  color: var(--accent-primary);
}

.mv-card-vision .mv-card-text strong {
  color: #a855f7;
}

.mv-card-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== Marquee as clickable link ===== */
a.marquee-item {
  text-decoration: none;
}

a.marquee-item:hover h3 {
  color: var(--accent-primary);
  text-shadow: 0 0 20px rgba(0, 170, 255, 0.6);
}

/* ===== Product Selector (Home page) ===== */
.product-selector-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .product-selector-wrap {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column-reverse;
  }

  .product-selector-stack {
    width: 100%;
  }

  .product-mini-card {
    width: 100%;
  }
}

.product-featured-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}

.product-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -1px;
  right: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
}

.product-featured-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 170, 255, 0.12);
  border: 1px solid rgba(0, 170, 255, 0.3);
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border-radius: 50px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  width: fit-content;
}

.product-featured-icon {
  font-size: 3.5rem;
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
}

.product-featured-card h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.product-featured-card>p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  flex: 1;
}

.product-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0;
}

.product-feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.product-feature-list li i {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.product-selector-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all var(--transition-bounce);
}

.product-mini-card:hover {
  border-color: rgba(0, 170, 255, 0.4);
  background: rgba(0, 170, 255, 0.04);
}

.product-mini-card.active {
  border-color: var(--accent-primary);
  background: rgba(0, 170, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.15);
}

.product-mini-icon {
  width: 40px;
  height: 40px;
  background: rgba(0, 170, 255, 0.1);
  border: 1px solid rgba(0, 170, 255, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.product-mini-card.active .product-mini-icon {
  background: rgba(0, 170, 255, 0.25);
  box-shadow: 0 0 12px rgba(0, 170, 255, 0.4);
}

.product-mini-info h4 {
  font-size: 0.9rem;
  margin: 0 0 0.15rem 0;
  color: var(--text-primary);
}

.product-mini-info p {
  font-size: 0.75rem;
  margin: 0;
  color: var(--text-secondary);
}

/* ===== Portfolio Filter Tabs ===== */
.portfolio-filter-tabs {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.filter-tab-btn {
  padding: 0.5rem 1.5rem;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.filter-tab-btn:hover {
  border-color: rgba(0, 170, 255, 0.4);
  color: var(--accent-primary);
}

.filter-tab-btn.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}

.portfolio-project-card.hidden {
  display: none;
}

/* ===== Product Image Carousel ===== */
.product-img-carousel {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 100%;
  min-height: 350px;
  background: linear-gradient(135deg, rgba(0, 170, 255, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
}

.carousel-slides {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide i {
  font-size: 5rem;
  color: var(--accent-primary);
  opacity: 0.35;
}

.carousel-slide span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.carousel-slide.has-image {
  padding: 0;
  gap: 0;
}

.carousel-slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.carousel-slide.has-image span {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 15, 25, 0.85);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-glow);
  z-index: 2;
  white-space: nowrap;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #fff;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border-light);
}

.carousel-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-light);
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  font-size: 1rem;
}

.carousel-btn:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.carousel-dots {
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-light);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent-primary);
  box-shadow: 0 0 8px rgba(0, 170, 255, 0.6);
  width: 20px;
  border-radius: 4px;
}

/* ===== Template Showcase Grid ===== */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

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

.showcase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all var(--transition-bounce);
  cursor: pointer;
}

.showcase-card:hover {
  border-color: rgba(0, 170, 255, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 170, 255, 0.1);
}

.showcase-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: var(--bg-secondary);
}

.showcase-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.showcase-card:hover .showcase-img-wrap img {
  transform: scale(1.05);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.showcase-card:hover .showcase-overlay {
  opacity: 1;
}

.showcase-preview-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  box-shadow: 0 0 20px rgba(0, 170, 255, 0.5);
}

.showcase-info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.showcase-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent-primary);
  border: 1px solid var(--border-light);
  padding: 2px 8px;
  border-radius: 4px;
}

.showcase-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.showcase-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Fix for anchor links overlapping fixed navbar */
.card,
.form-control,
.product-featured-panel {
  scroll-margin-top: 120px;
}

/* FAQ Accordion Styles */
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  margin-bottom: 1rem;
  background: var(--bg-surface);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  transition: background var(--transition-normal);
}

.faq-question:hover {
  background: rgba(0, 170, 255, 0.05);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-secondary);
}

.faq-item.faq-open .faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--accent-primary);
  display: inline-block;
  transform-origin: center;
}

.faq-item.faq-open .faq-icon {
  transform: rotate(180deg);
}

/* Form Success Animation Container */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  text-align: center;
  animation: fadeScale 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes fadeScale {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.product-showcase-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 4rem;
}

@media (max-width: 992px) {
  .product-showcase-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .product-showcase-card>div {
    order: initial !important;
  }

  .product-img-carousel {
    order: 2 !important;
  }
}

@media (max-width: 600px) {
  .product-showcase-card {
    padding: 1.5rem;
  }
}