:root {
  --fg-max-move: 40px; /* px movement at depth 1 from mouse */
  --scroll-max-move: 120px; /* px movement at depth 1 from scroll */
  --space-mouse-amp: 25;  /* bg mouse parallax intensity (percent points) */
  --space-scroll-amp: 12; /* bg scroll parallax intensity */
  --earth-pan-dur: 65s;   /* slower pan for final look */
}

html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  background: #00001e; /* Dark blue background */
  overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.navbar-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 40px);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}

.navbar-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.navbar-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.navbar-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}


/* Hero container */
.hero {
  position: relative;
  height: 75vh;
  min-height: 560px;
  overflow: clip;
  display: flex;
  align-items: center;
  isolation: isolate;
}

/* Layer stack */
.layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-style: preserve-3d;
  contain: layout paint;
}

.layer {
  position: absolute;
  left: 50%;
  top: 50%;
  --mx: 0px;            /* mouse X offset */
  --my: 0px;            /* mouse Y offset */
  --sy: 0px;            /* scroll Y offset */
  --ax: 0px;            /* autonomous anim X offset */
  --ay: 0px;            /* autonomous anim Y offset */
  --base-x: 0px;        /* base placement X */
  --base-y: 0px;        /* base placement Y */
  transform: translate(
    calc(-50% + var(--base-x) + var(--mx) + var(--ax)),
    calc(-50% + var(--base-y) + var(--my) + var(--sy) + var(--ay))
  );
  transition: transform 200ms ease-out;
  will-change: transform;
}

/* Background space (fills the hero) */
.layer--space {
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  transform: none; /* Fill container; offsets applied by background-position via translate inside holder */
  background-image: image-set(
    url('../assets/images/spaceBG_alt2_1x.jpg') 1x,
    url('../assets/images/spaceBG_alt2_2x.jpg') 2x,
    url('../assets/images/spaceBG_alt2_3x.jpg') 3x
  );
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  filter: saturate(1.05) brightness(0.95);
  z-index: 1;
}

/* Earth: mid-plane */
.layer--earth {
  width: min(59.5vmin, 612px);
  max-width: 76.5vw;
  z-index: 3;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.6));
  /* Align with right column space */
  --base-x: 275px;
  --base-y: 15px;
}

/* CSS circle globe with panning equirectangular map */
.earth-globe {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  background-image: url('../assets/images/small_earth_clouds_compress.jpg');
  background-repeat: repeat-x;
  background-size: auto 100%; /* fit height, repeat in X */
  background-position: 0px 50%;
  animation: earth-pan var(--earth-pan-dur, 4s) linear infinite;
  /* Shadows applied dynamically via JavaScript */
  will-change: background-position;
}

@keyframes earth-pan {
  from { background-position:    0px 50%; }
  to   { background-position: calc(var(--earth-tile-w, 1024px) * -1) 50%; }
}

