/* ===== CSS DESIGN SYSTEM — PULSONA TECHNOLOGIES ===== */
/* Purple-Blue gradient theme with premium glassmorphism aesthetics */

:root {
  /* Constant colors (Branding - Enhanced HSL) */
  --purple-deep: hsl(275, 100%, 25%);
  --purple: hsl(265, 85%, 45%);
  --purple-mid: hsl(255, 90%, 60%);
  --blue: hsl(220, 90%, 50%);
  --blue-light: hsl(210, 100%, 60%);
  --cyan: hsl(190, 100%, 45%);
  --cyan-light: hsl(180, 100%, 65%);
  
  /* Layout & Spacing */
  --section-padding: 120px 0;
  --container-width: 1300px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--purple-mid), var(--blue-light), var(--cyan));
  --gradient-text: linear-gradient(135deg, var(--purple-mid), var(--blue-light), var(--cyan));
  --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  --gradient-mesh: radial-gradient(at 0% 0%, hsla(253,16%,100%,1) 0, transparent 50%), 
                   radial-gradient(at 50% 0%, hsla(225,39%,100%,1) 0, transparent 50%), 
                   radial-gradient(at 100% 0%, hsla(339,49%,100%,1) 0, transparent 50%);
  
  /* Semantic Theme Variables (Default: Light) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  
  /* Section Rhythm Tints (Light) */
  --bg-soft: #f8fafc;
  --bg-fintech: #f0f7ff;    /* Trust Blue Tint */
  --bg-innovation: #f5f3ff; /* Vision Purple Tint */
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #475569;
  --border-color: rgba(15, 23, 42, 0.1);
  --card-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.9);
  
  /* GLASSMISM TOKENS (Refined HSL) */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.15);
  --glass-shine: linear-gradient(135deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0) 50%);
  
  --white: #ffffff;
  --dark: #030308;

  /* Shadows (Refined) */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.02);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
  --shadow-xl: 0 24px 80px rgba(0,0,0,0.14);
  --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.15);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.5s var(--ease-out);
  --theme-transition: background-color 0.6s ease, color 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;

  /* Glass Effects */
  --blur: 20px;
  --radius-pill: 999px;
  --radius-xl: 40px;
  --radius-lg: 24px;
  --radius-md: 16px;
}

[data-theme="dark"] {
  --bg-primary: #030308;
  --bg-secondary: #080814;
  --bg-tertiary: #0c0c1e;
  
  /* Section Rhythm Tints (Dark) */
  --bg-soft: #080814;
  --bg-fintech: #0a0e1c;    /* Trust Blue Tint */
  --bg-innovation: #0e0a1c; /* Vision Purple Tint */
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.03);
  --nav-bg: rgba(3, 3, 8, 0.85);
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-shine: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 50%);
}

/* Glass Utility Class */
.glass-pane {
  background: var(--glass-bg);
  /* Lighter blur for general panes */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.glass-pane::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-shine);
  opacity: 0.5;
  pointer-events: none;
  transition: var(--transition);
}

.glass-pane:hover::before {
  opacity: 1;
}

/* ===== MESH BACKGROUND ===== */
.mesh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--bg-primary);
  overflow: hidden;
  transition: var(--theme-transition);
}

.mesh-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-mesh);
  opacity: 0.1;
  filter: blur(20px);
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.2;
  z-index: -1;
  animation: blob-float 30s infinite alternate var(--ease-out);
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: var(--purple-mid);
  top: -10%;
  left: -10%;
  animation-duration: 25s;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: var(--vibrant-magenta);
  bottom: -10%;
  right: -10%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: var(--cyan);
  top: 40%;
  left: 30%;
  animation-duration: 22s;
  animation-delay: -10s;
}

.blob-4 {
  width: 450px;
  height: 450px;
  background: var(--vibrant-coral);
  bottom: 20%;
  left: 60%;
  animation-duration: 28s;
  animation-delay: -15s;
}

[data-theme="dark"] .mesh-blob {
  opacity: 0.15;
}

@keyframes blob-float {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); }
  33% { transform: translate(10%, 15%) scale(1.1) rotate(120deg); }
  66% { transform: translate(-5%, 20%) scale(0.9) rotate(240deg); }
  100% { transform: translate(0, 0) scale(1) rotate(360deg); }
}

