/* ============================================
   WILSON SECURITY — STYLES
   Modern dark theme with blue accents
   ============================================ */

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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f0f7ff;
  --bg-tertiary: #e8f2ff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);

  --text-primary: #1a2332;
  --text-secondary: #4a5e78;
  --text-muted: #8a9bb5;

  --blue-400: #5cb8f0;
  --blue-500: #38a3e8;
  --blue-600: #1a8cd8;
  --blue-700: #0b6fba;
  --indigo-500: #6c7bf0;
  --cyan-500: #18b8d8;
  --purple-500: #a06cf0;

  --gradient-blue: linear-gradient(135deg, #10b981, #38a3e8);
  --gradient-text: linear-gradient(135deg, #10b981, #1a8cd8);
  --gradient-card: linear-gradient(135deg, rgba(16,185,129,0.06), rgba(56,163,232,0.04));

  --border-subtle: rgba(56, 163, 232, 0.15);
  --border-active: rgba(56, 163, 232, 0.35);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 0 40px rgba(56, 163, 232, 0.1);

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, #d4f5e9 0%, #c8eafc 25%, #b8f0d8 50%, #c0e4fd 75%, #ccf5e0 100%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: var(--transition-base);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-icon {
  display: flex;
  align-items: center;
}

.logo-text {
  background: linear-gradient(135deg, #1a2332, #4a5e78);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(56, 163, 232, 0.08);
}

.nav-cta {
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  background: var(--gradient-blue);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  margin-left: 8px;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(56, 163, 232, 0.3);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-subtle);
  z-index: 999;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.mobile-link:hover {
  color: var(--text-primary);
  background: rgba(56, 163, 232, 0.08);
}

.mobile-link.cta {
  color: white;
  background: var(--gradient-blue);
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: flex; }
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  background: linear-gradient(160deg, #b8f0d8 0%, #a8e8c8 25%, #b0d8f8 55%, #9ad0f5 100%);
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 163, 232, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(56, 163, 232, 0.2);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  animation: pulse-glow 8s ease-in-out infinite;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(52, 211, 153, 0.2);
  bottom: -100px;
  left: -100px;
  animation: pulse-glow 10s ease-in-out infinite reverse;
}

.glow-3 {
  width: 300px;
  height: 300px;
  background: rgba(16, 185, 129, 0.18);
  top: 30%;
  right: -50px;
  animation: pulse-glow 12s ease-in-out infinite;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.12), rgba(56, 163, 232, 0.12), transparent);
  animation: scan 6s linear infinite;
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(1) translateX(-50%); }
  50% { opacity: 0.5; transform: scale(1.1) translateX(-50%); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 10px;
  background: rgba(56, 163, 232, 0.1);
  border: 1px solid rgba(56, 163, 232, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--blue-600);
  width: fit-content;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(56, 163, 232, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(56, 163, 232, 0); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 480px;
}

.hero-highlight {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 8px 0;
}

.highlight-label {
  font-size: 1.3rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.highlight-name {
  font-size: 4rem;
  font-weight: 900;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--gradient-blue);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  width: fit-content;
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(56, 163, 232, 0.3);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(56, 163, 232, 0.4);
}

.cta-icon {
  display: flex;
  align-items: center;
}

.cta-arrow {
  transition: var(--transition-fast);
}

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

/* Hero Visual — Dave Avatar */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.dave-avatar {
  position: relative;
  width: 320px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
}

.ring-1 {
  width: 100%;
  height: 100%;
  border-color: rgba(56, 163, 232, 0.2);
  animation: rotate-ring 20s linear infinite;
}

.ring-2 {
  width: 80%;
  height: 80%;
  border-color: rgba(108, 123, 240, 0.15);
  animation: rotate-ring 15s linear infinite reverse;
}

.ring-3 {
  width: 60%;
  height: 60%;
  border-color: rgba(6, 182, 212, 0.08);
  animation: rotate-ring 25s linear infinite;
}

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

.avatar-core {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #edf5ff);
  border: 2px solid var(--border-active);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 30px rgba(56, 163, 232, 0.15), 0 0 80px rgba(56, 163, 232, 0.06);
  position: relative;
  z-index: 2;
}

.avatar-face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
}

.dave-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: float 4s ease-in-out infinite;
}

