/* ============================================
   SecurePass Solutions - Global Stylesheet
   Modern Dark Tech Theme
   ============================================ */

:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1424;
  --bg-card: #131a2e;
  --bg-card-hover: #1a2240;
  --border-color: #1f2940;
  --border-glow: rgba(0, 212, 255, 0.3);
  --accent-cyan: #00d4ff;
  --accent-blue: #0066ff;
  --accent-green: #00ff88;
  --text-primary: #e5e9f2;
  --text-secondary: #b3bdd1;
  --text-muted: #6b7896;
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
  --gradient-dark: linear-gradient(135deg, #0a0e1a 0%, #1a2240 100%);
  --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background grid effect */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* 3D background canvas */
#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* ============ SCROLL REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* Staggered children inside grids */
.grid .reveal:nth-child(1) { transition-delay: 0s; }
.grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.grid .reveal:nth-child(5) { transition-delay: 0.32s; }
.grid .reveal:nth-child(6) { transition-delay: 0.40s; }
.grid .reveal:nth-child(7) { transition-delay: 0.48s; }
.grid .reveal:nth-child(8) { transition-delay: 0.56s; }

/* Hero entrance animation (auto-play) */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.4s; }
.hero-content > *:nth-child(4) { animation-delay: 0.55s; }

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

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-content > * {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ============ NAVIGATION ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-glow);
}

.nav-logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.nav-logo-text span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.08);
}

.nav-link.active {
  color: var(--accent-cyan);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.nav-cta {
  background: var(--gradient-primary);
  color: var(--bg-primary) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  background: var(--gradient-primary) !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  overflow: hidden;
  z-index: 1;
}

.hero-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  max-width: 1100px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent-cyan);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

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

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
}

/* ============ SECTIONS ============ */
.section {
  padding: 100px 32px;
  position: relative;
  z-index: 1;
}

.section-narrow {
  padding: 80px 32px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 960px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  display: inline-block;
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* ============ CARDS / GRIDS ============ */
.grid {
  display: grid;
  gap: 24px;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-cyan);
}

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

.card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

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

.card-link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.card-link:hover {
  gap: 10px;
}

/* ============ FEATURE LIST ============ */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 10px 0 10px 32px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 18px;
  height: 18px;
  background: rgba(0, 212, 255, 0.15);
  border-radius: 50%;
}

.feature-list li::after {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 11px;
  color: var(--accent-cyan);
  font-size: 12px;
  font-weight: 700;
}

/* ============ SERVICE DETAIL BLOCK ============ */
.service-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 32px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: start;
  position: relative;
  overflow: hidden;
}

.service-block-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  box-shadow: var(--shadow-glow);
}

.service-block-icon svg {
  width: 40px;
  height: 40px;
}

.service-block h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.service-block .description {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

/* ============ PRODUCT / BRAND BLOCK ============ */
.brand-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.3s ease;
}

.brand-block:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
}

.brand-block h4 {
  font-size: 1.2rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  font-weight: 700;
}

.brand-block .brand-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.category-header h3 {
  font-size: 1.6rem;
  letter-spacing: -0.3px;
}

.category-header .badge {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.stat-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
}