/* ===== MINIMALIST BACKGROUND (LIGHT MODE ONLY) ===== */
.minimalist-bg {
  position: fixed;
  inset: 0;
  z-index: -1; /* Moved up slightly */
  background-image: url('assets/minimal-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.4; /* Increased visibility */
  pointer-events: none;
  transition: opacity 0.6s ease;
  filter: contrast(0.9); /* Keep it soft */
}

[data-theme="dark"] .minimalist-bg {
  opacity: 0;
  visibility: hidden;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: var(--theme-transition);
}

::selection {
  background: var(--purple-mid);
  color: var(--white);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.maintenance-overlay-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
}

.maintenance-meta-block {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.14);
}

.maintenance-meta-block strong {
  display: block;
  margin-top: 8px;
  color: var(--text-primary);
}

body.maintenance-live {
  overflow: hidden;
}

body.maintenance-live > *:not(.maintenance-overlay) {
  pointer-events: none;
  user-select: none;
  filter: blur(8px);
}

@media (max-width: 768px) {
  .maintenance-overlay {
    padding: 18px;
  }

  .maintenance-overlay-card {
    padding: 32px 22px;
    border-radius: 24px;
  }

  .maintenance-overlay-meta {
    grid-template-columns: 1fr;
  }
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

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

.loader-pulse {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  margin: 0 auto 24px;
  position: relative;
  animation: loader-pulse 2s ease-in-out infinite;
}

.loader-pulse::after {
  content: '';
  position: absolute;
  inset: -10px;
  border: 2px solid var(--purple-mid);
  border-radius: 50%;
  animation: loader-ripple 2s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes loader-ripple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.loader-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Corrected Cursor: Using exact Brand Purple Mid (#663DF5) via Base64 to ensure reliable rendering */
html, body, a, button, .interactive, .team-card, .focus-card, .service-detail-card, .modal-close {
  cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CiAgPHBhdGggZD0iTTEgMXYxNS4ybDQuMS00IDEuMiAyLjcgMi4xLS45LTEuMi0yLjdoNC44bC0xMS0xMC4zeiIgZmlsbD0iIzY2M0RGNSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxIi8+Cjwvc3ZnPg==") 0 0, auto;
}

/* Maintain Pointer fallback for interactive elements */
a, button, .interactive, .team-card, .modal-close {
  cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CiAgPHBhdGggZD0iTTEgMXYxNS4ybDQuMS00IDEuMiAyLjcgMi4xLS45LTEuMi0yLjdoNC44bC0xMS0xMC4zeiIgZmlsbD0iIzY2M0RGNSIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxIi8+Cjwvc3ZnPg==") 0 0, pointer;
}

button:active, a:active {
  cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+CiAgPHBhdGggZD0iTTEgMXYxNS4ybDQuMS00IDEuMiAyLjcgMi4xLS45LTEuMi0yLjdoNC44bC0xMS0xMC4zeiIgZmlsbD0iIzQ2MTRDQyIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIxIi8+Cjwvc3ZnPg==") 0 0, pointer;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(91,33,182,0.2), 0 0 60px rgba(6,182,212,0.1); }
  50% { box-shadow: 0 0 40px rgba(91,33,182,0.5), 0 0 80px rgba(6,182,212,0.3); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes scrollDown {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: transform, opacity; /* Hardware acceleration */
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0); /* Force GPU acceleration */
}


/* Staggered transition delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }



.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition), var(--theme-transition), height 0.4s var(--ease-out);
  height: 90px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background: var(--nav-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--border-color);
  padding: 0 5%;
}

.navbar.scrolled {
  height: 75px;
  background: var(--nav-bg);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 100%;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
}

.logo-wrapper {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 0 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), 0 0 15px rgba(124, 58, 237, 0.05);
  transition: var(--transition);
  height: 64px;
  width: max-content;
  padding: 0 16px;
  overflow: visible;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

@media (max-width: 480px) {
  .logo-wrapper {
    height: 44px;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }
  .navbar {
    height: 70px;
    padding: 0 16px;
  }
  .theme-toggle {
    margin-left: 0; 
    margin-right: 0;
    width: 38px;
    height: 38px;
  }
}

[data-theme="dark"] .logo-wrapper {
  background: radial-gradient(circle at center, rgba(124, 58, 237, 0.15), transparent 70%), 
              rgba(255, 255, 255, 0.03); /* Cool Inner Glow in Dark Mode */
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.1);
}

.logo-wrapper:hover {
  transform: translateY(-2px);
  background: var(--bg-primary); /* Solidifies on hover for prominence */
  border-color: var(--purple-mid);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.logo-img {
  height: 100%;
  width: auto;
  transform: none; /* No artificial scaling needed for the wide asset */
  object-fit: contain;
  transition: var(--transition);
}

[data-theme="light"] .logo-img {
  mix-blend-mode: multiply; /* Removes white box on light bg */
}

@media (max-width: 480px) {
  .logo-img {
    height: 32px;
    width: auto;
  }
}

[data-theme="dark"] .logo-img {
  filter: drop-shadow(0 0 10px rgba(124, 58, 237, 0.35)) brightness(1.15); /* Neon Pop in Dark Mode */
}

.navbar.scrolled .logo-wrapper {
  padding: 0 16px;
  height: 44px;
  width: max-content;
}

.navbar.scrolled .logo-img {
  transform: none;
}

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

.nav-link {
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  opacity: 0.8;
  border-radius: 50px;
  transition: var(--transition);
}

[data-theme="dark"] .nav-link {
  color: var(--white);
}

.navbar.scrolled .nav-link {
  opacity: 1;
}

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

.theme-toggle {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: var(--transition);
  margin-left: 20px;
}

[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.navbar.scrolled .theme-toggle {
  background: var(--bg-tertiary);
  border-color: var(--border-color);
}

.theme-toggle:hover {
  transform: scale(1.1);
  background: var(--purple-mid);
  color: var(--white);
  border-color: var(--purple-mid);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none; /* Hide both by default */
}

/* Show correct icon based on current theme */
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="light"] .moon-icon { display: block; }
/* Default if attribute not set yet */
.sun-icon { display: none; }
.moon-icon { display: block; }

.nav-link:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
  opacity: 1;
}

.navbar.scrolled .nav-link:hover {
  color: var(--purple-mid);
  background: var(--bg-tertiary);
}

.nav-cta {
  background: var(--gradient-primary);
  color: var(--white) !important;
  padding: 10px 28px;
}

.nav-cta:hover {
  background: var(--gradient-primary) !important;
  opacity: 0.9;
  transform: scale(1.03);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  transition: var(--transition);
  background: transparent;
  border: none;
  padding: 10px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 991px) {
  .mobile-toggle {
    display: flex;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: transparent; /* Allow bg-image to show through */
  overflow: hidden;
  transition: var(--theme-transition);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
  filter: blur(80px);
  z-index: 1;
  animation: mesh-float 20s ease-in-out infinite alternate;
  opacity: 0.4;
}

[data-theme="dark"] .hero-mesh {
  background: 
    radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
  opacity: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
  /* Removed broken hero-bg.png */
  opacity: 0.03;
  mix-blend-mode: overlay;
  z-index: 2;
  transition: opacity 0.6s ease;
}

[data-theme="dark"] .hero-bg-overlay {
  opacity: 0.1; /* Further dimmed to let portal shine */
}


.cosmic-portal {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  overflow: hidden;
}

[data-theme="dark"] .cosmic-portal {
  opacity: 1;
  visibility: visible;
}

.fluid-synaptic-web {
  position: absolute;
  inset: 0;
  z-index: 1; /* Behind content but above mesh overlay */
  pointer-events: none; /* Let interactions pass through to content */
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}

[data-theme="dark"] .fluid-synaptic-web {
  opacity: 0;
  visibility: hidden;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  padding-top: 160px;
  padding-bottom: 120px;
}

[data-theme="dark"] .hero-content {
  /* No background to ensure seamless background motion */
  background: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .hero-badge {
  color: var(--cyan-light);
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.3rem, 9vw, 5.2rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.04em;
  line-height: 1.15; /* Airy but impactful */
  transition: var(--theme-transition);
}

[data-theme="dark"] .hero-title {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 0, 0, 0.2);
}

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 8s linear infinite;
  display: inline-block; /* Prevents horizontal clipping */
  padding-right: 0.05em; /* Breathing room for the full stop */
}

[data-theme="dark"] .gradient-text {
  text-shadow: none; /* Prevents dark shadows from muddying the transparent gradient fill */
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 48px;
  line-height: 1.6;
  opacity: 1; /* More visible in Light Mode */
}

[data-theme="dark"] .hero-subtitle {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.9), 
    0 2px 4px rgba(0, 0, 0, 0.9), 
    0 0 3px #000000;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 64px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--gradient-primary);
  background-size: 200% auto;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.btn-arrow {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-ghost {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .btn-ghost {
  color: var(--white);
  background: rgba(0, 0, 0, 0.25);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 3px #000;
}

.btn-ghost:hover {
  background: var(--bg-tertiary);
  border-color: var(--purple-mid);
  transform: translateY(-2px);
}

.play-icon {
  font-size: 0.75rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 32px 40px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-width: 600px;
  margin: 40px auto 0; /* Centered with margin-top */
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center labels under groups */
  text-align: center;
}

.stat-group {
  display: flex !important;
  flex-direction: row !important;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  white-space: nowrap; /* Prevent any wrapping */
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-suffix {
  font-family: var(--font-heading);
  font-size: 1.2rem; /* Slighly smaller for professional look */
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-left: 2px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-top: 4px;
}

[data-theme="dark"] .stat-label {
  color: rgba(255,255,255,0.8);
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border-color);
}

/* Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(124,58,237,0.6), transparent);
  border-radius: 2px;
  animation: scrollDown 2s ease-in-out infinite;
}

/* ===== SECTION SHARED ===== */
.section {
  padding: var(--section-padding);
  position: relative;
  transition: var(--theme-transition);
}

.section-header {
  margin-bottom: 4rem;
  display: flex !important;
  flex-direction: column !important;
  gap: 2.5rem !important; /* Doubled gap */
  width: 100%;
  align-items: flex-start;
  position: relative;
  z-index: 5;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin: 0 !important;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--text-primary);
  line-height: 1.35 !important; /* Increased line-height */
  margin: 0 !important;
  padding-bottom: 0.5rem !important;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.85;
  margin: 0 !important;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
  background: var(--bg-primary);
  padding: 180px 0;
}

.about-preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center; /* Balanced vertical rhythm */
}

.about-preview-right p {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-preview-right strong {
  color: var(--text-primary);
}

/* ===== OUR FOCUS — Divisions ===== */
.our-focus {
  background: var(--bg-secondary);
}

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

.focus-card {
  position: relative;
  padding: 48px; /* High-end padding */
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition), var(--theme-transition);
  overflow: hidden;
  /* Lighter blur for cards */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.focus-card:hover {
  transform: translateY(-8px);
  border-color: var(--purple-mid);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.focus-card-active {
  border-color: rgba(91,33,182,0.2);
  background: linear-gradient(135deg, rgba(91,33,182,0.02), rgba(6,182,212,0.02));
}

.focus-status {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.focus-status.active {
  background: rgba(16,185,129,0.1);
  color: #059669;
  border: 1px solid rgba(16,185,129,0.2);
}

.focus-status.upcoming {
  background: rgba(245,158,11,0.1);
  color: #d97706;
  border: 1px solid rgba(245,158,11,0.2);
}

.focus-status.rnd {
  background: rgba(91,33,182,0.08);
  color: var(--purple-mid);
  border: 1px solid rgba(91,33,182,0.15);
}

.focus-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 16px;
  margin-bottom: 20px;
  color: var(--white);
}

.focus-icon svg {
  width: 28px;
  height: 28px;
}

.focus-card h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.focus-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.focus-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-mid);
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.focus-link:hover {
  color: var(--blue);
  letter-spacing: 0.04em;
}

/* ===== DETAIL SECTIONS (Healthcare, Fintech) ===== */
.detail-section {
  padding: 120px 0;
}

.healthcare-section {
  background: var(--bg-primary);
}

.fintech-section {
  background: var(--bg-fintech);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.detail-grid-reverse {
  direction: rtl;
}

.detail-grid-reverse > * {
  direction: ltr;
}

.detail-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin: 0 !important;
}

.detail-text strong {
  color: var(--text-primary);
}

.detail-vision {
  padding: 20px 24px;
  background: var(--bg-tertiary);
  border-left: 3px solid var(--purple-mid);
  border-radius: 0 12px 12px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.detail-vision strong {
  color: var(--text-primary);
}

.detail-future {
  padding: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.detail-future h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 12px;
}

.detail-future ul {
  list-style: none;
  padding: 0;
}

.detail-future ul li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.detail-future ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-primary);
  transform: translateY(-50%);
}

/* Feature List (shared by detail sections) */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: var(--transition), var(--theme-transition);
}

.fintech-section .feature-item,
.healthcare-section .feature-item {
  background: var(--card-bg);
}

.feature-item:hover {
  border-color: var(--purple-mid);
  box-shadow: var(--shadow-glow);
  transform: translateX(4px);
}

.feature-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

.feature-item h4 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== SERVICES SPLIT (Electronics + Labs) ===== */
.services-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.service-detail-card {
  padding: 48px 40px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition), var(--theme-transition);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.service-detail-card:hover {
  transform: translateY(-10px);
  border-color: var(--purple-mid);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.service-detail-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 16px;
  margin-bottom: 20px;
  color: var(--white);
}

.service-detail-icon svg {
  width: 28px;
  height: 28px;
}

.service-detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 12px;
}