.avatar-icon {
  color: var(--blue-600);
  animation: float 4s ease-in-out infinite;
}

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

.status-indicator {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-radius: 100px;
  white-space: nowrap;
  z-index: 3;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.status-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #22c55e;
  letter-spacing: 0.02em;
}

/* Floating cards */
.floating-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.float-card svg {
  color: var(--blue-600);
  flex-shrink: 0;
}

.card-1 {
  top: 20px;
  right: -10px;
  animation: float-card 6s ease-in-out infinite;
}

.card-2 {
  bottom: 60px;
  left: -30px;
  animation: float-card 7s ease-in-out infinite 1s;
}

.card-3 {
  top: 50%;
  right: -40px;
  animation: float-card 8s ease-in-out infinite 2s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(0.5deg); }
  66% { transform: translateY(4px) rotate(-0.5deg); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

/* ---------- Animations ---------- */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Section Commons ---------- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(56, 163, 232, 0.08);
  border: 1px solid rgba(56, 163, 232, 0.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-600);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
}

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

/* ---------- Capabilities Section ---------- */
.capabilities {
  padding: 120px 24px;
  position: relative;
  background: linear-gradient(160deg, #9ad0f5 0%, #a0e8d0 40%, #b0f0c8 70%, #c0f5d8 100%);
}

.capabilities::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.capability-card {
  padding: 32px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.capability-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.capability-card:hover {
  background: #ffffff;
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(56, 163, 232, 0.12);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card-icon.blue {
  background: rgba(56, 163, 232, 0.1);
  color: var(--blue-600);
}

.card-icon.indigo {
  background: rgba(108, 123, 240, 0.1);
  color: var(--indigo-500);
}

.card-icon.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: var(--cyan-500);
}

.card-icon.purple {
  background: rgba(168, 85, 247, 0.12);
  color: var(--purple-500);
}

.capability-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* Always On Footer */
.capabilities-footer {
  display: flex;
  justify-content: center;
}

.always-on {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 48px;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.always-on::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 163, 232, 0.04), transparent);
}

.pulse-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid rgba(34, 197, 94, 0.4);
  flex-shrink: 0;
  position: relative;
  animation: pulse-ring-anim 2s ease-in-out infinite;
}

.pulse-ring::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #22c55e;
}

@keyframes pulse-ring-anim {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(34, 197, 94, 0); }
}

.always-on-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
  position: relative;
}

.always-on-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  position: relative;
}

/* ---------- Why Section ---------- */
.why-section {
  padding: 120px 24px;
  position: relative;
  background: linear-gradient(160deg, #b0f0d0 0%, #a0ddf5 35%, #92c8f0 65%, #a8d5f8 100%);
}

.why-section::before,
.why-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.why-section::before { top: 0; }
.why-section::after { bottom: 0; }

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

.why-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

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

.why-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.why-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.why-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  opacity: 0;
  transform: translateX(20px);
}

.why-card.visible {
  opacity: 1;
  transform: translateX(0);
}

.why-card:hover {
  background: #ffffff;
  border-color: var(--border-active);
  box-shadow: 0 8px 32px rgba(56, 163, 232, 0.1);
}

.why-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(56, 163, 232, 0.1);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-card-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* ---------- Gallery Section ---------- */
.gallery-section {
  padding: 120px 24px;
  position: relative;
  background: linear-gradient(160deg, #a8e0d0 0%, #98d8f0 40%, #a0e8d8 70%, #b0e8e0 100%);
}

.gallery-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px var(--border-subtle);
  transition: var(--transition-base);
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(56, 163, 232, 0.15), 0 0 0 1px var(--border-active);
}

.gallery-card-large {
  grid-row: span 1;
}

.gallery-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.gallery-card-large .gallery-image-wrap {
  aspect-ratio: 16/10;
}

