@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

/* --- CSS CUSTOM PROPERTIES (DESIGN SYSTEM) --- */
:root {
  /* Color Palette */
  --jnj-navy: #171A21;
  --jnj-navy-rgb: 23, 26, 33;
  --steel-blue: #3D7A99;
  --steel-blue-rgb: 61, 122, 153;
  --steel-tint: #EAF2F6;
  --gold-accent: #B9975B;
  --white: #FFFFFF;
  --cyber-cyan: #00E5FF;
  
  /* Rich Grayscale Gradients */
  --bg-dark-base: #0B0C0E;
  --bg-dark-elevated: #111318;
  --bg-glass-dark: rgba(17, 19, 24, 0.55);
  --bg-glass-light: rgba(234, 242, 246, 0.7);
  --border-dark: rgba(255, 255, 255, 0.08);
  --border-cyber: rgba(0, 229, 255, 0.15);
  --border-light: rgba(61, 122, 153, 0.15);
  --text-dark-primary: #FFFFFF;
  --text-dark-secondary: #9EA5B4;
  --text-light-primary: #171A21;
  --text-light-secondary: #4A5260;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --container-width: 1320px;
  
  /* System Defaults */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* --- RESET & BASE STYLES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark-base);
  color: var(--text-dark-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark-base);
}
::-webkit-scrollbar-thumb {
  background: var(--jnj-navy);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--steel-blue);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--white) 30%, var(--steel-blue) 70%, var(--cyber-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #FFEAB5 0%, var(--gold-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-bar {
  display: inline-block;
  width: 48px;
  height: 4px;
  background-color: var(--steel-blue);
  margin-bottom: 1.5rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  letter-spacing: 0.02em;
  border: none;
}

.btn-primary {
  background-color: var(--steel-blue);
  color: var(--white);
  border: 1px solid var(--steel-blue);
  box-shadow: 0 4px 20px rgba(61, 122, 153, 0.25);
}

.btn-primary:hover {
  background-color: #4A8EB2;
  border-color: #4A8EB2;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(61, 122, 153, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-light {
  background-color: var(--jnj-navy);
  color: var(--white);
  border: 1px solid var(--jnj-navy);
}

.btn-light:hover {
  background-color: #272C38;
  border-color: #272C38;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(23, 26, 33, 0.25);
}

/* --- NAVIGATION BAR --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(11, 12, 14, 0.2);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.25rem 0;
  background-color: rgba(11, 12, 14, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.logo-wrapper {
  width: 44px;
  height: 44px;
  color: var(--steel-blue);
  transition: var(--transition-smooth);
}

.logo-link:hover .logo-wrapper {
  color: var(--cyber-cyan);
  transform: rotate(10deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

.logo-text span {
  color: var(--steel-blue);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark-secondary);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--cyber-cyan);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-phone {
  text-decoration: none;
  color: var(--steel-blue);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.nav-phone:hover {
  color: var(--cyber-cyan);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition-fast);
}

/* --- HERO SECTION (ULTRA-CLEAN 3D GRAPHIC VIEWPORT) --- */
.hero-clean {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 80px 2rem 5rem 2rem;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(circle at center, #12253a 0%, #0b0c0e 100%);
}

/* Spline Canvas Container (Interactive background layer) */
.spline-container-full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* Sits behind overlays, but takes clicks */
}

/* Center title content (Above the earth) */
.hero-clean-center {
  position: relative;
  z-index: 5;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* Let clicks pass to 3D earth */
  margin-bottom: 2rem;
}

