/* ============================================
   Hawking Electrical - Electrician Template Styles
   ============================================ */

/* --- @font-face --- */
@font-face {
  font-family: 'Rajdhani';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/rajdhani-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Custom Properties --- */
:root {
  --color-primary: #00d4ff;
  --color-primary-dim: rgba(0, 212, 255, 0.55);
  --color-primary-glow: rgba(0, 212, 255, 0.8);
  --color-accent: #ffcc00;
  --color-accent-dim: rgba(255, 204, 0, 0.55);
  --color-accent-glow: rgba(255, 204, 0, 0.8);
  --color-bg: #0a0e1a;
  --color-bg-alt: #0f1628;
  --color-bg-card: #141c30;
  --color-text: #e0e6f0;
  --color-text-muted: #8a94a8;
  --color-heading: #ffffff;
  --color-border: rgba(0, 212, 255, 0.15);
  --color-focus: #00d4ff;
  --font-heading: 'Rajdhani', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --transition-base: 0.3s ease;
  --glow-sm: 0 0 10px var(--color-primary-dim);
  --glow-md: 0 0 20px var(--color-primary-dim), 0 0 40px rgba(0, 212, 255, 0.2);
  --glow-lg: 0 0 24px var(--color-primary-glow), 0 0 50px var(--color-primary-dim), 0 0 90px rgba(0, 212, 255, 0.15);
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
}

main {
  flex: 1;
}

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

address {
  font-style: normal;
}

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

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

p a,
li a,
address a {
  text-decoration: underline;
  text-decoration-color: var(--color-primary-dim);
  text-underline-offset: 3px;
}

p a:hover,
li a:hover,
address a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent-dim);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.2;
}

/* --- Focus Indicators --- */
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-bg);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* --- Demo Modal Overlay --- */
.demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.demo-overlay.is-hidden {
  display: none;
}

.demo-modal {
  background: var(--color-bg-card);
  border: 1px solid var(--color-primary);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  text-align: center;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.2), 0 0 80px rgba(0, 212, 255, 0.1);
}

.demo-modal h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
  letter-spacing: 0.08em;
}

.demo-modal p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.demo-close {
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
  border-radius: 6px;
  padding: 0.6rem 2rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: opacity var(--transition-base), background var(--transition-base);
}

.demo-close:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.demo-close:not(:disabled):hover {
  background: #33ddff;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent);
  color: #0a0e1a;
  box-shadow: 0 0 18px var(--color-accent-dim), 0 0 40px rgba(255, 204, 0, 0.2);
}

.btn-primary:hover {
  color: #0a0e1a;
  box-shadow: 0 0 30px var(--color-accent-glow), 0 0 60px var(--color-accent-dim), 0 0 90px rgba(255, 204, 0, 0.15);
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(10, 14, 26, 0.6);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.15);
}

.btn-outline:hover {
  color: var(--color-heading);
  background: rgba(0, 212, 255, 0.1);
  box-shadow: 0 0 24px var(--color-primary-dim), 0 0 48px rgba(0, 212, 255, 0.15);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--color-bg-card);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  box-shadow: var(--glow-sm);
}

.btn-dark:hover {
  color: var(--color-heading);
  box-shadow: var(--glow-md);
  transform: translateY(-2px);
}

/* Button shimmer effect */
@media (prefers-reduced-motion: no-preference) {
  .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent
    );
    transition: left 0.5s ease;
  }

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

/* --- Site Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-heading);
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  color: var(--color-heading);
}

.logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-links {
  visibility: hidden;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 1.25rem;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}

.nav-links.is-open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}

.nav-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-links a {
  display: block;
  padding: 0.75rem 0;
  color: var(--color-text);
  font-weight: 500;
  font-size: 1.0625rem;
  text-decoration: none;
  transition: color var(--transition-base);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-primary);
}

.nav-cta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.nav-cta .btn {
  display: flex;
  width: 100%;
  justify-content: center;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 14, 26, 0.3) 0%, rgba(10, 14, 26, 0.99) 50%, rgba(10, 14, 26, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--color-primary);
}

.hero > .container > p,
.hero-content > p {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: #c8c8c8;
  text-shadow: 0 0 2px rgba(0, 0, 0, 1), 0 0 4px rgba(0, 0, 0, 1), 1px 1px 3px rgba(0, 0, 0, 1), -1px -1px 3px rgba(0, 0, 0, 0.8), 0 1px 5px rgba(0, 0, 0, 0.9);
  max-width: 560px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- Electric Arc Divider --- */
.arc-divider {
  display: block;
  width: 100%;
  height: 32px;
  overflow: visible;
}

.arc-divider line {
  stroke: rgba(0, 212, 255, 0.2);
  stroke-width: 1.5;
}

.arc-divider polyline {
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Section --- */
.section {
  padding: 5rem 0;
}

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

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.08);
  margin-bottom: 1.25rem;
}

.service-card .icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* --- About Preview --- */
.about-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-preview-img img {
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.about-preview-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.about-preview-content > p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
}

