:root {
  --bg: #f9fafb;
  --bg-alt: #ffffff;
  --card: #ffffff;
  --accent: #0b2348;
  --accent-soft: rgba(11, 35, 72, 0.08);
  --accent-2: #f97316;
  --brand-accent: #d73f27;
  --text: #0f172a;
  --muted: #6b7280;
  --border-subtle: rgba(15, 23, 42, 0.08);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.55);
  --shadow-subtle: 0 10px 30px rgba(0, 0, 0, 0.4);
  --blur: 24px;
  --spacing: 1rem;
  --transition-fast: 0.18s ease-out;
  --transition-med: 0.28s ease;
  --main-bg-gradient: radial-gradient(
    circle at top,
    rgba(15, 23, 42, 1) 0,
    #0b2348 45%,
    #020617 100%
  );
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  padding-top: var(--header-height);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: var(--main-bg-gradient);
  color: #e5e7eb;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: clamp(16px, 1.2vw, 20px);
}

h1 {
  font-size: clamp(32px, 5vw, 80px);
}

h2 {
  font-size: clamp(24px, 4vw, 48px);
}

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

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent-2);
  color: #fff;
  border-radius: 0.5rem;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

button {
  font: inherit;
}

main {
  overflow-x: hidden;
  max-width: 100%;
}

.container {
  width: min(1800px, 100% - 2rem);
  margin-inline: auto;
  max-width: 100%;
}

.header .container {
  width: min(1800px, 100% - 3rem);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  backdrop-filter: none;
  background: var(--main-bg-gradient);
  border-bottom: 1px solid rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  transition: transform 0.3s ease-out;
}

.header--hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 1rem;
  display: block;
  object-fit: contain;
  background: #ffffff;
  padding: 0.18rem;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.7);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #f9fafb;
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--accent-2);
}

.logo-tagline-white {
  color: #ffffff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  justify-content: center;
  position: relative;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.9rem;
  color: #e5e7eb;
  position: relative;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: linear-gradient(
    120deg,
    rgba(2, 6, 23, 0.78) 0%,
    rgba(11, 35, 72, 0.82) 55%,
    rgba(2, 6, 23, 0.78) 100%
  );
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.22);
  transition: color var(--transition-fast), background-position var(--transition-med),
    border-color var(--transition-fast), transform var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width var(--transition-med);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-2);
  background-position: 100% 50%;
  border-color: rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  position: static;
}

.header .btn-primary {
  background: linear-gradient(120deg, var(--accent-2), #fda54b);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.45);
}

.header .btn-primary:hover {
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.65);
}

.nav-toggle,
.nav-close {
  display: none;
  background: none;
  border: none;
  color: #e5e7eb;
}

.nav-toggle {
  flex-direction: column;
  gap: 0.28rem;
}

.nav-toggle span {
  width: 1.5rem;
  height: 3px;
  border-radius: 999px;
  background: #e5e7eb;
}

.hero {
  padding: 4.5rem 0 3.5rem;
  min-height: 85vh;
  position: relative;
  overflow: hidden;
  background-color: transparent;
  display: flex;
  align-items: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(42px);
  opacity: 0.9;
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 360px;
  top: -140px;
  right: -80px;
  background: radial-gradient(circle at center, rgba(11, 35, 72, 0.18), transparent 65%);
}

.hero::after {
  width: 260px;
  height: 260px;
  bottom: -120px;
  left: -60px;
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.22), transparent 65%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr);
  align-items: center;
  gap: 3.5rem;
  position: relative;
  z-index: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.5),
      rgba(0, 0, 0, 0.7)
    );
  z-index: 0;
  pointer-events: none;
}

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

.hero-content h1 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-align: center;
}

.hero-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.hero-title-main {
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0 0 0.75rem;
  color: #ffffff;
  text-shadow: 0 14px 40px rgba(15, 23, 42, 0.9);
}

.hero-title-main .hero-vision {
  background: linear-gradient(120deg, #fed7aa, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 16px rgba(249, 115, 22, 0.7),
    0 0 32px rgba(249, 115, 22, 0.55);
}

.hero-title-sub {
  margin: 0 auto 0.6rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: clamp(1.25rem, 2.6vw, 1.9rem);
  color: rgba(229, 231, 235, 0.95);
  position: relative;
  width: fit-content;
  margin-inline: auto;
  text-align: center;
}

.hero-title-sub::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}

.accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #e5e7eb;
  margin-bottom: 0.8rem;
}