.hero-clean-title {
  font-family: 'Space Grotesk', 'Outfit', sans-serif;
  font-size: 11rem;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.08em;
  text-indent: 0.08em;
  text-transform: uppercase;
  pointer-events: auto; /* Clickable */
  background: linear-gradient(135deg, #ffffff 15%, var(--steel-blue) 55%, var(--cyber-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.45));
}

/* Responsive clean title size */
@media (max-width: 992px) {
  .hero-clean-title {
    font-size: 7rem;
  }
}
@media (max-width: 576px) {
  .hero-clean-title {
    font-size: 4.5rem;
  }
}

/* Centered hero logo mark (replaces the JNJ wordmark) */
.hero-clean-logo {
  margin-top: -240px; /* raised well above the 3D earth */
  pointer-events: auto; /* clickable/interactive over the 3D scene */
  user-select: none;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 30px rgba(0, 229, 255, 0.15));
  animation: hero-logo-float 6s ease-in-out infinite;
}

.hero-clean-logo svg {
  width: 230px;
  height: 230px;
  display: block;
}

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

@media (max-width: 992px) {
  .hero-clean-logo {
    margin-top: -160px;
  }
  .hero-clean-logo svg {
    width: 170px;
    height: 170px;
  }
}
@media (max-width: 576px) {
  .hero-clean-logo {
    margin-top: -110px;
  }
  .hero-clean-logo svg {
    width: 120px;
    height: 120px;
  }
}
/* Landscape / short viewports (phones held sideways) */
@media (max-height: 560px) {
  .hero-clean-logo {
    margin-top: -40px;
  }
  .hero-clean-logo svg {
    width: 110px;
    height: 110px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-clean-logo {
    animation: none;
  }
}

/* Bottom centered action button */
.hero-clean-bottom {
  position: relative;
  z-index: 5;
  pointer-events: auto; /* Clickable */
  animation: bounce-slow 3s infinite ease-in-out;
}

@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Sleek bottom gradient overlay to blend Spline beautifully with the next section */
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, rgba(11, 12, 14, 0) 0%, var(--bg-dark-base) 100%);
  z-index: 3;
  pointer-events: none;
}

/* --- SECTIONS --- */
section {
  padding: 8rem 0;
  position: relative;
}

.section-dark {
  background-color: var(--bg-dark-base);
  color: var(--text-dark-primary);
}

.section-light {
  background-color: var(--steel-tint);
  color: var(--text-light-primary);
}

.section-header {
  max-width: 720px;
  margin-bottom: 5rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--steel-blue);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: 3rem;
  line-height: 1.15;
  text-transform: uppercase;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-dark-secondary);
}

.section-light .section-desc {
  color: var(--text-light-secondary);
}

/* --- SERVICES (SCOPE OF EXPERTISE) --- */
.services-layout {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 4rem;
}

.services-left {
  position: sticky;
  top: 120px;
  align-self: start;
}

.services-nav {
  list-style: none;
  margin-top: 2rem;
}

.services-nav li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-dark);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.services-nav-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--steel-blue);
}

.services-nav-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark-secondary);
  transition: var(--transition-fast);
  flex-grow: 1;
  padding-left: 1.5rem;
}

.services-nav li::after {
  content: '→';
  color: var(--cyber-cyan);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-fast);
}

.services-nav li:hover .services-nav-title,
.services-nav li.active .services-nav-title {
  color: var(--white);
}

.services-nav li.active::after {
  opacity: 1;
  transform: translateX(0);
}

.services-display {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.service-card {
  background-color: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  display: none;
  animation: fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.service-card.active {
  display: block;
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 1.5rem;
}

.service-card-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(61, 122, 153, 0.25);
  line-height: 1;
}

.service-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background-color: var(--steel-tint);
  border-radius: 50%;
  color: var(--steel-blue);
}

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

