/* ===========================
   COMPLIZEN GLOBAL PRIVATE LIMITED - CSS
   Premium Consulting Website
   =========================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  /* Brand Palette */
  --teal-50:  #e6faf8;
  --teal-100: #b3f0e9;
  --teal-200: #80e6da;
  --teal-300: #4ddccb;
  --teal-400: #2ec4b6;
  --teal-500: #1aab9e;
  --teal-600: #0f8c80;
  --teal-700: #0a6d64;

  --navy-50:  #e8e8f0;
  --navy-100: #b8b8d0;
  --navy-200: #8888b0;
  --navy-300: #585890;
  --navy-400: #383870;
  --navy-500: #1a1a3e;
  --navy-600: #12122e;
  --navy-700: #0d0d2b;
  --navy-800: #08081e;
  --navy-900: #040411;

  --accent-cyan: #87ceeb;
  --accent-gold: #d4a844;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --gray-100: #f0f2f5;
  --gray-200: #e2e6ea;
  --gray-300: #c8cdd3;
  --gray-400: #9ea5ad;
  --gray-500: #6b7280;
  --gray-600: #4b5563;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --section-padding: clamp(36px, 4.5vh, 52px) 0 clamp(50px, 6.5vh, 72px) 0;
  --container-width: 1560px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.2);
  --shadow-teal: 0 8px 30px rgba(46, 196, 182, 0.25);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}

section,
.other-services,
[id] {
  scroll-margin-top: 80px;
}

/* Responsive Word Wrapping & Overflow Safeguards */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

p, h1, h2, h3, h4, h5, h6, span, a, li {
  overflow-wrap: break-word;
}

.contact-link, .contact-detail p a, .footer-links a {
  word-break: break-word;
  overflow-wrap: anywhere;
}

section {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-primary);
  color: var(--navy-600);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul { list-style: none; }

.container {
  max-width: min(var(--container-width), calc(100vw - 32px));
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 3.2vw, 48px);
  box-sizing: border-box;
}

/* ---------- Utility Classes ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal-400);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--teal-400);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy-600);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: var(--white);
  box-shadow: var(--shadow-teal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(46, 196, 182, 0.4);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--navy-600);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--navy-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ---------- NAVIGATION ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-base);
}

.navbar.scrolled {
  background: rgba(13, 13, 43, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar.scrolled .nav-links a {
  color: rgba(255, 255, 255, 0.88);
}

.navbar.menu-open,
.navbar:has(.nav-links.active) {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(13, 13, 43, 0.98) !important;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal-400);
  border-radius: 2px;
  transition: var(--transition-base);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Active Highlighted Nav Link */
.nav-links a.nav-active,
.navbar .nav-links a.nav-active,
.navbar.scrolled .nav-links a.nav-active,
#navLinks a.nav-active {
  color: #2ec4b6 !important;
  font-weight: 700 !important;
  text-shadow: 0 0 10px rgba(46, 196, 182, 0.6);
}

.nav-links a.nav-active::after,
.navbar .nav-links a.nav-active::after,
.navbar.scrolled .nav-links a.nav-active::after,
#navLinks a.nav-active::after {
  width: 100% !important;
  background: #2ec4b6 !important;
  box-shadow: 0 0 8px rgba(46, 196, 182, 0.8);
}

.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition-base);
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 40%, #0a2e2b 100%);
  overflow: hidden;
  padding-top: clamp(88px, 12vh, 130px);
  padding-bottom: clamp(90px, 14vh, 150px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, 
    rgba(13, 13, 43, 0.5) 0%, 
    rgba(13, 13, 43, 0.3) 50%,
    rgba(13, 13, 43, 0.85) 100%
  );
}

/* Ambient gradient mesh in hero (fixed static position, no movement) */
.hero-gradient-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(46, 196, 182, 0.16) 0%, transparent 52%),
    radial-gradient(ellipse at 80% 25%, rgba(135, 206, 235, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(212, 168, 68, 0.08) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* Animated particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--teal-400);
  border-radius: 50%;
  opacity: 0;
  animation: float-particle 8s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 7s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1.5s; animation-duration: 9s; }
.particle:nth-child(3) { left: 35%; animation-delay: 3s; animation-duration: 6s; }
.particle:nth-child(4) { left: 50%; animation-delay: 0.5s; animation-duration: 8s; }
.particle:nth-child(5) { left: 65%; animation-delay: 2s; animation-duration: 10s; }
.particle:nth-child(6) { left: 75%; animation-delay: 4s; animation-duration: 7.5s; }
.particle:nth-child(7) { left: 85%; animation-delay: 1s; animation-duration: 9.5s; }
.particle:nth-child(8) { left: 92%; animation-delay: 3.5s; animation-duration: 6.5s; }

@keyframes float-particle {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 4; /* Higher than hero-wave (z-index 3) so wave NEVER cuts through or overlaps text */
  text-align: center;
  max-width: 1160px;
  width: 100%;
  padding: 0 clamp(16px, 4vw, 32px);
  margin: auto 0;
  zoom: 1.08;
}

@supports not (zoom: 1) {
  .hero-content {
    transform: scale(1.08);
    transform-origin: center center;
  }
}

.hero-logo-wrapper {
  display: inline-block;
  margin-bottom: 32px;
  animation: hero-fade-up 1s ease-out;
}

.hero-logo {
  width: clamp(64px, 8.5vw, 96px);
  height: auto;
  max-height: clamp(90px, 13vw, 150px);
  border-radius: var(--radius-lg);
  object-fit: contain;
  border: none;
  box-shadow: none;
  filter: drop-shadow(0 0 35px rgba(46, 196, 182, 0.3));
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.2vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: clamp(14px, 2.2vh, 22px);
  animation: hero-fade-up 1s ease-out 0.15s both;
  opacity: 1; /* Guaranteed visibility */
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--teal-300), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-line {
  display: inline;
}

.hero-motto {
  font-size: clamp(0.85rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  letter-spacing: clamp(2px, 0.4vw, 4px);
  text-transform: uppercase;
  margin-bottom: clamp(12px, 2vh, 20px);
}

.hero-description {
  font-size: clamp(0.95rem, 1.2vw, 1.12rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 960px;
  margin: 0 auto;
  line-height: 1.75;
  opacity: 1; /* Guaranteed visibility */
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: hero-fade-up 1s ease-out 0.45s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 48px;
  animation: hero-fade-up 1s ease-out 0.6s both;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--teal-400);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 6px;
  font-weight: 500;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero wave divider */
.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
  line-height: 0;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: clamp(54px, 7.5vw, 100px);
  vertical-align: bottom;
}

/* ---------- ABOUT SECTION ---------- */
.about {
  padding: clamp(24px, 3vh, 36px) 0 clamp(44px, 5.5vh, 64px) 0;
  background: var(--white);
  color: var(--navy-600);
}

.about .section-title {
  color: var(--navy-600);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-logo-showcase {
  width: 100%;
  min-height: clamp(290px, 44vw, 490px);
  height: auto;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, #08111e 0%, #062220 50%, #101633 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(46, 196, 182, 0.2);
  padding: clamp(24px, 4vw, 44px);
}

.about-logo-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(46, 196, 182, 0.18) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(135, 206, 235, 0.12) 0%, transparent 50%);
}

.about-logo-showcase::after {
  content: '';
  position: absolute;
  width: clamp(240px, 70vw, 420px);
  height: clamp(240px, 70vw, 420px);
  max-width: 95%;
  max-height: 95%;
  border: 1px dashed rgba(46, 196, 182, 0.2);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate-about-ring 40s linear infinite;
}

@keyframes rotate-about-ring {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.about-logo-showcase .brand-logo-circle,
.brand-logo-circle {
  width: clamp(210px, 58vw, 360px) !important;
  height: clamp(210px, 58vw, 360px) !important;
  max-width: 92% !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(10px, 2.5vw, 18px) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 45px rgba(46, 196, 182, 0.35) !important;
  border: clamp(3px, 0.8vw, 5px) solid rgba(46, 196, 182, 0.4) !important;
  z-index: 2 !important;
  position: relative !important;
  transition: var(--transition-base) !important;
  margin: 0 auto !important;
}

.about-logo-showcase:hover .brand-logo-circle {
  transform: scale(1.04) !important;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.4), 0 0 60px rgba(46, 196, 182, 0.55) !important;
}

.brand-logo-circle .about-logo-img,
.about-logo-img {
  max-width: 96% !important;
  max-height: 96% !important;
  object-fit: contain !important;
  height: auto !important;
  width: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

.about-image-wrapper > .about-logo-showcase + .about-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: var(--white);
  padding: clamp(14px, 2.2vw, 22px) clamp(18px, 2.8vw, 28px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-teal);
  text-align: center;
  z-index: 3;
}

.about-image-wrapper::before {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--teal-400);
  border-radius: var(--radius-lg);
  opacity: 0.4;
  z-index: -1;
}

.about-image-wrapper::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100));
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: var(--white);
  padding: clamp(14px, 2.2vw, 22px) clamp(18px, 2.8vw, 28px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-teal);
  text-align: center;
  z-index: 3;
}

.about-badge-number {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.about-badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text p {
  color: var(--gray-500);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-500);
}

.about-feature .icon {
  width: 28px;
  height: 28px;
  background: var(--teal-50);
  color: var(--teal-500);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* About Partner Box & Grid */
.about-partner-box {
  background: linear-gradient(135deg, #061826 0%, #081324 100%) !important;
  border: 1px solid rgba(46, 196, 182, 0.3) !important;
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(6, 24, 38, 0.5) !important;
}

.about-partner-header h3 {
  color: var(--teal-400) !important;
}

.about-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-partner-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: linear-gradient(135deg, #0b253b 0%, #0e1e33 100%) !important;
  border: 1px solid rgba(46, 196, 182, 0.35) !important;
  border-radius: var(--radius-md);
  padding: 22px 24px;
  font-size: 0.96rem;
  font-weight: 600;
  color: #ffffff !important;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
  transition: var(--transition-base);
}

.about-partner-item span {
  color: #ffffff !important;
}

.about-partner-item:hover {
  background: linear-gradient(135deg, #0f3250 0%, #122842 100%) !important;
  border-color: rgba(46, 196, 182, 0.6) !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(46, 196, 182, 0.25) !important;
  transform: translateY(-4px);
}

.partner-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(46, 196, 182, 0.15) !important;
  color: var(--teal-400) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(46, 196, 182, 0.3) !important;
}

.partner-icon svg {
  stroke: var(--teal-400) !important;
}

@media (max-width: 1024px) {
  .about-partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-partner-grid {
    grid-template-columns: 1fr;
  }
  .about-partner-box {
    padding: 32px 24px;
  }
}

/* ---------- SERVICES SECTION ---------- */
section.services,
#services,
.services {
  padding: clamp(32px, 4vh, 48px) 0 clamp(40px, 5vh, 60px) 0 !important;
  background: linear-gradient(135deg, #0e8378 0%, #096860 60%, #064b45 100%) !important;
  color: #ffffff !important;
  scroll-margin-top: 80px;
}

.services .container {
  max-width: min(1780px, 96vw);
  width: 100%;
  padding: 0 clamp(16px, 2.2vw, 36px);
}

.services .section-label {
  color: var(--teal-100) !important;
}

.services .section-label::before {
  background: var(--teal-100) !important;
}

section.services .section-title,
#services .section-title,
.services .section-title {
  color: #ffffff !important;
}

.services-header {
  text-align: center;
  max-width: 1050px;
  margin: 0 auto 20px;
}

section.services .section-subtitle,
#services .section-subtitle,
.services-header .section-subtitle {
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.5vw, 22px);
  align-items: stretch;
}

.service-card {
  background: var(--white) !important;
  border-radius: 12px;
  padding: clamp(16px, 1.5vw, 22px);
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  border: 1px solid var(--gray-200) !important;
  box-shadow: var(--shadow-sm) !important;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: auto;
  justify-content: flex-start;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  will-change: transform;
  scroll-margin-top: 85px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-400), var(--accent-cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px) translateZ(0);
  background: var(--white) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: transparent !important;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--teal-50), var(--teal-100)) !important;
  border: 1px solid var(--teal-200) !important;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 10px;
  transition: var(--transition-base);
  color: var(--teal-500) !important;
  flex-shrink: 0;
}

