/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 0;
}

.logo-container {
  width: 320px;
  max-width: 100%;
  margin: 0 auto 2rem;
}

.logo-container svg {
  width: 100%;
  height: auto;
}

.logo-container a {
  display: block;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #1a202c;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

.gradient-text {
  background: linear-gradient(135deg, #0099c2 0%, #50c0ad 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #0099c2 0%, #50c0ad 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 153, 194, 0.3);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 153, 194, 0.4);
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  background-color: #f7fafc;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.stat-card.animate {
  animation: fadeInUp 0.6s ease forwards;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  background: #e6f7fb;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #0099c2;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: #4a5568;
  font-weight: 500;
}

/* Portfolio Section */
.portfolio-section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.client-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
}

.client-card.animate {
  animation: fadeInUp 0.5s ease forwards;
}

.client-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.client-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.client-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.client-card:hover .client-image img {
  transform: scale(1.1);
}

.usa-flag-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 2px solid white;
}

.usa-flag-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.client-info {
  position: relative;
  padding: 1rem;
  overflow: hidden;
}

.client-name {
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-category {
  color: #4a5568;
  font-size: 0.9rem;
}

.client-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0099c2 0%, #50c0ad 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.client-card:hover .client-overlay {
  opacity: 1;
}

.client-overlay span {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Loading Spinner */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  background: #f7fafc;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid #e2e8f0;
  border-top: 2px solid #0099c2;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Footer */
.footer {
  background-color: #1a202c;
  color: white;
  padding: 3rem 0;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  width: 192px;
  margin: 0 auto 1.5rem;
}

.footer-logo img {
  width: 100%;
  height: auto;
}

.footer-description {
  color: #a0aec0;
  max-width: 400px;
  margin: 0 auto 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.social-links a {
  background: #2d3748;
  color: #a0aec0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: #0099c2;
  color: white;
}

.contact-info {
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: #a0aec0;
}

.contact-item svg {
  color: #50c0ad;
}

.contact-item a {
  color: #a0aec0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #50c0ad;
}

.footer-bottom {
  border-top: 1px solid #2d3748;
  padding-top: 2rem;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: #718096;
  opacity: 0.6;
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .logo-container {
    width: 250px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .clients-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .logo-container {
    width: 200px;
  }

  .clients-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 0.75rem;
  }
}