.service-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-long-desc {
  color: var(--text-dark-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.service-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.spec-item {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem;
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--steel-blue);
  margin-bottom: 0.25rem;
  display: block;
}

.spec-val {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 500;
}

.service-features-list {
  list-style: none;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.75rem;
  color: var(--text-dark-secondary);
  font-size: 0.95rem;
}

.service-features-list li::before {
  content: '✓';
  color: var(--steel-blue);
  font-weight: bold;
}

/* --- THE UBIQUITI STANDARD (pricing page) --- */
.standard-panel {
  display: grid;
  grid-template-columns: 50% 50%;
  background-color: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
}

.standard-content {
  padding: 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.standard-content h3 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.standard-content p {
  color: var(--text-dark-secondary);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.standard-bullets {
  list-style: none;
}

.standard-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.standard-bullet-icon {
  width: 24px;
  height: 24px;
  background-color: rgba(61, 122, 153, 0.1);
  border: 1px solid rgba(61, 122, 153, 0.2);
  border-radius: 50%;
  color: var(--steel-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.standard-bullet-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.standard-bullet-text p {
  font-size: 0.88rem;
  color: var(--text-dark-secondary);
  margin-bottom: 0;
}

.standard-visual {
  background: linear-gradient(135deg, var(--jnj-navy) 0%, #1c2b3e 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.visual-logo-container {
  width: 140px;
  height: 140px;
  color: var(--steel-blue);
  opacity: 0.15;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tech-hardware-stack {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hardware-rack-unit {
  background: rgba(12, 13, 17, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--steel-blue);
  border-radius: 4px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-dark-secondary);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.hardware-rack-unit.active {
  border-left-color: var(--gold-accent);
}

.rack-leds {
  display: flex;
  gap: 6px;
}

.led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #2e3c43;
}

.led.green {
  background-color: #2ed573;
  box-shadow: 0 0 8px #2ed573;
  animation: blink 1.5s infinite;
}

.led.blue {
  background-color: var(--steel-blue);
  box-shadow: 0 0 8px var(--steel-blue);
  animation: blink 2.5s infinite;
}

/* --- PRICING TIERS & CALCULATOR (pricing page) --- */
.pricing-tabs-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
}

.pricing-tabs {
  display: inline-flex;
  background-color: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dark);
  border-radius: 50px;
  padding: 6px;
}

.pricing-tab {
  background: transparent;
  border: none;
  color: var(--text-dark-secondary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.pricing-tab.active {
  background-color: var(--steel-blue);
  color: var(--white);
}

.pricing-deck {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  animation: fade-in-up 0.5s ease forwards;
}

.pricing-deck.active {
  display: grid;
}

.pricing-card {
  background-color: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-md);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-smooth);
}

.pricing-card.popular {
  border-color: var(--steel-blue);
  transform: scale(1.03);
  box-shadow: 0 15px 35px rgba(61, 122, 153, 0.15);
}

.pricing-card.popular::before {
  content: 'RECOMMENDED';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--steel-blue);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
}

.pricing-card-header {
  margin-bottom: 2rem;
}

.pricing-tier {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--steel-blue);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  display: block;
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  align-self: flex-start;
  margin-top: 4px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-dark-secondary);
}

.pricing-card-desc {
  font-size: 0.9rem;
  color: var(--text-dark-secondary);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-dark);
}

.pricing-features {
  list-style: none;
  margin-bottom: 3rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-dark-secondary);
  margin-bottom: 1rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--steel-blue);
  font-weight: bold;
}

.pricing-features li.excluded {
  color: rgba(255, 255, 255, 0.2);
  text-decoration: line-through;
}

.pricing-features li.excluded::before {
  content: '✕';
  color: rgba(255, 255, 255, 0.2);
}

/* --- TEAM & WHY CHOOSE US (about page) --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.team-card {
  background-color: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-md);
  padding: 3rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--steel-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-smooth);
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(61, 122, 153, 0.4);
}

.team-card:hover::before {
  transform: scaleX(1);
}

.team-role {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--steel-blue);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  display: block;
}

.team-name {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.team-bio {
  font-size: 0.9rem;
  color: var(--text-dark-secondary);
  margin-top: 1rem;
}

.team-contact {
  list-style: none;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-dark);
}

.team-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-dark-secondary);
  margin-bottom: 0.75rem;
}

.team-contact a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition-fast);
}

.team-contact a:hover {
  color: var(--steel-blue);
}

.team-icon {
  width: 16px;
  height: 16px;
  color: var(--steel-blue);
  flex-shrink: 0;
}

/* Why JNJ (Brand Innovation model) layout on About page */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.why-card {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius-md);
  padding: 3rem 2rem;
  transition: var(--transition-smooth);
}

