:root {
  --primary: #0a2540;
  --accent: #ffc107;
  --accent-dark: #e0a800;
  --accent-light: #ffd54f;
  --text: #0f172a;
  --muted: #475569;
  --white: #ffffff;
  --section-bg: #f8fafc;
  --hero-overlay-start: rgba(10, 37, 64, 0.92);
  --hero-overlay-mid: rgba(30, 136, 229, 0.7);
  --hero-overlay-end: rgba(7, 89, 133, 0.75);
  --nav-height: 102px;
  --nav-height-scrolled: 90px;
  --brand-logo-height: 72px;
  --brand-logo-height-scrolled: 60px;
  --hero-max-opacity-reduction: 0.15;
  --hero-shift-distance: 36px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
}

body.cursor-enabled,
body.cursor-enabled a,
body.cursor-enabled button,
body.cursor-enabled input,
body.cursor-enabled textarea {
  cursor: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
  transform-origin: center;
}

.section-alt {
  background: var(--section-bg);
}

.section-title-wrap {
  margin-bottom: 1.5rem;
}

.section-tag {
  color: #1e88e5;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--primary);
}

p {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-accent {
  background: linear-gradient(120deg, var(--accent-light) 0%, var(--accent) 45%, #f59e0b 100%);
  color: #111;
  box-shadow: 0 10px 20px rgba(255, 193, 7, 0.25);
}

.btn-accent:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 16px 28px rgba(245, 158, 11, 0.35);
}

.btn-outline {
  border-color: var(--white);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-outline:hover {
  transform: translateY(-2px) scale(1.01);
  background: var(--white);
  color: var(--primary);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 60%;
  height: 100%;
  transform: skewX(-24deg);
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: left 0.55s ease;
}

.btn:hover::after {
  left: 130%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 37, 64, 0.95);
  backdrop-filter: blur(4px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(8, 26, 45, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  gap: 1rem;
  transition: min-height 0.3s ease;
}

.site-header.scrolled .nav-wrap {
  min-height: var(--nav-height-scrolled);
}

.brand {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
}

.brand-logo {
  height: var(--brand-logo-height);
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.site-header.scrolled .brand-logo {
  height: var(--brand-logo-height-scrolled);
}

.nav-mobile-cta {
  display: none;
}

.nav {
  display: flex;
  gap: 1rem;
}

.nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover {
  color: var(--accent);
}

.nav a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--white);
}

.hero {
  height: 100vh;
  height: 100svh;
  width: 100%;
  display: grid;
  place-items: center;
  background-image: url("../assets/img/hero.jpg");
  background-size: cover;
  background-position: center;
  position: sticky;
  top: 0;
  z-index: 0;
  overflow: hidden;
  --hero-progress: 0;
}

main > section:not(.hero) {
  position: relative;
  z-index: 1;
}

main > section.section:not(.section-alt) {
  background: #fff;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--hero-overlay-start), var(--hero-overlay-mid), var(--hero-overlay-end));
  background-size: 180% 180%;
  animation: heroGradientShift 10s ease infinite;
}

.hero-overlay::before,
.hero-overlay::after {
  content: "";
  position: absolute;
  width: 44vmax;
  height: 44vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 193, 7, 0.22), transparent 65%);
  filter: blur(3px);
}

.hero-overlay::before {
  top: -18vmax;
  left: -14vmax;
  animation: floatBlob 12s ease-in-out infinite;
}

.hero-overlay::after {
  bottom: -20vmax;
  right: -14vmax;
  animation: floatBlob 14s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  color: var(--white);
  padding: 0;
  text-align: center;
  opacity: calc(1 - (var(--hero-progress) * var(--hero-max-opacity-reduction)));
  transform: translate3d(0, calc(var(--hero-progress) * (var(--hero-shift-distance) * -1)), 0);
  will-change: transform, opacity;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}

.hero p {
  max-width: 700px;
  margin-inline: auto;
}

.eyebrow {
  font-weight: 600;
  color: #facc15;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px);
  animation: wordReveal 0.55s ease forwards;
}

.about-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.services-grid .card i,
.feature-item i {
  font-size: 1.4rem;
  color: #1e88e5;
  transition: transform 0.3s ease, color 0.3s ease;
}

.services-grid .card {
  border: 1px solid transparent;
}

.services-grid .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  border-color: rgba(255, 193, 7, 0.45);
}

.services-grid .card:hover i {
  color: #f59e0b;
  transform: scale(1.12) rotate(-4deg);
}

.services-grid .card h3 {
  position: relative;
  display: inline-block;
}

.services-grid .card h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ffc107, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.services-grid .card:hover h3::after {
  transform: scaleX(1);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.feature-item {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.09);
}

