/* Custom CSS for Alpaca Apps */

:root {
  --primary-color: #0d9488;
  --primary-dark: #0f766e;
  --secondary-color: #06b6d4;
  --accent-color: #f0fdfa;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --gradient-primary: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%);
  --gradient-light: linear-gradient(135deg, #f0fdfa 0%, #e0f2fe 100%);
}

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

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

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-weight: 700;
  color: var(--text-dark) !important;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

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

/* Hero Section */
.hero-section {
  background: var(--gradient-light);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px; /* Add padding to account for fixed navbar */
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.phone-mockup {
  position: relative;
  z-index: 2;
}

.phone-image {
  max-width: 300px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.phone-image:hover {
  transform: translateY(-10px);
}

/* Buttons */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
  background: var(--gradient-primary);
}

/* Section Divider */
.section-divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Feature Cards */
.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(13, 148, 136, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 100px;
  height: 100px;
  background: var(--gradient-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.feature-icon i {
  font-size: 3rem;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

/* Feature Items */
.feature-item {
  padding: 1rem 0;
}

.feature-icon-sm {
  width: 60px;
  height: 60px;
  background: var(--gradient-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emoji {
  font-size: 1.5rem;
}

.phone-mockup-center img {
  max-width: 280px;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.15));
}

/* Quote Card */
.quote-card {
  background: white;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  border-left: 5px solid var(--primary-color);
}

/* Form Container */
.form-container {
  background: var(--gradient-light);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25);
}

/* Contact Info */
.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.contact-icon i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.fade-in-delay-2 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.fade-in-delay-3 {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding-top: 120px; /* Increase padding for mobile */
    min-height: calc(100vh - 20px); /* Adjust height for mobile */
  }

  .phone-image {
    max-width: 250px;
  }

  .phone-mockup-center img {
    max-width: 220px;
  }

  .feature-card {
    margin-bottom: 2rem;
  }

  .quote-card {
    padding: 2rem 1.5rem;
  }

  .contact-form,
  .contact-info {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding-top: 140px; /* Even more padding for small mobile */
  }

  .display-3 {
    font-size: 2.5rem;
  }

  .display-4 {
    font-size: 2rem;
  }

  .phone-image {
    max-width: 200px;
  }

  .feature-card {
    padding: 1.5rem;
  }
}

/* Background Sections */
.bg-light {
  background: var(--gradient-light) !important;
}

/* Utility Classes */
.text-primary {
  color: var(--primary-color) !important;
}

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

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}