/* ===== Base ===== */
:root {
  --primary: #2685be;
  --primary-dark: #1f6fa0;
  --primary-darker: #0f3f75;
  --bg: #ffffff;
  --bg-soft: #f8f8fa;
  --text: #1d1d1f;
  --text-light: #ffffff;
  --muted: #666b75;
  --muted-light: rgba(255, 255, 255, 0.7);
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-lg: 0 20px 40px rgba(15, 63, 117, 0.15);
  --shadow-md: 0 12px 24px rgba(15, 63, 117, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.section-title span,
h1 span,
.logo span {
  color: var(--primary);
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(0.95);
}

.btn-outline {
  background: #fff;
  border: 1px solid #e5e5e5;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

button::after {
  content: "";
  position: absolute;
  top: -170%;
  left: -65%;
  width: 55%;
  height: 340%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.18) 35%,
      rgba(255, 255, 255, 0.65) 50%,
      rgba(255, 255, 255, 0.18) 65%,
      rgba(255, 255, 255, 0) 100%);
  transform: translateX(-260%) rotate(18deg);
  animation: glass-shine 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

button>* {
  position: relative;
  z-index: 2;
}

@keyframes glass-shine {

  0%,
  65%,
  100% {
    transform: translateX(-260%) rotate(18deg);
    opacity: 0;
  }

  12%,
  28% {
    transform: translateX(360%) rotate(18deg);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  button::after {
    animation: none;
  }
}

/* ===== Curved Dividers ===== */
.custom-shape-divider-bottom,
.custom-shape-divider-top {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 10;
  pointer-events: none;
}

.custom-shape-divider-bottom {
  bottom: -1px;
}

.custom-shape-divider-top {
  top: -1px;
}

.custom-shape-divider-bottom svg,
.custom-shape-divider-top svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 8vw;
  min-height: 50px;
}

.shape-fill-white {
  fill: var(--bg);
}

.shape-fill-soft {
  fill: var(--bg-soft);
}

.shape-fill-blue {
  fill: var(--primary);
}

/* ===== Header ===== */
.header {
  position: fixed;
  /* Changed from sticky to fixed to ensure it floats over the hero properly */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  isolation: isolate;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 10px 0;
  /* extra padding that shrinks on scroll */
}

.header.scrolled {
  background: var(--primary-darker);
  background: linear-gradient(90deg, var(--primary-darker), var(--primary-dark));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 5px 0;
}

.desktop-cta {
  font-size: 0.85rem;
  padding: 10px 22px;
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.header.scrolled .desktop-cta {
  background: #fff;
  color: var(--primary-darker);
  border-color: #fff;
}

.nav {
  position: relative;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-light);
}

.logo span {
  color: #fff;
}

.menu {
  display: none;
  gap: 28px;
  color: var(--text-light);
  font-size: 0.92rem;
}

.menu a:hover {
  /*color: rgba(255, 255, 255, 0.8);*/
  color: rgba(6, 255, 193, 0.8)
}

/* Mega Menu Desktop */
.menu-item-has-children {
  display: flex;
  align-items: center;
  height: 100%;
}

.menu-item-has-children>a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: max-content;
  max-width: 100%;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 24px;
  border: 1px solid #f0f0f0;
  pointer-events: none;
  z-index: 100;
}

/* Ponte invisível para evitar que o menu feche ao passar o mouse */
.mega-menu::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 30px;
  background: transparent;
}

.menu-item-has-children:hover .mega-menu,
.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.mega-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
}

.mega-column:not(:last-child) {
  border-right: 1px solid #f0f0f0;
  padding-right: 24px;
}

.mega-title {
  margin: 0 0 8px 0;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.mega-link,
.mobile-mega-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.2s ease;
  color: var(--text);
}

.mega-link:hover,
.mobile-mega-link:hover {
  background: var(--bg-soft);
  transform: scale(1.02);
  color: var(--primary);
}

.mega-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(38, 133, 190, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mega-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: inherit;
}

.mega-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}


.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: #222;
  border-radius: 2px;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
  pointer-events: none;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 84vw);
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  padding: 22px;
  transform: translateX(100%);
  transition: transform 0.3s ease, visibility 0.3s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.12);
  z-index: 1010;
  will-change: transform;
  pointer-events: none;
  /* Prevent the ✕ close button from ghosting over the hamburger */
  visibility: hidden;
}

.mobile-close {
  border: 0;
  background: #f4f4f4;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
}

