* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Orbitron", monospace;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
  min-height: 100vh;
  color: #fff;
  /* Hide scrollbar but allow scrolling */
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

.container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-bottom: 80px; /* Space for footer */
}

/* Background Animation */
.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #00ff88;
  border-radius: 2px;
  animation: float 6s infinite;
  box-shadow: 0 0 10px #00ff88;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  left: 30%;
  animation-delay: 1s;
}

.particle:nth-child(3) {
  left: 50%;
  animation-delay: 2s;
}

.particle:nth-child(4) {
  left: 70%;
  animation-delay: 3s;
}

.particle:nth-child(5) {
  left: 90%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10%,
  90% {
    opacity: 1;
  }
  50% {
    transform: translateY(-10px) rotate(180deg);
  }
}

/* Content */
.content {
  text-align: center;
  z-index: 10;
  position: relative;
  max-width: 900px;
  padding: 40px 20px;
}

/* Logo Section */
.logo-section {
  margin-bottom: 60px;
}

.title {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(45deg, #00ff88, #00cc66, #009944);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  letter-spacing: 2px;
}

.subtitle {
  font-size: 1.5rem;
  color: #cccccc;
  font-weight: 400;
}

/* Countdown Section */
.countdown-section {
  margin-bottom: 60px;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.time-unit {
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid #00ff88;
  border-radius: 15px;
  padding: 20px;
  min-width: 120px;
  box-shadow:
    0 0 20px rgba(0, 255, 136, 0.3),
    inset 0 0 20px rgba(0, 255, 136, 0.1);
  transition: transform 0.3s ease;
}

.time-unit:hover {
  transform: scale(1.05);
}

.time-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  color: #00ff88;
  line-height: 1;
}

.time-label {
  display: block;
  font-size: 0.9rem;
  color: #cccccc;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.separator {
  font-size: 3rem;
  color: #00ff88;
  font-weight: 700;
  animation: blink 2s infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}

.unlock-message {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 10px;
  padding: 25px;
  max-width: 400px;
  margin: 0 auto;
  margin-top: 3em;
  margin-bottom: 3em;
}

.unlock-message h2 {
  font-size: 1.5rem;
  color: #00ff88;
  margin-bottom: 10px;
}

.unlock-message p {
  color: #cccccc;
  font-size: 1.1rem;
}

/* Expired Section */
.expired-section {
  margin-bottom: 40px;
}

.expired-section.hidden {
  display: none;
}

.anytime-message {
  background: rgba(255, 193, 7, 0.1);
  border: 2px solid #ffc107;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
}

.anytime-message h2 {
  font-size: 2.5rem;
  color: #ffc107;
  margin-bottom: 20px;
}

.delay-info {
  margin-bottom: 25px;
}

.delay-info p {
  color: #cccccc;
  margin-bottom: 8px;
  font-size: 1rem;
}

.auto-refresh {
  background: rgba(255, 193, 7, 0.05);
  border: 1px solid rgba(255, 193, 7, 0.3);
  border-radius: 8px;
  padding: 15px;
}

.auto-refresh p {
  color: #ffc107;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.refresh-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 193, 7, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.refresh-progress {
  height: 100%;
  background: linear-gradient(90deg, #ffc107, #ffed4e);
  width: 100%;
  animation: refreshProgress 100s linear infinite;
}

@keyframes refreshProgress {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

.features-question {
  margin-bottom: 40px;
}

/* Features Preview */
.features-preview {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
}

.features-preview h3 {
  font-size: 1.8rem;
  color: #00ff88;
  margin-bottom: 25px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.feature {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 10px;
  padding: 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2);
}

.feature-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 10px;
}

.feature span:last-child {
  color: #cccccc;
  font-weight: 500;
}

/* Closed Alpha Tests (CAT) Section */
.CAT {
  background: rgba(30, 144, 255, 0.02);
  border: 1px solid rgba(30, 144, 255, 0.2);
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.CAT::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1e90ff, #00bfff);
  border-radius: 15px 15px 0 0;
}

.alpha-title {
  font-size: 1.8rem;
  color: #1e90ff;
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: 0.5px;
  text-shadow: 0 0 15px rgba(30, 144, 255, 0.3);
}

.cat-letter {
  font-size: 1.05em;
  font-weight: 800;
  color: #00bfff;
}

.alpha-description {
  line-height: 1.6;
}

.alpha-description p {
  color: #cccccc;
  font-size: 1rem;
  margin-bottom: 15px;
  padding: 0 10px;
}

.alpha-description p:last-child {
  margin-bottom: 0;
  font-weight: 500;
  color: #00bfff;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 20px;
}

/* Team Section */
.team-section {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  margin: 40px 0;
}

.team-title {
  font-size: 1.8rem;
  color: #00ff88;
  margin-bottom: 25px;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 500px;
  margin: 0 auto;
}

.team-member {
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 10px;
  padding: 25px 20px;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2);
}

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid rgba(0, 255, 136, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.member-name {
  font-size: 1.2rem;
  color: #00ff88;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.member-title {
  color: #cccccc;
  font-size: 0.9rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Minecraft Team Square Avatars */
#mcteam .member-avatar {
  border-radius: 10px;
}

#mcteam .avatar-img {
  border-radius: 8px;
}

/* Footer */
.footer {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 10px;

  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
}

.footer p {
  color: #666666;
  font-size: 0.85rem;
  font-weight: 400;
  margin: 3px 0;
}

.footer p:first-child {
  margin-bottom: 5px;
}

.footer a {
  color: #00ff88;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #00cc66;
  text-decoration: underline;
}

/* Basic tablet responsiveness */
@media (max-width: 768px) {
  .title {
    font-size: 2.8rem;
    line-height: 1.2;
  }

  .countdown {
    gap: 15px;
  }

  .time-unit {
    min-width: 90px;
    padding: 18px 12px;
  }

  .time-number {
    font-size: 2.2rem;
  }

  .separator {
    font-size: 2.2rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .feature {
    padding: 18px 15px;
  }
}

/* Enhanced mobile phones */
@media (max-width: 480px) {
  .content {
    padding: 20px 15px;
  }

  .title {
    font-size: 2rem;
    letter-spacing: 1px;
    line-height: 1.1;
  }

  .subtitle {
    font-size: 1.2rem;
  }

  .countdown {
    flex-direction: column;
    gap: 15px;
  }

  .separator {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Navigation Bar */
.navbar {
  position: relative;
  z-index: 100;
  width: 100%;
  margin-bottom: 40px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 15px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-brand {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 900;
  color: #00ff88;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.8);
  color: #00cc66;
  text-decoration: none;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navbar-item {
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
  font-weight: 600;
  color: #cccccc;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: 0.5px;
}

.navbar-item:hover,
.navbar-item.active {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  text-decoration: none;
  transform: translateY(-2px);
}

.navbar-item.active {
  border: 1px solid rgba(0, 255, 136, 0.3);
}

/* Dropdown styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotateX(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 8px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  color: #cccccc;
  text-decoration: none;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  color: #00ff88;
  background: rgba(0, 255, 136, 0.1);
  text-decoration: none;
  padding-left: 25px;
}

/* Mobile responsive navbar */
@media (max-width: 768px) {
  .navbar-container {
    padding: 12px 20px;
    flex-direction: column;
    gap: 20px;
  }
  
  .navbar-brand {
    font-size: 1.3rem;
  }
  
  .navbar-menu {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    text-align: center;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 10px;
    background: rgba(0, 255, 136, 0.05);
  }
  
  .dropdown:hover .dropdown-menu {
    transform: none;
  }

  /* Enhanced mobile styles for better UX */
  .container {
    display: block; /* Change from flex to block */
    min-height: auto;
    padding: 20px 0 40px;
  }

  .content {
    padding: 30px 15px;
    max-width: 100%;
    display: block;
  }

  .logo-section {
    margin-bottom: 40px;
  }

  .features-preview {
    padding: 20px 15px;
  }

  .features-preview h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  /* CAT section mobile optimization */
  .CAT {
    padding: 20px 15px;
    margin: 30px 0;
  }

  .alpha-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .alpha-description p {
    font-size: 0.95rem;
    margin-bottom: 12px;
    padding: 0 5px;
  }

  .alpha-description p:last-child {
    font-size: 0.9rem;
    margin-top: 15px;
  }

  .team-section {
    padding: 20px 15px;
    margin: 30px 0;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
  }

  .team-member {
    padding: 20px 15px;
  }

  .member-avatar {
    width: 70px;
    height: 70px;
    margin: 0 auto 12px;
  }

  .member-name {
    font-size: 1.1rem;
  }

  .unlock-message {
    padding: 20px 15px;
    margin: 2em auto;
  }

  .unlock-message h2 {
    font-size: 1.3rem;
  }

  .unlock-message .CountdownTimer-targetDate {
    padding: 0 5px;
    word-wrap: break-word;
    line-height: 1.4;
  }

  /* Better footer for mobile */
  .footer {
    position: static; /* Change from relative to static */
    bottom: auto;
    left: auto;
    transform: none;
    margin: 40px auto 20px;
    width: calc(100% - 30px);
    max-width: 400px;
    display: block;
  }

  .footer p {
    font-size: 0.8rem;
  }

  /* Better particle animation performance on mobile */
  .particle {
    animation-duration: 8s;
  }
}

@media (max-width: 480px) {
  .navbar-container {
    padding: 10px 15px;
  }
  
  .navbar-brand {
    font-size: 1.2rem;
  }
  
  .navbar-item {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
  
  .dropdown-item {
    font-size: 0.8rem;
    padding: 8px 15px;
  }

  /* Enhanced small screen optimizations */
  .container {
    display: block;
    min-height: auto;
    padding: 15px 0 30px;
  }

  .content {
    padding: 20px 10px;
    display: block;
  }

  .title {
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .countdown {
    gap: 10px;
    margin-bottom: 20px;
  }

  .time-unit {
    min-width: 70px;
    padding: 12px 8px;
  }

  .time-number {
    font-size: 1.6rem;
  }

  .time-label {
    font-size: 0.7rem;
    margin-top: 3px;
  }

  .features-preview {
    padding: 15px 10px;
    margin: 20px 0;
  }

  .features-preview h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
  }

  /* CAT section small screen optimization */
  .CAT {
    padding: 15px 10px;
    margin: 20px 0;
  }

  .alpha-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.2;
  }

  .alpha-description p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    padding: 0;
    line-height: 1.5;
  }

  .alpha-description p:last-child {
    font-size: 0.85rem;
    margin-top: 12px;
    line-height: 1.4;
  }

  .feature {
    padding: 15px 10px;
  }

  .feature-icon {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .team-section {
    padding: 15px 10px;
    margin: 20px 0;
  }

  .team-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 300px;
  }

  .team-member {
    padding: 15px 10px;
  }

  .member-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
  }

  .member-name {
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .member-title {
    font-size: 0.8rem;
  }

  .unlock-message {
    padding: 15px 10px;
    margin: 1.5em auto;
    max-width: 320px;
  }

  .unlock-message h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }

  .unlock-message .CountdownTimer-targetDate {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .anytime-message {
    padding: 20px 15px;
  }

  .anytime-message h2 {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .delay-info p {
    font-size: 0.9rem;
  }

  .auto-refresh {
    padding: 12px;
  }

  .auto-refresh p {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .footer {
    position: static;
    margin: 30px auto 15px;
    padding: 8px 12px;
    width: calc(100% - 20px);
    max-width: 350px;
    display: block;
    left: auto;
    transform: none;
  }

  .footer p {
    font-size: 0.75rem;
    margin: 2px 0;
  }

  /* Reduce particle count on very small screens for performance */
  .particle:nth-child(n+4) {
    display: none;
  }

  /* Better touch interactions */
  .feature:active,
  .team-member:active,
  .navbar-item:active {
    transform: scale(0.98);
  }

  /* Improve tap targets for mobile */
  .navbar-item {
    min-height: 44px; /* Apple's recommended touch target size */
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .feature {
    cursor: pointer; /* Shows it's interactive */
  }

  /* Better scroll performance on mobile */
  .container {
    -webkit-overflow-scrolling: touch;
  }

  /* Prevent horizontal scroll */
  body {
    overflow-x: hidden;
  }
}
