/* ===== Built By Hodges — Design System ===== */
:root {
  --primary: #2E86C1;
  --primary-dark: #1E6FA0;
  --primary-light: #E8F4FD;
  --primary-50: #F0F8FF;
  --dark: #1E2D3D;
  --dark-light: #2B3E50;
  --gray-50: #F8FAFB;
  --gray-100: #EDF1F5;
  --gray-200: #D5DDE5;
  --gray-300: #B0BCC8;
  --gray-400: #8896A4;
  --gray-500: #6B7A8A;
  --gray-600: #4A5568;
  --white: #FFFFFF;
  --red: #E53E3E;
  --green: #38A169;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.08), 0 8px 20px rgba(0,0,0,0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); color: var(--dark); line-height: 1.6; background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; }

/* ===== LAYOUT ===== */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; color: var(--dark); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
p { color: var(--gray-500); line-height: 1.7; }
.kicker {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-header { margin-bottom: 56px; }
.section-header p { max-width: 560px; margin-top: 12px; font-size: 1.125rem; }
.section-header.center { text-align: center; }
.section-header.center p { margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(46,134,193,0.3);
}
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--dark); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-lg { padding: 18px 36px; font-size: 1rem; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--dark);
  z-index: 1001;
}
.nav-logo-img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--gray-500);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--dark); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.nav-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-full) !important;
  transition: all 0.3s var(--ease) !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  background: url('../Images/texture1.png') center/cover no-repeat;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-content h1 { margin-bottom: 20px; }
.hero-content h1 .accent { color: var(--primary); }
.hero-content > p { font-size: 1.25rem; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}
.hero-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--primary);
  opacity: 0.06;
  border-radius: 50%;
  z-index: -1;
}
.hero-decoration-1 { top: -40px; right: -40px; width: 240px; height: 240px; }
.hero-decoration-2 { bottom: -20px; left: -20px; width: 160px; height: 160px; }

/* ===== PAGE HERO ===== */
.page-hero {
  padding: 160px 0 80px;
  background: url('../Images/texture2.png') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { font-size: 1.125rem; max-width: 560px; }
.page-hero .hero-decoration {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--primary);
  opacity: 0.04;
  border-radius: 50%;
  top: -100px;
  right: -100px;
}

/* ===== SERVICE CARDS ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  border: 1px solid var(--gray-100);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.9375rem; }

/* ===== FEATURE ROW ===== */
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.feature-item { text-align: center; }
.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--primary);
}
.feature-item h3 { margin-bottom: 8px; }
.feature-item p { font-size: 0.9375rem; }

/* ===== PORTFOLIO CARDS ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.portfolio-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: all 0.4s var(--ease);
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.portfolio-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-50));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  position: relative;
  overflow: hidden;
}
.portfolio-thumb svg { opacity: 0.3; }
.portfolio-body { padding: 28px; }
.portfolio-body h3 { margin-bottom: 8px; }
.portfolio-body p { font-size: 0.9375rem; margin-bottom: 16px; }
.portfolio-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gray-50);
  color: var(--gray-500);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-100);
}
.portfolio-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s var(--ease);
}
.portfolio-link:hover { gap: 8px; }

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}
.about-image {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--gray-100), var(--primary-light));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: grayscale(100%);
}
.about-image-placeholder {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.875rem;
}
.about-image-placeholder svg { margin: 0 auto 12px; opacity: 0.4; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; font-size: 1.0625rem; }
.about-text .btn { margin-top: 12px; }

/* ===== HOW I WORK ===== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card { text-align: center; padding: 32px 24px; }
.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0 auto 20px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 0.9375rem; }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 80px 0;
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--primary);
  opacity: 0.08;
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: var(--primary);
  opacity: 0.05;
  border-radius: 50%;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p {
  color: var(--gray-300);
  margin-bottom: 32px;
  font-size: 1.125rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Alternate light CTA */
.cta-light {
  background: url('../Images/texture1.png') center/cover no-repeat, var(--gray-50);
  padding: 80px 0;
  text-align: center;
}
.cta-light h2 { margin-bottom: 16px; }
.cta-light p {
  margin-bottom: 32px;
  font-size: 1.125rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  color: var(--dark);
  background: var(--white);
  transition: all 0.2s var(--ease);
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,134,193,0.12);
}
.form-input::placeholder { color: var(--gray-300); }
textarea.form-input { resize: vertical; min-height: 120px; }
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238896A4' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-input.error { border-color: var(--red); }