.service-icon svg {
  stroke: var(--teal-500) !important;
  width: 22px;
  height: 22px;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600)) !important;
  transform: scale(1.05);
  color: var(--white) !important;
}

.service-card:hover .service-icon svg {
  stroke: var(--white) !important;
}

.service-card h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--navy-600) !important;
  margin-bottom: 8px;
  min-height: 2.5rem;
  display: flex;
  align-items: flex-start;
  line-height: 1.25;
}

.service-card p {
  color: var(--gray-500) !important;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-500);
  transition: var(--transition-fast);
}

.service-link:hover {
  gap: 10px;
  color: var(--teal-600);
}

.service-link svg {
  width: 14px;
  height: 14px;
}

/* Card Bullet Lists */
.card-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-start;
  gap: 4px;
  text-align: left;
}

.card-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--gray-600);
  transition: color 0.2s ease;
}

.card-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal-500);
  transition: background 0.2s ease, transform 0.2s ease;
}

.service-card:hover .card-bullets li::before {
  background: var(--teal-600);
  transform: scale(1.2);
}

/* Translucent cards in Agile and IT Solutions */
.other-service-item .card-bullets {
  margin-top: 8px;
  gap: 4px;
}

.other-service-item .card-bullets li {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  line-height: 1.35;
  padding-left: 16px;
}

.other-service-item .card-bullets li::before {
  background: var(--teal-200);
  top: 6px;
  width: 5px;
  height: 5px;
}

/* ---------- AGILE AND IT SOLUTIONS ---------- */
.other-services {
  margin-top: 32px;
  text-align: center;
  scroll-margin-top: 80px;
}

.other-services-header {
  margin-bottom: 14px;
  text-align: center;
}

.other-services-header .section-label {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 3px !important;
  color: var(--teal-100) !important;
  margin-bottom: 0 !important;
}

.other-services-header .section-label::before {
  content: '' !important;
  display: inline-block !important;
  width: 28px !important;
  height: 2px !important;
  background: var(--teal-100) !important;
  border-radius: 2px !important;
}

.other-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.5vw, 22px);
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}

.other-service-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: clamp(16px, 1.5vw, 20px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 60%, rgba(135, 206, 235, 0.18) 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  text-align: left;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  will-change: transform;
  scroll-margin-top: 85px;
}

.other-service-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.other-service-header h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.other-service-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin: 0;
}

.other-service-item:nth-child(1) {
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.3) 0%, rgba(255, 255, 255, 0.08) 70%, rgba(46, 196, 182, 0.2) 100%);
}

.other-service-item:nth-child(2) {
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.32) 0%, rgba(255, 255, 255, 0.08) 70%, rgba(10, 107, 98, 0.3) 100%);
}

.other-service-item:nth-child(3) {
  background: linear-gradient(135deg, rgba(26, 171, 158, 0.35) 0%, rgba(255, 255, 255, 0.08) 70%, rgba(135, 206, 235, 0.22) 100%);
}

.other-service-item:nth-child(4) {
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.3) 0%, rgba(255, 255, 255, 0.08) 70%, rgba(135, 206, 235, 0.22) 100%);
}

.other-service-item:nth-child(5) {
  background: linear-gradient(135deg, rgba(135, 206, 235, 0.35) 0%, rgba(46, 196, 182, 0.2) 70%, rgba(255, 255, 255, 0.1) 100%);
}

.other-service-item:hover {
  border-color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.38) 0%, rgba(46, 196, 182, 0.38) 100%);
  transform: translateY(-5px) translateZ(0);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.other-service-item svg {
  flex-shrink: 0;
  stroke: #ffffff !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ---------- WHY CHOOSE US / TEAM EXPERTISE ---------- */
.why-us {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.1), transparent 70%);
  border-radius: 50%;
}

.why-us .section-title {
  color: var(--white);
}

.why-us .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.why-us-header {
  text-align: center;
  margin-bottom: 64px;
}

.why-us-header .section-subtitle {
  margin: 0 auto;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.why-us-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition-base);
  backdrop-filter: blur(10px);
}

.why-us-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
  border-color: rgba(46, 196, 182, 0.3);
}

.why-us-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
}

.why-us-card h3 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-us-card p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.team-certs {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--teal-400);
  letter-spacing: 0.5px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
  line-height: 1.6;
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: var(--section-padding);
  background: var(--white);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 64px;
}

.testimonials-header .section-subtitle {
  margin: 0 auto;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: var(--transition-base);
  border: 1px solid transparent;
}

.testimonial-card:hover {
  border-color: var(--teal-100);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-quote {
  font-size: 2.5rem;
  color: var(--teal-300);
  line-height: 1;
  margin-bottom: 16px;
  font-family: var(--font-display);
}

.testimonial-text {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-400), var(--navy-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-600);
}

.testimonial-info p {
  font-size: 0.8rem;
  color: var(--gray-400);
  font-weight: 500;
}

/* Stars */
.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
  fill: var(--accent-gold);
}

/* ---------- CONTACT SECTION ---------- */
.contact {
  padding: var(--section-padding);
  background: var(--off-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 60px;
  align-items: stretch;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy-600);
  line-height: 1.2;
  margin-bottom: 20px;
}

.contact-info > p {
  color: var(--gray-500);
  font-size: 1.05rem;
  margin-bottom: 40px;
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.animated-contact-item {
  transition: transform 0.3s ease;
}

.animated-contact-item:hover {
  transform: translateX(6px);
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--white) !important;
  border: 1px solid var(--gray-200) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-500) !important;
  flex-shrink: 0;
  position: relative;
  text-decoration: none;
  transition: var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.contact-detail-icon svg {
  color: var(--teal-500) !important;
  stroke: var(--teal-500);
  fill: none;
  transition: all 0.3s ease;
}

.contact-detail-icon.whatsapp-icon svg,
.contact-detail-icon.linkedin-icon svg {
  fill: var(--teal-500) !important;
  stroke: none !important;
}

.contact-detail-icon:hover {
  background: var(--teal-400) !important;
  border-color: var(--teal-400) !important;
  color: var(--white) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-teal);
}

.contact-detail-icon:hover svg {
  color: var(--white) !important;
  stroke: var(--white) !important;
}

.contact-detail-icon.whatsapp-icon:hover svg,
.contact-detail-icon.linkedin-icon:hover svg {
  fill: var(--white) !important;
  stroke: none !important;
}

.contact-detail h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-detail p {
  color: var(--navy-500);
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

.contact-link {
  color: var(--navy-600);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--teal-500);
  text-decoration: underline;
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  transition: var(--transition-base);
}

.social-link:hover {
  background: var(--teal-400);
  border-color: var(--teal-400);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-teal);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 44px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  height: 100%;
}

#contactForm {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group.form-group-message {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-500);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-primary);
  font-size: 0.96rem;
  color: var(--navy-600);
  background: var(--off-white);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: var(--white);
  border-color: var(--teal-400);
  box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group select optgroup {
  font-weight: 700;
  color: var(--teal-600);
  background: var(--off-white);
}

.form-group select option {
  font-weight: 500;
  color: var(--navy-600);
  padding: 8px 12px;
  background: var(--white);
}

.form-group.form-group-message textarea {
  flex: 1;
  min-height: 130px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 15px 24px;
  font-size: 1rem;
  justify-content: center;
}

.turnstile-wrapper {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: auto;
}

.turnstile-wrapper .cf-turnstile {
  width: 100%;
}

.turnstile-feedback-msg {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.4;
  width: 100%;
  animation: fadeInMsg 0.25s ease-in-out;
}

.turnstile-feedback-msg.error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

.turnstile-feedback-msg.warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #b45309;
}

.turnstile-feedback-msg.info {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #15803d;
}

@keyframes fadeInMsg {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--teal-400) 0%, var(--teal-600) 50%, var(--navy-500) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent 70%);
  border-radius: 50%;
}

.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  border-radius: 50%;
}

.cta-banner .container {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 960px;
  margin: 0 auto 32px;
}

.cta-banner .btn-white {
  background: var(--white);
  color: var(--teal-600);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.cta-banner .btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-800);
  padding: 80px 0 0;
  color: rgba(255, 255, 255, 0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .nav-logo {
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--teal-400);
  padding-left: 4px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.7;
}

.btn-footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
  color: #ffffff !important;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-base);
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.btn-footer-linkedin:hover {
  background: linear-gradient(135deg, #008cdb 0%, #006da7 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 119, 181, 0.45);
  color: #ffffff !important;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  outline: none;
  transition: var(--transition-base);
}

.newsletter-form input:focus {
  border-color: var(--teal-400);
  background: rgba(255, 255, 255, 0.12);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.newsletter-form button {
  padding: 12px 20px;
  background: var(--teal-400);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.newsletter-form button:hover {
  background: var(--teal-500);
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links a:hover {
  color: var(--teal-400);
}

/* ---------- SCROLL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ---------- COUNTER ANIMATION ---------- */
.count-up {
  display: inline-block;
}

/* ---------- BACK TO TOP ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: var(--white);
  border: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 20px rgba(46, 196, 182, 0.4);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(46, 196, 182, 0.55);
}

.back-to-top:active {
  transform: translateY(-1px);
}

.back-to-top:focus {
  outline: none;
}

.back-to-top:focus-visible {
  outline: 2px solid var(--teal-400);
  outline-offset: 3px;
}

.back-to-top svg {
  pointer-events: none;
  display: block;
  transition: transform 0.25s ease;
}

.back-to-top:hover svg {
  transform: translateY(-2px);
}

/* ---------- V3 ENHANCED ANIMATIONS ---------- */

/* Particle canvas */
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Navbar logo subtle pulse */
.nav-logo img {
  animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 8px rgba(46,196,182,0.4)); }
}

/* Active nav link */
.nav-links a.nav-active {
  color: #2ec4b6 !important;
  font-weight: 700 !important;
}
.nav-links a.nav-active::after {
  width: 100% !important;
  background: #2ec4b6 !important;
}

/* Hero title shimmer */
.hero-title .highlight {
  background-size: 200% auto;
  animation: text-shimmer 4s linear infinite;
}

@keyframes text-shimmer {
  to { background-position: 200% center; }
}

/* Hero motto breathe */
.hero-motto {
  font-size: clamp(0.85rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  letter-spacing: clamp(2px, 0.4vw, 4px);
  text-transform: uppercase;
  margin-bottom: clamp(12px, 2vh, 20px);
}

@keyframes motto-breathe {
  0%, 100% { letter-spacing: 4px; opacity: 0.6; }
  50% { letter-spacing: 6px; opacity: 0.85; }
}

/* Hero stat numbers glow */
.hero-stat:hover .hero-stat-number {
  text-shadow: 0 0 20px rgba(46,196,182,0.6);
  transform: scale(1.1);
}
.hero-stat-number { transition: all 0.3s ease; }

/* Floating hero logo */
.hero-logo-wrapper {
  animation: hero-fade-up 1s ease-out, float-logo 4s ease-in-out infinite 1.5s;
}

@keyframes float-logo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---- SPLIT TEXT REVEAL ---- */
.split-char, .split-word {
  display: inline;
  opacity: 1;
}

.text-revealed .split-char,
.text-revealed .split-word {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

/* Scramble text */
.scramble-char {
  color: var(--teal-400);
  font-weight: 400;
}

/* ---- BUTTON RIPPLE ---- */
.btn {
  position: relative;
  overflow: hidden;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transform: scale(0);
  animation: ripple-expand 0.7s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-expand {
  to { transform: scale(1); opacity: 0; }
}

/* Service cards 3D tilt */
.service-card {
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* Service icon pop */
.service-card:hover .service-icon {
  animation: icon-pop 0.5s cubic-bezier(0.68,-0.55,0.265,1.55);
}

@keyframes icon-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(10deg); }
  100% { transform: scale(1.05) rotate(0); }
}

/* Service link arrow bounce */
.service-link:hover svg {
  animation: arrow-bounce 0.6s ease infinite;
}

@keyframes arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(5px); }
}

/* Why-us card glow */
.why-us-card:hover {
  animation: card-glow 2s ease-in-out infinite;
}

@keyframes card-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(46,196,182,0.1); }
  50% { box-shadow: 0 0 25px rgba(46,196,182,0.2), 0 0 50px rgba(46,196,182,0.05); }
}