.service-detail-card h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-detail-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-detail-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.service-detail-tags span {
  padding: 6px 16px;
  background: var(--gradient-card);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--purple-mid);
}

/* ===== WHY PULSONA ===== */
.why-pulsona {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.why-pulsona .section-label {
  color: var(--cyan);
}

.why-pulsona .section-title {
  color: var(--text-primary);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 100px;
  align-items: center;
}



.why-item {
  display: flex;
  gap: 20px;
  padding: 36px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 32px; /* Increased for airy feel */
  transition: var(--transition);
}

[data-theme="dark"] .why-item {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

.why-item:hover {
  background: var(--bg-secondary);
  border-color: var(--purple-mid);
  transform: translateX(4px);
}

[data-theme="dark"] .why-item:hover {
  background: rgba(255,255,255,0.06);
}

.why-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 44px;
}

.why-item h4 {
  color: var(--text-primary);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.why-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ===== SERVICES ===== */
.services {
  background: var(--bg-innovation);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}

.special-card {
  padding: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.special-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--glass-shine);
  opacity: 0;
  transition: var(--transition);
}

.special-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: var(--purple-mid);
}

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

.service-card {
  padding: 36px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: var(--transition), var(--theme-transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-mid);
  box-shadow: var(--shadow-lg);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--bg-tertiary);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
  transition: var(--transition);
}

