@import url("https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600;700;800;900&display=swap");

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

/* ==================== LOADER ==================== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  text-align: center;
  animation: fadeIn 0.6s ease;
}

/* Atom Loader Animation */
.atom-loader {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 3rem;
}

.nucleus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  background: radial-gradient(circle, #40c4ff, #5b9bd5);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(64, 196, 255, 0.8), 0 0 60px rgba(91, 155, 213, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid rgba(91, 155, 213, 0.3);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.orbit-1 {
  width: 100px;
  height: 100px;
  margin-left: -50px;
  margin-top: -50px;
  animation: rotate-orbit-1 3s linear infinite;
}

.orbit-2 {
  width: 140px;
  height: 140px;
  margin-left: -70px;
  margin-top: -70px;
  animation: rotate-orbit-2 4s linear infinite reverse;
  transform: rotateX(70deg);
}

.orbit-3 {
  width: 180px;
  height: 180px;
  margin-left: -90px;
  margin-top: -90px;
  animation: rotate-orbit-3 5s linear infinite;
  transform: rotateY(70deg);
}

.electron {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #a8b8cc, #5b9bd5);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(168, 184, 204, 0.8),
    0 0 30px rgba(91, 155, 213, 0.5);
}

/* Loader Text */
.loader-text {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 8px;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1rem;
  animation: textGlow 2s ease-in-out infinite;
}

.loader-subtext {
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  animation: fadeInOut 2s ease-in-out infinite;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 30px rgba(64, 196, 255, 0.8),
      0 0 60px rgba(91, 155, 213, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.3);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 50px rgba(64, 196, 255, 1), 0 0 80px rgba(91, 155, 213, 0.8),
      inset 0 0 30px rgba(255, 255, 255, 0.5);
  }
}

@keyframes rotate-orbit-1 {
  from {
    transform: rotateZ(0deg);
  }
  to {
    transform: rotateZ(360deg);
  }
}

@keyframes rotate-orbit-2 {
  from {
    transform: rotateX(70deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(70deg) rotateZ(360deg);
  }
}

@keyframes rotate-orbit-3 {
  from {
    transform: rotateY(70deg) rotateZ(0deg);
  }
  to {
    transform: rotateY(70deg) rotateZ(360deg);
  }
}

@keyframes textGlow {
  0%,
  100% {
    text-shadow: 0 0 10px rgba(91, 155, 213, 0.5),
      0 0 20px rgba(64, 196, 255, 0.3);
  }
  50% {
    text-shadow: 0 0 20px rgba(91, 155, 213, 0.8),
      0 0 40px rgba(64, 196, 255, 0.6), 0 0 60px rgba(168, 184, 204, 0.4);
  }
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
/* ==================== END LOADER ==================== */

body {
  font-family: "Inter", sans-serif;
  background: #000000;
  color: #ffffff;
  overflow-x: hidden;
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.content {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.content * {
  pointer-events: auto;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  mix-blend-mode: difference;
}

.logo {
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 8px;
  color: #ffffff;
  text-transform: uppercase;
}

.status {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 3px;
  color: #ffffff;
  text-transform: uppercase;
  opacity: 0.6;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.hero-content {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 8rem;
  align-items: center;
}

.hero-left {
  transform: translateY(0);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.3s;
  opacity: 0;
}

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

.hero-left h1 {
  font-size: clamp(2.5rem, 7vw, 6rem);
  font-weight: 200;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.hero-left h1 strong {
  font-weight: 800;
  display: block;
  background: linear-gradient(135deg, #5b9bd5 0%, #40c4ff 50%, #a8b8cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

.hero-left .tagline {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  color: rgba(255, 255, 255, 0.4);
  font-weight: 300;
  line-height: 1.6;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.stats {
  display: flex;
  gap: 3rem;
}

.stat {
  position: relative;
}

.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #5b9bd5, transparent);
}

.stat-content {
  padding-left: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 200;
  color: #5b9bd5;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 0.8rem;
  font-weight: 500;
}

/* Form */
.form-container {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  padding: 2.5rem;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 30px),
    calc(100% - 30px) 100%,
    0 100%
  );
  position: relative;
  z-index: 50;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.form-container::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(91, 155, 213, 0.3),
    transparent 50%,
    rgba(168, 184, 204, 0.3)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 30px),
    calc(100% - 30px) 100%,
    0 100%
  );
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}

.form-container h2 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 0.4rem;
  color: #ffffff;
  letter-spacing: 1px;
}

.form-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: "Inter", sans-serif;
  font-weight: 300;
  transition: all 0.3s ease;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: #5b9bd5;
}

.form-group textarea {
  resize: none;
  height: 80px;
  margin-top: 0.5rem;
}

.submit-btn {
  width: 100%;
  padding: 1.2rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  margin-top: 1.5rem;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  pointer-events: auto;
  z-index: 10;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(91, 155, 213, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.submit-btn:hover {
  border-color: #5b9bd5;
  transform: translateY(-2px);
}

.submit-btn:hover::before {
  left: 100%;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  mix-blend-mode: difference;
}

.footer-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #5b9bd5;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .form-container {
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-left h1 {
    font-size: 3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats {
    flex-direction: column;
    gap: 2rem;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }

  footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