.contact-info {
  padding: 40px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
}
.contact-info h3 { margin-bottom: 8px; }
.contact-info > p { margin-bottom: 32px; font-size: 0.9375rem; }
.contact-method {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-method:last-child { margin-bottom: 0; }
.contact-method-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-method-text h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 2px; }
.contact-method-text p { font-size: 0.875rem; }
.contact-method-text a { color: var(--primary); font-weight: 500; }
.contact-method-text a:hover { text-decoration: underline; }

/* Form success */
.form-success {
  display: none;
  text-align: center;
  padding: 60px 24px;
}
.form-success.active { display: block; }
.success-icon {
  width: 64px;
  height: 64px;
  background: #DEF7E5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--green);
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { max-width: 400px; margin: 0 auto; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 64px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-logo img { height: 32px; width: auto; }
.footer-brand p { color: var(--gray-400); font-size: 0.9375rem; max-width: 320px; }
.footer-links h4 {
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  color: var(--gray-400);
  font-size: 0.9375rem;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--gray-400);
  font-size: 0.8125rem;
}

/* ===== ANIMATED BACKGROUNDS ===== */

/* Positioning context for all sections */
.hero, .page-hero, .section, .cta-section, .cta-light, .footer {
  position: relative;
  overflow: hidden;
}

/* Content stays above backgrounds */
.container { position: relative; z-index: 2; }

/* ── Dot grid on light sections ── */
.bg-light::after,
.cta-light::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(46,134,193,0.18) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ── Fine grid on regular sections ── */
.section:not(.bg-light)::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46,134,193,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46,134,193,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── Gradient blobs ── */
.bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  filter: blur(40px);
}

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(80px, -50px) scale(1.15); }
  50% { transform: translate(-40px, 60px) scale(0.85); }
  75% { transform: translate(50px, 25px) scale(1.08); }
}
@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, 50px) scale(1.12); }
  66% { transform: translate(70px, -40px) scale(0.9); }
}
@keyframes blob-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(0.95); }
  20% { transform: translate(50px, 70px) scale(1.1); }
  40% { transform: translate(-70px, -25px) scale(1.02); }
  60% { transform: translate(25px, -60px) scale(1.18); }
  80% { transform: translate(-35px, 35px) scale(0.88); }
}

/* ── Floating particles ── */
.bg-particle {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

/* Light section particles — BOLD */
.bg-particle--circle {
  border-radius: 50%;
  border: 2px solid rgba(46,134,193,0.5);
}
.bg-particle--dot {
  border-radius: 50%;
  background: rgba(46,134,193,0.4);
}
.bg-particle--square {
  border: 2px solid rgba(46,134,193,0.4);
}
.bg-particle--plus {
  color: rgba(46,134,193,0.45);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}
.bg-particle--bracket {
  color: rgba(46,134,193,0.4);
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.bg-particle--line {
  height: 2px;
  background: rgba(46,134,193,0.35);
  border-radius: 1px;
}

/* Dark section particles */
.cta-section .bg-particle--circle { border-color: rgba(255,255,255,0.3); }
.cta-section .bg-particle--dot { background: rgba(255,255,255,0.25); }
.cta-section .bg-particle--square { border-color: rgba(255,255,255,0.25); }
.cta-section .bg-particle--plus { color: rgba(255,255,255,0.3); }
.cta-section .bg-particle--bracket { color: rgba(255,255,255,0.3); }
.cta-section .bg-particle--line { background: rgba(255,255,255,0.2); }
.footer .bg-particle--circle { border-color: rgba(255,255,255,0.2); }
.footer .bg-particle--dot { background: rgba(255,255,255,0.15); }
.footer .bg-particle--square { border-color: rgba(255,255,255,0.15); }
.footer .bg-particle--plus { color: rgba(255,255,255,0.2); }
.footer .bg-particle--bracket { color: rgba(255,255,255,0.2); }
.footer .bg-particle--line { background: rgba(255,255,255,0.15); }

@keyframes particle-float-1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(25px, -35px) rotate(90deg); }
  50% { transform: translate(-18px, -70px) rotate(180deg); }
  75% { transform: translate(30px, -35px) rotate(270deg); }
}
@keyframes particle-float-2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-30px, -45px) rotate(120deg); }
  66% { transform: translate(25px, -80px) rotate(240deg); }
}
@keyframes particle-float-3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  20% { transform: translate(35px, -25px) rotate(72deg) scale(1.15); }
  40% { transform: translate(-25px, -55px) rotate(144deg) scale(0.85); }
  60% { transform: translate(18px, -40px) rotate(216deg) scale(1.1); }
  80% { transform: translate(-12px, -18px) rotate(288deg) scale(0.92); }
}
@keyframes particle-float-4 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-35px, -55px) rotate(180deg); }
}

