:root {
  --primary-color: #004b70;
  --secondary-color: #1e88e5;
  --text-color: #2c3e50;
  --background-color: #f5f7fa;
  --spacing-unit: 1rem;
}

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

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, var(--background-color), #ffffff);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: calc(var(--spacing-unit) * 4);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 75, 112, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(20px);
  transition: transform 0.8s ease-out;
}

.container.scroll-active {
  transform: perspective(1000px) translateZ(20px);
}

header {
  display: flex;
  justify-content: center;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

/* Styles for the main logo container in the header */
header .logo {
  max-width: 380px;
  margin: calc(var(--spacing-unit) * 2) 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header .logo:hover {
  transform: scale(1.03);
}

header .logo img {
  width: 100%;
  height: auto;
}

/* Container for the two logos in the main section */
.logos-main-container {
  display: flex;
  justify-content: center; /* Center the logo sections */
  align-items: flex-start; /* Align items at the top */
  gap: calc(var(--spacing-unit) * 4); /* Space between the two logo sections */
  margin: calc(var(--spacing-unit) * 4) 0; /* Margin top and bottom */
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Individual logo section container (Galileo or T3) */
.logo-section-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1; /* Allow sections to grow but maintain base size */
  min-width: 150px; /* Minimum width before wrapping */
  max-width: 200px; /* Maximum width */
}

/* General logo container styles within the main section */
.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.95);
  opacity: 0;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: calc(
    var(--spacing-unit) * 1
  ); /* Space between logo and text */
}

.logo-container a {
  display: inline-block;
  text-decoration: none;
}

/* Specific styles for logos within the main section */
.logo-section-container .logo {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  width: 100%; /* Make logo responsive within its container */
  max-width: 120px; /* Max width for these logos */
  height: auto;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
  filter: drop-shadow(0 4px 6px rgba(0, 75, 112, 0.15));
}

.logo-section-container .logo-container:hover .logo {
  transform: scale(1.1) rotateZ(-3deg) !important;
  filter: drop-shadow(0 6px 8px rgba(0, 75, 112, 0.2));
}

/* Animation for logo containers */
.galileo-logo,
.t3aisat-logo {
  animation: logoFloat 1s ease-out forwards;
  animation-delay: 0.4s; /* Keep existing delay for T3, apply to Galileo too */
}

/* Subtitle styles */
.subtitle {
  color: var(--primary-color) !important;
  background: none !important;
  -webkit-text-fill-color: unset !important;
  text-shadow: 0 2px 4px rgba(0, 75, 112, 0.1);
  font-size: 1.5rem;
  text-align: center;
  font-weight: 300;
  letter-spacing: 0.8px;
  margin: calc(var(--spacing-unit) * 4) 0;
  background: linear-gradient(
    120deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  background-clip: text; /* Added standard property */
  -webkit-text-fill-color: transparent;
  background: linear-gradient(
    120deg,
    var(--primary-color) 0%,
    var(--secondary-color) 50%,
    var(--primary-color) 100%
  );
  background-size: 200% auto;
  transition: background-position 1.5s ease-out;
}

/* Contact info styles */
.contact-info {
  text-align: center;
  font-size: 1.2rem;
  line-height: 2.4;
  color: var(--text-color);
  margin-top: calc(var(--spacing-unit) * 4);
  opacity: 0.9;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info.animate-info {
  transform: translateY(0);
  opacity: 1;
}

/* Store link styles (used for both logos now) */
.store-links {
  margin-top: 0; /* Adjust as needed, removed default margin */
  width: 100%; /* Ensure it takes width for centering text */
}

.store-link {
  display: block;
  text-align: center;
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-top: 0; /* Remove top margin if spacing is handled by container */
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.store-link:hover {
  color: var(--primary-color);
  transform: scale(1.05);
  text-shadow: 0 2px 4px rgba(0, 75, 112, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .subtitle {
    font-size: 1.3rem;
  }

  header .logo {
    max-width: 320px;
  }

  .container {
    margin: var(--spacing-unit);
    padding: calc(var(--spacing-unit) * 2);
  }

  .logos-main-container {
    gap: calc(var(--spacing-unit) * 2); /* Reduce gap on smaller screens */
    justify-content: space-around; /* Better spacing when wrapping */
  }

  .logo-section-container .logo {
    max-width: 100px; /* Smaller logos on mobile */
  }
}

@media (max-width: 480px) {
  .logos-main-container {
    flex-direction: column; /* Stack logos vertically on very small screens */
    align-items: center; /* Center stacked items */
    gap: calc(var(--spacing-unit) * 3);
  }
  .logo-section-container {
    max-width: 150px; /* Adjust max width when stacked */
  }
}

/* Keyframe animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes logoFloat {
  0% {
    transform: translateY(10px) scale(0.95);
    opacity: 0;
  } /* Combined initial state */
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  } /* Combined final state */
}

/* Apply base animations */
header,
.subtitle,
.contact-info {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Apply specific delays */
.logos-main-container {
  /* Apply fadeInUp to the container */
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  animation-delay: 0.2s; /* Delay the container appearance */
}

/* Remove individual animation from logo containers if container animates */
/* .galileo-logo, .t3aisat-logo { animation: none; } */
/* Keep logoFloat for the inner logo-container if desired */
.logo-container {
  /* Apply logoFloat to the inner container */
  transform: scale(1); /* Reset transform if needed */
  opacity: 1; /* Reset opacity */
  animation: logoFloat 1s ease-out forwards;
  animation-delay: 0.4s; /* Delay float effect */
}

.contact-info {
  animation-delay: 0.6s; /* Adjust delay if needed */
}

/* Scroll animation classes (keep existing) */
.section {
  opacity: 0;
  transform: translateY(30px);
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in {
  animation: fadeInUp 1s ease-out forwards;
}
.slide-in {
  animation: slideInLeft 1s ease-out forwards;
}
.zoom-in {
  animation: zoomInEffect 1s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes zoomInEffect {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
