/* =====================
   RESET & BASE STYLES
   ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* =====================
   CONTAINER & LAYOUT
   ===================== */
.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

/* Animated orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  mix-blend-mode: screen;
}

.orb1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 107, 107, 0.6);
  top: -10%;
  left: -5%;
  animation: float 15s ease-in-out infinite;
}

.orb2 {
  width: 500px;
  height: 500px;
  background: rgba(100, 200, 255, 0.4);
  bottom: -20%;
  right: -10%;
  animation: float 20s ease-in-out infinite reverse;
}

.orb3 {
  width: 350px;
  height: 350px;
  background: rgba(150, 100, 255, 0.5);
  top: 50%;
  right: 10%;
  animation: float 25s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(20px, -30px);
  }
  50% {
    transform: translate(-20px, 20px);
  }
  75% {
    transform: translate(30px, 10px);
  }
}

/* =====================
   CONTENT LAYER
   ===================== */
.content {
  position: relative;
  z-index: 1;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

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

/* =====================
   LOGO
   ===================== */
.logo {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  font-weight: 900;
  color: white;
  margin: 0 auto 40px;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
  animation: logoFloat 3s ease-in-out infinite;
}

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

/* =====================
   TYPOGRAPHY
   ===================== */
.title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 50px;
  font-weight: 300;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================
   SOCIAL LINKS
   ===================== */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 768px) {
  .title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .logo {
    width: 80px;
    height: 80px;
    font-size: 36px;
    margin-bottom: 30px;
  }
}

@media (max-width: 480px) {
  .title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: 40px;
  }

  .logo {
    width: 70px;
    height: 70px;
    font-size: 32px;
    margin-bottom: 25px;
  }

  .social-link {
    width: 45px;
    height: 45px;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }

  .social-links {
    gap: 15px;
  }
}

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

/* =====================
   CONTAINER & LAYOUT
   ===================== */
.container {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 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);
  }
}

/* Animated orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  mix-blend-mode: screen;
}

.orb1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 107, 107, 0.6);
  top: -10%;
  left: -5%;
  animation: float 15s ease-in-out infinite;
}

.orb2 {
  width: 500px;
  height: 500px;
  background: rgba(100, 200, 255, 0.4);
  bottom: -20%;
  right: -10%;
  animation: float 20s ease-in-out infinite reverse;
}

.orb3 {
  width: 350px;
  height: 350px;
  background: rgba(150, 100, 255, 0.5);
  top: 50%;
  right: 10%;
  animation: float 25s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(20px, -30px);
  }
  50% {
    transform: translate(-20px, 20px);
  }
  75% {
    transform: translate(30px, 10px);
  }
}

/* =====================
   CONTENT LAYER
   ===================== */
.content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

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

/* =====================
   HEADER & LOGO
   ===================== */
.header {
  margin-bottom: 60px;
  animation: slideInDown 0.8s ease-out;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
  color: white;
  position: relative;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
  animation: logoFloat 3s ease-in-out infinite;
}

.logo-letter {
  display: inline-block;
  animation: spinHalf 6s ease-in-out infinite;
}

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

@keyframes spinHalf {
  0%,
  100% {
    transform: rotateZ(0deg);
  }
  50% {
    transform: rotateZ(180deg);
  }
}

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

.title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  letter-spacing: -1px;
}

/* =====================
   HERO SECTION
   ===================== */
.hero {
  margin-bottom: 80px;
  animation: fadeInUp 1.2s ease-out;
}

.icon-container {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
}

.maintenance-icon {
  width: 120px;
  height: 120px;
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.main-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #e0e0ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

.subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Features */
.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 500;
  animation: fadeInUp 1.4s ease-out;
  transition: transform 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  animation: bounce 2s ease-in-out infinite;
}

.feature-item:nth-child(2) .feature-icon {
  animation-delay: 0.2s;
}

.feature-item:nth-child(3) .feature-icon {
  animation-delay: 0.4s;
}

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