.hero-subtitle {
  color: #e5e7eb;
  max-width: 36rem;
  margin-bottom: 0.75rem;
  text-align: center;
  margin-inline: auto;
}

.hero-subtitle-body {
  margin-top: 2.1rem;
}

.hero-subtitle-secondary {
  color: #e5e7eb;
  max-width: 32rem;
  margin-bottom: 1.6rem;
  font-size: 0.95rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 18px 50px rgba(42, 98, 255, 0.75);
}

/* Heartbeat / pulsing CTA for important downloads */
.btn-pulse {
  position: relative;
  animation: pulse-heartbeat 1.6s ease-in-out infinite;
  transform-origin: center;
}

@keyframes pulse-heartbeat {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(215, 63, 39, 0.5);
  }
  15% {
    transform: scale(1.06);
    box-shadow: 0 0 0 6px rgba(215, 63, 39, 0.25);
  }
  30% {
    transform: scale(0.98);
    box-shadow: 0 0 0 3px rgba(215, 63, 39, 0.18);
  }
  45% {
    transform: scale(1.04);
    box-shadow: 0 0 0 8px rgba(215, 63, 39, 0.22);
  }
  60%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(215, 63, 39, 0);
  }
}

/* Hero primary & secondary CTA using brand accent */
.hero .btn-primary {
  background: linear-gradient(135deg, var(--brand-accent), #ff7a3c);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8);
}

.hero .btn-primary:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.95);
}

.hero .btn-outline {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
  background: rgba(0, 0, 0, 0.45);
}

.hero .btn-outline:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: #ff8a55;
}

/* Explore Services – cursor-follow hover animation */
.btn-explore {
  position: relative;
  overflow: hidden;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.btn-explore::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mouse-x) var(--mouse-y),
    rgba(249, 115, 22, 0.55) 0%,
    rgba(249, 115, 22, 0.25) 35%,
    transparent 65%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 0;
}

/* Desktop: hover. Mobile: :active (only while finger is down) */
.btn-explore:hover::before,
.btn-explore:active::before {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.45);
  border-color: rgba(148, 163, 184, 0.8);
}

.hero-image,
.about-image,
.service-image {
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.hero-card-main:hover .hero-image,
.about-media:hover .about-image,
.service-card:hover .service-image {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
}

.btn-small {
  padding: 0.45rem 1.1rem;
  font-size: 0.8rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.hero-meta {
  display: none;
}

.hero-visual {
  position: relative;
}

.hero-card {
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.hero-card-main {
  padding: 1.4rem;
  position: relative;
}

.hero-image {
  border-radius: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: none;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.stat {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 0.9rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #e5e7eb;
}

.hero-card-main .stat:nth-child(1) {
  animation: float 7s ease-in-out infinite alternate;
}

.hero-card-main .stat:nth-child(2) {
  animation: float 7s ease-in-out infinite alternate;
  animation-delay: 0.6s;
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  display: block;
  margin-bottom: 0.15rem;
}

.stat-value {
  font-size: 0.8rem;
}

.hero-card-floating {
  position: absolute;
  right: 0.4rem;
  bottom: -1.3rem;
  padding: 0.55rem 0.8rem;
  width: min(13rem, 72%);
  backdrop-filter: blur(var(--blur));
  background: rgba(255, 255, 255, 0.96);
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: var(--shadow-subtle);
  animation: float 6s ease-in-out infinite alternate;
}

.floating-title {
  font-size: 0.85rem;
  font-weight: 600;
}

.floating-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
}

.section {
  padding: 4rem 0;
  position: relative;
}

.section + .section {
  margin-top: 0;
}

/* Reduce gap between "Why choose BarNeural" and "What we do" (both desktop & mobile) */
#why-us {
  padding-bottom: 2.6rem;
}

#services {
  padding-top: 2.6rem;
  margin-top: 0;
}

.section-alt {
  background: transparent;
}

/* Stronger visual separation between key sections */
#technologies {
  position: relative;
  background-color: #020617;
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.6)
    ),
    url("image/web-design.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #e5e7eb;
}

#technologies .section-header h2,
#technologies .section-header p {
  color: #e5e7eb;
}

#technologies .section-header .eyebrow {
  background: rgba(15, 23, 42, 0.9);
  color: #bfdbfe;
}

@media (min-width: 1200px) {
  #technologies .section-header h2 {
    font-size: clamp(28px, 3vw, 40px);
  }

  #technologies .section-subtitle,
  #technologies .service-list li,
  #technologies .service-card h3 {
    font-size: 1.1875rem;
  }
}

