/* Custom animations and styles */

* {
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}

body {
  background: #000000;
  color: #ffffff;
}

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

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes gridMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(40px);
  }
}

@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
    letter-spacing: 0.5em;
  }
  to {
    opacity: 1;
    transform: translateY(0);
    letter-spacing: 0.1em;
  }
}

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

@keyframes scrollLine {
  0% {
    height: 0;
  }
  50% {
    height: 100%;
  }
  100% {
    height: 0;
  }
}

/* Grid Background */
.grid-background {
  position: absolute;
  inset: 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: 40px 40px;
  animation: gridMove 20s linear infinite;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.radial-gradient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.05) 0%,
    transparent 50%
  );
}

/* Geometric Shapes */
.geometric-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20% 80% 50% 40%;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  animation: float 15s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 60%;
  right: 10%;
  animation: float 18s ease-in-out infinite reverse;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: 20%;
  left: 60%;
  animation: float 20s ease-in-out infinite;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), transparent);
}

/* Hero section styles */
.hero-content {
  animation: fadeIn 1.2s ease-out;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.1em;
  background: linear-gradient(to bottom, #ffffff 30%, #666666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-reveal {
  display: inline-block;
  animation: textReveal 1s ease-out;
}

.scroll-indicator-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
}

.scroll-indicator {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.scroll-line {
  width: 100%;
  background: rgba(255, 255, 255, 0.5);
  animation: scrollLine 2s ease-in-out infinite;
}

/* Agent cards */
.agent-card {
  position: relative;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transform-style: preserve-3d;
}

.agent-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.agent-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.02)
  );
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(255, 255, 255, 0.05);
}

.agent-card:hover::before {
  opacity: 1;
}

.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
}

.agent-card:hover .card-shine {
  left: 100%;
}

.card-content {
  position: relative;
  z-index: 1;
}

.icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  color: #ffffff;
}

.agent-card:hover .icon-wrapper {
  transform: translateY(-5px) scale(1.1);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  margin-right: 8px;
  transition: all 0.3s ease;
}

.status-indicator.active {
  background-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.coming-soon {
  opacity: 0.6;
}

.coming-soon:hover {
  transform: translateY(-6px) scale(1.01);
  opacity: 0.7;
}

/* Feature cards */
.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.feature-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  color: #ffffff;
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.1);
}

/* Modal styles */
#agentModal {
  transition: all 0.3s ease;
}

#agentModal.active {
  opacity: 1;
  pointer-events: all;
}

#agentModal.active #modalContent {
  transform: scale(1);
}

.modal-card {
  background: rgba(10, 10, 10, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(20px);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .geometric-shapes {
    display: none;
  }

  .agent-card {
    padding: 2rem;
  }

  .icon-wrapper {
    width: 60px;
    height: 60px;
  }

  .hero-title {
    font-size: 4rem;
  }
}

/* Animation delays for staggered entry */
.agent-card:nth-child(1) {
  animation: slideUp 0.6s ease-out 0.1s both;
}
.agent-card:nth-child(2) {
  animation: slideUp 0.6s ease-out 0.2s both;
}
.agent-card:nth-child(3) {
  animation: slideUp 0.6s ease-out 0.3s both;
}
.agent-card:nth-child(4) {
  animation: slideUp 0.6s ease-out 0.4s both;
}
.agent-card:nth-child(5) {
  animation: slideUp 0.6s ease-out 0.5s both;
}
.agent-card:nth-child(6) {
  animation: slideUp 0.6s ease-out 0.6s both;
}

/* Entrance animations */
.agent-card {
  opacity: 0;
  transform: translateY(30px);
}

/* Selection styling */
::selection {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