/* =====================
   COUNTDOWN TIMER
   ===================== */
.countdown-section {
  margin-bottom: 80px;
  animation: fadeInUp 1.6s ease-out;
}

.countdown-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 30px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  text-align: center;
}

.countdown-item .countdown-label {
  font-size: 0.75rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}

.countdown-separator {
  color: rgba(255, 255, 255, 0.5);
  font-size: 2rem;
  font-weight: 300;
  margin: 0 5px;
}

@media (max-width: 600px) {
  .countdown {
    gap: 0;
    padding: 20px 10px;
  }

  .countdown-separator {
    font-size: 1.5rem;
  }

  .countdown-item {
    min-width: 60px;
  }

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

/* =====================
   NEWSLETTER SECTION
   ===================== */
.newsletter {
  margin-bottom: 80px;
  animation: fadeInUp 1.8s ease-out;
}

.newsletter h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 10px;
  font-weight: 700;
}

.newsletter > p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 25px;
  font-size: 1rem;
}

.email-form {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.input-group {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 8px;
  transition: all 0.3s ease;
}

.input-group:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  padding: 15px 20px;
  font-size: 1rem;
  font-family: inherit;
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus {
  -webkit-box-shadow: inset 0 0 0 30px transparent !important;
  -webkit-text-fill-color: white !important;
}

.submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-size: 1rem;
  white-space: nowrap;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.submit-btn:hover .arrow {
  transform: translateX(5px);
}

.form-message {
  margin-top: 12px;
  font-size: 0.9rem;
  min-height: 20px;
}

.form-message.success {
  color: #4ade80;
  animation: slideInDown 0.4s ease-out;
}

.form-message.error {
  color: #f87171;
  animation: slideInDown 0.4s ease-out;
}

@media (max-width: 500px) {
  .input-group {
    flex-direction: column;
    gap: 0;
    border-radius: 12px;
  }

  .submit-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* =====================
   SOCIAL LINKS
   ===================== */
.social-links {
  margin-bottom: 60px;
  animation: fadeInUp 2s ease-out;
}

.social-links > p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link svg {
  width: 24px;
  height: 24px;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.social-link.github:hover {
  background: rgba(50, 50, 50, 0.2);
}

.social-link.linkedin:hover {
  background: rgba(0, 119, 181, 0.2);
}

.social-link.twitter:hover {
  background: rgba(29, 161, 242, 0.2);
}

.social-link.email:hover {
  background: rgba(219, 112, 147, 0.2);
}

/* =====================
   FOOTER
   ===================== */
.footer {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeInUp 2.2s ease-out;
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 768px) {
  .title {
    font-size: 2rem;
  }

  .main-title {
    font-size: 2.5rem;
  }

  .subtitle {
    font-size: 1.1rem;
  }

  .features {
    gap: 30px;
  }

  .content {
    padding: 30px 20px;
  }

  .header {
    margin-bottom: 40px;
  }

  .hero {
    margin-bottom: 50px;
  }

  .countdown-section {
    margin-bottom: 50px;
  }

  .newsletter {
    margin-bottom: 50px;
  }

  .social-links {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }

  .title {
    font-size: 1.7rem;
  }

  .main-title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .maintenance-icon {
    width: 100px;
    height: 100px;
  }

  .features {
    gap: 20px;
    flex-direction: column;
  }

  .feature-item {
    gap: 8px;
  }

  .feature-icon {
    font-size: 2rem;
  }

  .countdown {
    padding: 20px 10px;
  }

  .countdown-item {
    min-width: 50px;
  }

  .countdown-number {
    font-size: 1.5rem;
  }

  .links {
    gap: 15px;
  }

  .social-link {
    width: 45px;
    height: 45px;
  }

  .social-link svg {
    width: 20px;
    height: 20px;
  }
}

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

@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  }

  .main-title {
    color: #e0e0ff;
  }
}
