

body {
  background: black;
  color: white;
  font-family: 'Montserrat', sans-serif;
  overflow: hidden;
  position: relative;
}

/* Enhanced Start Screen Styling */
.start-screen {
  position: absolute;
  top: 0; left: 0;
  width: 100vw; height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  background-color: #0a0a18;
}

.background-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.preloader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  text-align: center;
}

.galaxy {
  width: 100%;
  height: 100%;
  position: relative;
  animation: rotate 6s linear infinite;
}

.galaxy-circle {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: dash 3s cubic-bezier(0.35, 0.04, 0.63, 0.95) infinite;
}

.star {
  position: absolute;
  background-color: white;
  border-radius: 50%;
  opacity: 0.7;
  animation: twinkle 2s infinite;
  z-index: 0;
}

.loading-text {
  position: absolute;
  bottom: -30px;
  width: 100%;
  text-align: center;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  animation: pulse 1.5s infinite;
}

.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  height: 40%;
  border-radius: 50%;
  background: linear-gradient(145deg, #1b2735 0%, #090a0f 100%);
  box-shadow: 0 0 20px 5px rgba(65, 105, 225, 0.4);
}

.start-content {
  text-align: center;
  z-index: 20;
  position: relative;
}

#start-button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #0e1a2b, #090f1f);
  border: 1px solid rgba(100, 140, 255, 0.2);
  color: #c1d4ff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.6s ease;
  box-shadow: 
    0 0 10px rgba(70, 120, 255, 0.15),
    0 0 20px rgba(50, 100, 220, 0.1);
  animation: glowPulse 3s ease-in-out infinite;
  backdrop-filter: blur(4px);
}

#start-button:hover {
  transform: scale(1.08);
  box-shadow: 
    0 0 12px rgba(100, 150, 255, 0.25),
    0 0 25px rgba(100, 150, 255, 0.2),
    0 0 40px rgba(100, 150, 255, 0.15);
  color: #e6ecff;
}

/* Start screen animations */
@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% { stroke-dashoffset: 150; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -150; }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 
      0 0 10px rgba(60, 120, 255, 0.2),
      0 0 20px rgba(60, 120, 255, 0.15);
  }
  50% {
    box-shadow: 
      0 0 16px rgba(100, 150, 255, 0.3),
      0 0 32px rgba(100, 150, 255, 0.25);
  }
}

.home.fade-in {
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 0s ease-in-out, visibility 0s ease-in-out;
}

/* Smooth fade-in for home */
.home {
  opacity: 0;
  visibility: hidden;
}

.home {
  position: absolute;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  transition: opacity 0s ease-in-out, visibility 0s ease-in-out;
  z-index: 2;
}

.home-video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
}

.content {
  max-width: 800px;
  margin-left: 5%;
  text-align: left;
}

h1 {
  font-size: 4rem;
  font-weight: 700;
}

h2 {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 10px;
}

p {
  font-size: 1rem;
  margin-top: 10px;
  max-width: 600px;
}

.explore-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.4s ease;
}

.explore-button:hover {
  background: white;
  color: black;
}

.back-button {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 20px;
  border: 1px solid white;
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-size: 1rem;
  transition: all 0.4s ease;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(4px);
}

.back-button:hover {
  background: white;
  color: black;
}

.transition-video {
  position: absolute;
  top: 0; left: 0;
  width: 100vw; height: calc(var(--vh, 1vh) * 100);
  object-fit: cover;
  display: none;
  z-index: 5;
  pointer-events: none;
}

.galaxy-section {
  position: absolute;
  top: 0; left: 0;
  width: 100vw; height: calc(var(--vh, 1vh) * 100);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transition: opacity 0s ease-in-out;
}

.galaxy-section.active {
  opacity: 1;
  visibility: visible;
}

.video-bg {
  position: absolute;
  opacity: 59%;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.conting {
  position: relative;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100);
}