.service-card:hover .service-number {
  color: rgba(91,33,182,0.08);
}

.service-card h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 90%;
  opacity: 1; /* Ensure visibility */
}

[data-theme="dark"] .service-card p {
  color: rgba(255, 255, 255, 0.7);
}

.service-line {
  width: 40px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 3px;
  margin-top: 20px;
  transition: width 0.4s var(--ease-out);
}

.service-card:hover .service-line {
  width: 80px;
}

/* ===== ABOUT ===== */
.about {
  background: var(--bg-primary);
  overflow: hidden;
  position: relative;
}

.about-bg-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('assets/tech-bg.png') center/cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.9;
}

.about-text strong {
  color: var(--text-primary);
}

.about-value-card {
  padding: 40px; /* Flagship padding */
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  display: flex;
  gap: 32px; /* Increased gap between icon and text */
  color: var(--text-primary);
  margin-bottom: 32px;
}
 
.about-value-card:last-child {
  margin-bottom: 0;
}

[data-theme="dark"] .about-value-card {
  color: var(--white);
}

.about-value-card:hover {
  background: var(--bg-tertiary);
  border-color: var(--purple-mid);
  box-shadow: var(--shadow-glow);
  transform: translateX(4px);
}

.value-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 12px;
  color: var(--white);
}