/* ── Mouse glow ── */
.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,134,193,0.18) 0%, rgba(46,134,193,0.06) 35%, transparent 65%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.12s ease-out, top 0.12s ease-out, opacity 0.3s;
  opacity: 0;
}
.mouse-glow.active { opacity: 1; }

/* ── Hero gradient wash ── */
.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 10% 85%, rgba(46,134,193,0.12), transparent),
    radial-gradient(ellipse 600px 600px at 90% 15%, rgba(46,134,193,0.1), transparent),
    radial-gradient(ellipse 500px 400px at 50% 50%, rgba(30,45,61,0.06), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ── Scan line on dark sections ── */
.cta-section .scan-line,
.footer .scan-line {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,134,193,0.4), transparent);
  z-index: 1;
  pointer-events: none;
  animation: scan-sweep 6s linear infinite;
}
@keyframes scan-sweep {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ── Glow border on CTA ── */
.cta-section .glow-border {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(46,134,193,0.4) 20%,
    rgba(46,134,193,0.7) 50%,
    rgba(46,134,193,0.4) 80%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
  animation: glow-slide 4s ease-in-out infinite alternate;
}
@keyframes glow-slide {
  0% { opacity: 0.4; transform: scaleX(0.5); }
  100% { opacity: 1; transform: scaleX(1); }
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== UTILITIES ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.bg-light {
  background: url('../Images/texture2.png') center/cover no-repeat, var(--gray-50);
}

/* ===== RESPONSIVE ===== */

/* ── Tablet ── */
@media (max-width: 968px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-content { max-width: 600px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feature-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section-header { margin-bottom: 40px; }
  .section-header p { font-size: 1rem; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 14px 0; }
  .nav.scrolled { padding: 10px 0; }
  .nav-logo-img { height: 28px; }
  .nav-logo span { font-size: 0.95rem; }
  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: #ffffff !important;
    background-image: none !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    /* Snappy + reliable — transform + visibility, no opacity fade */
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.22s var(--ease), visibility 0s linear 0.22s;
    z-index: 1500;
    padding: 0 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.22s var(--ease), visibility 0s linear 0s;
  }
  .nav-links a {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    padding: 8px 16px;
  }
  .nav-links a.active::after { display: none; }
  .nav-links .nav-cta {
    margin-top: 8px;
    padding: 14px 32px !important;
  }
  .nav-toggle { display: flex; position: relative; z-index: 1600; }

  /* Lock body scroll when the mobile nav overlay is open */
  body.nav-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
  }

  /* Typography — tighter */
  h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 2rem); }
  h3 { font-size: 1.1rem; }
  .kicker { font-size: 0.75rem; margin-bottom: 8px; }

  /* Hero — compact */
  .hero {
    min-height: auto;
    padding: 90px 0 40px;
  }
  .hero-content h1 { margin-bottom: 14px; }
  .hero-content > p { font-size: 1rem; margin-bottom: 24px; }
  .hero-actions { gap: 10px; }

  /* Page hero — compact */
  .page-hero { padding: 90px 0 36px; }
  .page-hero p { font-size: 0.95rem; }

  /* Sections — tight */
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 28px; }
  .section-header p { font-size: 0.95rem; margin-top: 8px; }

  /* Grids — single column, tight gaps */
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-row { grid-template-columns: 1fr; gap: 20px; }
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 12px; }

  /* Cards — compact */
  .service-card { padding: 24px 20px; }
  .service-icon { width: 40px; height: 40px; margin-bottom: 14px; }
  .service-card p { font-size: 0.875rem; }

  .feature-item { text-align: left; display: flex; gap: 16px; align-items: flex-start; }
  .feature-icon { width: 48px; height: 48px; margin: 0; flex-shrink: 0; }
  .feature-item h3 { margin-bottom: 4px; }
  .feature-item p { font-size: 0.875rem; }

  .step-card { padding: 20px 16px; text-align: left; display: flex; gap: 16px; align-items: flex-start; }
  .step-number { width: 40px; height: 40px; font-size: 1rem; margin: 0; flex-shrink: 0; }
  .step-card h3 { margin-bottom: 4px; }
  .step-card p { font-size: 0.875rem; }

  /* About — compact */
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .about-image {
    aspect-ratio: 4/5;
    max-width: 320px;
    margin: 0 auto;
  }
  .about-text h2 { margin-bottom: 14px; }
  .about-text p { font-size: 0.95rem; margin-bottom: 12px; }

  /* CTA — tight */
  .cta-section, .cta-light { padding: 40px 0; }
  .cta-section h2, .cta-light h2 { margin-bottom: 10px; }
  .cta-section p, .cta-light p { font-size: 0.95rem; margin-bottom: 24px; }

  /* Contact — compact */
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-group { margin-bottom: 14px; }
  .form-group label { font-size: 0.8125rem; margin-bottom: 4px; }
  .form-input { padding: 10px 14px; font-size: 0.875rem; }
  .contact-info { padding: 28px 24px; }
  .contact-info h3 { font-size: 1.1rem; }
  .contact-method { margin-bottom: 20px; gap: 12px; }
  .contact-method-icon { width: 36px; height: 36px; }

  /* Footer — compact */
  .footer { padding: 40px 0 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
  .footer-logo { margin-bottom: 8px; }
  .footer-logo img { height: 24px; }
  .footer-logo span { font-size: 0.95rem; }
  .footer-brand p { font-size: 0.8125rem; }
  .footer-links h4 { margin-bottom: 8px; font-size: 0.75rem; }
  .footer-links a { font-size: 0.8125rem; padding: 3px 0; }
  .footer-bottom { padding-top: 16px; flex-direction: column; gap: 4px; text-align: center; font-size: 0.75rem; }

  /* Buttons — full width on mobile */
  .btn-lg { padding: 14px 24px; font-size: 0.9375rem; }

  /* Portfolio thumb */
  .portfolio-thumb { height: 160px; }
  .portfolio-body { padding: 20px; }
  .portfolio-body p { font-size: 0.875rem; }
}

