/* =========================================
   MM_PhysioSuite - Core CSS
   ========================================= */

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

:root {
  /* Colors based on requirements */
  --bg-light: #f4f6f9;
  --primary-blue: #013667;
  --secondary-cyan: #038798;
  --white: #ffffff;
  --text-dark: #333333;
  --text-muted: #666666;

  --transition: all 0.3s ease-in-out;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(1, 54, 103, 0.08);
  --shadow-lg: 0 20px 40px rgba(1, 54, 103, 0.12);
  --radius: 12px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* =========================================
   Typography & Utilities
   ========================================= */
h1,
h2,
h3,
h4 {
  color: var(--primary-blue);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.text-cyan {
  color: var(--secondary-cyan);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  box-shadow: 0 8px 15px rgba(1, 54, 103, 0.2);
}

.btn-primary:hover {
  background: #022a52;
  /* darker shade */
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(1, 54, 103, 0.3);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 8px 15px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(37, 211, 102, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.section-padding {
  padding: 6rem 0;
}

/* =========================================
   Header & Navigation
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: transparent;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  /* padding: 1rem 0; */
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 2x2 Desktop Layout specific: 2 left - Logo - 2 right */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-left,
.nav-right {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--primary-blue);
  font-size: 1.1rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary-cyan);
  transition: width 0.3s ease;
}

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

.nav-brand img {
  height: 88px;
  transition: var(--transition);
}

.navbar.scrolled .nav-brand img {
  height: 60px;
}

.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: var(--primary-blue);
}

.nav-menu {
  display: none;
  /* Hide mobile menu by default */
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  padding: 180px 0 80px;
  display: block;
  /* Removed flex and align-items to fix inner overflow clipping */
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f4f6f9 0%, #e0eaf5 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(circle, rgba(3, 135, 152, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* =========================================
   Hero Graphics & Floating Cards
   ========================================= */
.parallax-hero-track {
  position: relative;
  margin-top: 4rem;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.parallax-hero-sticky {
  position: relative;
  width: 100%;
  perspective: 1000px;
  z-index: 1;
}

.mockup-container {
  position: relative;
  max-width: 650px;
  /* Increased to make device larger */
  margin: 0 auto;
  width: 100%;
}

.mockup-container img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transform: rotateX(5deg);
  transition: transform 0.5s ease;
}

.mockup-container:hover img {
  transform: rotateX(0);
}

.float-card,
.float-pill {
  z-index: 2;
}

.float-card {
  position: absolute;
  background: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(1, 54, 103, 0.15);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.float-card .fc-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(3, 135, 152, 0.1);
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.float-card .fc-content {
  display: flex;
  flex-direction: column;
}

.float-card .fc-content span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.float-card .fc-content strong {
  font-size: 1.1rem;
  color: var(--text-dark);
}

.float-pill {
  position: absolute;
  background: #111;
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
}

@keyframes subtleHover {

  0%,
  100% {
    margin-top: 0;
    margin-left: 0;
  }

  25% {
    margin-top: -3px;
    margin-left: 2px;
  }

  50% {
    margin-top: 2px;
    margin-left: -1px;
  }

  75% {
    margin-top: -1px;
    margin-left: -2px;
  }
}

.float-card.visible,
.float-pill.visible {
  animation: subtleHover 5s ease-in-out infinite;
}

/* Card Positions - Desktop (Base) */
.card-1 {
  top: 10%;
  left: -30%;
  animation-delay: 0.2s;
}

.card-2 {
  top: 32%;
  left: -45%;
  animation-delay: 1.5s;
}

.card-3 {
  top: 58%;
  left: -30%;
  animation-delay: 0.8s;
}

.card-4 {
  top: 82%;
  left: -15%;
  animation-delay: 2.1s;
}

.card-5 {
  top: 12%;
  right: -30%;
  animation-delay: 0.5s;
}

.card-6 {
  top: 35%;
  right: -45%;
  animation-delay: 1.8s;
}

.card-7 {
  top: 55%;
  right: -30%;
  animation-delay: 1.1s;
}

.card-8 {
  top: 80%;
  right: -15%;
  animation-delay: 2.4s;
}

/* Tablets / iPad */
@media (max-width: 1100px) {
  .mockup-container {
    max-width: 450px;
  }

  .card-1 {
    left: -20%;
  }

  .card-2 {
    left: -35%;
  }

  .card-3 {
    left: -25%;
  }

  .card-4 {
    left: -10%;
  }

  .card-5 {
    right: -20%;
  }

  .card-6 {
    right: -35%;
  }

  .card-7 {
    right: -25%;
  }

  .card-8 {
    right: -10%;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .mockup-container {
    max-width: 80%;
  }

  .parallax-hero-track {
    flex-direction: column;
  }

  .floating-cards-layer {
    position: relative;
    width: 100%;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    pointer-events: auto;
  }

  .float-card,
  .float-pill {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none;
    animation: none;
    /* Disable complex shaking locally if preferred */
  }

  /* Retain subtle hover but prevent offset bugs on mobile */
  .float-card.visible,
  .float-pill.visible {
    animation: subtleHover 5s ease-in-out infinite;
  }
}

/* =========================================
   Features Cards (Grid & Carousel capable)
   ========================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(1, 54, 103, 0.05);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--secondary-cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(3, 135, 152, 0.1);
  color: var(--secondary-cyan);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--secondary-cyan);
  color: var(--white);
}

/* =========================================
   Demo / Video Section
   ========================================= */
.demo-section {
  background: var(--primary-blue);
  color: var(--white);
  position: relative;
}

.demo-section h2,
.demo-section p {
  color: var(--white);
}

.demo-section p {
  opacity: 0.8;
}

.video-container {
  max-width: 900px;
  margin: 4rem auto 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  background: #000;
  aspect-ratio: 16/9;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.play-button:hover {
  background: var(--white);
  transform: translate(-50%, -50%) scale(1.1);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }

  70% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* =========================================
   Pricing Cards
   ========================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid rgba(1, 54, 103, 0.05);
}

.pricing-card.popular {
  border: 2px solid var(--secondary-cyan);
  transform: translateY(-20px);
  box-shadow: var(--shadow-lg);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-cyan);
  color: var(--white);
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin: 1.5rem 0;
  display: flex;
  align-items: baseline;
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  margin: 2rem 0;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-features li i {
  color: var(--secondary-cyan);
  margin-top: 4px;
}

.one-time-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--primary-blue) 0%, #038798 100%);
  color: var(--white);
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
}

.one-time-card p {
  color: rgba(255, 255, 255, 0.8);
}

.one-time-card h3 {
  color: var(--white);
}

/* =========================================
   Footer & CTA Bottom
   ========================================= */
.footer-cta {
  background: var(--primary-blue);
  color: var(--white);
  text-align: center;
  padding: 5rem 2rem;
  border-radius: 24px;
  margin-bottom: 4rem;
}

.footer-cta h2,
.footer-cta p {
  color: var(--white);
}

footer {
  background: var(--white);
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.footer-brand img {
  height: 80px;
  margin-bottom: 1.5rem;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links ul li {
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--secondary-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

/* =========================================
   Animations & Transitions
   ========================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page Header for specific pages */
.page-header {
  padding: 180px 0 60px;
  background: var(--primary-blue);
  color: var(--white);
  text-align: center;
}

.page-header h1,
.page-header p {
  color: var(--white);
}

.page-header p {
  opacity: 0.9;
}

/* =========================================
   Media Queries
   ========================================= */
@media (max-width: 991px) {

  /* Hide standard left/right navs, rely on mobile menu */
  .nav-left,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .nav-menu {
    display: none;
    /* Default hidden until active */
  }

  .nav-menu.active {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    gap: 1.5rem;
  }

  .nav-menu.active .nav-left,
  .nav-menu.active .nav-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .one-time-card {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .hero-btns {
    flex-direction: column;
  }

  h1 {
    font-size: 2.5rem;
  }
}