.about-stats {
  display: flex;
  gap: 2rem;
}

.about-stats--centered {
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-stats-and-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  gap: 2rem;
  margin: 0 auto;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

/* --- CTA Section --- */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(255, 204, 0, 0.04) 100%),
    var(--color-bg-alt);
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.cta-section > .container > p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  margin-bottom: 2rem;
}

.cta-phone svg {
  flex-shrink: 0;
}

.cta-phone:hover {
  color: var(--color-heading);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 4rem 0 3rem;
  text-align: center;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Services Detail (services.html) --- */
.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.service-detail-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-detail-card:hover {
  transform: translateY(-4px);
}

.service-detail-card .icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.08);
  margin-bottom: 1.5rem;
}

.service-detail-card .icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
}

.service-detail-card h2 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.service-detail-card p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.service-detail-card ul {
  list-style: none;
  margin-top: 1rem;
  padding: 0;
}

.service-detail-card li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

.service-detail-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--color-primary-dim);
}

/* --- About Page --- */
.about-story {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-story-content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.about-story-content p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.about-story-content p:last-child {
  margin-bottom: 0;
}

.about-story-img img {
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.about-values {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.value-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.value-card .icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.08);
  margin: 0 auto 1.25rem;
}

.value-card .icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-item .icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.08);
}

.contact-info-item .icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-primary);
}

.contact-info-item h2 {
  font-size: 1.0625rem;
  margin-bottom: 0.25rem;
}

.contact-info-item p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* --- Contact Form --- */
.contact-form h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary-dim);
}

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

.form-submit {
  margin-top: 1.5rem;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  font-size: 1.0625rem;
}

.honeypot {
  display: none;
}

.form-status {
  display: none;
  padding: 1.25rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 1rem;
}

.form-status.success {
  display: block;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--color-primary-dim);
  color: var(--color-primary);
}

/* --- Privacy Page --- */
.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-content h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
}

.privacy-content h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.5rem;
}

.privacy-content p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.privacy-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-content li {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 0.375rem;
}

/* --- 404 Page --- */
.error-page {
  text-align: center;
  padding: 6rem 0;
}

.error-page h1 {
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* --- Footer --- */
.site-footer {
  background: #060911;
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h3 {
  font-size: 1.0625rem;
  margin-bottom: 1rem;
  color: var(--color-heading);
}

.footer-col p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color var(--transition-base);
}

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

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

.footer-bottom a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-color: rgba(138, 148, 168, 0.3);
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: var(--color-primary);
}