.mobile-nav {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.mobile-nav>a {
  font-weight: 500;
  color: #3f4350;
  padding: 10px 4px;
  border-bottom: 1px solid #f1f1f1;
}

/* Mobile Mega Menu Accordion */
.mobile-menu-item-has-children {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #f1f1f1;
}

.mobile-menu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font-weight: 500;
  color: #3f4350;
  padding: 10px 4px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.mobile-menu-trigger i {
  transition: transform 0.3s ease;
}

.mobile-menu-trigger[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.mobile-mega-menu {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 10px 4px 16px;
}

.mobile-mega-menu.is-open {
  display: flex;
}

.mobile-mega-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-mega-title {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding-left: 12px;
}

.mobile-menu-cta {
  margin-top: 20px;
  width: 100%;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open .mobile-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
}

body.menu-open .mobile-menu {
  transform: translateX(0);
  pointer-events: auto;
  touch-action: pan-y;
  visibility: visible;
}

@media (min-width: 992px) {

  .mobile-menu,
  .mobile-overlay,
  .menu-toggle,
  .mobile-close {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* ===== Sections + particle layer ===== */
main>.section {
  position: relative;
  overflow: hidden;
}

.section-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

main .section>.container {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .section-particles {
    display: none;
  }
}

/* ====/* ===== Hero Section ===== */
.hero {
  position: relative;
  padding: 140px 0 160px;
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  color: var(--text-light);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgb(24 219 169 / 95%);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 50px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 16px 0;
  color: var(--text-light);
}

.hero-content h1 span {
  color: #a3def5;
  /* Light blue accent */
  white-space: nowrap;
}

.hero-content h2 {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin: 0 0 24px 0;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--muted-light);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 20px;
}

.hero-actions .btn-primary {
  background: #fff;
  color: var(--primary-darker);
  padding: 15px 34px;
  font-size: 1.06rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  margin: 0;
  /* ensure no weird margins */
}

.social-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #fff;
  transition: all 0.25s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-link:hover {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  transform: translateY(-2px);
}

.hero-image-wrap {
  position: relative;
  max-width: 470px;
  margin-inline: auto;
}

.hero-shape {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.hero-shape img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 20px;
}

.badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge i {
  color: var(--primary);
}
}

.b1 {
  left: -26px;
  top: 36px;
}

.b2 {
  right: 20px;
  top: 8px;
}

.b3 {
  right: -26px;
  bottom: 48px;
}

/* ===== About ===== */
.two-col {
  display: grid;
  gap: 36px;
  align-items: center;
}

.about-image {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-md);
}

.about-image img {
  border-radius: 20px;
  height: 400px;
  width: 100%;
  object-fit: cover;
}

.about-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.2;
  margin: 0;
}

.about-content p {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 560px;
}

.about-content .btn {
  margin-top: 28px;
}

/* ===== Services ===== */
#services {
  background: var(--bg-soft);
}

.services-header {
  text-align: center;
  margin-bottom: 48px;
}

.services-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffe4e6;
  color: #e11d48;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #e11d48;
  border-radius: 50%;
  display: inline-block;
}

.services-title {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.services-title span {
  color: #e11d48;
}

.services-subtitle {
  margin: 16px auto 0;
  color: var(--muted);
  max-width: 600px;
  font-size: 1.05rem;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.service-card {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--accent);
}

@media (min-width: 768px) {
  .service-card {
    width: calc(50% - 15px);
  }
}

@media (min-width: 1024px) {
  .service-card {
    width: calc(33.333% - 20px);
  }
}

.service-card-inner {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.service-icon {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  margin: 0 0 4px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.service-divider {
  width: 100%;
  height: 1px;
  background: #f0f0f0;
  border: none;
  margin: 20px 0;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.4;
}

.service-features li i {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: 2px;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  transition: gap 0.3s ease;
}

.service-cta:hover {
  gap: 12px;
}

/* Card Accent Colors */
.card-blue {
  --accent: #2563eb;
  --accent-bg: #eff6ff;
}

.card-purple {
  --accent: #9333ea;
  --accent-bg: #faf5ff;
}

.card-green {
  --accent: #16a34a;
  --accent-bg: #f0fdf4;
}

.card-orange {
  --accent: #ea580c;
  --accent-bg: #fff7ed;
}

.card-pink {
  --accent: #e11d48;
  --accent-bg: #fff1f2;
}

/* Base Reveal Animation Override for Cards */
.service-card.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

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

.service-card.reveal.is-visible:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ===== Portfolio ===== */
#portfolio {
  position: relative;
  overflow: visible;
  padding: 120px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--text-light);
}

#portfolio .section-title {
  color: var(--text-light);
}

