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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --accent: #0052ff; /* High-contrast Electric Blue */
  --accent-hover: #0040c7;
  --border-color: #e2e8f0;
  --max-width: 1100px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for sticky header */
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

/* Sticky Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background-color: rgba(255, 255, 255, 0);
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: height 0.3s ease;
}

header.scrolled .header-container {
  height: 70px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-weight: 400;
  color: var(--text-secondary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: var(--text-primary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 80px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.65)), url('bigbear.jpg?v=3');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 4.75rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
}

.hero p {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: #ffffff;
  padding: 1.1rem 2.2rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn:hover {
  background-color: var(--accent-hover);
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-primary);
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Section Common */
section {
  padding: 140px 0;
  border-bottom: 1px solid var(--border-color);
}

section:last-of-type {
  border-bottom: none;
}

.section-header {
  margin-bottom: 70px;
  max-width: 600px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

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

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  background-color: var(--bg-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.04);
}

.service-card-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border-color);
}

.service-card-body {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-icon {
  margin-bottom: 1.25rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 1.5px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

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

/* Pricing Section */
.pricing-container {
  max-width: 800px;
  margin-top: 2rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-color);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-info {
  flex: 1;
  padding-right: 2rem;
}

.pricing-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.pricing-details {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.pricing-rate {
  font-size: 1.35rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: center;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.75rem;
  line-height: 1.7;
}

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

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Clean vector oscilloscope/schematic representation */
.about-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  border-radius: 4px;
  padding: 2rem;
}

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

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-meta {
  list-style: none;
  margin-top: 2rem;
}

.contact-meta li {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-meta svg {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-meta span {
  color: var(--text-secondary);
}

.contact-meta strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.25rem;
}

/* Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

.form-control {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-color);
  background-color: var(--bg-primary);
  border-radius: 4px;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

/* Footer */
footer {
  background-color: var(--bg-secondary);
  padding: 80px 0 60px 0;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.footer-brand p {
  max-width: 400px;
  margin-bottom: 1rem;
}

.footer-certs {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
}

.footer-cert-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-cert-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  section {
    padding: 100px 0;
  }
  
  .about-grid, .contact-grid {
    gap: 3.5rem;
  }
}

@media (max-width: 768px) {
  header {
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .header-container {
    height: 70px;
  }
  
  .menu-toggle {
    display: block;
  }

  /* Hamburger Active Animation */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
    z-index: 99;
    border-top: 1px solid var(--border-color);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    font-size: 1.25rem;
    font-weight: 600;
  }

  .hero {
    padding-top: 120px;
  }

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

  .pricing-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pricing-rate {
    text-align: left;
  }

  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .about-visual {
    order: -1;
  }

  .about-svg {
    max-width: 260px;
  }

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

  .footer-links {
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* Admin Shortcut Icon */
.admin-shortcut {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  color: var(--text-muted);
  opacity: 0.15;
  transition: opacity 0.25s ease, color 0.25s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  background-color: transparent;
}

.admin-shortcut:hover {
  opacity: 0.9;
  color: var(--accent);
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .admin-shortcut {
    bottom: 16px;
    left: 16px;
  }
}

