html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: #1f2937;
  font-family: "Rubik", Arial, sans-serif;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
}

a {
  text-decoration: none;
}

button,
a,
input,
textarea {
  transition-duration: 180ms;
  transition-property: color, background-color, border-color, box-shadow, opacity, transform;
  transition-timing-function: ease;
}

input,
textarea,
button {
  font: inherit;
}

.page-media-cover img,
.blog-card-modern__image img,
.project-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.media-hover-zoom:hover img,
.blog-card-modern:hover img,
.project-card:hover img {
  transform: scale(1.04);
}

.media-hover-zoom img,
.blog-card-modern img,
.project-card img {
  transition: transform 260ms ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes serviceReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes softPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

.service-hero {
  isolation: isolate;
}

.service-hero::after {
  background:
    linear-gradient(120deg, rgba(37, 99, 235, 0.26), transparent 34%),
    linear-gradient(300deg, rgba(220, 38, 38, 0.22), transparent 38%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.service-hero > * {
  position: relative;
  z-index: 1;
}

.service-hero h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  max-width: 900px;
}

.service-shell {
  background:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at 90% 20%, rgba(220, 38, 38, 0.08), transparent 30%),
    #f8fafc;
}

.service-content-card,
.service-side-card,
.service-cta-card,
.service-metric-card {
  position: relative;
}

.service-content-card::before,
.service-side-card::before,
.service-cta-card::before,
.service-metric-card::before {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.45), rgba(220, 38, 38, 0.38));
  border-radius: inherit;
  content: "";
  inset: 0;
  opacity: 0;
  padding: 1px;
  pointer-events: none;
  position: absolute;
  transition: opacity 220ms ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.service-content-card:hover::before,
.service-side-card:hover::before,
.service-cta-card:hover::before,
.service-metric-card:hover::before {
  opacity: 1;
}

.service-side-card a,
.service-chip {
  transform: translateZ(0);
}

.service-side-card a:hover,
.service-chip:hover,
.service-metric-card:hover {
  transform: translateY(-2px);
}

.service-image-frame {
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

.service-image-frame::after {
  animation: softPulse 5s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(220, 38, 38, 0.18));
  border-radius: 999px;
  bottom: -48px;
  content: "";
  height: 150px;
  pointer-events: none;
  position: absolute;
  right: -38px;
  width: 150px;
}

@media (prefers-reduced-motion: no-preference) {
  .animate-reveal {
    animation: serviceReveal 700ms ease both;
  }

  .animate-reveal-delay-1 {
    animation-delay: 120ms;
  }

  .animate-reveal-delay-2 {
    animation-delay: 220ms;
  }

  .animate-reveal-delay-3 {
    animation-delay: 320ms;
  }
}

/* Shared modern UI layer */
:root {
  --lwp-bg: #f6f8fb;
  --lwp-surface: #ffffff;
  --lwp-surface-soft: #f8fafc;
  --lwp-ink: #101828;
  --lwp-muted: #64748b;
  --lwp-primary: #2563eb;
  --lwp-cyan: #06b6d4;
  --lwp-accent: #ef4444;
  --lwp-green: #10b981;
  --lwp-line: rgba(15, 23, 42, 0.1);
  --lwp-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --lwp-shadow-md: 0 18px 50px rgba(15, 23, 42, 0.12);
  --lwp-radius: 18px;
}

body {
  background:
    radial-gradient(circle at 8% 6%, rgba(37, 99, 235, 0.08), transparent 26rem),
    radial-gradient(circle at 92% 12%, rgba(6, 182, 212, 0.08), transparent 24rem),
    var(--lwp-bg);
  color: var(--lwp-ink);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(37, 99, 235, 0.18);
  color: var(--lwp-ink);
}

img {
  height: auto;
}

:focus-visible {
  outline: 3px solid rgba(6, 182, 212, 0.34);
  outline-offset: 3px;
}

.container {
  max-width: 1200px;
}

.section-title__title,
.page-header__inner h2,
.main-slider h1,
.main-slider-three h2,
.main-slider-two h2,
h1,
h2,
h3 {
  letter-spacing: 0;
}

.section-title__title,
.page-header__inner h2 {
  color: var(--lwp-ink);
  font-weight: 800;
  line-height: 1.08;
}

.section-title__tagline {
  align-items: center;
  color: var(--lwp-primary);
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-title__tagline::before {
  background: linear-gradient(135deg, var(--lwp-primary), var(--lwp-cyan));
  border-radius: 999px;
  content: "";
  height: 8px;
  width: 8px;
}

.main-menu,
.stricky-header {
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.main-menu__wrapper,
.stricky-header .main-menu__wrapper {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
}

.main-menu .main-menu__list > li > a,
.stricky-header .main-menu__list > li > a {
  color: #334155;
  font-weight: 700;
  position: relative;
}

.main-menu .main-menu__list > li > a::after,
.stricky-header .main-menu__list > li > a::after {
  background: linear-gradient(90deg, var(--lwp-primary), var(--lwp-cyan));
  border-radius: 999px;
  bottom: -8px;
  content: "";
  height: 3px;
  left: 0;
  opacity: 0;
  position: absolute;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: opacity 180ms ease, transform 180ms ease;
  width: 100%;
}

.main-menu .main-menu__list > li:hover > a::after,
.main-menu .main-menu__list > li.current > a::after,
.stricky-header .main-menu__list > li:hover > a::after,
.stricky-header .main-menu__list > li.current > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.thm-btn,
button[type="submit"],
input[type="submit"],
.contact-page__btn,
.comment-form__btn,
.blog-sidebar__search button {
  align-items: center;
  background: linear-gradient(135deg, var(--lwp-primary), #1d4ed8 48%, var(--lwp-cyan));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  overflow: hidden;
  position: relative;
}

.thm-btn::before,
button[type="submit"]::before,
input[type="submit"]::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  content: "";
  inset: 0 auto 0 -60%;
  position: absolute;
  transform: skewX(-20deg);
  transition: left 420ms ease;
  width: 52%;
}

.thm-btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.32);
  color: #ffffff;
  transform: translateY(-2px);
}

