:root {
  --mars-primary: #c45a2c;
  --mars-light: #e07040;
  --mars-glow: #ff8c55;
  --mars-dark: #8a3520;
  --mars-rust: #6d2a18;

  --space-deep: #050208;
  --space-purple: #0d0a15;

  --accent-gold: #e8b059;
  --accent-amber: #d4994a;

  --text-primary: #ede5dc;
  --text-secondary: #b5a899;
  --text-muted: #6d6058;

  --font-header: "Orbitron", sans-serif;
  --font-body: "Rajdhani", sans-serif;
}

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

html {
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background: radial-gradient(
    ellipse at bottom,
    var(--space-purple) 0%,
    var(--space-deep) 100%
  );
  font-family: var(--font-body);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ========================================
   STARS BACKGROUND
   ======================================== */

.stars,
.stars2,
.stars3 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.stars {
  background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(
      2px 2px at 160px 120px,
      rgba(255, 255, 255, 0.9),
      transparent
    ),
    radial-gradient(1px 1px at 230px 80px, #fff, transparent),
    radial-gradient(
      2px 2px at 300px 150px,
      rgba(255, 255, 255, 0.7),
      transparent
    ),
    radial-gradient(1px 1px at 370px 30px, #fff, transparent),
    radial-gradient(
      2px 2px at 450px 180px,
      rgba(255, 255, 255, 0.8),
      transparent
    ),
    radial-gradient(1px 1px at 520px 90px, #fff, transparent),
    radial-gradient(
      2px 2px at 600px 140px,
      rgba(255, 255, 255, 0.9),
      transparent
    );
  background-size: 650px 200px;
  animation: starsMove 100s linear infinite;
  opacity: 0.8;
}

.stars2 {
  background-image: radial-gradient(1px 1px at 50px 100px, #fff, transparent),
    radial-gradient(
      2px 2px at 120px 50px,
      rgba(255, 220, 180, 0.9),
      transparent
    ),
    radial-gradient(1px 1px at 200px 160px, #fff, transparent),
    radial-gradient(
      1px 1px at 280px 90px,
      rgba(255, 255, 255, 0.7),
      transparent
    ),
    radial-gradient(2px 2px at 350px 200px, #fff, transparent),
    radial-gradient(
      1px 1px at 420px 60px,
      rgba(255, 255, 255, 0.8),
      transparent
    ),
    radial-gradient(2px 2px at 500px 130px, rgba(255, 240, 200, 1), transparent),
    radial-gradient(1px 1px at 580px 180px, #fff, transparent);
  background-size: 620px 250px;
  animation: starsMove 120s linear infinite;
  opacity: 0.6;
}

.stars3 {
  background-image: radial-gradient(1px 1px at 80px 60px, #fff, transparent),
    radial-gradient(
      1px 1px at 150px 140px,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(2px 2px at 240px 30px, rgba(255, 200, 150, 1), transparent),
    radial-gradient(1px 1px at 320px 100px, #fff, transparent),
    radial-gradient(
      1px 1px at 400px 170px,
      rgba(255, 255, 255, 0.7),
      transparent
    ),
    radial-gradient(2px 2px at 480px 80px, #fff, transparent),
    radial-gradient(
      1px 1px at 560px 140px,
      rgba(255, 255, 255, 0.5),
      transparent
    );
  background-size: 600px 220px;
  animation: starsMove 150s linear infinite;
  opacity: 0.5;
}

@keyframes starsMove {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-1000px);
  }
}

/* ========================================
   MARS PLANET
   ======================================== */

.mars-planet {
  position: fixed;
  bottom: -120px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    #ff7b47 0%,
    #e5633a 15%,
    #c45a2c 30%,
    #a84825 45%,
    #8a3520 60%,
    #5c2415 80%,
    #2d1209 100%
  );
  box-shadow: inset -40px -40px 80px rgba(0, 0, 0, 0.7),
    inset 20px 20px 60px rgba(255, 180, 120, 0.25),
    0 0 60px rgba(196, 90, 44, 0.5), 0 0 120px rgba(196, 90, 44, 0.25),
    0 0 200px rgba(196, 90, 44, 0.1);
  z-index: 1;
  animation: planetFloat 12s ease-in-out infinite;
  pointer-events: none;
}

.mars-highlight {
  position: absolute;
  top: 12%;
  left: 15%;
  width: 35%;
  height: 35%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 200, 160, 0.3) 0%,
    rgba(255, 150, 100, 0.1) 40%,
    transparent 70%
  );
  filter: blur(8px);
}

.mars-atmosphere {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    transparent 60%,
    rgba(255, 140, 85, 0.08) 80%,
    rgba(255, 100, 50, 0.12) 100%
  );
  pointer-events: none;
}

@keyframes planetFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ========================================
   MAIN CONTAINER
   ======================================== */

.container {
  text-align: center;
  padding: 40px 20px;
  z-index: 10;
  width: 100%;
  max-width: 600px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  background: rgba(196, 90, 44, 0.15);
  border: 1px solid rgba(196, 90, 44, 0.4);
  border-radius: 30px;
  font-family: var(--font-header);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--mars-light);
  margin-bottom: 40px;
  backdrop-filter: blur(10px);
  max-width: 90%;
  text-align: center;
}

.badge-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: var(--mars-glow);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%,
  100% {
    opacity: 0.5;
    box-shadow: 0 0 5px var(--mars-glow);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 15px var(--mars-glow), 0 0 30px var(--mars-glow);
  }
}

/* Title */
h1 {
  font-family: var(--font-header);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: 8px;
}

/* MARSTUDY - S ortak harf */
.mars-part {
  background: linear-gradient(
    135deg,
    var(--mars-light) 0%,
    var(--mars-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(212, 101, 47, 0.6));
  transition: all 0.3s ease;
  cursor: pointer;
}

.mars-part:hover {
  -webkit-text-fill-color: #ffffff;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.8));
}

.mars-part:hover + .shared-s {
  -webkit-text-fill-color: #ffffff;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.8));
}

.shared-s {
  background: linear-gradient(
    135deg,
    var(--mars-light) 0%,
    var(--mars-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(212, 101, 47, 0.6));
  transition: all 0.3s ease;
}

.study-part {
  background: linear-gradient(
    135deg,
    var(--mars-light) 0%,
    var(--mars-dark) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(212, 101, 47, 0.6));
  transition: all 0.3s ease;
  cursor: pointer;
}

.study-part:hover {
  -webkit-text-fill-color: #ffffff;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.8));
}

/* STUDY hover'da S de beyaz olsun */
h1:has(.study-part:hover) .shared-s {
  -webkit-text-fill-color: #ffffff;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.8));
}

/* Tagline */
.tagline {
  font-family: var(--font-header);
  font-size: 1.5rem;
  letter-spacing: 8px;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 30px;
  animation: taglineFade 4s ease-in-out infinite;
}

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

/* Divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--mars-primary),
    transparent
  );
}

.divider-icon {
  color: var(--mars-primary);
  font-size: 0.8rem;
  animation: iconRotate 6s linear infinite;
}

@keyframes iconRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Description */
.description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 50px;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
}

/* Stats */
.stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.stat-number {
  font-family: var(--font-header);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--mars-light);
  text-shadow: 0 0 20px rgba(224, 112, 64, 0.5);
}

.stat-label {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-separator {
  width: 1px;
  height: 50px;
  background: linear-gradient(
    180deg,
    transparent,
    var(--mars-rust),
    transparent
  );
}

/* Mission Text */
.mission-text {
  padding: 25px 40px;
  background: rgba(196, 90, 44, 0.08);
  border-left: 3px solid var(--mars-primary);
  border-radius: 0 8px 8px 0;
  backdrop-filter: blur(5px);
  margin: 0 10px;
}

.mission-text p {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
  letter-spacing: 1px;
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 20px;
  background: linear-gradient(180deg, transparent, rgba(5, 2, 8, 0.9));
  z-index: 10;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
    letter-spacing: 4px;
  }

  .tagline {
    font-size: 1rem;
    letter-spacing: 4px;
  }

  .mars-planet {
    width: 200px;
    height: 200px;
    bottom: -70px;
    right: -70px;
  }

  .stats {
    gap: 25px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-separator {
    display: none;
  }

  .mission-text {
    padding: 20px 25px;
    margin: 0 5px;
  }

  .badge {
    font-size: 0.6rem;
    padding: 8px 16px;
    letter-spacing: 1.5px;
    gap: 8px;
  }

  .divider-line {
    width: 40px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2.4rem;
    letter-spacing: 2px;
  }

  .tagline {
    font-size: 0.85rem;
    letter-spacing: 3px;
  }

  .description {
    font-size: 0.95rem;
    padding: 0 5px;
  }

  .container {
    padding: 30px 15px;
  }

  .mars-planet {
    width: 160px;
    height: 160px;
    bottom: -50px;
    right: -50px;
  }

  .badge {
    font-size: 0.55rem;
    padding: 8px 14px;
    letter-spacing: 1px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }

  .stats {
    gap: 20px;
  }

  .mission-text {
    padding: 18px 20px;
  }

  .mission-text p {
    font-size: 0.9rem;
  }

  .divider-line {
    width: 30px;
  }

  .divider {
    gap: 15px;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .tagline {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .badge {
    font-size: 0.5rem;
    padding: 6px 12px;
    letter-spacing: 0.5px;
  }

  .mars-planet {
    width: 140px;
    height: 140px;
    bottom: -40px;
    right: -40px;
  }
}

/* ========================================
   ACCESSIBILITY - Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