/* Why-us icon bounce */
.why-us-card:hover .why-us-icon {
  animation: icon-rotate-bounce 0.6s cubic-bezier(0.68,-0.55,0.265,1.55);
}

@keyframes icon-rotate-bounce {
  0% { transform: rotate(0) scale(1); }
  50% { transform: rotate(-15deg) scale(1.15); }
  100% { transform: rotate(0) scale(1); }
}

/* Testimonial avatar wiggle */
.testimonial-card:hover .testimonial-avatar {
  animation: avatar-wiggle 0.5s ease;
}

@keyframes avatar-wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* Testimonial stars twinkle */
.testimonial-card:hover .testimonial-stars svg {
  animation: star-twinkle 0.4s ease forwards;
}
.testimonial-card:hover .testimonial-stars svg:nth-child(1) { animation-delay: 0s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(2) { animation-delay: 0.08s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(3) { animation-delay: 0.16s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(4) { animation-delay: 0.24s; }
.testimonial-card:hover .testimonial-stars svg:nth-child(5) { animation-delay: 0.32s; }

@keyframes star-twinkle {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Testimonial card transitions (for carousel) */
.testimonial-card {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* CTA shimmer */
.cta-banner::before {
  animation: shimmer-drift 8s ease-in-out infinite;
}

@keyframes shimmer-drift {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(50px,-30px); }
}

/* Form input focus glow */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  animation: input-glow 1.5s ease-in-out infinite;
}

@keyframes input-glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46,196,182,0.1); }
  50% { box-shadow: 0 0 0 6px rgba(46,196,182,0.2); }
}

/* Floating label effect */
.form-group.focused label {
  color: var(--teal-500);
  transform: translateY(-2px);
  font-size: 0.8rem;
}
.form-group label {
  transition: all 0.3s ease;
}

/* Social link pop */
.social-link:hover {
  animation: social-pop 0.3s cubic-bezier(0.68,-0.55,0.265,1.55);
}

@keyframes social-pop {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.15); }
  100% { transform: translateY(-3px) scale(1); }
}

/* About badge pulse */
.about-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: var(--white);
  padding: clamp(14px, 2.2vw, 22px) clamp(18px, 2.8vw, 28px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-teal);
  text-align: center;
  z-index: 3;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(46,196,182,0.25); }
  50% { box-shadow: 0 8px 40px rgba(46,196,182,0.45), 0 0 60px rgba(46,196,182,0.15); }
}

/* About feature items */
.about-feature {
  transition: transform 0.3s ease, color 0.3s ease;
}
.about-feature:hover {
  transform: translateX(6px);
  color: var(--teal-500);
}
.about-feature:hover .icon {
  background: var(--teal-400);
  color: white;
  transform: scale(1.1);
}
.about-feature .icon {
  transition: all 0.3s ease;
}

/* Newsletter button */
.newsletter-form button:hover {
  animation: send-fly 0.4s ease;
}

@keyframes send-fly {
  0% { transform: scale(1); }
  50% { transform: scale(1.1) rotate(-5deg); }
  100% { transform: scale(1); }
}

/* Footer links arrows */
.footer-links a {
  position: relative;
  display: inline-block;
}
.footer-links a::before {
  content: '\2192';
  position: absolute;
  left: -16px;
  opacity: 0;
  transition: all 0.3s ease;
  color: var(--teal-400);
}
.footer-links a:hover::before {
  opacity: 1;
  left: -14px;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), var(--accent-cyan), var(--teal-400));
  background-size: 200% auto;
  animation: gradient-flow 3s linear infinite;
  z-index: 10001;
  transition: width 0.1s linear;
}

@keyframes gradient-flow {
  to { background-position: 200% center; }
}

/* ---------- CUSTOM REFINED CURSOR ---------- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #00f5d4;
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 9999999 !important;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 
    0 0 6px rgba(0, 245, 212, 0.8),
    0 0 12px rgba(46, 196, 182, 0.4);
}

.cursor-dot.visible {
  opacity: 1;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(46, 196, 182, 0.7);
  background: transparent;
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 9999998 !important;
  opacity: 0;
  will-change: transform;
  transition: opacity 0.25s ease, width 0.2s ease, height 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 0 6px rgba(46, 196, 182, 0.2);
}

.cursor-ring.visible {
  opacity: 0.85;
}

/* Hover expansion state with clean subtle accent */
.cursor-ring.cursor-hover {
  width: 50px;
  height: 50px;
  border-color: #00f5d4;
  background: rgba(46, 196, 182, 0.05);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.3);
}

.cursor-dot.cursor-hover {
  background: #ffffff;
  box-shadow: 
    0 0 8px #ffffff,
    0 0 14px rgba(0, 245, 212, 0.7);
}

html.has-custom-cursor,
html.has-custom-cursor *,
body.has-custom-cursor,
body.has-custom-cursor * {
  cursor: none !important;
}

@media (pointer: coarse), (hover: none) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
  html.has-custom-cursor,
  html.has-custom-cursor *,
  body.has-custom-cursor,
  body.has-custom-cursor * {
    cursor: auto !important;
  }
}

/* Section label line */
.section-label::before {
  animation: line-extend 2s ease-out forwards;
  transform-origin: left;
}

@keyframes line-extend {
  from { width: 0; }
  to { width: 28px; }
}

/* ---- ENHANCED PAGE LOADER ---- */
.page-loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-800) 0%, #0a2e2b 50%, var(--navy-700) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  z-index: 99999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: 80px;
  height: auto;
  animation: loader-float 2s ease-in-out infinite;
}

@keyframes loader-float {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 15px rgba(46,196,182,0.3)); }
  50% { transform: translateY(-10px) scale(1.05); filter: drop-shadow(0 0 30px rgba(46,196,182,0.5)); }
}

.loader-bar-track {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-400), var(--accent-cyan));
  border-radius: 3px;
  transition: width 0.15s ease;
}

.loader-text {
  font-family: var(--font-primary);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: loader-text-pulse 2s ease-in-out infinite;
}

@keyframes loader-text-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.7; }
}

/* Typed cursor */
.typed-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--teal-400);
  margin-left: 4px;
  animation: cursor-blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---------- OUR TEAM SECTION ---------- */
.our-team {
  padding: var(--section-padding);
  background: #87ddea !important;
  position: relative;
}

.our-team .section-label {
  color: #0b172c !important;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.our-team .section-label::before {
  background: #0b172c !important;
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  flex-shrink: 0;
}

.contact .section-label,
.contact-info .section-label {
  color: var(--teal-400) !important;
}

.contact .section-label::before,
.contact-info .section-label::before {
  background: var(--teal-400) !important;
}

.team-section-wrapper {
  max-width: 100%;
  margin: 0 auto;
}

.team-header {
  margin-bottom: 44px;
}

.team-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.8vw, 3rem);
  font-weight: 700;
  color: #060e1c !important;
  line-height: 1.2;
  margin-top: 12px;
}

.team-header h2 em {
  font-style: normal;
  color: #074152 !important;
  position: relative;
}

.team-card {
  background: linear-gradient(135deg, #0e8378 0%, #096860 60%, #064b45 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: var(--radius-xl);
  padding: 52px 48px;
  box-shadow: 0 20px 50px rgba(6, 40, 48, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  position: relative;
  overflow: hidden;
  transition: var(--transition-base);
  backdrop-filter: blur(10px);
}

.team-card:hover {
  border-color: rgba(255, 255, 255, 0.55) !important;
  box-shadow: 0 25px 60px rgba(6, 40, 48, 0.38), 0 0 25px rgba(46, 196, 182, 0.2) !important;
  transform: translateY(-4px);
}

.team-lead {
  font-size: 1.14rem;
  line-height: 1.85;
  color: #ffffff !important;
  font-weight: 500;
  margin-bottom: 20px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.team-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 36px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.team-expertise-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.expertise-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  padding: 12px 22px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
  transition: var(--transition-base);
}

.expertise-tag svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.expertise-tag:hover {
  background: #ffffff !important;
  color: #064b45 !important;
  border-color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.expertise-tag:hover svg {
  color: #0e8378 !important;
  stroke: #0e8378 !important;
}



/* ---------- LINKEDIN SECTION ---------- */
.linkedin-section {
  padding: var(--section-padding);
  background: linear-gradient(180deg, #061826 0%, #081324 100%);
}

.linkedin-cta-box {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(10, 102, 194, 0.15) 0%, rgba(46, 196, 182, 0.1) 50%, rgba(9, 21, 38, 0.95) 100%);
  border: 1px solid rgba(46, 196, 182, 0.3);
  padding: 56px 48px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(10, 102, 194, 0.15);
}

.linkedin-cta-glow {
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(10, 102, 194, 0.25) 0%, rgba(46, 196, 182, 0.1) 40%, transparent 70%);
  pointer-events: none;
}

.linkedin-cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.linkedin-badge-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: rgba(10, 102, 194, 0.25);
  color: #0077b5;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(10, 102, 194, 0.4);
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.25);
}

.linkedin-cta-text {
  flex: 1;
  min-width: 280px;
}

.linkedin-cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #ffffff;
  margin: 8px 0 12px;
  line-height: 1.3;
}

.linkedin-cta-text h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal-300), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.linkedin-cta-text p {
  color: #94a3b8;
  font-size: 1.05rem;
  max-width: 600px;
}