.value-icon svg {
  width: 22px;
  height: 22px;
}

.about-value-card h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.about-value-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== TEAM ===== */
.team {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.team .section-label {
  color: var(--cyan);
}

.team .section-title {
  color: var(--text-primary);
}

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

.team-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition), var(--theme-transition);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  cursor: pointer; /* Indicates bio-sketch interactivity */
}

.team-card:hover {
  background: var(--bg-secondary);
  border-color: var(--purple-mid);
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}


.team-avatar {
  width: 140px;
  height: 140px;
  aspect-ratio: 1/1;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: none;

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  /* overflow: visible to allow radiant glow */
  overflow: visible; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: var(--transition);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden; /* Clips the image */
  border: 4px solid var(--card-bg);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

/* Radiant Ring (Conic Gradient) */
.team-avatar::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--purple-mid),
    var(--cyan),
    var(--purple-mid),
    transparent
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: radiant-rotate 4s linear infinite;
}

/* Radiant Glow (Aura) */
.team-avatar::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: var(--gradient-primary);
  z-index: 0;
  opacity: 0.15;
  filter: blur(15px);
  transition: var(--transition);
}

.team-card:hover .team-avatar::before {
  opacity: 1;
}

.team-card:hover .team-avatar::after {
  opacity: 0.4;
  inset: -18px;
  filter: blur(20px);
}