#portfolio .section-title span {
  color: #a3def5;
}

.filters {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: sticky;
  top: 76px;
  /* z-index intentionally below header (50) */
  z-index: 30;
  background: transparent;
  padding: 15px 0;
  transition: all 0.3s ease;
}

/* Restore blur only on desktop where the bug doesn't manifest */
@media (min-width: 760px) {
  .filters {
    background: rgba(31, 111, 160, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 15px;
  }
}

.filter-btn {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  padding: 10px 16px;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.filter-btn.active {
  background: #fff;
  color: var(--primary-dark);
}

@media (max-width: 759px) {
  .filter-btn {
    background: rgba(255, 255, 255, 0.85);
    color: var(--primary-dark);
    border-color: transparent;
    font-weight: 600;
  }

  .filter-btn:hover {
    background: #fff;
  }

  .filter-btn.active {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

.portfolio-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

.work-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.work-item .overlay {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  color: #000;
}

.work-item:hover img {
  transform: scale(1.08);
}

.work-item:hover .overlay {
  opacity: 1;
  transform: translateY(0);
}

.work-item.hidden {
  display: none;
}

/* Work items collapsed beyond 2 rows */
.work-item.row-hidden {
  display: none;
}

/* ===== Portfolio "Ver mais" button ===== */
.portfolio-more-btn {
  display: block;
  margin: 28px auto 0;
  padding: 12px 32px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
  font-family: inherit;
}

.portfolio-more-btn:hover {
  background: #fff;
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* ===== Portfolio Lightbox ===== */
.portfolio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 0.3s ease;
}

.portfolio-lightbox.is-open {
  display: flex;
  background: rgba(0, 0, 0, 0.88);
  pointer-events: all;
}

.portfolio-lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.portfolio-lightbox.is-open .portfolio-lightbox__img {
  opacity: 1;
  transform: scale(1);
}

.portfolio-lightbox__caption {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s ease 0.15s;
}

.portfolio-lightbox.is-open .portfolio-lightbox__caption {
  opacity: 1;
}

.portfolio-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(6px);
}

.portfolio-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

/* Clickable cursor on work items */
.work-item {
  cursor: pointer;
}


/* ===== Partners Marquee ===== */
.partners {
  padding: 80px 0;
  background: var(--bg);
  overflow: hidden;
}

.partners .section-title {
  text-align: center;
  margin-bottom: 60px;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  user-select: none;
  display: flex;
  position: relative;
}

.marquee-content {
  display: flex;
  flex-shrink: 0;
  gap: 80px;
  min-width: 100%;
  padding: 20px 0;
  animation: marquee-scroll 40s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

.logo-item {
  flex: 0 0 auto;
  width: 180px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
  opacity: 0.7;
  transition: all 0.4s ease;
}

.logo-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.logo-item:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.08);
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Mobile Responsiveness for Marquee */
@media (max-width: 768px) {
  .partners {
    padding: 60px 0;
  }

  .marquee-content {
    gap: 40px;
    animation-duration: 25s;
  }

  .logo-item {
    width: 130px;
    height: 40px;
  }
}

/* ===== Testimonials ===== */
.testimonial-wrap {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 56px 28px;
  position: relative;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.quote {
  margin: 24px auto 0;
  max-width: 720px;
  color: #3f4350;
}

.quote-author {
  margin: 16px 0 0;
  font-weight: 600;
}

.avatar {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: var(--shadow-md);
}

.a1 {
  left: 8%;
  top: 18%;
}

.a2 {
  left: 20%;
  bottom: 14%;
}

.a3 {
  right: 18%;
  top: 16%;
}

.a4 {
  right: 8%;
  bottom: 18%;
}

.a5 {
  right: 42%;
  top: 8%;
}

.float,
.float-slow,
.float-mid,
.float-fast {
  animation-name: floating;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.float {
  animation-duration: 4s;
}

.float-slow {
  animation-duration: 6s;
}

.float-mid {
  animation-duration: 4.5s;
}

.float-fast {
  animation-duration: 3.2s;
}

@keyframes floating {

  0%,
  100% {
    transform: translateY(-8px);
  }

  50% {
    transform: translateY(8px);
  }
}

/* ===== Premium Split Contact Section ===== */
.contact-premium {
  padding: 100px 0;
  background: var(--bg-soft);
}

.contact-split-card {
  display: flex;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 1080px;
  margin: 0 auto;
}

/* Left Panel */
.contact-left {
  flex: 0 0 42%;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-bg-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.contact-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  left: -150px;
}

.shape-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  right: -100px;
}

.contact-left-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  align-self: flex-start;
}

.contact-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.15;
  font-weight: 700;
}

.contact-highlight {
  color: #a3def5;
  /* lighter blue */
}

.contact-desc {
  margin: 16px 0 32px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}

.method-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.method-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.method-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.method-val {
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-highlight-box {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.highlight-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.highlight-info h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.highlight-info p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Right Panel Form */
.contact-right {
  flex: 0 0 58%;
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-premium {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
  display: flex;
  align-items: center;
}

.form-group.align-top {
  align-items: flex-start;
}

.form-icon {
  position: absolute;
  left: 18px;
  color: #999;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.form-group.align-top .form-icon {
  top: 18px;
}

.contact-form-premium input,
.contact-form-premium textarea {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  padding: 16px 16px 16px 48px;
  font: inherit;
  font-size: 0.95rem;
  background: #fdfdfd;
  outline: none;
  transition: all 0.3s ease;
  color: var(--text);
}

.contact-form-premium textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form-premium input::placeholder,
.contact-form-premium textarea::placeholder {
  color: #aaa;
}

.contact-form-premium input:focus,
.contact-form-premium textarea:focus {
  border-color: #2685be;
  box-shadow: 0 0 0 4px rgba(38, 133, 190, 0.1);
  background: #fff;
}

.contact-form-premium input:focus+.form-icon,
.contact-form-premium textarea:focus+.form-icon,
.contact-form-premium .form-group:focus-within .form-icon {
  color: var(--primary);
}

.btn-submit-premium {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(38, 133, 190, 0.25);
  margin-top: 10px;
}

.btn-submit-premium:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(38, 133, 190, 0.35);
}

.trust-text {
  text-align: center;
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Mobile Responsive Adjustments for Premium Contact */
@media (max-width: 992px) {
  .contact-split-card {
    flex-direction: column;
  }

  .contact-left {
    padding: 48px 32px;
  }

  .contact-right {
    padding: 48px 32px;
  }

  .shape-1 {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 576px) {
  .contact-left {
    padding: 40px 20px;
  }

  .contact-right {
    padding: 40px 20px;
  }
}


/* ===== Footer ===== */
.footer {
  position: relative;
  background: var(--primary-darker);
  color: var(--text-light);
  padding: 60px 0 40px;
}

.footer-row {
  display: grid;
  gap: 14px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.footer-links,
.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer a:hover {
  color: #fff;
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.stat-delay-1 {
  transition-delay: 0.1s;
}

.stat-delay-2 {
  transition-delay: 0.2s;
}

.stat-delay-3 {
  transition-delay: 0.3s;
}

.stat-delay-4 {
  transition-delay: 0.4s;
}

/* ===== Responsive ===== */
@media (min-width: 760px) {

  .hero-grid,
  .two-col {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .work-item.featured {
    grid-column: span 2;
  }

  .stats-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .menu {
    display: flex;
  }

  .footer-row {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    text-align: left;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 991px) {

  .menu,
  .avatar {
    display: none;
  }

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

  .header .btn-outline {
    padding: 10px 16px;
    font-size: 0.84rem;
  }

  .desktop-cta {
    display: none;
  }

  .nav {
    gap: 10px;
  }

  .section {
    padding: 64px 0;
  }


}

/* ===== WhatsApp Button ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  animation: pulse-wave 2s infinite;
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn svg {
  width: 34px;
  height: 34px;
}

.whatsapp-btn::before,
.whatsapp-btn::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-color: #25d366;
  z-index: -1;
  opacity: 0.6;
  animation: wave-animation 2s infinite;
}

.whatsapp-btn::after {
  animation-delay: 1s;
}

@keyframes pulse-wave {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes wave-animation {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* Override icons inside feature-item globally */
.feature-item i {
  font-size: 35px !important;
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 500px;
  background: rgba(8, 27, 75, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-banner p a {
  color: #8ed1fc;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
}

.cookie-banner p a:hover {
  color: #fff;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cookie-btn-accept {
  background: #25d366;
  color: #fff;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.cookie-btn-accept:hover {
  background: #21be5b;
  transform: translateY(-1px);
}

.cookie-btn-settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-btn-settings:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 576px) {
  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 16px 20px;
  }
}