.btn-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #0077b5 0%, #004182 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.35);
  transition: var(--transition-base);
  flex-shrink: 0;
}

.btn-linkedin:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 119, 181, 0.55);
  color: #ffffff;
}

/* ==========================================================
   COMPREHENSIVE RESPONSIVE ARCHITECTURE
   Covers Large Desktops, Standard Laptops (1366x768, 1440x900),
   Tablets (Landscape & Portrait), and Mobile Phones (320px-480px)
   ========================================================== */

/* ---------- RESOLUTION & DEVICE-AWARE SCALING ENGINE ---------- */
/* Adapts dynamically between 24" 1080p monitors (1920px+), Laptops (1025px - 1600px), and Mobile */

/* Dynamic Container Width steps based on screen width */
@media (max-width: 1600px) {
  :root {
    --container-width: 1380px;
  }
}
@media (max-width: 1400px) {
  :root {
    --container-width: 1220px;
  }
}
@media (max-width: 1240px) {
  :root {
    --container-width: 1080px;
  }
}

/* Explicit device tier overrides from Resolution Detector */
html[data-device="laptop"][data-laptop-tier="large"] {
  --container-width: 1380px;
}
html[data-device="laptop"][data-laptop-tier="standard"] {
  --container-width: 1220px;
}
html[data-device="laptop"][data-laptop-tier="compact"] {
  --container-width: 1080px;
}

