@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

:root {
  --primary-color: #00f7ff;
  --secondary-color: #ff00ff;
  --background-dark: #0a0a1f;
  --card-bg: rgba(255, 255, 255, 0.1);
  --text-color: #ffffff;
  --warning-color: #ff3e3e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'Orbitron', sans-serif;
  background: var(--background-dark);
  color: var(--text-color);
  overflow-x: hidden;
}

.container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--background-dark), #1a1a3a);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(0, 247, 255, 0.1) 10px,
    rgba(0, 247, 255, 0.1) 20px
  );
  animation: backgroundMove 20s linear infinite;
  z-index: 0;
}

.cyber-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80vmin;
  height: 80vmin;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  opacity: 0.1;
  animation: rotate 20s linear infinite;
  z-index: 0;
}

.cyber-circle::before,
.cyber-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--secondary-color);
  opacity: 0.1;
}

.cyber-circle::before {
  width: 90%;
  height: 90%;
  animation: rotate 15s linear infinite reverse;
}

.cyber-circle::after {
  width: 70%;
  height: 70%;
  animation: rotate 10s linear infinite;
}

.title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  line-height: 1.2;
  margin: 2rem 0;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

.title-line {
  display: block;
  position: relative;
}

.title-line::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
  animation: lineGlow 2s ease-in-out infinite;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
  margin: 1rem 0 2rem;
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--primary-color);
  position: relative;
  z-index: 1;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: cardAppear 0.5s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 15px;
  padding: 2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  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.3s ease;
}

.card:hover::before {
  left: 100%;
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
  border-color: var(--primary-color);
}

.card h4 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--primary-color);
}

.card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.card p {
  margin: 0.5rem 0;
  font-size: 1rem;
  opacity: 0.9;
}

.card .warn {
  color: var(--warning-color);
  font-weight: bold;
  text-shadow: 0 0 5px var(--warning-color);
}

.card a {
  display: inline-block;
  margin-top: 1rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--background-dark);
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  overflow: visible;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(0,247,255,0.15);
}

.card a::before {
  display: none;
}

.card a:hover {
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.5);
}

.return {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: var(--background-dark);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.return:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.5);
}

@keyframes backgroundMove {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes titleGlow {
  from { text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color); }
  to { text-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color), 0 0 40px var(--primary-color); }
}

@keyframes lineGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes cardAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Add loading animation delays for cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .cyber-circle {
    width: 100vmin;
    height: 100vmin;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .title {
    margin: 1rem 0;
  }
  
  .card {
    padding: 1.5rem;
  }
}

/* Add smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Add loading animation for container elements */
.container > * {
  animation: fadeIn 0.5s ease-out forwards;
}

.container > *:nth-child(2) { animation-delay: 0.2s; }
.container > *:nth-child(3) { animation-delay: 0.4s; }
.container > *:nth-child(4) { animation-delay: 0.6s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
} 