.stat-block .number {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-block .label {
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============ CTA BANNER ============ */
.cta-banner {
  background: var(--gradient-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
  letter-spacing: -0.8px;
  position: relative;
}

.cta-banner p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-banner .hero-actions {
  position: relative;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
}

.contact-info-card h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  letter-spacing: -0.3px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.contact-method:last-child {
  border-bottom: none;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

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

.contact-method-info .label {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-method-info a,
.contact-method-info .value {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  word-break: break-word;
}

.contact-method-info a:hover {
  color: var(--accent-cyan);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

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

.form-control::placeholder {
  color: var(--text-muted);
}

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

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2300d4ff' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-success {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.3);
  color: var(--accent-green);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
  display: none;
}

.form-success.visible {
  display: block;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 64px 32px 32px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

@media (max-width: 1100px) and (min-width: 969px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
  .footer-col.resources-col {
    grid-column: span 4;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px 32px;
  }
  .footer-col.resources-col ul {
    display: contents;
  }
  .footer-col.resources-col h4 {
    grid-column: span 4;
    margin-bottom: 8px;
  }
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 320px;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer-credit {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 6px !important;
}

.footer-credit a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.footer-credit a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

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

.footer-bottom .legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-bottom .legal-links a:hover {
  color: var(--accent-cyan);
}

/* ============ PAGE HEADER ============ */
.page-header {
  padding: 160px 32px 80px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: radial-gradient(ellipse at center top, rgba(0, 102, 255, 0.12) 0%, transparent 60%);
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-cyan);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-200%);
    transition: transform 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    padding: 12px 16px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-container {
    padding: 14px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  /* Reset Resources column to normal block layout on tablet/mobile */
  .footer-col.resources-col {
    display: block;
    grid-column: auto;
    grid-template-columns: none;
    gap: 0;
  }
  .footer-col.resources-col ul {
    display: block;
  }
  .footer-col.resources-col h4 {
    grid-column: auto;
    margin-bottom: 20px;
  }

  /* Prevent long links (emails, URLs) from overflowing the footer column */
  .footer-col a,
  .footer-col li {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Tighter footer side padding on tablet/mobile */
  .footer {
    padding: 56px 24px 28px;
  }

  .service-block {
    padding: 32px 24px;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .section {
    padding: 70px 20px;
  }

  .page-header {
    padding: 130px 20px 60px;
  }

  .hero {
    padding: 110px 20px 60px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cta-banner {
    padding: 48px 24px;
  }
}

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

  .footer {
    padding: 48px 20px 24px;
  }

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

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 18px;
  }

  .footer-bottom .legal-links {
    justify-content: center;
  }

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

  /* Smaller side padding throughout */
  .section {
    padding: 60px 18px;
  }
  .page-header {
    padding: 120px 18px 50px;
  }
  .hero {
    padding: 100px 18px 50px;
  }
  .container, .container-narrow {
    padding: 0;
  }

  /* Tame oversized blog/section headings on small phones */
  .hero h1 {
    line-height: 1.15;
  }
  .page-header h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    line-height: 1.2;
  }
  .section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  /* Page header breadcrumb wraps cleanly */
  .breadcrumb {
    flex-wrap: wrap;
    padding: 0 8px;
  }
  .page-header p {
    font-size: 1rem;
    padding: 0 8px;
  }

  /* Blog post titles and meta info fit small screens */
  .blog-meta {
    font-size: 0.78rem;
    gap: 8px;
  }

  /* Cards in grids gain a touch more breathing room */
  .grid {
    gap: 16px;
  }
  .card {
    padding: 24px 20px;
  }
  .card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }
  .card-icon svg {
    width: 24px;
    height: 24px;
  }
  .card-title {
    font-size: 1.2rem;
  }
  .card-text {
    font-size: 0.92rem;
  }

  /* Service block icon smaller on mobile */
  .service-block-icon {
    width: 60px;
    height: 60px;
  }
  .service-block-icon svg {
    width: 30px;
    height: 30px;
  }

  /* Stats blocks tighter */
  .stat-block {
    padding: 20px 16px;
  }
  .stat-block .number {
    font-size: 2rem;
  }

  /* Section header tighter */
  .section-header {
    margin-bottom: 40px;
  }

  /* Brand block (products page) tighter */
  .brand-block {
    padding: 22px 18px;
  }
  .brand-block h4 {
    font-size: 1.1rem;
  }
  .product-image {
    height: 150px;
  }

  /* About text headings tighter */
  .about-text h2 {
    font-size: 1.7rem;
  }

  /* CTA banner heading tighter */
  .cta-banner h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }
  .cta-banner p {
    font-size: 0.95rem;
  }

  /* Contact method icon slightly smaller */
  .contact-method {
    padding: 16px 0;
  }

  /* Make sure nav text fits at very narrow widths */
  .nav-logo-text {
    font-size: 16px;
  }
  .nav-logo-icon {
    width: 34px;
    height: 34px;
  }

  /* Page-header padding less aggressive top */
  .page-header {
    padding: 110px 18px 40px;
  }
  .page-header p {
    font-size: 0.95rem;
  }

  /* Category hero (products page) shorter on mobile */
  .category-hero {
    height: 180px;
  }
  .category-hero .category-hero-label {
    bottom: 14px;
    left: 16px;
  }

  /* Service block stays tidy at narrow widths */
  .service-block {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }
  .service-block h3 {
    font-size: 1.45rem;
  }

  /* Contact info card padding fits on small screens */
  .contact-info-card,
  .contact-form,
  .callback-section {
    padding: 26px 18px;
  }

  /* Tighter form spacing on mobile */
  .form-group {
    margin-bottom: 14px;
  }
  .form-group label {
    margin-bottom: 6px;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
  }

  /* 16px minimum prevents iOS Safari from auto-zooming on input tap */
  .form-control {
    font-size: 16px;
    padding: 11px 14px;
  }
  textarea.form-control {
    min-height: 110px;
  }

  /* Make sure buttons inside forms are touch-friendly */
  .callback-submit,
  .contact-form button[type="submit"] {
    padding: 14px 24px;
    font-size: 15px;
  }

  /* CTA banner tighter */
  .cta-banner {
    padding: 40px 22px;
    border-radius: var(--radius-md);
  }

  /* Long emails / addresses in contact methods break safely */
  .contact-method-info a,
  .contact-method-info .value {
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 0.95rem;
  }

  /* Legal pages padding */
  .legal-content,
  .blog-content {
    padding: 0 4px;
  }
  .legal-content h2,
  .blog-content h2 {
    font-size: 1.25rem;
  }
}

/* Belt-and-suspenders: prevent any element from causing horizontal scroll on touch devices */
@media (max-width: 968px) {
  html, body {
    overflow-x: hidden;
    max-width: 100%;
  }
  img, svg {
    max-width: 100%;
  }
}

/* ============================================
   LEGAL CONTENT (Terms, Privacy)
   ============================================ */
.legal-content {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content h2 {
  color: var(--text-primary);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 44px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 0 0 20px;
  padding-left: 22px;
}

.legal-content ul li {
  margin-bottom: 8px;
  padding-left: 6px;
}

.legal-content ul li::marker {
  color: var(--accent-cyan);
}

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

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

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

/* ============================================
   BLOG POST STYLES
   ============================================ */
.blog-meta {
  display: flex;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.blog-meta .pill {
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--accent-cyan);
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.blog-content {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.78;
}

.blog-content .lead {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 28px;
  font-weight: 400;
}

.blog-content h2 {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-top: 40px;
  margin-bottom: 14px;
}

.blog-content h3 {
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
}

.blog-content p {
  margin-bottom: 16px;
}

.blog-content ul, .blog-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.blog-content ul li, .blog-content ol li {
  margin-bottom: 8px;
}

.blog-content ul li::marker {
  color: var(--accent-cyan);
}

.blog-content a {
  color: var(--accent-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

.blog-content a:hover {
  border-bottom-color: var(--accent-cyan);
}

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

.blog-content blockquote {
  border-left: 3px solid var(--accent-cyan);
  background: rgba(0, 212, 255, 0.04);
  padding: 16px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Blog index post cards */
.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.post-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.post-card-image {
  height: 180px;
  background: linear-gradient(135deg, #131a2e 0%, #0a0e1a 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(0, 212, 255, 0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(0, 102, 255, 0.15) 0%, transparent 60%);
}

.post-card-image .post-icon {
  position: relative;
  z-index: 1;
  color: var(--accent-cyan);
  width: 56px;
  height: 56px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-image .post-icon svg {
  width: 28px;
  height: 28px;
}

.post-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card-category {
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.post-card-title {
  color: var(--text-primary);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 10px;
}

.post-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 16px;
  flex: 1;
}

.post-card-readmore {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  transition: gap 0.2s ease;
}

.post-card:hover .post-card-readmore {
  gap: 10px;
}

/* ============================================
   PRODUCT IMAGES (in brand cards)
   ============================================ */
.brand-block {
  display: flex;
  flex-direction: column;
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1a2240 0%, #0a0e1a 100%);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 26, 0.15) 0%, rgba(10, 14, 26, 0.55) 100%),
    linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.brand-block:hover .product-image img {
  transform: scale(1.08);
}

/* ---- Brand logo display mode ---- */
.product-image.brand-logo-mode {
  background:
    radial-gradient(ellipse at center, rgba(0, 212, 255, 0.08) 0%, transparent 65%),
    linear-gradient(135deg, #ffffff 0%, #f3f6fc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.product-image.brand-logo-mode::after {
  display: none;
}

.product-image.brand-logo-mode img {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  z-index: 3;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-block:hover .product-image.brand-logo-mode img {
  transform: scale(1.05);
}

/* Brand wordmark fallback (shown if logo image fails to load) */
.brand-wordmark {
  position: relative;
  z-index: 3;
  text-align: center;
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #131a2e 0%, #0a0e1a 100%);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.brand-wordmark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 212, 255, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.brand-wordmark .brand-name {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: 3px;
  color: #ffffff;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.brand-wordmark .brand-tagline {
  display: inline-block;
  margin-top: 14px;
  padding: 5px 14px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.35);
  border-radius: 100px;
  font-size: 0.62rem;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* Category hero photo banner */
.category-hero {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-primary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  overflow: hidden;
  position: relative;
}

.category-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 26, 0.3) 0%, rgba(10, 14, 26, 0.85) 100%),
    linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 212, 255, 0.1) 100%);
  z-index: 2;
}

.category-hero .category-hero-label {
  position: absolute;
  bottom: 24px;
  left: 32px;
  z-index: 3;
  color: #fff;
}

.category-hero .category-hero-label .eyebrow {
  display: block;
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.category-hero .category-hero-label .title {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

@media (max-width: 600px) {
  .category-hero {
    height: 220px;
  }
  .category-hero .category-hero-label {
    bottom: 18px;
    left: 20px;
  }
  .product-image {
    height: 160px;
  }
}

/* ============================================
   REQUEST A CALLBACK SECTION
   ============================================ */
.callback-section {
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, rgba(0, 102, 255, 0.04) 100%),
    var(--bg-card);
  border: 1px solid rgba(0, 212, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.callback-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.callback-section::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -120px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(0, 102, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.callback-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
  position: relative;
}

.callback-header-icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
}

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

.callback-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.5px;
  margin: 0 0 6px;
}

.callback-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

.callback-form {
  position: relative;
  z-index: 2;
}

.slot-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 28px 0 14px;
}

.slot-section-label::before,
.slot-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.slot-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.slot-row {
  display: grid;
  grid-template-columns: 36px 1fr 1fr;
  gap: 12px;
  align-items: center;
}

.slot-number {
  width: 36px;
  height: 36px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-weight: 700;
  font-size: 0.9rem;
}

.slot-row .form-control {
  margin: 0;
}

/* Dark color scheme for date/time inputs */
input[type="date"].form-control,
input[type="time"].form-control,
input[type="datetime-local"].form-control {
  color-scheme: dark;
}

input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="time"].form-control::-webkit-calendar-picker-indicator {
  filter: invert(0.5) sepia(1) saturate(5) hue-rotate(160deg);
  cursor: pointer;
}

.callback-submit {
  margin-top: 28px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 640px) {
  .slot-grid {
    gap: 10px;
  }
  .slot-row {
    grid-template-columns: 30px 1fr;
    grid-template-rows: auto auto;
    row-gap: 6px;
    gap: 8px;
    align-items: start;
  }
  .slot-row > :nth-child(2) {
    grid-column: 2;
  }
  .slot-row > :nth-child(3) {
    grid-column: 2;
  }
  .slot-number {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
    margin-top: 4px;
  }
  .slot-section-label {
    margin: 20px 0 12px;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
  }
  .callback-header {
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
  }
  .callback-header h2 {
    font-size: 1.35rem;
  }
}