.team-card:hover .avatar-inner {
  border-color: var(--purple-mid);
  transform: scale(1.05);
}

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

.avatar-placeholder {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.05em;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%; /* Slightly adjusted for better head centering */
  transform: scale(1.4); /* Professional headshot zoom */
  display: block;
}

/* Leadership-specific adjustments for visual harmony and executive prominence */
#team-sourav .avatar-img {
  object-position: center 15%;
  transform: scale(1.6);
}

#team-anshuman .avatar-img {
  object-position: center 30%; 
  transform: scale(1.75);
}






.team-card h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 8px; /* Slightly reduced so the tag fits nicely */
}

.team-tag {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
  padding: 0.25rem 0.75rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(124, 58, 237, 0.2);
  display: block;
  width: max-content;
  margin: 0 auto 16px;
}

[data-theme="dark"] .team-tag {
  background: rgba(167, 139, 250, 0.15);
  color: #a78bfa;
  border-color: rgba(167, 139, 250, 0.3);
}

.grid-linkedin-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(0, 119, 181, 0.1);
  border: 1px solid rgba(0, 119, 181, 0.2);
  color: #0077b5;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 1; /* More prominent by default */
  margin-top: 8px;
}

.grid-linkedin-pill svg {
  fill: #0077b5;
  stroke: none;
  transition: all 0.4s ease;
}

.team-card:hover .grid-linkedin-pill {
  background: rgba(0, 119, 181, 0.15);
  transform: translateY(-2px);
}

.grid-linkedin-pill:hover {
  background: #0077b5 !important;
  color: #fff !important;
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow: 0 10px 20px rgba(0, 119, 181, 0.4);
  border-color: #0077b5;
}

.grid-linkedin-pill:hover svg {
  fill: #fff;
  transform: rotate(8deg) scale(1.1);
}

[data-theme="dark"] .team-role {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== CONTACT ===== */
.contact {
  background: var(--bg-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 40px;
  opacity: 1;
}

[data-theme="dark"] .contact-desc {
  color: rgba(255, 255, 255, 0.7);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border-radius: 12px;
  color: var(--purple-mid);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
}

.contact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  transition: var(--transition);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  background: var(--gradient-primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(91,33,182,0.3);
}

/* Contact Form */
.contact-form {
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  transition: var(--theme-transition);
}

.form-group {
  margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-secondary);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--purple-mid);
  background: var(--bg-primary);
  box-shadow: 0 0 0 4px rgba(124,58,237,0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  margin-top: 8px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 100px 0 40px;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
}

[data-theme="dark"] .footer {
  color: var(--white);
}

.footer-glass-bg {
  position: absolute;
  inset: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--blur));
  opacity: 0.5;
  z-index: 0;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
  height: 44px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--white);
  padding: 8px 16px;
  display: inline-block;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-links-group h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px; /* More breathable footer */
}

.footer-links-group a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links-group a:hover {
  color: var(--cyan-light);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 32px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .why-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

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

  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000000 !important; /* Solid black for 100% visibility of white links */
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-link {
    color: var(--white) !important;
    font-size: 1.1rem;
    padding: 16px 32px;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
    background: #ffffff !important;
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
    background: #ffffff !important;
  }

  .hero-title {
    font-size: clamp(2.0rem, 11vw, 2.7rem);
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 900;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 32px;
    line-height: 1.6;
    color: var(--text-muted);
  }

  .hero-content {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .hero-badge {
    margin-bottom: 20px;
    font-size: 0.75rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    max-width: 100%;
  }

  .hero-stat-divider {
    width: 100%;
    height: 1px;
  }

  .about-preview-grid,
  .focus-grid,
  .detail-grid,
  .services-split,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid-reverse {
    direction: ltr;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

  .about-preview {
    padding: 60px 0;
  }

  .detail-section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .btn {
    justify-content: center;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 28px 20px;
  }
}

/* ===== BIO MODAL STYLES ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.modal-container {
  position: relative;
  width: 95%;
  max-width: 680px; /* Reduced from 800px */
  max-height: 85vh; /* Breathable vertical space */
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(20px);
  transition: all 0.5s var(--ease-out);
}

.modal.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-content {
  padding: 48px; /* Balanced padding */
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow-y: auto;
  position: relative;
  flex: 1; /* Allows inner scrolling */
  scrollbar-width: thin;
  scrollbar-color: var(--purple-mid) transparent;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: var(--purple-mid);
  border-radius: 10px;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--purple-mid);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 40px;
}