.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(23, 26, 33, 0.05);
}

.why-card-icon {
  width: 48px;
  height: 48px;
  background-color: var(--steel-tint);
  border-radius: 50%;
  color: var(--steel-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.why-card-icon svg {
  width: 24px;
  height: 24px;
}

.why-card h3 {
  font-size: 1.35rem;
  color: var(--jnj-navy);
  margin-bottom: 1rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--text-light-secondary);
}

/* --- CLIENT PORTAL & AUTHENTICATION SCREENS --- */
.auth-container {
  max-width: 450px;
  margin: 4rem auto 0 auto;
}

.auth-card {
  background-color: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-lg);
  padding: 3.5rem;
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 2.5rem;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-dark-secondary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.75rem 0;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
  border-bottom: 2px solid transparent;
}

.auth-tab.active {
  color: var(--white);
  border-bottom-color: var(--steel-blue);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: block;
}

/* Email Verification Dialog Popup Overlay */
.verification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(11, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.verification-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.verification-modal {
  background-color: var(--bg-dark-elevated);
  border: 1px solid var(--border-cyber);
  border-radius: var(--border-radius-lg);
  max-width: 460px;
  width: 90%;
  padding: 3.5rem;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 229, 255, 0.1);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.verification-overlay.active .verification-modal {
  transform: translateY(0);
}

.verification-icon {
  width: 72px;
  height: 72px;
  background-color: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 50%;
  color: var(--cyber-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem auto;
}

.verification-icon svg {
  width: 36px;
  height: 36px;
}

.verification-modal h3 {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.verification-modal p {
  color: var(--text-dark-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* --- CLIENT DASHBOARD SYSTEM PORTAL --- */
.portal-dashboard {
  display: none;
  animation: fade-in-up 0.6s ease forwards;
}

.portal-dashboard.active {
  display: block;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-dark);
}

.dashboard-user-info h2 {
  font-size: 2.25rem;
  color: var(--white);
}

.dashboard-user-info p {
  color: var(--text-dark-secondary);
  font-size: 0.9rem;
}

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

.dashboard-left-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.dashboard-card {
  background-color: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
}

.dashboard-card-title {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* UniFi Active Device status grid */
.device-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.device-badge-card {
  background-color: rgba(255,255,255,0.02);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  position: relative;
}

.device-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.device-badge-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
}

.device-badge-status {
  font-size: 0.7rem;
  color: var(--text-dark-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.device-led-glow {
  width: 6px;
  height: 6px;
  background-color: #2ed573;
  border-radius: 50%;
  box-shadow: 0 0 6px #2ed573;
}

.device-led-glow.offline {
  background-color: #ff4757;
  box-shadow: 0 0 6px #ff4757;
}

.device-badge-value {
  font-family: monospace;
  font-size: 1.15rem;
  color: var(--cyber-cyan);
}

/* Camera canvas screen mockup */
.camera-feed-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.camera-feed-box {
  background-color: var(--bg-dark-base);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-sm);
  height: 200px;
  position: relative;
  overflow: hidden;
}

.camera-canvas {
  width: 100%;
  height: 100%;
}

.camera-feed-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  font-family: monospace;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  z-index: 5;
  pointer-events: none;
}

.camera-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(11, 12, 14, 0.6);
  padding: 2px 8px;
  border-radius: 4px;
}

.camera-led-blink {
  width: 6px;
  height: 6px;
  background-color: #ff4757;
  border-radius: 50%;
  animation: blink 1.2s infinite;
}

/* Smart Access Door Switch widget */
.door-control-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.door-switch-row {
  background-color: rgba(255,255,255,0.02);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.door-switch-info h4 {
  font-size: 0.95rem;
  color: var(--white);
}

.door-switch-info p {
  font-size: 0.75rem;
  color: var(--text-dark-secondary);
}

.switch-input-toggle {
  appearance: none;
  width: 52px;
  height: 28px;
  background-color: #2e3c43;
  border-radius: 30px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: var(--transition-fast);
}

.switch-input-toggle::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background-color: var(--white);
  border-radius: 50%;
  transition: var(--transition-fast);
}

.switch-input-toggle:checked {
  background-color: var(--steel-blue);
}

.switch-input-toggle:checked::before {
  left: 27px;
}

/* Brand Modernization Roadmap copy */
.roadmap-list {
  list-style: none;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dark-secondary);
}

.roadmap-item:last-child {
  margin-bottom: 0;
}

.roadmap-status-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: bold;
  margin-top: 2px;
}

.roadmap-item.completed .roadmap-status-icon {
  background-color: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.3);
  color: #2ed573;
}