#portfolio.section-alt {
  background: radial-gradient(
      circle at top,
      rgba(15, 23, 42, 0.9) 0,
      #0b2348 45%,
      #020617 100%
    );
}

#portfolio.section-alt .section-header h2,
#portfolio.section-alt .section-header p {
  color: #e5e7eb;
}

#portfolio.section-alt .section-header .eyebrow {
  background: rgba(15, 23, 42, 0.9);
  color: #bfdbfe;
}

#pricing {
  background: radial-gradient(
      circle at top,
      rgba(15, 23, 42, 0.9) 0,
      #0b2348 45%,
      #020617 100%
    );
  color: #e5e7eb;
}

#pricing .section-header h2,
#pricing .section-header p {
  color: #e5e7eb;
}

#pricing .section-header .eyebrow {
  background: rgba(15, 23, 42, 0.9);
  color: #bfdbfe;
}

#pricing .btn-primary {
  background: linear-gradient(135deg, #0b2348, #1d4ed8);
  border-color: rgba(59, 130, 246, 0.9);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
  color: #f9fafb;
}

#pricing .btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #0b2348);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.95);
}

#home-cta {
  background: radial-gradient(
      circle at top,
      rgba(11, 35, 72, 0.9) 0,
      #0b2348 45%,
      #020617 100%
    );
  color: #e5e7eb;
}

#home-cta .eyebrow {
  color: #bfdbfe;
}

#home-cta h2 {
  color: #f9fafb;
}

#home-cta .contact-intro p {
  color: #cbd5f5;
}

#home-cta .detail-label {
  color: #f97316;
}

#home-cta .detail-value {
  color: #e5e7eb;
}

#home-cta .about-image {
  border-color: rgba(148, 163, 184, 0.4);
}

#contact {
  background: radial-gradient(
      circle at top,
      rgba(15, 23, 42, 0.9) 0,
      #0b2348 45%,
      #020617 100%
    );
  color: #e5e7eb;
}

#contact .eyebrow {
  color: #bfdbfe;
}

#contact h2 {
  color: #f9fafb;
}

#contact .contact-intro p {
  color: #e5e7eb;
}

#contact .detail-label {
  color: #f97316;
}

#contact .detail-value {
  color: #e5e7eb;
}

#contact .social-links {
  margin-top: 0.8rem;
}

.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}

.section-header {
  text-align: center;
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: 2.4rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
}

#home-services .section-subtitle,
#services .section-subtitle {
  color: #ffffff;
}

.section-header .btn-primary {
  margin-top: 1.1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

@media (min-width: 1200px) {
  .services-grid {
    gap: 2.25rem;
  }

  .service-card {
    padding: 1.4rem 1.8rem 1.9rem;
  }

  .service-image {
    margin-bottom: 1.1rem;
  }

  /* Desktop paragraph & table-like content sizing (~19px) */
  p,
  .section-subtitle,
  .service-card p,
  .portfolio-body p,
  .contact-intro p,
  .about-content p,
  .why-lead,
  .why-column p,
  .service-list li,
  .package-name,
  .package-desc {
    font-size: 1.1875rem;
  }

  .detail-value {
    font-size: 1.1875rem;
  }
}

.tech-visual {
  max-width: 640px;
  margin: 2.4rem auto 0;
}

.tech-visual-inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: none;
}

.service-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.5rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
  border-top: 3px solid rgba(249, 115, 22, 0.4);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at top,
    rgba(37, 99, 235, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--transition-med);
}

.service-card > * {
  position: relative;
}

.service-image {
  width: 100%;
  border-radius: 0.9rem;
  margin-bottom: 0.9rem;
  object-fit: cover;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(249, 115, 22, 0.14));
  display: grid;
  place-items: center;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #f9fafb;
}

.service-card p {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.8rem;
}

.service-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.service-heading-icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.4), rgba(15, 23, 42, 0.9));
  display: grid;
  place-items: center;
  color: #f97316;
}

.service-heading-text h3 {
  margin: 0 0 0.15rem;
}

.service-heading-text p {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5f5;
}

/* Centered heading for pricing packages */
#pricing .service-heading {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#pricing .service-heading-icon {
  margin-bottom: 0.4rem;
}

#pricing .service-heading-text h3 {
  margin-bottom: 0.25rem;
}

.package-table {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.95), #020617);
  overflow: hidden;
}

