/* MTAI Software Labs - Standalone Master Stylesheet */
@import url('https://fonts.googleapis.com/css?family=Montserrat:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&display=swap&subset=cyrillic,cyrillic-ext,latin-ext,vietnamese');
@import url('https://fonts.googleapis.com/css?family=Roboto+Mono&display=swap');
@import url('https://fonts.googleapis.com/css?family=Lora&display=swap');
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&display=swap&subset=cyrillic,latin-ext,vietnamese');

:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 15%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 15%, 15%);
  --primary: hsl(218, 100%, 50%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(242, 77%, 63%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --muted: hsl(220, 14%, 96%);
  --muted-foreground: hsl(220, 15%, 15%);
  --accent: hsl(160, 84%, 39%);
  --accent-foreground: hsl(0, 0%, 100%);
  --destructive: hsl(0, 84%, 60%);
  --destructive-foreground: hsl(0, 0%, 100%);
  --border: hsl(220, 13%, 91%);
  --input: hsl(220, 13%, 91%);
  --ring: hsl(218, 100%, 50%);
  --dark: hsl(220, 26%, 16%);
  --light-gray: hsl(220, 14%, 98%);
  --font-sans: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-mono: 'Roboto Mono', monospace;
  --radius: 0.5rem;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, hsl(218, 100%, 50%) 0%, hsl(242, 77%, 63%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Professional Zero-Gravity Cosmic Float Animations */
@keyframes zeroGravity1 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(8px, -18px, 0) rotate(2.5deg);
  }
  50% {
    transform: translate3d(-6px, -28px, 0) rotate(-1.5deg) scale(1.02);
  }
  75% {
    transform: translate3d(-12px, -12px, 0) rotate(1deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes zeroGravity2 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  30% {
    transform: translate3d(-14px, -22px, 0) rotate(-3deg) scale(0.98);
  }
  60% {
    transform: translate3d(10px, -14px, 0) rotate(2deg);
  }
  85% {
    transform: translate3d(6px, -4px, 0) rotate(-1deg);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes zeroGravity3 {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
  35% {
    transform: translate3d(10px, -20px, 0) rotate(3deg) scale(1.03);
  }
  70% {
    transform: translate3d(-8px, -32px, 0) rotate(-2.5deg) scale(1.01);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }
}

@keyframes cosmicPlanetFloat {
  0% {
    transform: translate3d(0, 0, 0) rotate(-3deg) scale(1);
  }
  50% {
    transform: translate3d(6px, -18px, 0) rotate(4deg) scale(1.04);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(-3deg) scale(1);
  }
}

.animate-float-1 {
  animation: zeroGravity1 9s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: transform;
}

.animate-float-2 {
  animation: zeroGravity2 11s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 1.2s;
  will-change: transform;
}

.animate-float-3 {
  animation: zeroGravity3 8.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.5s;
  will-change: transform;
}

.animate-float-4 {
  animation: cosmicPlanetFloat 14s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite 0.8s;
  will-change: transform;
}

/* Cosmic Twinkle & Stardust */
@keyframes cosmicTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.2); }
}

.animate-twinkle {
  animation: cosmicTwinkle 3s ease-in-out infinite;
}

/* Hero Bottom Wave Keyframes */
.hero-bottom-wave-layer > use {
  animation: moveHeroBottomWave 18s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
  will-change: transform;
}

.hero-bottom-wave-layer > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 9s;
}

.hero-bottom-wave-layer > use:nth-child(2) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.hero-bottom-wave-layer > use:nth-child(3) {
  animation-delay: -3s;
  animation-duration: 20s;
}

@keyframes moveHeroBottomWave {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

/* Hero Reveal Animations */
@keyframes fadeInUpReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-fade-in-up {
  animation: fadeInUpReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Marquee for reviews */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.reviews-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 35s linear infinite;
}

.reviews-marquee-track:hover {
  animation-play-state: paused;
}

/* Footer Background Patterns */
@keyframes slidePattern1 {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}

@keyframes slidePattern2 {
  0% { background-position: 100% 0%; }
  100% { background-position: 0% 0%; }
}

.animate-pattern-1 {
  animation: slidePattern1 20s linear infinite;
}

.animate-pattern-2 {
  animation: slidePattern2 25s linear infinite;
}

/* Footer Floating Geometric Elements */
@keyframes floatShape1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(0.6); }
  50% { transform: translate(80px, -60px) rotate(180deg) scale(1.1); }
}