.roadmap-item.active .roadmap-status-icon {
  background-color: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--cyber-cyan);
}

.roadmap-item.pending .roadmap-status-icon {
  background-color: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dark);
  color: var(--text-dark-secondary);
}

.roadmap-item.completed {
  color: var(--white);
}

.roadmap-item.active {
  color: var(--white);
  font-weight: 500;
}

.roadmap-text h5 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.roadmap-text p {
  font-size: 0.8rem;
  color: var(--text-dark-secondary);
  line-height: 1.4;
}

/* --- CONTACT & CONSULTATION --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-channels {
  margin-top: 3rem;
}

.contact-channel-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-channel-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  color: var(--steel-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.contact-channel-details h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--steel-blue);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.contact-channel-details p,
.contact-channel-details a {
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-heading);
}

.contact-channel-details a:hover {
  color: var(--steel-blue);
}

.contact-lead-time {
  background-color: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-dark-secondary);
  width: fit-content;
}

.contact-form-panel {
  background-color: var(--bg-dark-elevated);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-lg);
  padding: 4rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  grid-column: span 2;
}

.contact-form label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--steel-blue);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background-color: var(--bg-dark-base);
  border: 1px solid var(--border-dark);
  border-radius: var(--border-radius-sm);
  padding: 1rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--white);
  transition: var(--transition-fast);
  outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--steel-blue);
  box-shadow: 0 0 10px rgba(61, 122, 153, 0.2);
}

.contact-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233D7A99' d='M10.293,3.293,6,7.586,1.707,3.293A1,1,0,0,0,.293,4.707l5,5a1,1,0,0,0,1.414,0l5-5a1,1,0,1,0-1.414-1.414Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 3rem;
}

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

/* --- FOOTER --- */
footer {
  background-color: var(--jnj-navy);
  border-top: 1px solid var(--border-dark);
  padding: 6rem 0 2rem 0;
  color: var(--text-dark-secondary);
  position: relative;
  z-index: 5;
}

.footer-top {
  display: grid;
  grid-template-columns: 40% 20% 20% 20%;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-brand .logo-wrapper {
  width: 32px;
  height: 32px;
  color: var(--steel-blue);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 320px;
  margin-bottom: 1.5rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  color: var(--text-dark-secondary);
  transition: var(--transition-fast);
}

.footer-socials a:hover {
  background-color: var(--steel-blue);
  color: var(--white);
  border-color: var(--steel-blue);
}

.footer-links-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.footer-links-col ul {
  list-style: none;
}

.footer-links-col ul li {
  margin-bottom: 0.75rem;
}

.footer-links-col ul a {
  text-decoration: none;
  color: var(--text-dark-secondary);
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-links-col ul a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-meta-docs {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-meta-docs span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-meta-docs span::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--steel-blue);
  border-radius: 50%;
}

.footer-nav-page-num {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--steel-blue);
}

