:root {
  --color-primary: #0A1128; /* Deep Navy */
  --color-accent: #1288B8; /* Vibrant Teal */
  --color-secondary: #FFB800; /* Golden Yellow */
  --color-light: #F0F4F8; /* Light Gray */
  --color-white: #FFFFFF; /* Pure White */
  --color-muted: #6B7280; /* Muted Gray */
  
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

body {
  font-family: var(--font-primary);
  color: var(--color-primary);
  background-color: var(--color-light);
  overflow-x: hidden;
  /* Subtle texture */
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="4" height="4"%3E%3Cpath d="M1 1h2v2H1z" fill="%23000" fill-opacity=".01"/%3E%3C/svg%3E');
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseEffect {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(18, 136, 184, 0.4); }
  50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(18, 136, 184, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(18, 136, 184, 0); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-300 { animation-delay: 0.3s; }
.delay-500 { animation-delay: 0.5s; }

/* Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Header */
header.sticky-header {
  transition: all 0.3s ease;
}
header.sticky-header.scrolled {
  height: 72px !important;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
header.sticky-header.scrolled .logo-img {
  height: 36px;
}
header.sticky-header.scrolled nav a {
  font-size: 0.95rem;
}

/* Nav Link Hover - Progressive Underline */
.nav-link {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  color: var(--color-primary);
  transition: color 0.3s ease;
}
.nav-link::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.nav-link:hover::before, .nav-link.active::before {
  transform: scaleX(1);
}
.nav-link.active {
  color: var(--color-accent);
  font-weight: 600;
}

/* Primary CTA Button */
.cta-primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  border: 2px solid transparent;
}
.cta-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.02);
  border-color: var(--color-primary);
}
.cta-primary.pulse-hover:hover {
  animation: pulseEffect 1s infinite;
}

/* Secondary CTA Button */
.cta-secondary {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 0.75rem 1.5rem;
  border-radius: 0.375rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}
.cta-secondary:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* Tertiary Link */
.tertiary-link {
  color: var(--color-accent);
  font-weight: 600;
  transition: text-decoration 0.3s ease;
}
.tertiary-link:hover {
  text-decoration: underline;
}

/* Hero Section Image (NO OVERLAYS PER INSTRUCTIONS) */
.hero-bg-image {
  background-size: cover;
  background-position: center;
  background-attachment: scroll; /* parallax fallback */
}
@media (min-width: 1024px) {
  .hero-bg-image.parallax {
    background-attachment: fixed;
  }
}

/* Service Card */
.service-card {
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}
.service-card:hover .service-icon {
  transform: scale(1.1);
}
.service-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 1.25rem;
  transition: transform 0.2s ease-out;
}

/* Project Card */
.project-card {
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--color-white);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.project-image-wrap {
  overflow: hidden;
  position: relative;
}
.project-image-wrap img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-image-wrap img {
  transform: scale(1.05);
}

/* Team Member Card */
.team-member {
  text-align: center;
  background: var(--color-white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}
.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}
.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--color-light);
  transition: border-color 0.3s ease;
}
.team-member:hover .profile-photo {
  border-color: var(--color-accent);
}

/* Testimonial Carousel */
.testimonial-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  margin: 1rem;
}
.star-rating svg {
  color: var(--color-secondary);
  width: 20px;
  height: 20px;
}

/* Forms */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-muted);
  border-radius: 0.375rem;
  transition: border-color 0.3s ease;
  background-color: var(--color-white);
  color: var(--color-primary);
}
.form-input:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: var(--color-primary);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu a {
  color: var(--color-white);
  font-size: 1.5rem;
  margin: 1rem 0;
  text-decoration: none;
  font-weight: 600;
}
.hamburger-icon {
  width: 24px;
  height: 24px;
  cursor: pointer;
  color: var(--color-primary);
  transition: transform 0.2s ease, color 0.2s ease;
}
.hamburger-icon:hover, .mobile-phone-icon:hover {
  transform: scale(1.1);
  color: var(--color-accent);
}

/* Accordion */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}
.accordion-toggle[aria-expanded="true"] + .accordion-content {
  max-height: 1000px; /* arbitrary large value */
}
.accordion-icon {
  transition: transform 0.3s ease;
}
.accordion-toggle[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

/* SVG icons */
.svg-icon {
  transition: transform 0.15s ease-out, color 0.15s ease-out;
}
.svg-icon:hover {
  transform: scale(1.1);
  color: var(--color-accent);
}

/* Section Reveal */
.reveal-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-section {
    opacity: 1;
    transform: none;
  }
  .hero-bg-image.parallax {
    background-attachment: scroll;
  }
}
