/* ====== Variables & Reset ====== */
:root {
  /* Colors */
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #3f37c9;
  --accent: #4895ef;
  --danger: #f72585;
  --success: #4cc9f0;
  --warning: #f8961e;
  
  --text: #2b2d42;
  --text-light: #8d99ae;
  --text-lighter: #edf2f4;
  
  --bg: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-dark: #212529;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Typography */
  --text-base: 1rem;
  --text-sm: 0.875rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-5xl: 3rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.1);
  
  /* Border Radius */
  --rounded-sm: 0.25rem;
  --rounded-md: 0.5rem;
  --rounded-lg: 0.75rem;
  --rounded-xl: 1rem;
  --rounded-full: 9999px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  opacity: 1;
  transition: opacity 0.3s ease;
}

body.fade-out {
  opacity: 0;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ====== Typography ====== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-light);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--text-light);
}

/* ====== Buttons ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--rounded-full);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  gap: var(--space-sm);
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-lg);
}

/* ====== Header ====== */
.header {
  position: sticky;
  top: 0;
  background-color: var(--bg);
  box-shadow: var(--shadow-sm);
  z-index: 100;
  padding: var(--space-sm) 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  justify-content: center;
  align-items: center;
}

.logo i {
  color: var(--primary);
  align-items: center;
}

.logo span {
  color: var(--primary);
}

.navbar {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.navbar ul {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.navbar a {
  color: var(--text);
  font-weight: 500;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.navbar a:hover {
  color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: var(--text-xl);
  color: var(--text);
  cursor: pointer;
}

/* ====== Hero Section ====== */
.hero {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.hero-content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xl);
  max-width: 600px;
}

.cta-buttons {
  display: flex;
  gap: var(--space-md);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

/* Add a subtle floating effect on hover */
.hero-image:hover img {
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg) translateY(-5px);
}

/* Add a decorative pseudo-element */
.hero-image::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 15px;
  left: 15px;
}

/* Device Mockup Container */
.device-mockup {
  position: relative;
  width: 400px; /* Adjust based on your image aspect ratio */
  max-width: 100%;
  margin: 0 auto;
}

/* Screen Content */
.screen-content {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Optional: Add iPhone frame */
.device-mockup::before {
  content: "";
  position: absolute;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 600"><rect x="10" y="20" width="280" height="560" rx="30" fill="none" stroke="black" stroke-width="2"/></svg>') no-repeat center;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
}


/* ====== Features Section ====== */
.features {
  padding: var(--space-2xl) 0;
  background-color: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background-color: var(--bg-secondary);
  border-radius: var(--rounded-lg);
  padding: var(--space-xl);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  background-color: var(--primary);
  color: white;
  border-radius: var(--rounded-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  color: var(--text);
  margin-bottom: var(--space-sm);
}

/* ====== How It Works ====== */
.how-it-works {
  padding: var(--space-2xl) 0;
  background-color: var(--bg-secondary);
}

.steps {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
}

.step {
  flex: 1;
  max-width: 350px;
  text-align: center;
  padding: var(--space-xl);
  background-color: var(--bg);
  border-radius: var(--rounded-lg);
  position: relative;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: var(--rounded-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 auto var(--space-md);
}

.step h3 {
  color: var(--text);
}

/* ====== Testimonials ====== */
.testimonials {
  padding: var(--space-2xl) 0;
  background-color: var(--bg);
}

.testimonial-carousel {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  padding: var(--space-md) 0;
  scroll-snap-type: x mandatory;
}

.testimonial {
  min-width: 100%;
  scroll-snap-align: start;
  background-color: var(--bg-secondary);
  border-radius: var(--rounded-lg);
  padding: var(--space-xl);
}

.quote {
  position: relative;
  margin-bottom: var(--space-lg);
}

.quote i {
  color: var(--primary);
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.user {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.user img {
  width: 60px;
  height: 60px;
  border-radius: var(--rounded-full);
  object-fit: cover;
}

.user-info h4 {
  margin-bottom: 0;
  color: var(--text);
}

.user-info p {
  margin-bottom: 0;
  color: var(--text-light);
}

/* ====== CTA Section ====== */
.cta {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  text-align: center;
  color: white;
}

.cta h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.cta p {
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

/* ====== Footer ====== */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-lighter);
  padding: var(--space-2xl) 0 var(--space-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-about .logo {
  color: white;
  margin-bottom: var(--space-md);
}

.footer-about p {
  color: var(--text-lighter);
  margin-bottom: var(--space-md);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-links a {
  color: var(--text-lighter);
  font-size: var(--text-lg);
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--primary);
}

.footer-links h4 {
  color: white;
  margin-bottom: var(--space-md);
}

.footer-links ul {
  list-style: none;
  text-decoration: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
  text-decoration: none;
}

.footer-links a {
  color: var(--text-lighter);
  transition: color var(--transition-fast);
  text-decoration: none;
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
  color: var(--text-lighter);
  margin-bottom: 0;
}