.modal-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--purple-mid);
  flex-shrink: 0;
  background: #000; /* Absolute black for zero-pixel gaps in dark mode */
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 15%; /* Default better centering for heads */
  transition: transform 0.3s ease;
}

/* Modal framing is now handled dynamically in script.js */

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 8px;
}

.modal-info h2 {
  font-size: 2rem;
  margin-bottom: 0;
}

.linkedin-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 119, 181, 0.1);
  color: #0077b5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 119, 181, 0.2);
}

.linkedin-link:hover {
  background: #0077b5;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.modal-sketch {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.modal-sketch p {
  margin-bottom: 20px;
}

/* Mobile Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    padding: 40px 24px;
  }
  
  .modal-header {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .modal-avatar {
    width: 100px;
    height: 100px;
  }
  
  .modal-info h2 {
    font-size: 1.5rem;
  }
}

/* ===== BIO MODAL CONTENT POLISH ===== */
.modal-sketch h3 {
  font-size: 1.2rem;
  color: var(--purple-mid);
  margin: 30px 0 15px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.modal-sketch p {
  line-height: 1.8;
  margin-bottom: 20px;
}

.bio-highlights ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.bio-highlights li {
  padding-left: 24px;
  position: relative;
}

.bio-highlights li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: bold;
}

.bio-interests p {
  padding: 16px;
  background: var(--bg-tertiary);
  border-left: 3px solid var(--purple-mid);
  border-radius: 4px;
}

/* ===== MASTER MOBILE OVERRIDES (Specific User Request) ===== */
/* ===== MASTER MOBILE OVERRIDES (Eye-Pleasing Refinements) ===== */
@media (max-width: 991px) {
  /* Elegant Navbar Alignment */
  .navbar {
    height: 68px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
  }

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

  /* Refined Logo Box */
  .logo-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    height: 36px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border-radius: 10px !important;
  }
  
  .logo-img {
    height: 24px !important; /* Larger for better visibility */
    width: auto !important;
  }

  /* Controls Grouping */
  .nav-controls {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: auto !important;
  }

  .theme-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    margin: 0 !important;
  }

  /* Minimalist Hamburger */
  [id="mobileToggle"] {
    background: transparent !important;
    border: none !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  [data-theme="light"] .mobile-toggle span {
    background: #000000 !important;
    width: 24px !important;
    height: 2px !important;
  }

  [data-theme="dark"] .mobile-toggle span {
    background: #ffffff !important;
  }

  /* Premium Hero Proportions */
  .hero-content {
    padding-top: 110px !important;
    padding-bottom: 50px !important;
  }

  .hero-badge {
    margin-bottom: 24px !important;
    font-size: 0.7rem !important;
    letter-spacing: 0.05em !important;
    padding: 6px 14px !important;
  }

  .hero-title {
    font-size: 2.2rem !important; /* Optimized to prevent awkward wrapping */
    line-height: 1.1 !important;
    margin-bottom: 16px !important;
    font-weight: 800 !important;
    padding: 0 10px !important;
  }

  .hero-subtitle {
    font-size: 1.0rem !important;
    line-height: 1.7 !important;
    color: var(--text-secondary) !important;
    padding: 0 24px !important;
    margin-bottom: 30px !important;
    opacity: 0.9;
  }

  /* Sleek Interaction Buttons */
  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 32px !important;
    gap: 12px !important; /* Tighter gap for elegance */
    margin-top: 20px !important;
  }

  .btn {
    width: 100% !important;
    height: 56px !important; /* Consistent height */
    justify-content: center !important;
    border-radius: 100px !important;
    padding: 0 32px !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
  }

  .btn-primary {
    background: linear-gradient(135deg, #4c1d95, #2563eb) !important;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2) !important;
  }

  .btn-secondary {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    box-shadow: var(--shadow-sm) !important;
  }
}
