/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans",
    "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.under-construction-container {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: #0a0a0f;
  color: #ffffff;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Animated Tech Background */
.tech-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a0a0f 50%, #0f0a0a 100%);
  overflow: hidden;
}

/* Grid Overlay */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(239, 68, 68, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(239, 68, 68, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

/* Particles */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #ef4444;
  border-radius: 50%;
  left: var(--x);
  top: var(--y);
  animation: float var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate(50px, -50px) scale(1.5);
    opacity: 0.8;
  }
  90% {
    opacity: 1;
  }
}

/* Circuit Lines */
.circuit-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.circuit-line {
  position: absolute;
  width: 200%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(239, 68, 68, 0.4) 25%, 
    rgba(239, 68, 68, 0.8) 50%, 
    rgba(239, 68, 68, 0.4) 75%, 
    transparent 100%);
  top: 50%;
  left: -50%;
  transform-origin: center;
  transform: rotate(var(--angle));
  animation: pulseLine 3s ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes pulseLine {
  0%, 100% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
}

/* Content Wrapper */
.content-wrapper {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* Logo Section */
.logo-section {
  margin-bottom: 3rem;
  animation: fadeInDown 1s ease-out;
}

.main-logo {
  max-width: 500px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(239, 68, 68, 0.3));
  transition: transform 0.3s ease;
}

.main-logo:hover {
  transform: scale(1.05);
}

/* Message Section */
.message-section {
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.under-construction-title {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  text-align: center;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

/* Loading Dots */
.loading-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.loading-dots span {
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.3s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
}

/* Tagline Section */
.tagline-section {
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.tagline {
  font-size: 2rem;
  font-weight: 600;
  color: #ef4444;
  margin: 0 0 1rem 0;
  text-align: center;
  line-height: 1.4;
}

.subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  color: #d1d5db;
  margin: 0;
  text-align: center;
}

/* CTA Message */
.cta-message {
  animation: fadeInUp 1s ease-out 0.9s both;
}

.cta-message p {
  font-size: 1.25rem;
  color: #9ca3af;
  margin: 0;
  text-align: center;
  font-style: italic;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 10;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(239, 68, 68, 0.2);
  padding: 3rem 2rem 1.5rem;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-item h3 {
  color: #ef4444;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-item p {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

.footer-item a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-item a:hover {
  color: #ef4444;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(239, 68, 68, 0.1);
}

.footer-bottom p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 2rem 1rem;
  }

  .main-logo {
    max-width: 300px;
  }

  .under-construction-title {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1.5rem;
  }

  .subtitle {
    font-size: 1.125rem;
  }

  .cta-message p {
    font-size: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer {
    padding: 2rem 1rem 1rem;
  }
}

@media (max-width: 480px) {
  .main-logo {
    max-width: 250px;
  }

  .under-construction-title {
    font-size: 1.5rem;
  }

  .tagline {
    font-size: 1.25rem;
  }

  .subtitle {
    font-size: 1rem;
  }
}