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

body {
  font-family: 'Fredoka One', cursive;
  background-color: #f0f4ff; /* Soft cosmic sky */
  color: #1c1c2e;            /* Deep space ink */
  line-height: 1.6;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  border-radius: 20px;
  background-color: #6c63ff; /* Galactic purple */
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn-primary:hover {
  transform: scale(1.05);
  background-color: #4e4cbf; /* Deeper hover tone */
  box-shadow: 0 0 12px #6c63ff;
}



/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  background: linear-gradient(to bottom, #a0dfff, #d6f4ff);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.starfield {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.star {
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  opacity: 0.9;
  animation: twinkle 2s infinite ease-in-out, glow 3s infinite ease-in-out;
  box-shadow: 0 0 14px white, 0 0 22px #e0e7ff;
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 14px white, 0 0 22px #e0e7ff;
  }
  50% {
    box-shadow: 0 0 20px #ffffff, 0 0 30px #cdd9ff;
  }
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem; /* Increased from 3rem to 6rem */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  max-width: 500px;
  font-size: 1.2rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 480px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(108, 99, 255, 0.5);
}


@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .hero-image img {
    width: 300px;
  }
}




/* Profiles */
.profiles {
  padding: 3rem 2rem;
  text-align: center;
}

.card-grid {
  display: flex;
  gap: 3rem; /* was 2rem */
  justify-content: center;
  flex-wrap: wrap;
  padding: 2rem 0; /* optional: adds vertical breathing room */
}


.card {
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 12px;
  width: 250px;
  box-shadow: 0 4px 12px rgba(108, 99, 255, 0.2);
  transition: transform 0.3s ease;
  margin-bottom: 2rem; /* adds vertical spacing between rows on wrap */
}

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

.card img {
  width: 100%;
  height: 220px;              /* Fixed height for consistency */
  object-fit: cover;          /* Crops excess while preserving aspect ratio */
  border-radius: 8px;
}


@media (max-width: 768px) {
  .card-grid {
    gap: 2rem;
    flex-direction: column;
    align-items: center;
  }
}



/* Features */
.features {
  background-color: #e0e7ff;
  padding: 3rem 2rem;
  text-align: center;
}

.features ul {
  list-style: none;
  font-size: 1.2rem;
}

.features li {
  margin: 1rem 0;
}

.features i {
  margin-right: 0.5rem;
  color: #6c63ff;
}

/* Signup */
.signup {
  padding: 3rem 2rem;
  text-align: center;
  background-color: #f0f4ff;
}

.signup input {
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-right: 0.5rem;
}

.signup button {
  margin-top: 1rem;
}

/* Footer */
footer {
  background-color: #dbe4ff;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icons a {
  color: #6c63ff;
  font-size: 1.2rem;
}
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(28, 28, 46, 0.8); /* Deep space overlay */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background: linear-gradient(to bottom right, #ffffff, #e0e7ff);
  color: #1c1c2e;
  padding: 2rem;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 20px #6c63ff;
  position: relative;
  animation: popUp 0.3s ease-in-out;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6c63ff;
  transition: transform 0.2s ease;
}

.close:hover {
  transform: scale(1.2);
}

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

@keyframes popUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