.cta-band {
  background: var(--primary);
  color: var(--white);
  padding: 2rem 0;
}

.cta-band h2 {
  color: var(--white);
  margin: 0;
}

.cta-band-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.contact-details p {
  margin-bottom: 0.75rem;
}

.contact-details a {
  color: inherit;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.contact-details i {
  color: #1e88e5;
  margin-right: 0.5rem;
}

.contact-details iframe {
  border: 0;
  width: 100%;
  min-height: 230px;
  border-radius: 0.6rem;
}

form {
  background: #fff;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

label {
  display: block;
  font-weight: 600;
  margin-top: 0.75rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.45rem;
  padding: 0.7rem;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: 2px solid #93c5fd;
  border-color: #3b82f6;
}

.form-message {
  min-height: 1.25rem;
  margin: 0.8rem 0;
  font-weight: 500;
}

.form-message.error {
  color: #b91c1c;
}

.form-message.success {
  color: #166534;
}

.site-footer {
  background: #081a2d;
  color: #cbd5e1;
  padding-top: 2.6rem;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li,
.site-footer a {
  color: #cbd5e1;
  margin-bottom: 0.45rem;
  text-decoration: none;
}

.socials {
  margin-top: 0.6rem;
  display: flex;
  gap: 0.65rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.socials a:hover {
  transform: translateY(-2px);
}

.copyright {
  text-align: center;
  margin: 1.5rem 0 0.15rem;
  padding: 1rem 1rem 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-reg {
  text-align: center;
  margin: 0;
  padding: 0 1rem 0.6rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

.signature {
  text-align: center;
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
}

.signature .heart {
  display: inline-block;
  animation: heartBeat 1s ease-in-out infinite;
}

.signature a {
  color: #cbd5e1;
  text-decoration: none;
  position: relative;
  transition: color 0.25s ease;
}

.signature a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.signature a:hover {
  color: var(--accent);
}

.signature a:hover::after {
  transform: scaleX(1);
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  font-size: 1.65rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  z-index: 1200;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 22px rgba(15, 23, 42, 0.26);
}

.section-reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.65s ease, transform 0.65s ease;
  will-change: opacity, transform;
}

.reveal-left {
  transform: translateX(-36px) scale(0.98);
}

.reveal-right {
  transform: translateX(36px) scale(0.98);
}

.reveal-scale {
  transform: scale(0.94);
}

.section-reveal.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: grid;
  place-items: center;
  background: #071624;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader p {
  margin: 0;
  color: #fff;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  letter-spacing: 0.07em;
  opacity: 0;
  transform: translateY(10px);
  animation: loaderText 0.55s ease forwards;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  opacity: 0;
  z-index: 1800;
  transform: translate(-50%, -50%);
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background: #ffc107;
  border-radius: 50%;
}

.cursor-ring {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 193, 7, 0.72);
  border-radius: 50%;
  transition: width 0.22s ease, height 0.22s ease, border-color 0.22s ease;
}

body.cursor-enabled .cursor-dot,
body.cursor-enabled .cursor-ring {
  opacity: 1;
}

body.cursor-hover .cursor-ring {
  width: 40px;
  height: 40px;
  border-color: rgba(245, 158, 11, 0.95);
}

a,
button,
.btn,
.card,
.feature-item,
.socials a {
  transition-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}

a:active,
button:active,
.btn:active {
  transform: scale(0.98);
}

@keyframes heroGradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(2.4vmax, -1.8vmax) scale(1.07);
  }
}

@keyframes wordReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loaderText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heartBeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

@media (max-width: 980px) {
  :root {
    --brand-logo-height: 60px;
    --brand-logo-height-scrolled: 54px;
  }

  .nav {
    position: absolute;
    inset: var(--nav-height) 0 auto 0;
    background: var(--primary);
    padding: 1rem;
    display: none;
    flex-direction: column;
  }

  .site-header.scrolled .nav {
    inset: var(--nav-height-scrolled) 0 auto 0;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .nav-mobile-cta {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.55rem 1.4rem;
    background: var(--accent);
    color: var(--primary);
    font-weight: 700;
    border-radius: 4px;
    text-align: center;
  }

  .nav a.nav-mobile-cta,
  .nav a.nav-mobile-cta:hover {
    color: var(--primary);
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }

  .section-reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    will-change: auto;
  }

  .page-loader {
    display: none;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

  .hero-content {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-height: 88px;
    --nav-height-scrolled: 82px;
    --brand-logo-height: 52px;
    --brand-logo-height-scrolled: 50px;
  }

  .nav-wrap {
    min-height: var(--nav-height);
  }
}