.space-btn {
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  cursor: pointer;
  z-index: 1;
  font-size: 1.5rem;
  transition: background-color 0.3s, transform 0.3s;
  animation: float 3s ease-in-out infinite;
  /* Keep centered icon */
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-label {
  position: absolute;
  white-space: nowrap;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
  pointer-events: none;
  /* Removed transition animation from here */
}

/* Position labels relative to each button */
.top-label { 
  top: calc(21% + 70px); 
  left: 58%; 
  transform: translateX(-50%);
}

.right-label { 
  top: 52%; 
  right: calc(25% - 2px);
  transform: translateX(-50%)
}

.bottom-label { 
  bottom: calc(31% - 40px); 
  left: 46%; 
  transform: translateX(-50%);
}

.left-label { 
  top: 43%; 
  left: calc(37% - 55px); 
  transform: translateY(-50%);
}

.fifth-label { 
  top: 67%; 
  left: calc(23% - 15px); 
  transform: translateY(-50%);
}

/* Removed hover animation for labels */
.space-btn:hover + .btn-label,
.btn-label:hover {
  opacity: 1;
  /* Removed transform scale effect */
}

.space-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: scale(1.1);
}

.space-btn i {
  transition: transform 0.8s ease;
}

.space-btn:hover i {
  transform: rotate(45deg);
}

.top    { top: 21%;  left: 55%; transform: translateX(-50%); }
.right  { top: 40%;  right: 30%; transform: translateY(-50%); }
.bottom { bottom: 29%; left: 43%; transform: translateX(-50%); }
.left   { top: 30%;  left: 35%; transform: translateY(-50%); }
.fifth  { top: 54%;  left: 23%; transform: translateY(-50%); }

@keyframes float {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.content-section {
  position: absolute;
  top: 0; left: 0;
  width: 100vw; height: calc(var(--vh, 1vh) * 100);
  display: none;
  justify-content: center;
  align-items: center;
  background: black;
  color: white;
  z-index: 3;
}

.content-section.active {
  display: flex;
}

.section-video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.section-content {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 2rem;
  max-width: 80%;
  opacity: 0;
  animation: none;
}

.section-content.fade-in {
  animation: fadeIn 1s ease forwards;
}

#section-3 .blur-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(2px);
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

#section-0 .blur-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(2px);
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
} 
#section-1 .blur-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(2px);
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

#section-2 .blur-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(1px);
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}
#section-4.blur-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(2px);
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.blur-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(2px);
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

/* RESPONSIVE STYLES - Added for tablet and mobile devices */
@media screen and (max-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  .section-content {
    max-width: 90%;
    font-size: 1.5rem;
  }
  
  .section-content p {
    font-size: 0.9rem;
  }
  
  /* Tablet rotation message */
  .tablet-rotate-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    z-index: 1000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .tablet-rotate-message i {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: rotateIcon 2s infinite ease-in-out;
  }
  
  @keyframes rotateIcon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(90deg); }
  }
  
  /* Start screen responsive */
  .preloader {
    width: 250px;
    height: 250px;
  }
  
  .loading-text {
    font-size: 0.8rem;
  }
  
  #start-button {
    width: 100px;
    height: 100px;
    font-size: 1.2rem;
  }
}

/* iPad and tablets in portrait mode */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .tablet-rotate-message {
    display: flex;
  }
  
  .start-screen, .home, .galaxy-section, .content-section {
    visibility: hidden !important;
  }
}

/* Mobile devices */
@media screen and (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 0.8rem;
  }
  
  p {
    font-size: 0.8rem;
    max-width: 100%;
  }
  
  #start-button {
    width: 80px;
    height: 80px;
    font-size: 1.2rem;
  }
  
  .preloader {
    width: 200px;
    height: 200px;
  }
  
  .loading-text {
    font-size: 0.7rem;
    letter-spacing: 2px;
  }
  
  .content {
    margin-left: 5%;
    max-width: 90%;
  }
  
  .explore-button, .back-button {
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  
  .section-content {
    max-width: 95%;
    font-size: 1.2rem;
    padding: 20px;
  }
  
  /* Vertical alignment for galaxy buttons */
  .conting {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(var(--vh, 1vh) * 100);
  }
  
  .space-btn {
    position: static;
    margin: 15px 0;
    transform: none;
  }
  
  /* Reset all positions for mobile */
  .top, .right, .bottom, .left, .fifth {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
  }
  
  /* Labels for mobile */
  .btn-label {
    position: relative;
    display: block;
    margin-top: 5px;
    text-align: center;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
  }
  
  .top-label, .right-label, .bottom-label, .left-label, .fifth-label {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
  }
  
  /* Button container for mobile */
  .button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
  }
}