.thm-btn:hover::before,
button[type="submit"]:hover::before,
input[type="submit"]:hover::before {
  left: 112%;
}

.thm-btn:active,
button[type="submit"]:active,
input[type="submit"]:active {
  transform: translateY(0) scale(0.98);
}

.main-slider,
.main-slider-two,
.main-slider-three,
.page-header {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.page-header::after,
.main-slider::after,
.main-slider-two::after,
.main-slider-three::after {
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.56), rgba(15, 23, 42, 0.16)),
    radial-gradient(circle at 18% 24%, rgba(6, 182, 212, 0.26), transparent 22rem),
    radial-gradient(circle at 82% 18%, rgba(239, 68, 68, 0.18), transparent 24rem);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.page-header > *,
.main-slider > *,
.main-slider-two > *,
.main-slider-three > * {
  position: relative;
  z-index: 1;
}

.services-one__single,
.services-two__single,
.services-three__single,
.work-together__single,
.project-one__single,
.blog-one__single,
.blog-card-modern,
.team-one__single,
.testimonial-one__single,
.contact-page__form,
.contact-page__right,
.blog-sidebar__single,
.comment-one,
.faq-page__single,
.pricing-one__single,
.we-build__content,
.page-card,
.service-content-card,
.service-side-card,
.service-cta-card,
.service-metric-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--lwp-radius);
  box-shadow: var(--lwp-shadow-sm);
  overflow: hidden;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.services-one__single:hover,
.services-two__single:hover,
.services-three__single:hover,
.work-together__single:hover,
.project-one__single:hover,
.blog-one__single:hover,
.blog-card-modern:hover,
.team-one__single:hover,
.testimonial-one__single:hover,
.blog-sidebar__single:hover,
.faq-page__single:hover,
.pricing-one__single:hover,
.service-content-card:hover,
.service-side-card:hover,
.service-cta-card:hover,
.service-metric-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--lwp-shadow-md);
  transform: translateY(-4px);
}

.services-one__icon,
.services-two__icon,
.services-three__icon,
.work-together__icon,
.feature-one__icon,
.we-build__icon {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(6, 182, 212, 0.14));
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
  color: var(--lwp-primary);
}

.contact-page input,
.contact-page textarea,
.comment-form input,
.comment-form textarea,
.blog-sidebar__search input,
input,
textarea,
select {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.contact-page input:focus,
.contact-page textarea:focus,
.comment-form input:focus,
.comment-form textarea:focus,
.blog-sidebar__search input:focus,
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
  outline: 0;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
}

tbody tr {
  transition: background-color 160ms ease;
}

tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.preloader {
  background:
    radial-gradient(circle at 50% 42%, rgba(37, 99, 235, 0.16), transparent 16rem),
    #ffffff;
}

.preloader__image {
  filter: drop-shadow(0 18px 28px rgba(37, 99, 235, 0.18));
}

.scroll-to-top,
.scroll-to-target {
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

.lwp-reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .lwp-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 620ms ease, transform 620ms ease;
  }

  .lwp-reveal.lwp-is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .lwp-reveal:nth-child(2n) {
    transition-delay: 70ms;
  }

  .lwp-reveal:nth-child(3n) {
    transition-delay: 120ms;
  }
}

.lwp-form-loading {
  cursor: progress;
  opacity: 0.82;
}

.lwp-form-loading button[type="submit"],
.lwp-form-loading input[type="submit"] {
  pointer-events: none;
}

.lwp-pressed {
  transform: translateY(1px) scale(0.99);
}

@media (max-width: 991px) {
  .main-menu__wrapper,
  .stricky-header .main-menu__wrapper {
    border-radius: 0;
  }

  .mobile-nav__wrapper .mobile-nav__content {
    background: #0f172a;
  }

  .mobile-nav__content .main-menu__list li a {
    border-radius: 12px;
  }

  .section-title__title,
  .page-header__inner h2 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

@media (max-width: 767px) {
  body {
    line-height: 1.58;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .thm-btn,
  button[type="submit"],
  input[type="submit"] {
    min-height: 46px;
    padding-left: 22px;
    padding-right: 22px;
  }

  .services-one__single,
  .services-two__single,
  .services-three__single,
  .work-together__single,
  .project-one__single,
  .blog-one__single,
  .blog-card-modern,
  .team-one__single,
  .testimonial-one__single,
  .contact-page__form,
  .contact-page__right,
  .blog-sidebar__single {
    border-radius: 16px;
  }
}