/* --- LEGAL PAGES (Privacy / Terms) --- */
.legal-body {
  color: var(--text-dark-secondary);
  font-size: 0.98rem;
  line-height: 1.75;
}

.legal-body h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
}

.legal-body p {
  margin-bottom: 1.1rem;
}

.legal-body ul {
  margin: 0 0 1.1rem 1.25rem;
  padding-left: 0.5rem;
}

.legal-body li {
  margin-bottom: 0.6rem;
}

.legal-body a {
  color: var(--cyber-cyan);
  text-decoration: none;
}

.legal-body a:hover {
  text-decoration: underline;
}

.legal-body strong {
  color: var(--white);
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes pulse-glow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(61, 122, 153, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(61, 122, 153, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(61, 122, 153, 0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* --- RESPONSIVENESS (MOBILE-FIRST BREAKPOINTS) --- */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .contact-wrapper {
    gap: 3rem;
  }
}

@media (max-width: 992px) {
  header {
    padding: 0.25rem 0;
  }
  
  .nav-container {
    flex-wrap: wrap;
    height: auto;
    min-height: 64px;
  }

  .logo-link { order: 1; }
  .mobile-toggle { order: 2; display: flex; }
  .nav-links { order: 3; }
  .nav-contact { order: 4; }

  .nav-links,
  .nav-contact {
    display: none;
  }

  header.mobile-open {
    background-color: rgba(11, 12, 14, 0.98);
    backdrop-filter: blur(16px);
  }

  header.mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    border-top: 1px solid var(--border-dark);
    margin-top: 0.5rem;
    padding-top: 0.25rem;
  }

  header.mobile-open .nav-links li {
    width: 100%;
  }

  header.mobile-open .nav-links a {
    display: block;
    padding: 0.9rem 0.25rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  header.mobile-open .nav-contact {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
    padding: 0.85rem 0 1rem;
  }

  header.mobile-open .nav-contact .nav-phone,
  header.mobile-open .nav-contact .btn,
  header.mobile-open .nav-contact > a,
  header.mobile-open .nav-contact > button {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin: 0 !important;
  }

  /* Hamburger morphs into an X when open */
  .mobile-toggle span {
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  header.mobile-open .mobile-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  header.mobile-open .mobile-toggle span:nth-child(2) {
    opacity: 0;
  }
  header.mobile-open .mobile-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-overlay-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-content-left {
    padding-left: 2rem;
    padding-right: 2rem;
  }
  
  .hero-glass-card {
    margin-left: 2rem;
    margin-right: 2rem;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .services-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .services-left {
    position: relative;
    top: 0;
  }
  
  .services-nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 1rem;
    gap: 1.5rem;
  }
  
  .services-nav li {
    border-bottom: none;
    padding: 0.5rem 1rem;
    background-color: var(--bg-dark-elevated);
    border: 1px solid var(--border-dark);
    border-radius: 30px;
    flex-shrink: 0;
  }
  
  .services-nav-title {
    padding-left: 0.5rem;
    font-size: 0.95rem;
  }
  
  .services-nav li::after {
    display: none;
  }
  
  .standard-panel {
    grid-template-columns: 1fr;
  }
  
  .pricing-deck {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .pricing-card.popular {
    transform: scale(1);
  }
  
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  /* Force stacked layout even where inline grid columns are set */
  .contact-wrapper {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

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

@media (max-width: 576px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-ctas {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .device-status-grid {
    grid-template-columns: 1fr;
  }
  
  .camera-feed-container {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-group-full {
    grid-column: span 1;
  }

  /* Keep inputs from overflowing narrow panels, and stack inline 2-col rows */
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    min-width: 0;
  }

  .contact-form > div[style*="grid-template-columns"],
  .contact-form-panel div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }

  .dashboard-card {
    padding: 1.75rem 1.5rem;
  }

  .contact-form-panel {
    padding: 2rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
