/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Exo 2', sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  overflow-x: hidden;
  line-height: 1.7;
}

/* ===== STAR FIELD ===== */
#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== NEBULA BACKGROUND ===== */
.nebula-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(88, 28, 135, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 7, 100, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 10% 90%, rgba(255, 153, 0, 0.05) 0%, transparent 40%);
}

/* ===== PARALLAX LAYERS ===== */
.parallax-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  z-index: 0;
  pointer-events: none;
}

.parallax-stars .layer {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
}

/* CSS twinkling stars */
.twinkle-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.twinkle-star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--duration) ease-in-out infinite alternate;
  opacity: 0;
}

@keyframes twinkle {
  0% { opacity: 0.1; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 0.3; transform: scale(0.9); }
}

/* ===== SHOOTING STARS ===== */
.shooting-star {
  position: fixed;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 153, 0, 0.9), transparent);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  animation: shoot 3s ease-in-out infinite;
}

.shooting-star::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 8px;
  height: 4px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(255, 153, 0, 0.6);
}

.shooting-star:nth-child(1) {
  top: 15%;
  left: 70%;
  animation-delay: 0s;
  animation-duration: 4s;
}

.shooting-star:nth-child(2) {
  top: 35%;
  left: 50%;
  animation-delay: 6s;
  animation-duration: 3.5s;
}

.shooting-star:nth-child(3) {
  top: 60%;
  left: 80%;
  animation-delay: 12s;
  animation-duration: 5s;
}

@keyframes shoot {
  0% { opacity: 0; transform: translateX(0) translateY(0) rotate(-35deg); }
  5% { opacity: 1; }
  15% { opacity: 1; transform: translateX(-300px) translateY(180px) rotate(-35deg); }
  20% { opacity: 0; transform: translateX(-400px) translateY(240px) rotate(-35deg); }
  100% { opacity: 0; }
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.8rem 2rem;
  transition: all 0.4s ease;
  backdrop-filter: blur(0px);
  background: transparent;
}

nav.scrolled {
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 153, 0, 0.15);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #8b949e;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.3rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FF9900;
  box-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #FF9900;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.social-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-icons a {
  color: #8b949e;
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
}

.social-icons a:hover {
  color: #FF9900;
  transform: translateY(-2px);
}

.social-icons svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 5px;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: #c9d1d9;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== LANGUAGE SWITCHER ===== */
.nav-lang {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.nav-lang strong {
  color: #FF9900;
}

.nav-lang a {
  color: #6e7681 !important;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 700;
}

.nav-lang a::after {
  display: none !important;
}

.nav-lang a:hover {
  color: #FF9900 !important;
}

.nav-lang-sep {
  color: #6e7681;
  margin: 0 0.1rem;
}

/* ===== SECTIONS COMMON ===== */
.content-wrapper {
  position: relative;
  z-index: 10;
}

section, article {
  position: relative;
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Space station panel styling */
.station-panel {
  background: rgba(22, 27, 34, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 153, 0, 0.12);
  border-radius: 16px;
  padding: 3rem;
  box-shadow:
    0 0 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.station-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 153, 0, 0.3), transparent);
}

.station-panel:hover {
  border-color: rgba(255, 153, 0, 0.25);
  box-shadow:
    0 0 60px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(255, 153, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-3px);
}

/* Section headings */
.section-tag {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #FF9900;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-tag::before {
  content: '';
  width: 30px;
  height: 2px;
  background: #FF9900;
  box-shadow: 0 0 10px rgba(255, 153, 0, 0.5);
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.05rem;
  color: #8b949e;
  margin-bottom: 2.5rem;
  max-width: 700px;
  line-height: 1.8;
}

/* Glow accent lines */
.glow-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #FF9900, rgba(255, 153, 0, 0.2));
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.4);
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, #FF9900, #e88a00);
  color: #0d1117;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px rgba(255, 153, 0, 0.25);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 153, 0, 0.4);
  background: linear-gradient(135deg, #ffaa22, #FF9900);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: transparent;
  color: #FF9900;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 153, 0, 0.4);
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(255, 153, 0, 0.1);
  border-color: #FF9900;
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(255, 153, 0, 0.15);
}

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid rgba(255, 153, 0, 0.08);
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(10px);
}

.footer-logo {
  margin-bottom: 0.8rem;
}

.footer-logo img {
  height: 60px;
  width: auto;
}

footer p {
  font-size: 0.88rem;
  color: #6e7681;
}

footer span {
  color: #FF9900;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 153, 0, 0.15);
  border: 1px solid rgba(255, 153, 0, 0.3);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: rgba(255, 153, 0, 0.25);
  border-color: #FF9900;
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.2);
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  stroke: #FF9900;
  fill: none;
  stroke-width: 2;
}

/* ===== RESPONSIVE: NAV ===== */
@media (max-width: 640px) {
  section, article {
    padding: 4rem 1.2rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(255, 153, 0, 0.1);
  }

  .nav-links.open {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links .social-icons {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 153, 0, 0.1);
  }

  .station-panel {
    padding: 1.5rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shooting-star { display: none; }
}

/* Utility for Cloud icon in section tags */
.cloud-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
}