@keyframes textShine {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

/* Astronaut: foreground */
.layer--astro {
  width: min(40.5vmin, 468px);
  max-width: 54vw;
  z-index: 4;
  filter: drop-shadow(0 16px 36px rgba(0,0,0,0.7));
  /* Align with right column space, slightly offset from Earth */
  --base-x: 355px;
  --base-y: 145px;
}

/* Hero container */
.hero-container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1100px;
  margin: 50px auto 0;
  padding: clamp(24px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

/* Hero content in left column */
.hero-content {
  text-align: left;
  max-width: none;
  padding: 0;
}
.hero-title {
  font-size: clamp(2.5rem, 5vw + 1.25rem, 4.375rem);
  line-height: 1.1;
  margin: 0 0 .5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff 35%,
    #a3d5ff 40%,
    #ffffff 45%,
    #ffffff 55%,
    #c9a3ff 60%,
    #ffffff 65%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  background-size: 500% auto;
  animation: textShine 15s ease-in-out infinite alternate;
}
.hero-subtitle {
  font-size: clamp(1.3rem, 1.8vw + 1rem, 1.6rem);
  color: #cfe6ff;
  opacity: 0.92;
  margin: 0 0 1.5rem 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4), 0 2px 12px rgba(0,0,0,0.2);
}

.hero-description {
  font-size: clamp(1rem, 1.2vw + 0.6rem, 1.1rem);
  color: #e8f1ff;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-btn {
  padding: 12px 24px;
  background: linear-gradient(135deg, #7953cd, #00affa);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 4px 15px rgba(121, 83, 205, 0.3);
}


.hero-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(121, 83, 205, 0.2);
}

/* Placeholder site content */
.container { max-width: 1100px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); }
.section { padding: clamp(32px, 6vw, 64px) 0; color: #e8f1ff; }
.muted { color: #c7d4ea; opacity: 0.9; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(16px, 3vw, 28px); }
.card { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 16px 18px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }

/* New section styles */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-image {
  width: 100%;
  height: 500px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  opacity: 1.0;
}

.section-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin: 0 0 1rem 0;
  background: linear-gradient(135deg, #7953cd, #00affa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

.section-content p {
  margin: 0 0 1.5rem 0;
  line-height: 1.6;
  font-size: 1.1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #7953cd, #00affa);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.highlight {
  color: #a3d5ff;
  font-weight: 600;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #7953cd, #00affa);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 3rem;
}


@media (max-width: 768px) {
  .two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .section-image {
    height: 300px;
    order: -1;
  }
  
  .cta-button {
    display: block;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
  .hero-container {
    padding: clamp(20px, 5vw, 60px);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .navbar-links {
    gap: 1.5rem;
  }
  
  .navbar-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.95rem;
  }
  
  .hero-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    grid-template-columns: 1fr;
    text-align: center;
    padding: clamp(16px, 4vw, 32px);
  }
  
  .hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }

  .layer--earth {
    --base-x: 0px;
    --base-y: 0px;
  }

  .layer--astro {
    --base-x: 0px;
    --base-y: 80px;
  }
}

@media (max-width: 480px) {
  .navbar-links {
    gap: 0.75rem;
  }
  
  .navbar-link {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .hero {
    height: 40vh;
  }
  
  .hero-content {
    padding: 1.5rem;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .layer--earth {
    width: min(70vmin, 300px);
    max-width: 80vw;
  }

  .layer--astro {
    width: min(50vmin, 250px);
    max-width: 70vw;
  }
}

/* Motion sensitivity */
@media (prefers-reduced-motion: reduce) {
  .layer { transition: none; }
  .earth-globe { animation: none !important; }
}

/* Icon grid styles */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
}

.feature-item i {
  font-size: 2rem;
  background: linear-gradient(135deg, #7953cd, #00affa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #a3d5ff;
}

.feature-item p {
  margin: 0;
  line-height: 1.4;
  color: #c7d4ea;
  font-size: 0.9rem;
}

.icon-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
}


.icon-card i {
  font-size: 3rem;
  background: linear-gradient(135deg, #7953cd, #00affa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  margin-bottom: 1rem;
  display: block;
}

.icon-card h3 {
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  color: #a3d5ff;
}

.icon-card p {
  margin: 0;
  line-height: 1.5;
  color: #c7d4ea;
}

/* Section heading styles */
.section-heading {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #7953cd, #00affa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

.section-description {
  text-align: center;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.feature-icon-large {
  font-size: 3rem;
  background: linear-gradient(135deg, #7953cd, #00affa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  margin-bottom: 1rem;
  display: block;
}

.text-center {
  text-align: center;
}

.section-image-styled {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

/* Contact form styles */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #a3d5ff;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00affa;
  box-shadow: 0 0 20px rgba(0, 175, 250, 0.3), 0 0 40px rgba(0, 175, 250, 0.1);
  background: rgba(255,255,255,0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #7953cd, #00affa);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(121, 83, 205, 0.4);
}

/* Footer styles */
.footer {
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-section h3 {
  color: #a3d5ff;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
  color: #c7d4ea;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.3s ease;
}


.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}


.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: #c7d4ea;
}

/* Placeholder link styling */
.placeholder-link {
  opacity: 0.6;
  cursor: not-allowed !important;
  position: relative;
}

.placeholder-link::after {
  content: " (Coming Soon)";
  font-size: 0.8em;
  opacity: 0.7;
}

/* Legal content styles */
.legal-content {
  color: #e8f1ff;
  line-height: 1.6;
}

.legal-content h3 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #7953cd, #00affa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
}

.legal-content p {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: #e8f1ff;
}

.legal-content ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #e8f1ff;
}

.legal-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.legal-content address {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e8f1ff;
  margin-bottom: 1.5rem;
}

.legal-content a {
  color: #00affa;
  text-decoration: underline;
}

.legal-content .legal-highlight {
  font-weight: bold;
  color: #ffd700;
  font-size: 1.1rem;
}

.legal-content .legal-warning {
  font-weight: bold;
  color: #ff6b6b;
  font-size: 1.1rem;
}

.legal-section-padding {
  padding-top: 120px;
}

.legal-header-spacing {
  margin-bottom: 3rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  color: #e8f1ff;
}

.legal-table th {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
  background-color: rgba(255,255,255,0.1);
  font-weight: 600;
  color: #a3d5ff;
}

.legal-table td {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
  background-color: rgba(255,255,255,0.05);
}

/* Scroll Animation Styles */
.slide-left,
.slide-right {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-left {
  transform: translateX(-50px);
}

.slide-right {
  transform: translateX(50px);
}

.slide-left.animate-in,
.slide-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}
/* Anchor offset so sections are not hidden behind fixed navbar */
.section, #hero { scroll-margin-top: 80px; }

#form-status.form-status-success {
    color: #4CAF50;
    background-color: #e8f5e9;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    transition: all 0.5s ease-in-out;
}

#form-status.form-status-error {
    color: #f44336;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    transition: all 0.5s ease-in-out;
}