/* ============================================
   Electric Glow Effects
   (all inside prefers-reduced-motion: no-preference)
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
  /* --- GPU-friendly Text Glow Pulse --- */
  /* Animate opacity on a pseudo-element instead of text-shadow directly,
     because opacity is GPU-compositable while text-shadow forces CPU repaints in Chromium. */
  @keyframes glow-fade {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
  }

  .hero h1 span,
  .section-header h2,
  .about-preview-content h2,
  .cta-section h2 {
    position: relative;
    text-shadow:
      0 0 14px rgba(0, 212, 255, 0.7),
      0 0 35px rgba(0, 212, 255, 0.45),
      0 0 70px rgba(0, 212, 255, 0.2);
  }

  .hero h1 span::after,
  .section-header h2::after,
  .about-preview-content h2::after,
  .cta-section h2::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: transparent;
    text-shadow:
      0 0 28px rgba(0, 212, 255, 0.9),
      0 0 60px rgba(0, 212, 255, 0.55),
      0 0 100px rgba(0, 212, 255, 0.25);
    animation: glow-fade 3s ease-in-out infinite;
    pointer-events: none;
  }

  /* --- Logo Subtle Glow --- */
  @keyframes glow-pulse-subtle {
    0%, 100% { filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.35)); }
    50% { filter: drop-shadow(0 0 12px rgba(0, 212, 255, 0.6)); }
  }

  .logo svg {
    animation: glow-pulse-subtle 4s ease-in-out infinite;
  }

  /* --- Yellow Button Glow Pulse --- */
  @keyframes btn-glow-pulse {
    0%, 100% {
      box-shadow: 0 0 18px rgba(255, 204, 0, 0.55), 0 0 40px rgba(255, 204, 0, 0.2);
    }
    50% {
      box-shadow: 0 0 30px rgba(255, 204, 0, 0.8), 0 0 60px rgba(255, 204, 0, 0.35), 0 0 90px rgba(255, 204, 0, 0.15);
    }
  }

  .btn-primary {
    animation: btn-glow-pulse 3s ease-in-out infinite;
  }

  .btn-primary:hover {
    animation: none;
  }

  /* --- Blue Button Glow Pulse (strong) --- */
  @keyframes btn-blue-glow-pulse-strong {
    0%, 100% {
      box-shadow: 0 0 14px rgba(0, 212, 255, 0.7), 0 0 35px rgba(0, 212, 255, 0.45), 0 0 70px rgba(0, 212, 255, 0.2);
    }
    50% {
      box-shadow: 0 0 28px rgba(0, 212, 255, 0.9), 0 0 60px rgba(0, 212, 255, 0.55), 0 0 100px rgba(0, 212, 255, 0.25);
    }
  }

  /* --- Blue Button Glow Pulse (moderate) --- */
  @keyframes btn-blue-glow-pulse-moderate {
    0%, 100% {
      box-shadow: 0 0 10px rgba(0, 212, 255, 0.5), 0 0 28px rgba(0, 212, 255, 0.3);
    }
    50% {
      box-shadow: 0 0 22px rgba(0, 212, 255, 0.7), 0 0 50px rgba(0, 212, 255, 0.35);
    }
  }

  .btn-outline,
  .btn-dark {
    animation: btn-blue-glow-pulse-moderate 3s ease-in-out infinite;
  }

  .btn-outline:hover,
  .btn-dark:hover {
    animation: none;
  }

  /* --- Service Card Glow & Border Setup --- */
  .service-card {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.18), 0 0 30px rgba(0, 212, 255, 0.1);
    overflow: hidden;
    background: transparent;
    border-color: transparent;
    contain: layout style paint;
  }

  /* --- Animated Electric Border --- */
  @keyframes rotate-border {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
  }

  .service-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%) rotate(0deg);
    background: conic-gradient(
      from 0deg,
      transparent 60%,
      var(--color-primary) 80%,
      var(--color-accent) 90%,
      var(--color-primary) 100%
    );
    animation: rotate-border 4s linear infinite;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
  }

  .service-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 11px;
    background: var(--color-bg-card);
    pointer-events: none;
    z-index: -1;
  }

  .service-card:nth-child(2)::before { animation-delay: -0.67s; }
  .service-card:nth-child(3)::before { animation-delay: -1.33s; }
  .service-card:nth-child(4)::before { animation-delay: -2s; }
  .service-card:nth-child(5)::before { animation-delay: -2.67s; }
  .service-card:nth-child(6)::before { animation-delay: -3.33s; }

  /* --- Stat Number Glow --- */
  .stat-number {
    text-shadow: 0 0 14px var(--color-primary-dim), 0 0 36px rgba(0, 212, 255, 0.2);
  }

  /* --- CTA Phone Glow (static to avoid text-shadow repaint jank in Chromium) --- */
  .cta-phone {
    text-shadow: 0 0 16px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.3);
  }


  /* --- Neon Flicker on Logo Bolt (very subtle) --- */
  @keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
      opacity: 1;
    }
    20%, 24%, 55% {
      opacity: 0.88;
    }
  }

  .logo svg path {
    animation: neon-flicker 5s ease-in-out infinite;
  }

  /* --- Service Detail Cards get border too --- */
  .service-detail-card {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.18), 0 0 30px rgba(0, 212, 255, 0.1);
    overflow: hidden;
    background: transparent;
    border-color: transparent;
    contain: layout style paint;
  }

  .service-detail-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%) rotate(0deg);
    background: conic-gradient(
      from 0deg,
      transparent 60%,
      var(--color-primary) 80%,
      var(--color-accent) 90%,
      var(--color-primary) 100%
    );
    animation: rotate-border 4s linear infinite;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
  }

  .service-detail-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 11px;
    background: var(--color-bg-card);
    pointer-events: none;
    z-index: -1;
  }

  .service-detail-card:nth-child(2)::before { animation-delay: -0.67s; }
  .service-detail-card:nth-child(3)::before { animation-delay: -1.33s; }
  .service-detail-card:nth-child(4)::before { animation-delay: -2s; }
  .service-detail-card:nth-child(5)::before { animation-delay: -2.67s; }
  .service-detail-card:nth-child(6)::before { animation-delay: -3.33s; }

  /* --- Value cards subtle glow --- */
  .value-card {
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.18), 0 0 30px rgba(0, 212, 255, 0.1);
  }
}

/* ============================================
   Responsive - Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  /* Nav: full horizontal */
  .nav-toggle {
    display: none;
  }

  .nav-links {
    visibility: visible;
    position: static;
    display: flex;
    align-items: center;
    gap: 2rem;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav-links ul {
    flex-direction: row;
    gap: 0.25rem;
  }

  .nav-links a {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
  }

  .nav-cta {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .nav-cta .btn {
    width: auto;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  /* Hero */
  .hero {
    padding: 6rem 0 7rem;
  }

  /* Services grid: 2 columns */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About preview: side-by-side */
  .about-preview {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .about-stats-and-btn {
    margin: 0;
  }

  /* Footer grid */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }

  /* Service detail grid: 2 columns */
  .service-detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About story: side-by-side */
  .about-story {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  /* Value cards: 3 columns */
  .about-values {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Responsive - Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding: 7rem 0 8rem;
    min-height: 75vh;
  }

  .hero-content {
    max-width: 780px;
  }

  .section {
    padding: 6rem 0;
  }

  .service-detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* Scroll margin for anchor links with sticky header */
section[id] {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}
