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

:root {
  --primary-color: #1a1422;
  --secondary-color: #2d1f3d;
  --accent-color: #5F3F75;
  --text-color: #f0f0f0;
  --light-text: #d4b5e8;
  --border-color: #5F3F75;
  --hover-color: #53F9F0;
  --neon-purple: #5F3F75;
  --neon-pink: #53F9F0;
  --neon-cyan: #53F9F0;
  --neon-blue: #5F3F75;
  --dark-bg: #1a1422;
  --glow-color: #53F9F0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--primary-color);
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(95, 63, 117, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(83, 249, 240, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(95, 63, 117, 0.15) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, rgba(95, 63, 117, 0.5), transparent 2px),
    radial-gradient(2px 2px at 60% 70%, rgba(95, 63, 117, 0.5), transparent 2px),
    radial-gradient(1px 1px at 50% 50%, rgba(83, 249, 240, 0.4), transparent 1px),
    radial-gradient(1px 1px at 80% 10%, rgba(83, 249, 240, 0.5), transparent 1px),
    radial-gradient(2px 2px at 10% 90%, rgba(83, 249, 240, 0.4), transparent 2px),
    radial-gradient(1px 1px at 40% 80%, rgba(95, 63, 117, 0.3), transparent 1px);
  background-size: 500px 500px, 700px 700px, 400px 400px, 600px 600px, 800px 800px, 600px 600px;
  background-repeat: repeat;
  animation: twinkle 8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
.header {
  background: linear-gradient(135deg, rgba(26, 20, 34, 0.95) 0%, rgba(45, 31, 61, 0.95) 100%);
  border-bottom: 2px solid var(--neon-cyan);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 0 30px rgba(83, 249, 240, 0.2), inset 0 1px 0 rgba(83, 249, 240, 0.1);
  backdrop-filter: blur(10px);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  color: var(--text-color);
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(6, 223, 208, 0.3);
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
  transition: all 0.3s ease;
}

.logo h1:hover {
  text-shadow: 0 0 30px rgba(95, 63, 117, 0.5), 0 0 20px rgba(83, 249, 240, 0.5);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--light-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--hover-color);
  text-shadow: 0 0 10px rgba(83, 249, 240, 0.5);
}

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

.nav-link.active {
  color: var(--hover-color);
  border-bottom-color: var(--hover-color);
  text-shadow: 0 0 10px rgba(83, 249, 240, 0.5);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  color: var(--hover-color);
  text-shadow: 0 0 10px rgba(83, 249, 240, 0.5);
}

.nav {
  display: flex;
}

/* Responsive Navigation */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }

  .header-container {
    padding: 1rem;
  }

  .logo h1 {
    font-size: 1.4rem;
  }
}

/* Footer Styles */
.footer {
  background: linear-gradient(135deg, rgba(45, 31, 61, 0.95) 0%, rgba(26, 20, 34, 0.95) 100%);
  border-top: 2px solid var(--neon-cyan);
  color: var(--light-text);
  margin-top: 4rem;
  box-shadow: 0 0 30px rgba(83, 249, 240, 0.15), inset 0 -1px 0 rgba(83, 249, 240, 0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--light-text);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.footer-section a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--neon-cyan);
  transition: width 0.3s ease;
}

.footer-section a:hover {
  color: var(--hover-color);
  text-shadow: 0 0 10px rgba(83, 249, 240, 0.3);
}

.footer-section a:hover::after {
  width: 100%;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--neon-cyan);
  border-radius: 4px;
  color: var(--light-text);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(6, 223, 208, 0.2), transparent);
  transition: left 0.5s ease;
}

.social-link:hover {
  background-color: rgba(83, 249, 240, 0.1);
  border-color: var(--hover-color);
  color: var(--hover-color);
  box-shadow: 0 0 15px rgba(83, 249, 240, 0.3);
  text-shadow: 0 0 10px rgba(83, 249, 240, 0.5);
}

.social-link:hover::before {
  left: 100%;
}

.footer-bottom {
  background-color: var(--primary-color);
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--neon-cyan);
  color: var(--light-text);
  box-shadow: inset 0 1px 0 rgba(83, 249, 240, 0.1);
}

