/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #0f172a;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

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

/* ── Keyframe animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInX {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.78) translateY(14px);
  }

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

@keyframes scaleInBadge {
  from {
    opacity: 0;
    transform: scale(0) rotate(-30deg);
  }

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

@keyframes scaleXIn {
  from {
    transform: scaleX(0);
    opacity: 0;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

@keyframes rotateCW {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateCCW {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes progressBar {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes glowIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

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

@keyframes nameIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

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

@keyframes nameOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes textSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

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

@keyframes textSlideOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

@keyframes paraFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* ── Utility classes ── */
.animate-ping-dot {
  animation: ping 1s cubic-bezier(0, 0, .2, 1) infinite;
}

.animate-pulse-dot {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.visible-fadeup {
  animation: fadeUp 0.55s ease forwards;
}

.visible-fadein {
  animation: fadeIn 0.55s ease forwards;
}

.visible-fadeinx {
  animation: fadeInX 0.46s ease forwards;
}

.visible-scalein {
  animation: scaleIn 0.55s cubic-bezier(0.34, 1.26, 0.64, 1) forwards;
}

.rotate-cw {
  animation: rotateCW 22s linear infinite;
}

.rotate-ccw {
  animation: rotateCCW 16s linear infinite;
}

/* ── InView initial hidden state ── */
.inview-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.inview-item.inview-show {
  opacity: 1;
  transform: translateY(0);
}

.inview-left {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.inview-left.inview-show {
  opacity: 1;
  transform: translateX(0);
}

/* ── Hover lift ── */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
}

.hover-lift-sm {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift-sm:hover {
  transform: translateY(-6px);
}

/* ── Image zoom on hover ── */
.img-zoom {
  transition: transform 0.5s ease;
}

.group:hover .img-zoom {
  transform: scale(1.10);
}

.group:hover .img-zoom-sm {
  transform: scale(1.05);
}

.img-zoom-sm {
  transition: transform 0.5s ease;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s, border-color 0.3s;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px) saturate(1.8);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.06);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

@media (min-width: 640px) {
  .nav-inner {
    padding: 0 1.25rem;
    height: 64px;
  }
}

@media (min-width: 1024px) {
  .nav-inner {
    padding: 0 2.5rem;
  }
}

.nav-logos {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (min-width: 640px) {
  .nav-logos {
    gap: 6px;
  }
}

.nav-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-logo-p3m {
  height: 40px;
  width: auto;
  object-fit: contain;
  margin-left: 2px;
}

@media (min-width: 640px) {
  .nav-logo-img {
    height: 40px;
  }

  .nav-logo-p3m {
    height: 50px;
  }
}

@media (min-width: 768px) {
  .nav-logo-img {
    height: 44px;
  }

  .nav-logo-p3m {
    height: 56px;
  }
}

.nav-p3m-text {
  display: none;
  padding-left: 2px;
}

@media (min-width: 640px) {
  .nav-p3m-text {
    display: block;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  color: #334155;
  padding: 4px;
  transition: color 0.2s;
  font-weight: 500;
  text-decoration: none;
}

.nav-link:hover {
  color: #f97316;
}

.nav-link.active {
  color: #f97316;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 99px;
  background: #f97316;
}

.nav-login-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  background: #f97316;
  box-shadow: 0 2px 12px rgba(249, 115, 22, 0.3);
  transition: all 0.2s;
}

.nav-login-btn:hover {
  background: #ea580c;
  transform: translateY(-1px);
}

.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  color: #334155;
  transition: background 0.2s;
}

.nav-hamburger:hover {
  background: #f1f5f9;
}

@media (min-width: 768px) {
  .nav-hamburger {
    display: none;
  }
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.nav-mobile-menu.open {
  display: flex;
}

@media (min-width: 768px) {
  .nav-mobile-menu {
    display: none !important;
  }
}

.nav-mobile-link {
  font-size: 0.875rem;
  color: #334155;
  padding: 4px 0;
  text-decoration: none;
}

.nav-mobile-link.active {
  color: #f97316;
  font-weight: 600;
}

.nav-mobile-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  background: #f97316;
  margin-top: 4px;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
  background: #0f2156;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.footer-accent-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #2563eb, #f97316);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
  position: relative;
  z-index: 10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 5fr 3fr 4fr;
  }
}

.footer-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.875rem;
  color: #93c5fd;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.footer-accent-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 800;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.875rem;
  color: #93c5fd;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-link:hover {
  color: #f8fafc;
}

.footer-contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(249, 115, 22, 0.18);
}

.footer-contact-text {
  font-size: 0.72rem;
  color: #93c5fd;
  line-height: 1.65;
}

.footer-contact-email {
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.72rem;
  transition: color 0.2s;
}

.footer-contact-email:hover {
  color: #f8fafc;
}

.footer-social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #93c5fd;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-social-link:hover {
  background: #f97316;
  color: #fff;
  border-color: #f97316;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.3);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  color: #475569;
  font-size: 0.78rem;
}

.footer-dev {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-dev-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
}

/* ─────────────────────────────────────────
   LOGIN MODAL
───────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  animation: fadeUp 0.3s ease;
}

.modal-top {
  height: 4px;
  background: linear-gradient(90deg, #f97316, #2563eb);
}

.modal-body {
  padding: 2rem;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 0.78rem;
  color: #64748b;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  transition: background 0.2s;
  flex-shrink: 0;
}

.modal-close:hover {
  background: #e2e8f0;
}

.modal-field {
  margin-bottom: 1rem;
}

.modal-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
}

.modal-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  font-size: 0.875rem;
  color: #0f172a;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

.modal-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.modal-submit {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.38);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
}

.modal-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.50);
}

.modal-spin {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rotateCW 0.6s linear infinite;
}

/* ─────────────────────────────────────────
   WAVE SHAPES (SVG wrappers)
───────────────────────────────────────── */
.wave-wrap {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  overflow: hidden;
}

.wave-wrap svg {
  display: block;
  width: 100%;
  height: 100%;
}

.abs-nodrag {
  position: absolute;
  pointer-events: none;
}

/* ─────────────────────────────────────────
   RESPONSIVE HELPERS
───────────────────────────────────────── */
.container-xl {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-xl {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-xl {
    padding: 0 2rem;
  }
}

.container-lg {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-lg {
    padding: 0 1.5rem;
  }
}

.container-md {
  max-width: 768px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container-md {
    padding: 0 1.5rem;
  }
}

/* hide/show helpers */
.hidden-sm {
  display: none;
}

@media (min-width: 640px) {
  .hidden-sm {
    display: unset;
  }
}

.hidden-md {
  display: none;
}

@media (min-width: 768px) {
  .hidden-md {
    display: unset;
  }
}

.hidden-lg {
  display: none;
}

@media (min-width: 1024px) {
  .hidden-lg {
    display: unset;
  }
}

/* ─────────────────────────────────────────
   BREADCRUMB
───────────────────────────────────────── */
.breadcrumb {
  background: #fff;
  border-bottom: 1.5px solid #f1f5f9;
  padding: 14px 0;
}

.breadcrumb-inner {
  max-width: 896px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.breadcrumb-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.breadcrumb-link {
  color: #94a3b8;
  transition: color 0.2s;
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: #2563eb;
}

.breadcrumb-current {
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}