/* Vaisala Theme - Based on vaisala.com design */

:root {
  --vaisala-thunder-blue: #003d7a;
  --vaisala-light-blue: #0066cc;
  --vaisala-white: #ffffff;
  --vaisala-light-gray: #f5f5f5;
  --vaisala-dark-gray: #333333;
  --vaisala-accent: #00a3e0;
}

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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color: var(--vaisala-dark-gray);
  background-color: var(--vaisala-white);
  line-height: 1.6;
}

/* Header and Navigation */
header {
  background-color: var(--vaisala-white);
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--vaisala-thunder-blue) 0%,
    var(--vaisala-light-blue) 100%
  );
  color: var(--vaisala-white);
  padding: 80px 20px;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Video Section */
.hero-video-container {
  position: relative;
  width: 100%;
  height: 525px;
  overflow: hidden;
  margin: 0;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--vaisala-white);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  z-index: 1;
  width: 100%;
  padding: 20px;
}

.hero-video-overlay h1 {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-video-overlay p {
  font-size: 1.8rem;
  font-weight: 300;
  opacity: 0.95;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-section p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 30px;
  opacity: 0.95;
}

/* Stats Section */
.stats-section {
  background-color: var(--vaisala-white);
  padding: 60px 20px;
  border-bottom: 1px solid #e0e0e0;
}

.stats-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--vaisala-thunder-blue);
  display: block;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  color: var(--vaisala-dark-gray);
}

/* Content Section */
.content-section {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.content-section h2 {
  font-size: 2.5rem;
  color: var(--vaisala-thunder-blue);
  margin-bottom: 20px;
  font-weight: 300;
}

.content-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

.btn-primary:hover {
  background-color: var(--vaisala-light-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 61, 122, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--vaisala-thunder-blue);
  border-color: var(--vaisala-thunder-blue);
}

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

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.card {
  background: var(--vaisala-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 25px;
}

.card-title {
  font-size: 1.5rem;
  color: var(--vaisala-thunder-blue);
  margin-bottom: 15px;
}

.card-text {
  color: var(--vaisala-dark-gray);
  line-height: 1.6;
}

/* Footer */
footer {
  background-color: var(--vaisala-thunder-blue);
  color: var(--vaisala-white);
  padding: 60px 20px 30px;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--vaisala-white);
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.footer-section a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-section p {
    font-size: 1.125rem;
  }

  .hero-video-container {
    height: 350px;
  }

  .hero-video-overlay h1 {
    font-size: 2.5rem;
  }

  .hero-video-overlay p {
    font-size: 1.3rem;
  }

  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-video-container {
    height: 250px;
  }

  .hero-video-overlay h1 {
    font-size: 2rem;
  }

  .hero-video-overlay p {
    font-size: 1.1rem;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }
}

/* Navigation loading indicator */
@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

#nav-loading-indicator {
  animation:
    slideIn 0.3s ease-out,
    pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Fade in animation for scroll elements */
.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

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