/* ---------- 0. ALL LAPTOP RESOLUTIONS (1025px - 1536px, e.g. 1366x768, 1440x900, 1536x864) ---------- */
@media (max-width: 1536px) and (min-width: 1025px),
html[data-device="laptop"] body {
  /* Navigation */
  .navbar {
    padding: 14px 0;
  }
  .navbar.scrolled {
    padding: 10px 0;
  }
  .nav-logo img {
    height: 38px;
  }
  .nav-logo-text {
    font-size: 1.22rem;
  }
  .nav-links {
    gap: clamp(14px, 1.7vw, 24px);
  }
  .nav-links a {
    font-size: clamp(0.80rem, 0.88vw, 0.88rem);
    white-space: nowrap;
  }
  .nav-cta {
    padding: 9px 18px !important;
    font-size: 0.82rem !important;
    white-space: nowrap;
  }

  /* Hero Section */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: clamp(70px, 9.5vh, 92px);
    padding-bottom: clamp(52px, 7.5vh, 72px);
  }
  .hero-logo-wrapper {
    margin-bottom: clamp(8px, 1.5vh, 14px);
  }
  .hero-logo {
    max-height: clamp(90px, 13.5vh, 120px);
    width: auto;
  }
  .hero-motto {
    font-size: clamp(0.74rem, 0.95vw, 0.84rem);
    margin-bottom: clamp(6px, 1.2vh, 10px);
    letter-spacing: 2px;
  }
  .hero-title {
    font-size: clamp(1.65rem, 2.7vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: clamp(8px, 1.4vh, 14px);
  }
  .hero-title .hero-line {
    display: block;
  }
  .hero-title .hero-line-1,
  .hero-title .hero-line-2 {
    white-space: nowrap;
  }
  .hero-title .highlight {
    display: inline-block;
  }
  .hero-description {
    font-size: clamp(0.85rem, 1vw, 0.96rem);
    line-height: 1.58;
    max-width: 840px;
  }
  .hero-buttons {
    gap: 12px;
    margin-top: clamp(12px, 2vh, 20px);
  }
  .hero-buttons .btn {
    padding: 10px 24px;
    font-size: 0.88rem;
  }
  .hero-stats {
    margin-top: clamp(18px, 2.6vh, 28px);
    gap: clamp(24px, 3.5vw, 44px);
  }
  .hero-stat-number {
    font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  }
  .hero-stat-label {
    font-size: 0.78rem;
    margin-top: 3px;
  }
  .hero-wave svg {
    height: clamp(32px, 4vw, 55px);
  }

  /* Core Services & Agile and IT Solutions Grids */
  .services-grid,
  .other-services-grid {
    gap: clamp(16px, 1.8vw, 22px);
  }
  .service-card {
    padding: clamp(26px, 2.2vw, 36px) clamp(18px, 1.8vw, 26px);
    min-height: auto;
  }
  .service-icon-box {
    width: 50px;
    height: 50px;
  }
  .service-title {
    font-size: clamp(1.15rem, 1.35vw, 1.35rem);
  }
  .service-desc {
    font-size: 0.86rem;
    line-height: 1.58;
  }
  .service-features li {
    font-size: 0.80rem;
    gap: 8px;
  }
  .service-tag {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  /* About Grid */
  .about-grid {
    gap: clamp(32px, 3.5vw, 56px);
  }
  .about-badge {
    right: 12px;
    bottom: 12px;
    padding: 12px 18px;
  }
  .about-badge-number {
    font-size: 1.6rem;
  }
  .about-badge-label {
    font-size: 0.72rem;
  }
  .about-partner-grid {
    gap: 14px;
  }
  .partner-card {
    padding: 16px 14px;
  }

  /* Security Grader Layout */
  .grader-layout {
    gap: 20px;
  }
  .grader-card {
    padding: 24px 20px;
  }
  .grader-chips-grid {
    gap: 8px;
  }
  .grader-chip {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .grader-step-icon {
    width: 34px;
    height: 34px;
  }

  /* Scope Modal */
  .scope-modal {
    max-height: 88vh;
    overflow-y: auto;
    padding: 22px 26px;
  }

  /* Contact & Footer */
  .contact-grid {
    gap: clamp(28px, 3vw, 44px);
  }
  .footer-grid {
    gap: clamp(24px, 2.5vw, 40px);
  }
}

/* Explicit Laptop Device Selector Overrides */
html[data-device="laptop"] .hero-content {
  zoom: 1.08;
}
html[data-device="laptop"][data-height-tier="medium"] .hero-content {
  zoom: 1.06;
}
html[data-device="laptop"][data-height-tier="short"] .hero-content {
  zoom: 1.04;
}
html[data-device="laptop"] .hero-logo {
  max-height: clamp(90px, 13.5vh, 120px);
  width: auto;
}
html[data-device="laptop"] .hero-title .hero-line {
  display: block;
}
html[data-device="laptop"] .hero-title .hero-line-1,
html[data-device="laptop"] .hero-title .hero-line-2 {
  white-space: nowrap;
}
html[data-device="laptop"] .hero-title .highlight {
  display: inline-block;
}
html[data-device="laptop"][data-height-tier="medium"] .hero-logo {
  max-height: clamp(87px, 13.2vh, 114px);
  width: auto;
}
html[data-device="laptop"][data-height-tier="short"] .hero-logo {
  max-height: clamp(75px, 12vh, 96px);
  width: auto;
}

/* Compact Laptop Screens (1025px - 1200px) */
@media (max-width: 1200px) and (min-width: 1025px) {
  .nav-links {
    gap: 12px;
  }
  .nav-links a {
    font-size: 0.78rem;
  }
  .nav-cta {
    padding: 8px 14px !important;
    font-size: 0.76rem !important;
  }
}

/* Hide decorative overflow elements on standard laptop screens */
@media (max-width: 1400px) {
  .about-image-wrapper::before,
  .about-image-wrapper::after {
    display: none !important;
  }
}

/* ---------- 1. LAPTOPS & DESKTOPS (max-width: 1280px) ---------- */
@media (max-width: 1280px) {
  .container {
    padding: 0 28px;
  }

  .nav-links {
    gap: clamp(10px, 1.4vw, 22px);
  }

  .nav-links a {
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .nav-cta {
    padding: 8px 16px !important;
    font-size: 0.80rem !important;
    white-space: nowrap;
  }

  .about-grid {
    gap: 48px;
  }

  .about-image-wrapper > .about-logo-showcase + .about-badge,
  .about-badge {
    right: 16px;
    bottom: 16px;
  }

  .services-grid {
    gap: 20px;
  }

  .service-card {
    padding: 32px 24px;
  }

  .contact-grid {
    gap: 40px;
  }
}

/* Navigation switch to drawer on compact screens / scaled laptops */
@media (max-width: 1180px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    max-height: calc(100dvh - 64px);
    background: rgba(10, 10, 30, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 24px 24px 48px;
    gap: 12px;
    border-top: 1px solid rgba(46, 196, 182, 0.25);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
  }

  .nav-links.active a {
    font-size: 1.08rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s ease, background 0.2s ease;
  }

  .nav-links.active a.nav-active {
    color: #2ec4b6 !important;
    font-weight: 700 !important;
    border-bottom-color: rgba(46, 196, 182, 0.45);
    text-shadow: 0 0 12px rgba(46, 196, 182, 0.4);
  }

  .nav-links.active .nav-cta {
    margin-top: 16px;
    padding: 14px 28px !important;
    font-size: 1rem !important;
    text-align: center;
    justify-content: center;
    border-bottom: none !important;
  }
}

/* ---------- 2. TABLETS & COMPACT LAPTOPS (max-width: 1024px) ---------- */
@media (max-width: 1024px) {
  :root {
    --section-padding: clamp(32px, 4vh, 46px) 0 clamp(40px, 5vh, 56px) 0;
  }

  /* Grids step down to 2 columns */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .service-card {
    min-height: 460px;
  }

  .other-services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .about-partner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrapper {
    height: auto;
  }

  #contactForm {
    height: auto;
  }

  .form-group.form-group-message textarea {
    flex: none;
    min-height: 130px;
  }

  /* Team & LinkedIn */
  .team-card {
    padding: 36px 30px;
  }

  .linkedin-cta-box {
    padding: 40px 32px;
  }

  .linkedin-cta-content {
    gap: 24px;
  }
}

/* ---------- 3. TABLETS PORTRAIT & LARGE PHONES (max-width: 768px) ---------- */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(28px, 3.5vh, 40px) 0 clamp(36px, 4.5vh, 50px) 0;
  }

  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
  }

  .container {
    padding: 0 16px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  /* Hide high-overhead effects on mobile */
  .cursor-dot, .cursor-ring {
    display: none !important;
  }

  .hero-canvas {
    display: none !important;
  }

  /* Eliminate horizontal overflow from scroll reveals on mobile */
  .reveal-left,
  .reveal-right {
    transform: translateY(24px) !important;
  }
  .reveal-left.active,
  .reveal-right.active {
    transform: translateY(0) !important;
  }

  /* Prevent decorative elements from causing horizontal overflow */
  .linkedin-cta-glow,
  .about-image-wrapper::before,
  .about-image-wrapper::after,
  .cta-banner::before,
  .cta-banner::after,
  .why-us::before {
    display: none !important;
  }

  /* Hero Section Mobile */
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 100px;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
  }

  .hero-content {
    zoom: 1 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 16px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .hero-title {
    font-size: clamp(1.65rem, 6.2vw, 2.3rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 14px !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }

  .hero-title .hero-line {
    display: inline !important;
    white-space: normal !important;
  }

  .hero-title .hero-line-1,
  .hero-title .hero-line-2,
  .hero-title .hero-line-3 {
    display: inline !important;
    white-space: normal !important;
  }

  .hero-title .highlight {
    display: inline !important;
    white-space: normal !important;
  }

  .hero-motto {
    font-size: clamp(0.72rem, 2.8vw, 0.82rem) !important;
    letter-spacing: 1.5px !important;
    white-space: normal !important;
    word-break: break-word !important;
    padding: 0 4px !important;
  }

  .hero-description {
    font-size: clamp(0.85rem, 3.2vw, 0.94rem) !important;
    line-height: 1.6 !important;
    padding: 0 6px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero-logo-wrapper {
    margin-bottom: 20px;
  }

  .hero-logo {
    width: 68px;
    height: auto;
    max-height: 105px;
  }

  /* About Section Mobile */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .about-logo-showcase {
    min-height: 290px;
    padding: 24px 16px;
  }

  .about-image-wrapper > .about-logo-showcase + .about-badge,
  .about-badge {
    right: 12px;
    bottom: 12px;
    padding: 12px 18px;
  }

  .about-badge-number {
    font-size: 1.6rem;
  }

  .about-badge-text {
    font-size: 0.72rem;
  }

  .about-partner-box {
    padding: 28px 18px;
    margin-top: 40px !important;
  }

  .about-partner-header h3 {
    font-size: 1.4rem !important;
    line-height: 1.35;
  }

  .about-partner-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Services Single Column */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card {
    padding: 28px 20px;
    min-height: auto;
  }

  .service-card h3 {
    min-height: auto;
  }

  .other-services-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .other-service-item {
    padding: 22px 18px;
  }

  /* Team Section Mobile */
  .team-card {
    padding: 28px 18px;
  }

  .team-header h2 {
    font-size: 1.7rem;
  }

  .team-lead {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .team-sub {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 24px;
  }

  .team-expertise-tags {
    gap: 10px;
    padding-top: 20px;
  }

  .expertise-tag {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  /* LinkedIn Mobile */
  .linkedin-cta-box {
    padding: 32px 20px;
  }

  .linkedin-cta-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .linkedin-cta-text h2 {
    font-size: 1.5rem;
  }

  .linkedin-cta-text p {
    font-size: 0.92rem;
  }

  .btn-linkedin {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  /* Contact & Form */
  .contact-form-wrapper {
    padding: clamp(20px, 4vw, 26px) clamp(16px, 3.5vw, 20px);
    height: auto;
  }

  #contactForm {
    height: auto;
    gap: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group.form-group-message {
    flex: none;
    margin-bottom: 16px;
  }

  .form-group.form-group-message textarea {
    min-height: 120px;
    flex: none;
  }

  .turnstile-wrapper {
    margin-bottom: 14px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .turnstile-wrapper .cf-turnstile {
    max-width: 100%;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px; /* Prevents iOS Safari auto-zoom */
    padding: 12px 16px;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 50px 0;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }

  .cta-banner p {
    font-size: 0.95rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ---------- 4. COMPACT MOBILE SCREENS (max-width: 480px) ---------- */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .nav-logo-text {
    font-size: 1.15rem;
  }

  .nav-logo img {
    height: 36px;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-motto {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .section-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .about-partner-item {
    font-size: 0.88rem;
    padding: 14px;
  }

  .partner-icon {
    width: 34px;
    height: 34px;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .card-bullets li {
    font-size: 0.85rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ---------- 5. SHORT VIEWPORT / LANDSCAPE LAPTOPS & 16:9 SCREENS ---------- */
@media (max-height: 820px) and (min-width: 769px),
html[data-device="laptop"][data-height-tier="medium"] body {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: clamp(68px, 9.2vh, 86px);
    padding-bottom: clamp(50px, 7.5vh, 68px);
  }

  .hero-logo-wrapper {
    margin-bottom: clamp(8px, 1.4vh, 12px);
  }

  .hero-logo {
    max-height: clamp(87px, 13.2vh, 114px);
    width: auto;
  }

  .hero-motto {
    font-size: clamp(0.74rem, 0.95vw, 0.84rem);
    margin-bottom: clamp(6px, 1.2vh, 10px);
    letter-spacing: clamp(1.6px, 0.25vw, 2.5px);
  }

  .hero-title {
    font-size: clamp(1.58rem, 2.7vw, 2.35rem);
    margin-bottom: clamp(8px, 1.4vh, 12px);
    line-height: 1.2;
  }

  .hero-title .hero-line {
    display: block;
  }

  .hero-title .hero-line-1,
  .hero-title .hero-line-2 {
    white-space: nowrap;
  }

  .hero-title .highlight {
    display: inline-block;
  }

  .hero-description {
    font-size: clamp(0.84rem, 0.98vw, 0.94rem);
    line-height: 1.54;
    max-width: 840px;
  }

  .hero-buttons {
    margin-top: clamp(10px, 1.8vh, 16px);
    gap: 10px;
  }

  .hero-buttons .btn {
    padding: 9px 22px;
    font-size: 0.86rem;
  }

  .hero-stats {
    margin-top: clamp(16px, 2.2vh, 24px);
    gap: clamp(22px, 3.2vw, 40px);
  }

  .hero-stat-number {
    font-size: clamp(1.75rem, 2.3vw, 2.2rem);
  }

  .hero-stat-label {
    font-size: 0.76rem;
    margin-top: 3px;
  }

  .hero-wave svg {
    height: clamp(30px, 3.8vw, 48px);
  }

  .scope-modal {
    max-height: 88vh;
    overflow-y: auto;
  }
}

/* Extra short 16:9 viewports (e.g. 150% DPI scale, 1366x768, or open browser toolbars) */
@media (max-height: 700px) and (min-width: 769px),
html[data-device="laptop"][data-height-tier="short"] body {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: clamp(62px, 8vh, 74px);
    padding-bottom: clamp(42px, 6.5vh, 56px);
  }

  .hero-logo-wrapper {
    margin-bottom: 6px;
  }

  .hero-logo {
    max-height: clamp(75px, 12vh, 96px);
    width: auto;
  }

  .hero-motto {
    font-size: 0.72rem;
    margin-bottom: 5px;
    letter-spacing: 1.5px;
  }

  .hero-title {
    font-size: clamp(1.42rem, 2.4vw, 2.05rem);
    margin-bottom: 6px;
    line-height: 1.18;
  }

  .hero-title .hero-line {
    display: block;
  }

  .hero-title .hero-line-1,
  .hero-title .hero-line-2 {
    white-space: nowrap;
  }

  .hero-title .highlight {
    display: inline-block;
  }

  .hero-description {
    font-size: 0.80rem;
    line-height: 1.45;
    max-width: 780px;
  }

  .hero-buttons {
    margin-top: 8px;
    gap: 8px;
  }

  .hero-buttons .btn {
    padding: 8px 18px;
    font-size: 0.82rem;
  }

  .hero-stats {
    margin-top: 12px;
    gap: 24px;
  }

  .hero-stat-number {
    font-size: 1.6rem;
  }

  .hero-stat-label {
    font-size: 0.72rem;
    margin-top: 2px;
  }

  .hero-wave svg {
    height: clamp(24px, 3vw, 38px);
  }

  .scope-modal {
    max-height: 88vh;
    overflow-y: auto;
  }
}

/* ==========================================================================
   VIEW FULL SCOPE TRIGGERS & MODAL SYSTEM
   ========================================================================== */

.btn-scope-trigger {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(46, 196, 182, 0.1);
  border: 1px solid rgba(46, 196, 182, 0.35);
  color: var(--teal-200);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-primary);
  outline: none;
}

.service-card .btn-scope-trigger {
  background: rgba(15, 140, 128, 0.08);
  border: 1px solid rgba(15, 140, 128, 0.3);
  color: var(--teal-600);
  margin-top: 18px;
}

.service-card .btn-scope-trigger:hover {
  background: var(--teal-500);
  border-color: var(--teal-500);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(26, 171, 158, 0.35);
  transform: translateY(-2px);
}

.service-card .btn-scope-trigger:hover svg {
  stroke: #ffffff;
}

.other-service-item .btn-scope-trigger {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  margin-top: 16px;
}

.other-service-item .btn-scope-trigger:hover {
  background: #ffffff;
  color: var(--teal-700);
  border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.other-service-item .btn-scope-trigger:hover svg {
  stroke: var(--teal-700);
}

.service-card, .other-service-item {
  cursor: default;
}

/* Modal Overlay Backdrop */
.scope-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(4, 4, 17, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scope-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Modal Container */
.scope-modal {
  background: linear-gradient(150deg, #0c182c 0%, #060e1b 100%);
  border: 1px solid rgba(46, 196, 182, 0.35);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.85), 0 0 60px rgba(46, 196, 182, 0.16);
  border-radius: 20px;
  width: min(1360px, 95vw);
  max-width: 1360px;
  aspect-ratio: 16 / 9;
  max-height: min(780px, 93vh);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(46, 196, 182, 0.35) transparent;
  padding: 28px 36px 24px 36px;
  position: relative;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: scale(0.95) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.scope-modal::-webkit-scrollbar {
  width: 7px;
}

.scope-modal::-webkit-scrollbar-track {
  background: transparent;
}

.scope-modal::-webkit-scrollbar-thumb {
  background: rgba(46, 196, 182, 0.35);
  border-radius: 4px;
}

.scope-modal-backdrop.active .scope-modal {
  transform: scale(1) translateY(0);
}

.scope-modal-close {
  position: absolute;
  top: 20px;
  right: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.scope-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: rotate(90deg);
}

.scope-modal-close svg {
  width: 22px;
  height: 22px;
}

/* Modal Internal Layout */
.modal-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(46, 196, 182, 0.15);
  border: 1px solid rgba(46, 196, 182, 0.38);
  color: var(--teal-300);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}

.modal-header-title {
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
  line-height: 1.25;
}

.modal-header-tagline {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.98rem;
  line-height: 1.48;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-section-block {
  margin-bottom: 12px;
}

.modal-section-title {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--teal-400);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section-title svg {
  stroke: var(--teal-400);
  width: 17px;
  height: 17px;
}

.modal-points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.modal-points-grid.grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
}

.modal-point-card {
  background: rgba(14, 28, 48, 0.72);
  border: 1px solid rgba(46, 196, 182, 0.2);
  border-radius: 9px;
  padding: 10px 14px;
  transition: all 0.2s ease;
}

.modal-point-card:hover {
  background: rgba(20, 38, 64, 0.92);
  border-color: rgba(46, 196, 182, 0.45);
  transform: translateY(-2px);
}

.modal-point-card .point-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.modal-point-card .point-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--teal-400);
  background: rgba(46, 196, 182, 0.16);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.modal-point-card h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.32;
}

.modal-point-card p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.42;
  margin: 0;
}

.modal-insights-dual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.modal-info-box.precedent-full-row {
  width: 100%;
  margin-bottom: 10px;
}

.modal-info-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 12px 16px;
}

.modal-info-box.why-box {
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.09) 0%, rgba(13, 26, 45, 0.75) 100%);
  border-left: 4px solid var(--teal-400);
}

.modal-info-box.effective-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.09) 0%, rgba(13, 26, 45, 0.75) 100%);
  border-left: 4px solid var(--accent-cyan);
}

.modal-info-box.example-box {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.09) 0%, rgba(13, 26, 45, 0.75) 100%);
  border-left: 4px solid #60a5fa;
}

.modal-info-box .modal-section-title {
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.modal-info-box .modal-section-title svg {
  width: 16px;
  height: 16px;
}

.modal-info-box p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.46;
  margin: 0;
}