/* Page Content Styles */
.hero {
  background: linear-gradient(135deg, rgba(45, 31, 61, 0.9) 0%, rgba(95, 63, 117, 0.9) 100%),
              radial-gradient(circle at 20% 50%, rgba(95, 63, 117, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(83, 249, 240, 0.15) 0%, transparent 50%);
  padding: 6rem 20px;
  text-align: center;
  border-bottom: 2px solid var(--neon-cyan);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(83, 249, 240, 0.15), inset 0 -1px 0 rgba(83, 249, 240, 0.1);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(95, 63, 117, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(83, 249, 240, 0.1) 0%, transparent 40%);
  animation: pulseGlow 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.8s ease-out;
  text-shadow: 0 0 30px rgba(6, 223, 208, 0.3);
}

.hero p {
  font-size: 1.3rem;
  color: var(--light-text);
  margin-bottom: 2.5rem;
  font-weight: 300;
  letter-spacing: 1px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

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

.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 2px solid var(--neon-cyan);
  font-size: 1rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(6, 223, 208, 0.4), inset 0 0 20px rgba(6, 223, 208, 0.1);
  animation: slideInUp 0.8s ease-out 0.4s both;
}

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

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover {
  background: linear-gradient(135deg, var(--neon-purple) 0%, var(--neon-pink) 100%);
  border-color: var(--neon-purple);
  transform: translateY(-3px);
  box-shadow: 0 5px 30px rgba(95, 63, 117, 0.5), inset 0 0 20px rgba(95, 63, 117, 0.2);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.content-section {
  padding: 4rem 20px;
  position: relative;
  background: linear-gradient(135deg, rgba(26, 20, 34, 0.6) 0%, rgba(45, 31, 61, 0.6) 100%);
}

.content-section:nth-child(even) {
  background: linear-gradient(135deg, rgba(45, 31, 61, 0.8) 0%, rgba(95, 63, 117, 0.8) 100%);
  border-top: 1px solid rgba(83, 249, 240, 0.2);
  border-bottom: 1px solid rgba(83, 249, 240, 0.2);
}

.content-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.content-section p {
  margin-bottom: 1rem;
  line-height: 1.9;
  font-size: 1.05rem;
  color: var(--light-text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: linear-gradient(135deg, rgba(45, 31, 61, 0.7) 0%, rgba(95, 63, 117, 0.7) 100%);
  border: 1px solid var(--neon-cyan);
  border-radius: 12px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(83, 249, 240, 0.1), inset 0 0 20px rgba(83, 249, 240, 0.05);
  cursor: default;
}

/* Clickable card link styling */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
}

.card-link .card {
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-link:hover {
  text-decoration: none;
}

.card-link:hover .card {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(83, 249, 240, 0.3), inset 0 0 30px rgba(83, 249, 240, 0.1);
  border-color: var(--neon-purple);
}

.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(83, 249, 240, 0.1) 0%, transparent 70%);
  transition: all 0.5s ease;
  opacity: 0;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(95, 63, 117, 0.1) 0%, transparent 50%, rgba(83, 249, 240, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 40px rgba(83, 249, 240, 0.3), inset 0 0 30px rgba(83, 249, 240, 0.1);
  border-color: var(--neon-purple);
}

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

.card:hover::after {
  opacity: 1;
}

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

.card-link:hover .card::after {
  opacity: 1;
}

.click-indicator {
  display: inline-block;
  margin-left: 0.5rem;
  color: var(--neon-cyan);
  opacity: 0;
  transition: all 0.3s ease;
  transform: translate(-4px, -4px);
}

.card-link:hover .click-indicator {
  opacity: 1;
  transform: translate(2px, -2px);
}

.card h3 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.card p {
  color: var(--light-text);
  line-height: 1.8;
  font-size: 0.95rem;
}

.card a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  position: relative;
}

.card a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--neon-cyan);
  transition: width 0.3s ease;
}

.card a:hover {
  color: var(--neon-purple);
  text-shadow: 0 0 10px rgba(83, 249, 240, 0.3);
}

.card a:hover::after {
  width: 100%;
  background: var(--neon-purple);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: rgba(95, 63, 117, 0.3);
  border: 1px solid var(--neon-cyan);
  border-radius: 6px;
  color: var(--text-color);
  font-family: inherit;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(83, 249, 240, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--light-text);
  opacity: 0.6;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--neon-purple);
  background-color: rgba(45, 31, 61, 0.7);
  box-shadow: 0 0 25px rgba(95, 63, 117, 0.3), inset 0 0 10px rgba(83, 249, 240, 0.1);
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 4rem 20px;
  }

  .content-section {
    padding: 3rem 20px;
  }

  .content-section h2 {
    font-size: 1.8rem;
  }

  .card-grid {
    gap: 1.5rem;
  }
}

/* Additional Cosmic Styling */
.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), transparent);
}

/* Scroll animations */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* Card animations */
.card-grid .card {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

.card-grid .card:nth-child(1) { animation-delay: 0.1s; }
.card-grid .card:nth-child(2) { animation-delay: 0.2s; }
.card-grid .card:nth-child(3) { animation-delay: 0.3s; }
.card-grid .card:nth-child(4) { animation-delay: 0.4s; }
.card-grid .card:nth-child(5) { animation-delay: 0.5s; }
.card-grid .card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Mobile Menu */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(45, 31, 61, 0.98) 0%, rgba(26, 20, 34, 0.98) 100%);
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid var(--neon-cyan);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  }

  .nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(6, 223, 208, 0.2);
  }

  .header-container {
    padding: 1rem;
  }

  .logo h1 {
    font-size: 1.4rem;
  }
}

/* Advanced animations and effects */
@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(83, 249, 240, 0.3), inset 0 0 20px rgba(83, 249, 240, 0.05);
  }
  50% {
    box-shadow: 0 0 40px rgba(83, 249, 240, 0.5), inset 0 0 30px rgba(83, 249, 240, 0.1);
  }
}

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

/* Selection styling */
::selection {
  background-color: var(--neon-cyan);
  color: var(--primary-color);
}

::-webkit-selection {
  background-color: var(--neon-cyan);
  color: var(--primary-color);
}