.package-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: 0.75rem;
  padding: 0.6rem 0.8rem;
  border-top: 1px solid rgba(15, 23, 42, 0.9);
}

.package-row:first-child {
  border-top: none;
}

.package-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #f97316;
}

.package-desc {
  font-size: 0.8rem;
  color: #e5e7eb;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.service-list li {
  font-size: 0.8rem;
  color: #e5e7eb;
}

/* Ticked list style for Technologies section */
#technologies .service-list li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

#technologies .service-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.9);
  color: #f97316;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 2.5rem;
  align-items: center;
}

#about {
  background: radial-gradient(
      circle at top,
      rgba(15, 23, 42, 0.9) 0,
      #0b2348 45%,
      #020617 100%
    );
}

#home-services {
  background: radial-gradient(
      circle at top,
      rgba(15, 23, 42, 0.9) 0,
      #0b2348 45%,
      #020617 100%
    );
}


.why-inner {
  max-width: 780px;
  margin-inline: auto;
}

.why-lead {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}

.why-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.why-column h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

#why-us .why-column h3 {
  color: #f97316;
}

.why-column p {
  font-size: 0.9rem;
  color: var(--muted);
}

#why-us .why-lead,
#why-us .why-column p {
  color: #ffffff;
}

.about-media {
  position: relative;
}

.about-image {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
}

.about-media::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: radial-gradient(
      circle at top,
      rgba(59, 130, 246, 0.35),
      transparent 65%
    );
  opacity: 0.9;
  filter: blur(18px);
  z-index: -1;
}

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

.about-content p {
  font-size: 0.95rem;
  color: #e5e7eb;
}

.about-content p + p {
  margin-top: 0.6rem;
}

.about-points {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.about-point {
  padding: 0.7rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.about-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #f97316;
  display: block;
  margin-bottom: 0.1rem;
}

.about-value {
  font-size: 0.85rem;
  color: #e5e7eb;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.portfolio-card {
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-top: 3px solid rgba(249, 115, 22, 0.4);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-med), box-shadow var(--transition-med);
}

.portfolio-media img {
  width: 100%;
  display: block;
  box-shadow: none;
  transition: transform var(--transition-med);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.4);
}

.portfolio-card:hover .portfolio-media img {
  transform: scale(1.05);
}

.portfolio-body {
  padding: 1rem 1.2rem 1.2rem;
}

.portfolio-body h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #f9fafb;
}

.portfolio-body p {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.portfolio-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.2fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.contact-intro h2 {
  margin-bottom: 0.5rem;
}

.contact-intro p {
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-details {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.2rem;
  margin-bottom: 1.4rem;
}

.contact-details .detail {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.detail-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(249, 115, 22, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 1rem;
}

.detail-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-2);
  display: block;
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 400;
  color: #ffffff;
}

#contact .detail-value,
#home-cta .detail-value {
  font-size: 0.95rem;
  font-weight: 400;
  color: #ffffff;
}

#contact .detail-icon,
#home-cta .detail-icon {
  color: #f97316;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.social-links a {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  transition: background var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), border-color var(--transition-fast);
}

.social-links a:hover {
  background: var(--accent-soft);
  color: #fff;
  border-color: rgba(37, 99, 235, 0.9);
  transform: translateY(-1px);
}

.contact-panel {
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 1.6rem 1.5rem 1.7rem;
  box-shadow: var(--shadow-soft);
}

.contact-right {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-subtle);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-panel h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.panel-subtitle {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 1.1rem;
}

.contact-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.btn-whatsapp {
  background: #16a34a;
  color: #fff;
}

.btn-whatsapp:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(22, 163, 74, 0.55);
}

.btn-email {
  background: #eff6ff;
  color: #1f2937;
  border-color: rgba(148, 163, 184, 0.65);
}

.btn-email:hover {
  background: rgba(15, 23, 42, 1);
  transform: translateY(-1px);
}

.btn-call {
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.6);
}

.btn-call:hover {
  background: rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

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

.form-group label {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.55rem 0.8rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #f9fafb;
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(148, 163, 184, 0.7);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(37, 99, 235, 0.9);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.5);
  background: #ffffff;
}

.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.footer {
  border-top: 1px solid rgba(15, 23, 42, 0.7);
  padding: 0.5rem 0 0.6rem;
  background: radial-gradient(
      circle at top,
      rgba(15, 23, 42, 0.9) 0,
      #0b2348 45%,
      #020617 100%
    );
  color: #e5e7eb;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-text {
  display: flex;
  flex-direction: column;
}