.precedent-source {
  display: inline-block;
  margin-left: 6px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.precedent-source a {
  color: var(--teal-300);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.precedent-source a:hover {
  color: var(--accent-cyan);
}

.modal-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-footer-hint {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
}

.btn-modal-consult {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 12px 26px;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(46, 196, 182, 0.35);
}

.btn-modal-consult:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46, 196, 182, 0.5);
  background: linear-gradient(135deg, var(--teal-300), var(--teal-500));
}

/* ==========================================================================
   SECURITY GRADING FRAMEWORK SECTION (5 Tiers: Teal to Navy Blue)
   ========================================================================== */

.security-grading {
  padding: clamp(30px, 3.8vh, 44px) 0;
  background: radial-gradient(ellipse at 50% 0%, #0e1e36 0%, #070d1a 60%, #040810 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 80px;
}

.security-grading::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 196, 182, 0.4), transparent);
}

.security-grading .container {
  max-width: min(1780px, 96vw);
  width: 100%;
  padding: 0 clamp(16px, 2.2vw, 36px);
}

.grading-header {
  max-width: 1100px;
  margin: 0 auto 16px auto;
  text-align: center;
}

.grading-header .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--teal-400);
  margin-bottom: 6px;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

.grading-header .section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--teal-400);
  border-radius: 2px;
  flex-shrink: 0;
}

.grading-header h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.2;
}

.grading-header h2 em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 400;
  background: linear-gradient(135deg, var(--teal-300), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.grading-header .section-subtitle {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 1020px;
  margin: 0 auto;
}

/* 5 Tiers Grid */
/* ==========================================================================
   INTERACTIVE SECURITY GRADER SECTION (NIST SP 800-30 & ISO 27005 Grounded)
   ========================================================================== */

.grader-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: clamp(16px, 1.8vw, 28px);
  max-width: 100%;
  width: 100%;
  margin: 0 auto 12px auto;
  align-items: stretch;
  box-sizing: border-box;
}

.grader-card {
  background: linear-gradient(145deg, rgba(14, 25, 45, 0.85), rgba(7, 13, 24, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: clamp(16px, 1.5vw, 22px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.grader-inputs-card {
  border-color: rgba(255, 255, 255, 0.09);
  min-width: 0;
}

/* Grader Card Header */
.grader-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.grader-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(46, 196, 182, 0.12);
  border: 1px solid rgba(46, 196, 182, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-400);
  flex-shrink: 0;
}

.grader-step-icon svg {
  width: 18px;
  height: 18px;
}

.grader-card-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2px 0;
}

.grader-card-header p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* Form Groups */
.grader-form-group {
  margin-bottom: 12px;
}

.grader-group-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 7px;
  cursor: default;
}

.grader-group-label .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-400);
  color: #040810;
  font-size: 0.72rem;
  font-weight: 800;
}

.grader-group-label > span:nth-child(2) {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.grader-group-label .label-hint {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.5);
  width: 100%;
  padding-left: 28px;
}

/* Hidden native select for form accessibility & scoring logic sync */
.grader-select-hidden {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

/* Custom Themed Futuristic Dropdown */
.custom-dropdown {
  position: relative;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.custom-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(135deg, rgba(14, 26, 46, 0.88) 0%, rgba(8, 15, 28, 0.96) 100%);
  border: 1px solid rgba(46, 196, 182, 0.32);
  border-radius: 12px;
  padding: 10px 16px;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  outline: none;
}

.custom-dropdown:hover .custom-dropdown-trigger,
.custom-dropdown.open .custom-dropdown-trigger,
.custom-dropdown:focus-visible .custom-dropdown-trigger {
  border-color: var(--teal-400);
  background: linear-gradient(135deg, rgba(18, 34, 60, 0.94) 0%, rgba(10, 20, 36, 0.99) 100%);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.22), 0 8px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.custom-dropdown-lead {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.dropdown-selected-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.22), rgba(13, 26, 45, 0.7));
  border: 1px solid rgba(46, 196, 182, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-300);
  flex-shrink: 0;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.custom-dropdown:hover .dropdown-selected-icon,
.custom-dropdown.open .dropdown-selected-icon {
  border-color: var(--teal-300);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(46, 196, 182, 0.4);
}

.dropdown-selected-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dropdown-selected-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.dropdown-selected-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal-300);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.2px;
}

.custom-dropdown-chevron {
  color: var(--teal-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
  flex-shrink: 0;
}

.custom-dropdown.open .custom-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--accent-cyan);
}

/* Custom Dropdown Menu List */
.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
  background: linear-gradient(165deg, rgba(12, 22, 40, 0.98) 0%, rgba(6, 12, 22, 0.99) 100%);
  border: 1px solid rgba(46, 196, 182, 0.38);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(46, 196, 182, 0.16);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.99);
  transition: all 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.custom-dropdown.open .custom-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Sleek Dropdown Scrollbar */
.custom-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.custom-dropdown-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
}
.custom-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(46, 196, 182, 0.45);
  border-radius: 4px;
}
.custom-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: var(--teal-400);
}

/* Dropdown Option Item */
.custom-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 4px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  outline: none;
}

.custom-dropdown-item:last-child {
  margin-bottom: 0;
}

.custom-dropdown-item .item-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.custom-dropdown-item .item-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.custom-dropdown-item .item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dropdown-item .item-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-dropdown-item .item-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-400);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

/* Hover & Focus state for option */
.custom-dropdown-item:hover,
.custom-dropdown-item:focus-visible {
  background: rgba(46, 196, 182, 0.09);
  border-color: rgba(46, 196, 182, 0.25);
  transform: translateX(3px);
}

.custom-dropdown-item:hover .item-icon-box,
.custom-dropdown-item:focus-visible .item-icon-box {
  background: rgba(46, 196, 182, 0.2);
  border-color: rgba(46, 196, 182, 0.4);
  color: var(--teal-300);
  box-shadow: 0 0 10px rgba(46, 196, 182, 0.3);
}

.custom-dropdown-item:hover .item-subtitle,
.custom-dropdown-item:focus-visible .item-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* Selected state for option */
.custom-dropdown-item.selected {
  background: linear-gradient(90deg, rgba(46, 196, 182, 0.16) 0%, rgba(13, 26, 45, 0.85) 100%);
  border-color: rgba(46, 196, 182, 0.45);
  border-left: 3px solid var(--teal-400);
}

.custom-dropdown-item.selected .item-icon-box {
  background: rgba(46, 196, 182, 0.25);
  border-color: var(--teal-400);
  color: #00f5d4;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.35);
}

.custom-dropdown-item.selected .item-title {
  color: #00f5d4;
}

.custom-dropdown-item.selected .item-check {
  opacity: 1;
  transform: scale(1);
  background: rgba(46, 196, 182, 0.15);
  box-shadow: 0 0 8px rgba(46, 196, 182, 0.35);
}

/* Chips Grid - Horizontally Stretched across 4 columns */
.grader-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.grader-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.25s ease;
  user-select: none;
  position: relative;
  min-height: 40px;
  will-change: transform, box-shadow;
}

.grader-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.grader-chip .chip-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), border-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease;
  color: transparent;
}

.grader-chip .chip-box svg polyline {
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.grader-chip .chip-text {
  font-size: 0.77rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.25;
  transition: color 0.25s ease;
}

.grader-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(46, 196, 182, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.grader-chip:active {
  transform: scale(0.97);
}

.grader-chip.active,
.grader-chip:has(input:checked) {
  background: rgba(46, 196, 182, 0.12);
  border-color: rgba(46, 196, 182, 0.55);
  box-shadow: 0 4px 16px rgba(46, 196, 182, 0.2), 0 0 10px rgba(46, 196, 182, 0.1);
  transform: translateY(-1px);
}

.grader-chip.active .chip-box,
.grader-chip:has(input:checked) .chip-box {
  background: var(--teal-400);
  border-color: var(--teal-400);
  color: #040810;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(46, 196, 182, 0.7);
}

.grader-chip.active .chip-box svg polyline,
.grader-chip:has(input:checked) .chip-box svg polyline {
  stroke-dashoffset: 0;
}

.grader-chip.active .chip-text,
.grader-chip:has(input:checked) .chip-text {
  color: #ffffff;
  font-weight: 700;
}

/* Grader Actions Bar */
.grader-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}

.btn-grader-reset {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-grader-reset:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-grader-reset svg {
  transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.btn-grader-reset:hover svg {
  transform: rotate(-90deg);
}

.btn-grader-reset.btn-reset-spinning svg {
  transform: rotate(-360deg);
}

.grader-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--teal-400);
  font-weight: 600;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-400);
  box-shadow: 0 0 8px var(--teal-400);
  animation: graderPulse 2s infinite ease-in-out;
}

@keyframes graderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ========================================
   RIGHT COLUMN: DYNAMIC RESULTS DASHBOARD
   ======================================== */

.grader-results-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-color: rgba(46, 196, 182, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  min-height: 100%;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Result Top Banner */
.result-top-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  min-width: 0;
  width: 100%;
}

.result-badge-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.result-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  width: fit-content;
  max-width: 100%;
  transition: background 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
  will-change: transform, box-shadow;
}