/* ── Small phones ── */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.35rem; }

  .hero { padding: 80px 0 32px; }
  .hero-content > p { font-size: 0.9375rem; margin-bottom: 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .page-hero { padding: 80px 0 28px; }

  .section { padding: 36px 0; }
  .section-header { margin-bottom: 24px; }

  .cta-section, .cta-light { padding: 32px 0; }

  .about-image { aspect-ratio: 4/5; max-width: 280px; }
  .about-text .btn { width: 100%; justify-content: center; }

  .service-card { padding: 20px 16px; }

  .footer { padding: 32px 0 16px; }
  .footer-inner { gap: 20px; margin-bottom: 20px; }
}

/* ──────────────────────────────────────────
   MOBILE: TONE DOWN THE AMBIENT NOISE
   The textures and floating particles stay
   (they're on-brand), but we dim them, drop
   the particle count in JS, and hide the
   loudest layers — grid overlays, hero
   gradient wash, scan lines, glow borders,
   and the desktop hero-decoration blobs.
   ────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Loudest desktop-only layers — gone */
  .mouse-glow,
  .scan-line,
  .glow-border,
  .hero-decoration { display: none !important; }

  .hero::after,
  .page-hero::after,
  .bg-light::after,
  .cta-light::after,
  .section::after,
  .section:not(.bg-light)::after { display: none !important; }

  /* Textures stay but layered under a white veil so the streaks
     and corner tech-shapes read as subtle ambient wash, not noise */
  .hero {
    background:
      linear-gradient(rgba(255,255,255,0.62), rgba(255,255,255,0.62)),
      url('../Images/texture1.png') center/cover no-repeat !important;
    min-height: auto !important;
  }
  .page-hero {
    background:
      linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)),
      url('../Images/texture2.png') center/cover no-repeat !important;
  }
  .bg-light {
    background:
      linear-gradient(rgba(255,255,255,0.55), rgba(255,255,255,0.55)),
      url('../Images/texture2.png') center/cover no-repeat,
      var(--gray-50) !important;
  }
  .cta-light {
    background:
      linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),
      url('../Images/texture1.png') center/cover no-repeat,
      var(--gray-50) !important;
  }

  /* Mobile: kill all particles and blobs entirely. Clean and fast. */
  .bg-particle,
  .bg-blob {
    display: none !important;
  }
}

/* Respect reduce-motion: keep particles visible but stop animating */
@media (prefers-reduced-motion: reduce) {
  .bg-particle,
  .bg-blob,
  .scan-line,
  .glow-border {
    animation: none !important;
  }
}
