/* Modern Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  line-height: 1;
  white-space: nowrap;
  background: transparent;
  min-height: 48px;
}

.btn:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue) 100%);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

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

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

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

.btn-ghost {
  background: transparent;
  color: var(--primary-blue);
  padding: 12px 24px;
}

.btn-ghost:hover {
  background: rgba(1, 118, 211, 0.1);
  color: var(--primary-blue-dark);
}

.btn-white {
  background: var(--white);
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--light-gray);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.1rem;
  min-height: 56px;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  min-height: 40px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

.btn-icon-right {
  flex-direction: row-reverse;
}

/* Card Components */
.card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: var(--transition);
  border: 1px solid var(--medium-gray);
}

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

.card-header {
  margin-bottom: 24px;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.card-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 0;
}

.card-body {
  margin-bottom: 24px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

/* Grid Components */
.grid {
  display: grid;
  gap: 32px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Feature Icons */
.feature-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  border-radius: var(--border-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--white);
}

.feature-icon-large {
  width: 80px;
  height: 80px;
  margin-bottom: 32px;
}

.feature-icon-large svg {
  width: 40px;
  height: 40px;
}

/* Badge Components */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
}

.badge-secondary {
  background: var(--light-gray);
  color: var(--text-dark);
}

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

/* Navigation Components */
.nav-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0;
  min-height: 80px;
  transition: all 0.3s ease;
}

.nav-logo {
  color: var(--primary-blue);
  text-decoration: none;
}

.nav-logo img {
  max-width: 240px;
  max-height: 64px;
  height: auto;
  width: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  display: block;
}

.site-title {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-blue);
  transition: all 0.3s ease;
}

.nav-logo:hover .site-title {
  color: var(--primary-blue-dark);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  color: var(--white);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero::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 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
  opacity: 0.3;
}

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

.hero h1 {
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Testimonial Components */
.testimonial {
  background: var(--white);
  padding: 40px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  border-left: 4px solid var(--primary-blue);
}

.testimonial-quote {
  font-size: 1.2rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-dark);
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 600;
  font-size: 1.2rem;
}

.testimonial-info h4 {
  margin-bottom: 4px;
  color: var(--text-dark);
}

.testimonial-info p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-stars svg {
  width: 20px;
  height: 20px;
  color: #FFD700;
}

/* Stats Components */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 32px 20px;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-blue);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* Animation Styles */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.nav-header {
  transition: all 0.3s ease;
}

.nav-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.nav-header.scrolled .nav-container {
  padding: 30px 0 2px 0;
  min-height: 76px;
}

.nav-header.scrolled .nav-logo img {
  max-width: 220px;
  max-height: 60px;
}

.nav-header.hidden {
  transform: translateY(-100%);
}

/* Enhanced Button Hover States */
.btn:not(:disabled):hover {
  transform: translateY(-2px) !important;
}

.btn:not(:disabled):active {
  transform: translateY(0) !important;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Loading Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  
  .hero {
    padding: 80px 0;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 280px;
  }
  
  .grid {
    gap: 24px;
  }
  
  .card {
    padding: 24px;
  }
  
  .testimonial {
    padding: 32px 24px;
  }
  
  .stats {
    gap: 32px;
  }
  
  .stat-item {
    padding: 24px 16px;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
}