.result-tier-pill.tier-pulse {
  animation: tierPop 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes tierPop {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

.result-level-title {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1.15;
  transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  word-break: break-word;
  overflow-wrap: break-word;
}

.result-score-block {
  text-align: right;
  flex-shrink: 0;
}

.result-score-number {
  font-size: 1.95rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -1px;
  display: inline-block;
  transition: color 0.5s ease, text-shadow 0.5s ease;
  will-change: transform, text-shadow;
}

.result-score-number.score-ticking {
  animation: scoreTickPulse 0.16s ease-in-out infinite alternate;
}

@keyframes scoreTickPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}

.result-score-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

/* Visual 5-Tier Spectrum Meter */
.grade-spectrum-wrapper {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 14px 8px 14px;
  margin-bottom: 10px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.spectrum-track {
  position: relative;
  height: 11px;
  border-radius: 6px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 8px;
  overflow: visible;
  background: rgba(0, 0, 0, 0.4);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  min-width: 0;
  width: 100%;
}

.spectrum-seg {
  height: 100%;
  border-radius: 4px;
  position: relative;
  opacity: 0.38;
  filter: brightness(0.85) saturate(0.85);
  transform: scaleY(0.92);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
  will-change: opacity, filter, box-shadow, transform;
}

/* Glowing colors for each segment */
.spectrum-seg.seg-critical {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.35);
}
.spectrum-seg.seg-low {
  background: #f97316;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.35);
}
.spectrum-seg.seg-medium {
  background: #eab308;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.35);
}
.spectrum-seg.seg-high {
  background: #2ec4b6;
  box-shadow: 0 0 10px rgba(46, 196, 182, 0.35);
}
.spectrum-seg.seg-extreme {
  background: #87ddea;
  box-shadow: 0 0 12px rgba(135, 221, 234, 0.4);
}

.spectrum-seg.seg-critical.active-seg {
  opacity: 1 !important;
  transform: scaleY(1.1);
  box-shadow: 0 0 18px #ef4444, 0 0 34px rgba(239, 68, 68, 0.85);
  filter: brightness(1.25) saturate(1.2);
  animation: meterSegPulseCritical 2.2s infinite ease-in-out;
  z-index: 2;
}
.spectrum-seg.seg-low.active-seg {
  opacity: 1 !important;
  transform: scaleY(1.1);
  box-shadow: 0 0 18px #f97316, 0 0 34px rgba(249, 115, 22, 0.85);
  filter: brightness(1.25) saturate(1.2);
  animation: meterSegPulseLow 2.2s infinite ease-in-out;
  z-index: 2;
}
.spectrum-seg.seg-medium.active-seg {
  opacity: 1 !important;
  transform: scaleY(1.1);
  box-shadow: 0 0 18px #eab308, 0 0 34px rgba(234, 179, 8, 0.85);
  filter: brightness(1.3) saturate(1.2);
  animation: meterSegPulseMedium 2.2s infinite ease-in-out;
  z-index: 2;
}
.spectrum-seg.seg-high.active-seg {
  opacity: 1 !important;
  transform: scaleY(1.1);
  box-shadow: 0 0 18px #2ec4b6, 0 0 34px rgba(46, 196, 182, 0.85);
  filter: brightness(1.3) saturate(1.2);
  animation: meterSegPulseHigh 2.2s infinite ease-in-out;
  z-index: 2;
}
.spectrum-seg.seg-extreme.active-seg {
  opacity: 1 !important;
  transform: scaleY(1.1);
  box-shadow: 0 0 22px #87ddea, 0 0 40px rgba(135, 221, 234, 0.95);
  filter: brightness(1.35) saturate(1.25);
  animation: meterSegPulseExtreme 2.2s infinite ease-in-out;
  z-index: 2;
}

@keyframes meterSegPulseCritical {
  0%, 100% { filter: brightness(1.2) saturate(1.15); box-shadow: 0 0 16px #ef4444, 0 0 30px rgba(239, 68, 68, 0.75); }
  50% { filter: brightness(1.35) saturate(1.3); box-shadow: 0 0 22px #ef4444, 0 0 42px rgba(239, 68, 68, 0.95); }
}
@keyframes meterSegPulseLow {
  0%, 100% { filter: brightness(1.2) saturate(1.15); box-shadow: 0 0 16px #f97316, 0 0 30px rgba(249, 115, 22, 0.75); }
  50% { filter: brightness(1.35) saturate(1.3); box-shadow: 0 0 22px #f97316, 0 0 42px rgba(249, 115, 22, 0.95); }
}
@keyframes meterSegPulseMedium {
  0%, 100% { filter: brightness(1.25) saturate(1.15); box-shadow: 0 0 16px #eab308, 0 0 30px rgba(234, 179, 8, 0.75); }
  50% { filter: brightness(1.4) saturate(1.3); box-shadow: 0 0 22px #eab308, 0 0 42px rgba(234, 179, 8, 0.95); }
}
@keyframes meterSegPulseHigh {
  0%, 100% { filter: brightness(1.25) saturate(1.15); box-shadow: 0 0 16px #2ec4b6, 0 0 30px rgba(46, 196, 182, 0.75); }
  50% { filter: brightness(1.4) saturate(1.3); box-shadow: 0 0 22px #2ec4b6, 0 0 42px rgba(46, 196, 182, 0.95); }
}
@keyframes meterSegPulseExtreme {
  0%, 100% { filter: brightness(1.3) saturate(1.2); box-shadow: 0 0 20px #87ddea, 0 0 36px rgba(135, 221, 234, 0.85); }
  50% { filter: brightness(1.45) saturate(1.35); box-shadow: 0 0 26px #87ddea, 0 0 48px rgba(135, 221, 234, 1); }
}

/* Centered White Ball Pointer with Spring Physics */
.spectrum-pointer {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  transition: left 0.85s cubic-bezier(0.34, 1.25, 0.64, 1);
  pointer-events: none;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: left;
}

.spectrum-pointer-pin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid #060e1c;
  box-shadow: 0 0 10px #ffffff, 0 0 20px rgba(46, 196, 182, 0.85), 0 0 32px rgba(46, 196, 182, 0.6);
  transition: border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
  position: relative;
  animation: pinHaloBreath 2.2s infinite ease-in-out;
}

@keyframes pinHaloBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.spectrum-pointer-pin::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #060e1c;
  opacity: 0.8;
}

.spectrum-labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  text-align: center;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.5);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.spectrum-labels > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0 2px;
  gap: 2px;
  min-width: 0;
  transition: color 0.5s ease, opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.spectrum-labels .active-label {
  color: #ffffff;
  transform: translateY(-2px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.spectrum-tier-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.spectrum-tier-pct {
  display: block;
  font-size: 0.62rem;
  opacity: 0.75;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}

.spectrum-labels .active-label {
  color: #ffffff;
  font-weight: 800;
}

.spectrum-labels .active-label .spectrum-tier-pct {
  opacity: 1;
  color: var(--teal-300);
}

/* Posture Summary */
.grader-summary-box {
  margin-bottom: 9px;
}

.grader-summary-box p {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  margin: 0;
}

/* Dual Insights Grid (Exposure Profile & Identified Gaps) */
.grader-dual-insights {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 10px;
  margin-bottom: 9px;
}

/* Benchmark Box */
.grader-benchmark-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--teal-400);
  border-radius: 0 8px 8px 0;
  padding: 8px 12px;
  margin-bottom: 0;
}

.grader-benchmark-box h5 {
  font-size: 0.77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--teal-400);
  margin: 0 0 2px 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.grader-benchmark-box p {
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.38;
  margin: 0;
}

/* Identified Gaps Box */
.grader-gaps-box {
  margin-bottom: 0;
}

.grader-box-title {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.grader-gaps-box .grader-box-title {
  color: #f28b82;
}

.gaps-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gap-tag {
  background: rgba(242, 139, 130, 0.12);
  border: 1px solid rgba(242, 139, 130, 0.3);
  color: #ffb4ae;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gap-tag::before {
  content: '!';
  font-weight: 800;
}

.gap-tag-none {
  background: rgba(46, 196, 182, 0.12);
  border: 1px solid rgba(46, 196, 182, 0.3);
  color: var(--teal-300);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
}

/* Recommended Services Box */
.grader-remedy-box {
  margin-bottom: 10px;
}

.grader-remedy-box .grader-box-title {
  color: var(--teal-300);
}

.remedy-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
}

.remedy-service-item {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
  background: rgba(46, 196, 182, 0.08);
  border: 1px solid rgba(46, 196, 182, 0.22);
  padding: 3px 8px;
  border-radius: 5px;
  animation: remedyItemSlide 0.35s cubic-bezier(0.34, 1.25, 0.64, 1) backwards;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.remedy-service-item:hover {
  transform: translateX(4px);
  background: rgba(46, 196, 182, 0.14);
  border-color: rgba(46, 196, 182, 0.45);
}

@keyframes remedyItemSlide {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.remedy-service-item::before {
  content: '→';
  color: var(--teal-400);
  font-weight: 800;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.remedy-service-item:hover::before {
  transform: translateX(2px);
}

/* Grader Consultation CTA */
.btn-grader-consult {
  width: 100%;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: var(--font-primary);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease, filter 0.3s ease;
  color: #040810;
  background: linear-gradient(135deg, #2ec4b6, #1ca599);
  box-shadow: 0 4px 14px rgba(46, 196, 182, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-grader-consult::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-grader-consult:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 196, 182, 0.5), 0 0 15px rgba(46, 196, 182, 0.3);
  filter: brightness(1.1);
}

.btn-grader-consult:hover::after {
  left: 100%;
}

.btn-grader-consult:active {
  transform: translateY(0) scale(0.98);
}

.btn-grader-consult svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.btn-grader-consult:hover svg {
  transform: translateX(4px);
}

/* Framework Attribution & Disclaimer Card */
.grading-disclaimer-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 10px 18px;
  text-align: left;
  margin-top: 10px;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.disclaimer-header svg {
  stroke: var(--teal-400);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.disclaimer-header h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.disclaimer-body p {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.42;
  margin-bottom: 4px;
}

.disclaimer-body .disclaimer-subtext {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.38;
  margin-bottom: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Responsive adjustments for Grading & Modal across Laptops & Mobile */
@media (max-width: 1440px), (max-height: 820px) {
  .scope-modal {
    aspect-ratio: auto;
    height: auto;
    max-height: 88vh;
    padding: 24px 28px;
  }
}

@media (max-width: 1240px) {
  .grader-chips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grader-dual-insights {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 1024px) {
  .grader-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .grader-dual-insights {
    grid-template-columns: 1fr;
  }
  .scope-modal {
    aspect-ratio: auto;
    width: 95vw;
    max-height: 90vh;
    padding: 20px 18px;
  }
  .modal-points-grid,
  .modal-points-grid.grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-insights-dual-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .security-grading {
    padding: 24px 0 32px 0;
  }
  .security-grading .container {
    padding: 0 14px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .grading-header {
    margin-bottom: 12px;
  }
  .grading-header h2 {
    font-size: clamp(1.4rem, 4.5vw, 1.8rem);
  }
  .grading-header .section-subtitle {
    font-size: 0.82rem;
    line-height: 1.45;
  }
  .grader-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 12px;
  }
  .grader-card {
    padding: 16px 12px;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  .grader-card-header {
    gap: 10px;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }
  .grader-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .grader-card-header h3 {
    font-size: 1rem;
    word-break: break-word;
  }
  .grader-card-header p {
    font-size: 0.74rem;
    line-height: 1.35;
  }
  .grader-form-group {
    margin-bottom: 10px;
  }
  .grader-group-label {
    gap: 4px 8px;
    margin-bottom: 6px;
  }
  .grader-group-label > span:nth-child(2) {
    font-size: 0.84rem;
  }
  .grader-group-label .label-hint {
    padding-left: 0;
    margin-top: 2px;
    font-size: 0.7rem;
    line-height: 1.3;
  }
  .custom-dropdown-trigger {
    padding: 8px 12px;
    gap: 10px;
    border-radius: 10px;
  }
  .dropdown-selected-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }
  .dropdown-selected-icon svg {
    width: 16px;
    height: 16px;
  }
  .dropdown-selected-title {
    font-size: 0.84rem;
  }
  .dropdown-selected-badge {
    font-size: 0.68rem;
  }
  .custom-dropdown-menu {
    max-height: 280px;
    border-radius: 12px;
    padding: 6px;
  }
  .custom-dropdown-item {
    padding: 8px 10px;
    gap: 8px;
    border-radius: 8px;
  }
  .custom-dropdown-item .item-icon-box {
    width: 28px;
    height: 28px;
  }
  .custom-dropdown-item .item-title {
    white-space: normal;
    font-size: 0.82rem;
    line-height: 1.25;
    word-break: break-word;
  }
  .custom-dropdown-item .item-subtitle {
    white-space: normal;
    font-size: 0.69rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .grader-chips-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .grader-chip {
    padding: 7px 10px;
    min-height: 36px;
    border-radius: 7px;
    gap: 8px;
  }
  .grader-chip .chip-box {
    width: 15px;
    height: 15px;
  }
  .grader-chip .chip-text {
    font-size: 0.76rem;
    line-height: 1.25;
    word-break: break-word;
  }
  .grader-actions-bar {
    padding-top: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .btn-grader-reset {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
  .grader-live-indicator {
    font-size: 0.71rem;
  }
  .result-top-banner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }
  .result-badge-block {
    flex: 1;
    min-width: 160px;
  }
  .result-tier-pill {
    padding: 3px 8px;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
  }
  .result-level-title {
    font-size: 1.2rem;
    word-break: break-word;
  }
  .result-score-block {
    text-align: right;
  }
  .result-score-number {
    font-size: 1.65rem;
  }
  .result-score-label {
    font-size: 0.66rem;
  }
  .grade-spectrum-wrapper {
    padding: 8px 10px 6px 10px;
    border-radius: 8px;
    margin-bottom: 8px;
  }
  .spectrum-track {
    height: 10px;
    gap: 2px;
    margin-bottom: 6px;
  }
  .spectrum-labels {
    font-size: 0.58rem;
    letter-spacing: 0;
  }
  .spectrum-tier-name {
    font-size: 0.58rem;
  }
  .spectrum-tier-pct {
    font-size: 0.52rem;
  }
  .grader-summary-box {
    margin-bottom: 8px;
  }
  .grader-summary-box p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
  .grader-dual-insights {
    gap: 8px;
    margin-bottom: 8px;
  }
  .grader-benchmark-box {
    padding: 7px 10px;
    border-radius: 0 6px 6px 0;
  }
  .grader-benchmark-box h5 {
    font-size: 0.73rem;
    word-break: break-word;
  }
  .grader-benchmark-box p {
    font-size: 0.73rem;
    line-height: 1.35;
    word-break: break-word;
  }
  .grader-box-title {
    font-size: 0.72rem;
    margin-bottom: 4px;
  }
  .gaps-tags-list,
  .remedy-services-list {
    gap: 5px;
  }
  .gap-tag {
    font-size: 0.7rem;
    padding: 2px 6px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }
  .remedy-service-item {
    font-size: 0.72rem;
    padding: 2px 6px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.25;
  }
  .btn-grader-consult {
    padding: 10px 14px;
    font-size: 0.82rem;
    white-space: normal;
    text-align: center;
    border-radius: 8px;
    margin-top: 4px;
  }
  .grading-disclaimer-card {
    padding: 10px 12px;
    border-radius: 8px;
    margin-top: 8px;
  }
  .disclaimer-header {
    gap: 6px;
  }
  .disclaimer-header svg {
    width: 16px;
    height: 16px;
  }
  .disclaimer-header h4 {
    font-size: 0.76rem;
    word-break: break-word;
  }
  .disclaimer-body p,
  .disclaimer-body .disclaimer-subtext {
    font-size: 0.71rem;
    line-height: 1.38;
    word-break: break-word;
  }
  .modal-points-grid,
  .modal-points-grid.grid-2x2 {
    grid-template-columns: 1fr;
  }
  .scope-modal {
    padding: 18px 16px;
  }
  .scope-modal-close {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
  }
  .modal-footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-modal-consult {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .security-grading .container {
    padding: 0 10px;
  }
  .grader-card {
    padding: 14px 10px;
  }
  .grader-actions-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .result-top-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .result-score-block {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .result-score-number {
    font-size: 1.55rem;
  }
  .spectrum-labels {
    font-size: 0.54rem;
  }
  .spectrum-tier-name {
    font-size: 0.54rem;
  }
  .spectrum-tier-pct {
    font-size: 0.48rem;
  }
}

@media (max-width: 380px) {
  .security-grading .container {
    padding: 0 8px;
  }
  .grader-card {
    padding: 12px 8px;
  }
  .spectrum-labels {
    font-size: 0.49rem;
  }
  .spectrum-tier-name {
    font-size: 0.49rem;
  }
  .spectrum-tier-pct {
    font-size: 0.44rem;
  }
  .btn-grader-consult {
    font-size: 0.78rem;
    padding: 9px 10px;
  }
  .turnstile-wrapper .cf-turnstile {
    transform: scale(0.88);
    transform-origin: left top;
    margin-bottom: -8px;
  }
}

/* ============================================================
   COOKIE CONSENT BANNER (GDPR / DPDP ACT COMPLIANT)
   ============================================================ */
.cookie-consent-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140px);
  width: min(94vw, 840px);
  background: rgba(6, 24, 38, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(46, 196, 182, 0.35);
  border-radius: var(--radius-xl, 16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(46, 196, 182, 0.15);
  padding: 20px 24px;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
}

.cookie-consent-banner.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent-body {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.cookie-consent-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  background: rgba(46, 196, 182, 0.12);
  border: 1px solid rgba(46, 196, 182, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal-300, #2ec4b6);
  margin-top: 2px;
}

.cookie-consent-info {
  flex: 1;
}

.cookie-consent-title {
  font-family: var(--font-heading, inherit);
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-consent-title .privacy-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(46, 196, 182, 0.18);
  color: var(--teal-300, #2ec4b6);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(46, 196, 182, 0.35);
}

.cookie-consent-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.cookie-consent-desc a {
  color: var(--teal-300, #2ec4b6);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.cookie-consent-desc a:hover {
  color: #ffffff;
}

.cookie-consent-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-reject {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.btn-cookie-reject:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-cookie-accept {
  background: linear-gradient(135deg, var(--teal-400, #2ec4b6), var(--teal-500, #1f9a8f));
  border: none;
  color: #03111e;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(46, 196, 182, 0.35);
  transition: all 0.25s ease;
}

.btn-cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 196, 182, 0.5);
  filter: brightness(1.08);
}

@media (max-width: 768px) {
  .cookie-consent-banner {
    bottom: 12px;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    max-width: none !important;
    transform: translateY(140px) !important;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    gap: 16px;
    border-radius: var(--radius-lg, 12px);
  }
  .cookie-consent-banner.show {
    transform: translateY(0) !important;
  }
  .cookie-consent-actions {
    flex-direction: column-reverse;
    width: 100%;
  }
  .btn-cookie-reject,
  .btn-cookie-accept {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }
}

/* ==========================================================================
   ALL-OUT HIGH-PERFORMANCE ANIMATIONS & MICRO-INTERACTIONS SUITE
   Strictly zero layout shifts, zero dimensional or positional changes.
   60fps GPU-accelerated transforms, filters, and glow transitions.
   ========================================================================== */

/* 1. Global Scroll Reveals (Hardware-Accelerated) */
.reveal, .reveal-left, .reveal-right {
  will-change: opacity, transform;
  transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 2. Core Services & IT Solutions Cards */
.service-card,
.other-service-item {
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease !important;
  will-change: transform, box-shadow;
}

.service-card:hover,
.other-service-item:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 30px rgba(46, 196, 182, 0.22) !important;
  border-color: rgba(46, 196, 182, 0.55) !important;
}

.service-card .service-icon,
.other-service-item .service-icon {
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.4s ease !important;
}

.service-card:hover .service-icon,
.other-service-item:hover .service-icon {
  transform: scale(1.1) rotate(5deg) !important;
  box-shadow: 0 0 20px rgba(46, 196, 182, 0.6) !important;
}

.card-bullets li {
  transition: transform 0.25s ease, color 0.25s ease;
}

.service-card:hover .card-bullets li {
  transform: translateX(3px);
}

.service-card .btn-scope-trigger {
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease !important;
}

.service-card:hover .btn-scope-trigger {
  background: rgba(46, 196, 182, 0.2) !important;
  border-color: var(--teal-400) !important;
  box-shadow: 0 0 14px rgba(46, 196, 182, 0.35) !important;
}

.service-card .btn-scope-trigger svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.service-card:hover .btn-scope-trigger svg {
  transform: translateX(4px);
}

/* 3. About Section Partner Items & Brand Logo Showcase */
.about-partner-item {
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease,
              background 0.35s ease !important;
  will-change: transform, box-shadow;
}

.about-partner-item:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(46, 196, 182, 0.5) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25), 0 0 20px rgba(46, 196, 182, 0.18) !important;
}

.about-partner-item .partner-icon {
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease !important;
}

.about-partner-item:hover .partner-icon {
  transform: scale(1.15) rotate(6deg) !important;
  box-shadow: 0 0 15px rgba(46, 196, 182, 0.5) !important;
}

.brand-logo-circle {
  animation: brandCircleBreathe 4.5s infinite ease-in-out;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.brand-logo-circle:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(46, 196, 182, 0.45);
}

@keyframes brandCircleBreathe {
  0%, 100% { box-shadow: 0 0 20px rgba(46, 196, 182, 0.25); }
  50% { box-shadow: 0 0 35px rgba(46, 196, 182, 0.45), 0 0 50px rgba(46, 196, 182, 0.2); }
}

/* 4. Our Team Section & Expertise Tags */
.team-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease !important;
  will-change: transform, box-shadow;
}

.team-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 25px rgba(46, 196, 182, 0.15) !important;
  border-color: rgba(46, 196, 182, 0.35) !important;
}

.expertise-tag {
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1),
              border-color 0.3s ease,
              background 0.3s ease,
              box-shadow 0.3s ease !important;
  will-change: transform, box-shadow;
}

.expertise-tag:hover {
  transform: translateY(-3px) scale(1.02) !important;
  border-color: rgba(46, 196, 182, 0.6) !important;
  background: rgba(46, 196, 182, 0.12) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25), 0 0 15px rgba(46, 196, 182, 0.25) !important;
}

.expertise-tag svg {
  transition: transform 0.3s ease;
}

.expertise-tag:hover svg {
  transform: scale(1.2) rotate(4deg);
}

/* 5. LinkedIn Section Banner & Badge */
.linkedin-badge-icon {
  animation: linkedinIconPulse 3s infinite ease-in-out;
  transition: transform 0.35s ease;
}

.linkedin-cta-box:hover .linkedin-badge-icon {
  transform: scale(1.1) rotate(-4deg);
}

@keyframes linkedinIconPulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(0, 119, 181, 0.4)); }
  50% { filter: drop-shadow(0 0 16px rgba(0, 119, 181, 0.8)); }
}

.btn-linkedin {
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease !important;
}

.btn-linkedin:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 10px 25px rgba(0, 119, 181, 0.5), 0 0 20px rgba(0, 119, 181, 0.3) !important;
}

.btn-linkedin svg {
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.btn-linkedin:hover svg {
  transform: translate(3px, -3px);
}

/* 6. Form Inputs & Submit Buttons */
.form-group input,
.form-group textarea,
.form-group select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease !important;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--teal-400) !important;
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.22), 0 0 16px rgba(46, 196, 182, 0.28) !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.btn-submit {
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease, filter 0.3s ease !important;
}

.btn-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(46, 196, 182, 0.45) !important;
  filter: brightness(1.1);
}

.btn-submit:active {
  transform: translateY(0) scale(0.98) !important;
}

/* 7. Back To Top Floating Glow */
.back-to-top {
  animation: bttFloat 3.5s infinite ease-in-out;
  transition: transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
}

@keyframes bttFloat {
  0%, 100% { transform: translateY(0); box-shadow: 0 4px 15px rgba(46, 196, 182, 0.35); }
  50% { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(46, 196, 182, 0.55); }
}

.back-to-top:hover {
  transform: translateY(-6px) scale(1.08) !important;
  box-shadow: 0 10px 28px rgba(46, 196, 182, 0.65) !important;
}

/* 8. Accessibility: Prefers-Reduced-Motion Safeguard */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

