/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Grid */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Background Gradient Orb */
.bg-gradient {
  position: fixed;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.12) 0%, transparent 70%);
  z-index: 0;
  animation: orbMove 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes orbMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10%, 10%); }
}

/* Main Container */
.container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

/* Logo */
.logo-wrapper {
  margin-bottom: 2rem;
  animation: fadeInDown 1s ease-out forwards;
}

.logo {
  width: 280px;
  max-width: 80vw;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0, 122, 255, 0.2));
  transition: filter 0.4s ease, transform 0.4s ease;
}

.logo:hover {
  filter: drop-shadow(0 0 30px rgba(0, 122, 255, 0.4));
  transform: scale(1.02);
}

/* Title */
.title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 0%, #a0c4ff 50%, #007aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s ease-out 0.2s forwards;
  opacity: 0;
}

/* Subtitle */
.subtitle {
  font-size: clamp(1rem, 3vw, 1.25rem);
  color: #a0aec0;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.4s forwards;
  opacity: 0;
}

/* Divider */
.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #007aff, transparent);
  border-radius: 2px;
  margin-bottom: 2rem;
  animation: expandWidth 1s ease-out 0.6s forwards, glow 3s ease-in-out infinite;
  transform: scaleX(0);
}

@keyframes expandWidth {
  to { transform: scaleX(1); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 122, 255, 0.3); }
  50% { box-shadow: 0 0 15px rgba(0, 122, 255, 0.6); }
}

/* Description */
.description {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  color: #718096;
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.8s forwards;
  opacity: 0;
}

/* Contact */
.contact {
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 1s forwards;
  opacity: 0;
}

.email-link {
  color: #63b3ed;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.email-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #63b3ed;
  transition: width 0.3s ease;
}

.email-link:hover {
  color: #90cdf4;
}

.email-link:hover::after {
  width: 100%;
}

/* Socials */
.socials {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1s ease-out 1.2s forwards;
  opacity: 0;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a0aec0;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

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

.social-link:hover {
  background: rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.3);
  color: #63b3ed;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 122, 255, 0.15);
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #4a5568;
  z-index: 1;
  animation: fadeIn 1s ease-out 1.5s forwards;
  opacity: 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 1.5rem;
  }
  
  .socials {
    gap: 0.75rem;
  }
  
  .social-link {
    width: 40px;
    height: 40px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
