/* ==========================================
   FLEXIWALLETS - GLOBAL STYLES
   ========================================== */

/* CSS Variables - Brand Colors */
:root {
  --juno-orange: #FF8C42;
  --juno-blue: #003046;
  --juno-teal: #008080;
  --juno-egg: #FAF9F6;
  --juno-yellow: #FFE66D;
  --juno-coral: #FF6B6B;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #6a6a6a;
  --border-light: #e0e0e0;
  --shadow: rgba(0, 48, 70, 0.1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background: var(--juno-egg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--juno-blue);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Section Spacing */
section {
  padding: 5rem 0;
}

@media (max-width: 768px) {
  section {
    padding: 3rem 0;
  }
}

/* Top Bar */
@media (max-width: 768px) {
  div[style*="background: var(--juno-blue)"] .container {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================
   NAVIGATION
   ========================================== */

nav {
  position: fixed;
  top: 45px; /* Account for top bar */
  left: 0;
  width: 100%;
  background: rgba(250, 249, 246, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(250, 249, 246, 0.98);
  box-shadow: 0 2px 30px var(--shadow);
}

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

.logo {
  height: 40px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links .btn-small {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--juno-blue);
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--juno-orange);
  transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--juno-blue);
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: var(--juno-egg);
    width: 100%;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow);
    transition: left 0.3s ease;
    gap: 1.5rem;
  }

  .nav-links.active {
    left: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
}

/* Hero Section with Gradient Background */
/* ==========================================
   HERO
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #E0F7FA 0%, #B2EBF2 25%, #80DEEA 50%, #4DD0E1 75%, #26C6DA 100%);
  padding-top: 140px; /* Account for top bar + nav */
  position: relative;
  overflow: hidden;
}

/* Animated decorative elements */
.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  right: 5%;
  width: 150px;
  height: 150px;
  background: #FF6B9D;
  border-radius: 30px;
  transform: rotate(25deg);
  opacity: 0.8;
  animation: float-diagonal 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 15%;
  left: 8%;
  width: 120px;
  height: 120px;
  background: #FFB347;
  border-radius: 25px;
  transform: rotate(-15deg);
  opacity: 0.8;
  animation: float-diagonal 5s ease-in-out infinite reverse;
}

@keyframes float-diagonal {
  0%, 100% { transform: translate(0, 0) rotate(25deg); }
  50% { transform: translate(20px, -20px) rotate(35deg); }
}

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

.hero-text h1 {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--juno-blue);
}

.hero-text .highlight {
  color: var(--juno-orange);
  position: relative;
  display: inline-block;
}

.hero-text .highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background: var(--juno-yellow);
  opacity: 0.6;
  z-index: -1;
  border-radius: 4px;
}

.hero-text p {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  margin-bottom: 2rem;
  color: var(--juno-blue);
  line-height: 1.7;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Watch Video Button */
.hero-text > div:first-child {
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-text > div:first-child:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 20px rgba(0,48,70,0.15);
}

/* Hero Image with enhanced animation */
.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  filter: drop-shadow(0 25px 50px rgba(0, 48, 70, 0.2));
  animation: float-smooth 4s ease-in-out infinite;
}

@keyframes float-smooth {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(1deg); }
}

/* Rating Badge (99% Happy Customers style) */
.hero-badge {
  position: absolute;
  top: 15%;
  right: -5%;
  background: white;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,48,70,0.15);
  text-align: center;
  z-index: 2;
}

.hero-badge-circle {
  width: 80px;
  height: 80px;
  background: var(--juno-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 0.75rem;
}

.hero-badge-stars {
  color: var(--juno-yellow);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.hero-badge-text {
  font-size: 0.9rem;
  color: var(--text-medium);
  font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  nav {
    top: 60px; /* Adjust for mobile top bar */
  }
  
  .hero {
    min-height: auto;
    padding: 140px 0 60px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-image {
    order: -1;
  }
  
  .hero::before,
  .hero::after {
    width: 80px;
    height: 80px;
  }
  
  .hero-badge {
    position: static;
    margin: 2rem auto;
    max-width: 200px;
  }
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background: var(--juno-orange);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover {
  background: #ff7a2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

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

.btn-secondary:hover {
  background: var(--juno-blue);
  color: white;
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

.btn-small {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
}

/* ==========================================
   CARDS
   ========================================== */

.card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 48, 70, 0.15);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--juno-orange), var(--juno-yellow));
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* ==========================================
   GRID LAYOUTS
   ========================================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center { text-align: center; }
.text-orange { color: var(--juno-orange); }
.text-blue { color: var(--juno-blue); }
.text-teal { color: var(--juno-teal); }

.bg-white { background: white; }
.bg-egg { background: var(--juno-egg); }
.bg-blue { background: var(--juno-blue); color: white; }
.bg-orange { background: var(--juno-orange); color: white; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background: var(--juno-blue);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--juno-orange);
  margin-bottom: 1rem;
}

.footer-section a {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--juno-orange);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--juno-orange);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}