@keyframes floatShape2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(-60px, 50px) rotate(-180deg) scale(0.7); }
}

@keyframes floatShape3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(0.8); }
  50% { transform: translate(50px, 70px) rotate(360deg) scale(1.2); }
}

.animate-shape-1 { animation: floatShape1 18s ease-in-out infinite; will-change: transform; }
.animate-shape-2 { animation: floatShape2 14s ease-in-out infinite; will-change: transform; }
.animate-shape-3 { animation: floatShape3 22s ease-in-out infinite; will-change: transform; }

/* Complete Water Waves Footer Animations */
.water-waves-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: translateZ(0);
}

.water-waves-svg {
  position: relative;
  display: block;
  width: 100%;
  height: 110px;
  min-height: 80px;
}

@media (min-width: 640px) {
  .water-waves-svg {
    height: 140px;
  }
}

@media (min-width: 1024px) {
  .water-waves-svg {
    height: 180px;
  }
}

.water-waves-parallax > use {
  animation: moveWaterWave 20s cubic-bezier(.55, .5, .45, .5) infinite;
  will-change: transform;
}

.water-waves-parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.water-waves-parallax > use:nth-child(2) {
  animation-delay: -4s;
  animation-duration: 11s;
}

.water-waves-parallax > use:nth-child(3) {
  animation-delay: -3s;
  animation-duration: 15s;
}

.water-waves-parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 22s;
}

@keyframes moveWaterWave {
  0% {
    transform: translate3d(-90px, 0, 0);
  }
  100% {
    transform: translate3d(85px, 0, 0);
  }
}

/* Water Caustics Shimmer */
@keyframes waterCausticsGlow {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1) translateY(0);
  }
  50% {
    opacity: 0.38;
    transform: scale(1.08) translateY(-10px);
  }
}

.animate-water-caustics {
  animation: waterCausticsGlow 9s ease-in-out infinite;
  will-change: transform, opacity;
}

/* Subtle Underwater Horizon Ripple */
@keyframes waterHorizonFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-water-current-flow {
  background-size: 200% 200%;
  animation: waterHorizonFlow 16s ease infinite;
}

/* Fade in animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.8s ease-out forwards;
}

/* Phone input styling with intl-tel-input */
.iti {
  width: 100% !important;
  display: block !important;
  position: relative;
}

.iti input[type="tel"],
.iti__tel-input {
  width: 100% !important;
  border-radius: 0.375rem !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  background-color: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #111827 !important;
  transition: all 0.2s ease-in-out;
}

.iti input[type="tel"]:focus,
.iti__tel-input:focus {
  border-color: #a855f7 !important;
  box-shadow: 0 0 0 1px #a855f7 !important;
  outline: none !important;
}

.iti__selected-country {
  padding: 0 8px 0 12px !important;
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
  background: transparent !important;
}

.iti__selected-country:hover {
  background-color: rgba(243, 244, 246, 0.8) !important;
}

.iti__country-list {
  z-index: 100 !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  border: 1px solid #e5e7eb !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.875rem !important;
  max-height: 250px !important;
  background-color: #ffffff !important;
}

.iti__country {
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px;
  color: #374151;
}

.iti__country:hover,
.iti__country.iti__highlight {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
}

.iti__country-name {
  font-weight: 500;
}

.iti__dial-code {
  color: #6b7280;
  font-size: 0.8rem;
}