.gallery-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 35, 50, 0.6) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.gallery-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ---------- Contact Section ---------- */
.contact-section {
  padding: 120px 24px;
  position: relative;
  background: linear-gradient(160deg, #a0d5f8 0%, #90e0c8 35%, #a8ecc0 60%, #b8f0d5 100%);
}

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

.contact-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.contact-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.contact-highlight {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-style: italic;
}

.contact-cta-text {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 32px;
}

.trust-indicators {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.trust-item svg {
  color: var(--blue-600);
  flex-shrink: 0;
}

/* Contact Form */
.contact-form {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: var(--transition-base);
}

.contact-form:hover {
  border-color: var(--border-active);
  box-shadow: 0 8px 32px rgba(56, 163, 232, 0.1);
}

.form-header {
  margin-bottom: 4px;
}

.form-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.form-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group input {
  padding: 12px 16px;
  background: #f8fbff;
  border: 1px solid rgba(56, 163, 232, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition-fast);
  outline: none;
}

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

.form-group input:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(56, 163, 232, 0.12);
  background: #ffffff;
}

.form-group input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gradient-blue);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-base);
  margin-top: 4px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(56, 163, 232, 0.3);
}

.form-submit:active {
  transform: translateY(0);
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.submit-loading {
  animation: spin 1s linear infinite;
}

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

/* Form Success */
.form-success {
  padding: 60px 36px;
  background: var(--bg-card);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.success-icon {
  color: #22c55e;
  animation: success-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes success-pop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
}

.form-success p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ---------- Footer ---------- */
.footer {
  padding: 40px 24px;
  border-top: 1px solid var(--border-subtle);
}

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

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 480px;
  text-align: right;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-content {
    align-items: center;
  }

  .hero-highlight {
    justify-content: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

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

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

  .why-left,
  .contact-left {
    text-align: center;
  }

  .trust-indicators {
    align-items: center;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-card-large .gallery-image-wrap {
    aspect-ratio: 4/3;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.4rem;
  }

  .highlight-name {
    font-size: 3rem;
  }

  .section-title,
  .why-title,
  .contact-title {
    font-size: 2rem;
  }

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

  .always-on {
    flex-direction: column;
    text-align: center;
    padding: 28px;
  }

  .dave-avatar {
    width: 240px;
    height: 240px;
  }

  .avatar-core {
    width: 100px;
    height: 100px;
  }

  .dave-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .float-card {
    display: none;
  }

  .contact-form {
    padding: 24px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

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

/* ============================================
   CHAT WIDGET
   ============================================ */

.chat-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* --- Avatar Button --- */
.chat-avatar-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  background: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.chat-avatar-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 0 3px rgba(16, 185, 129, 0.4);
}

.chat-avatar-btn:active {
  transform: scale(0.96);
}

.chat-avatar-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.chat-avatar-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.4);
  animation: chat-pulse 2.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes chat-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0; }
}

.chat-avatar-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981, #38a3e8);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* hide avatar when chat is open */
.chat-widget.open .chat-avatar-btn {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

/* --- Chat Box --- */
.chat-box {
  width: 380px;
  max-height: 520px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
  bottom: 0;
  right: 0;
}

.chat-widget.open .chat-box {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #10b981, #38a3e8);
  color: white;
  flex-shrink: 0;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.chat-header-info h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  box-shadow: 0 0 4px rgba(74, 222, 128, 0.6);
}

.chat-close {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  max-height: 340px;
  background: #f9fafb;
}

.chat-message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: msgFadeIn 0.3s ease forwards;
}

.chat-message.user {
  flex-direction: row-reverse;
}

@keyframes msgFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 2px;
}

.chat-message.user .chat-msg-avatar {
  display: none;
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 260px;
}

.chat-bubble p + p {
  margin-top: 6px;
}

.chat-message.bot .chat-bubble {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chat-message.user .chat-bubble {
  background: linear-gradient(135deg, #10b981, #38a3e8);
  color: white;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.chat-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Input Area */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  flex-shrink: 0;
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--text-primary);
  background: #f9fafb;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input::placeholder {
  color: #9ca3af;
}

.chat-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
  background: #ffffff;
}

.chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #10b981, #38a3e8);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-send:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.chat-send:active {
  transform: scale(0.95);
}

/* Mobile chat */
@media (max-width: 480px) {
  .chat-box {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 120px);
    right: -16px;
    bottom: -12px;
    border-radius: 16px;
  }

  .chat-widget {
    bottom: 16px;
    right: 16px;
  }

  .chat-avatar-btn {
    width: 60px;
    height: 60px;
  }

  .chat-avatar-img {
    width: 60px;
    height: 60px;
  }
}