.footer-name {
  margin: 0;
  font-weight: 500;
  color: #f9fafb;
}

.footer-copy {
  color: #ffffff;
}


.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 60;
  padding: 0.75rem 0;
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
}

.cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.cookie-text {
  margin: 0;
  font-size: 0.78rem;
}

@media (max-width: 640px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-delay="100"] {
  transition-delay: 0.08s;
}

[data-delay="200"] {
  transition-delay: 0.16s;
}

[data-delay="250"] {
  transition-delay: 0.2s;
}

[data-delay="300"] {
  transition-delay: 0.24s;
}

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

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr);
  }

  .hero-visual {
    order: 1;
  }

  .hero-content {
    order: 0;
  }

  .hero-card-floating {
    right: 0.8rem;
    bottom: -1.1rem;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-media::before {
    inset-inline: 14%;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding-block: 0.65rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(20rem, 84vw);
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.3rem 1.4rem;
    border-left: 1px solid var(--border-subtle);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-med), opacity var(--transition-med);
  }

  .nav.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-close {
    display: flex;
    font-size: 1.4rem;
    padding: 0.35rem;
    align-self: flex-end;
    cursor: pointer;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 1rem;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    display: block;
    padding: 0.55rem 0.15rem;
    border-radius: 0;
    font-size: 0.9rem;
    font-weight: 400;
    font-family: "Inter", "Montserrat", "Roboto", system-ui, sans-serif;
    letter-spacing: 0.02em;
    background: none;
    border: none;
    text-align: left;
    color: #e5e7eb;
    position: relative;
    transform: translateX(-4px);
    opacity: 0.9;
    transition: color var(--transition-fast), transform var(--transition-med),
      opacity var(--transition-med);
  }

  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.1rem;
    width: 32%;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-med);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--accent-2);
    transform: translateX(0);
    opacity: 1;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    transform: scaleX(1);
  }

  .nav.open .nav-list li {
    animation: navItemIn 360ms ease-out both;
  }

  .nav.open .nav-list li:nth-child(1) {
    animation-delay: 40ms;
  }
  .nav.open .nav-list li:nth-child(2) {
    animation-delay: 80ms;
  }
  .nav.open .nav-list li:nth-child(3) {
    animation-delay: 120ms;
  }
  .nav.open .nav-list li:nth-child(4) {
    animation-delay: 160ms;
  }

  .services-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card-main {
    padding: 1.05rem;
  }

  .hero-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-panel {
    padding: 1.2rem 1.1rem 1.3rem;
  }

  .nav-cta {
    position: static;
    width: 100%;
    margin-top: auto;
    display: flex;
    justify-content: center;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding-block: 0.65rem;
    font-size: 0.9rem;
  }

  .nav-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.9rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    opacity: 0.95;
  }

  .nav-footer-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }

  .nav-footer-name {
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #f9fafb;
  }

  .nav-footer-tagline {
    font-size: 0.78rem;
    color: #ffffff;
  }
}

@keyframes navItemIn {
  0% {
    opacity: 0;
    transform: translateX(10px) translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
}

@media (max-width: 640px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
  }

  .hero-content {
    order: 0;
  }

  .hero-visual {
    order: 1;
  }
}

@media (min-width: 769px) {
  .nav {
    justify-content: flex-end;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .nav-cta {
    margin-left: 1.25rem;
  }

  .nav-link {
    padding: 0.35rem 0.15rem;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: rgba(229, 231, 235, 0.92);
    font-size: 1rem;
    font-weight: 400;
    font-family: "Inter", "Montserrat", "Roboto", system-ui, sans-serif;
    transition: color var(--transition-fast), transform var(--transition-fast);
  }

  .nav-link::after {
    left: 0;
    bottom: -0.25rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-med);
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--accent-2);
    transform: translateY(-1px);
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    transform: scaleX(1);
  }

  .nav-footer {
    display: none;
  }
}

.prefooter-cta {
  display: none;
  padding: 1.6rem 0 0.8rem;
}

.prefooter-cta-inner {
  display: flex;
  justify-content: center;
}

@media (max-width: 768px) {
  .prefooter-cta {
    display: none;
  }

  .prefooter-cta .btn {
    width: min(26rem, 100%);
  }
}

/* Tighter spacing between Why choose BarNeural and What we do */
#why-us {
  margin-top: 0;
}

#services {
  margin-top: 0;
}

