/* Base Styles */
:root {
  --bg-dark: #0f0f10;
  --bg-darker: #1a1a1d;
  --text-light: #e4e4e7;
  --text-secondary: #a5a5b1;
  --accent-purple: #7d5fff;
  --accent-pink: #ff6a6a;
  --glow-color: rgba(125, 95, 255, 0.6);
  --card-bg: rgba(26, 26, 29, 0.7);
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--text-light);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:hover {
  color: var(--accent-purple);
}

/* Cosmic Background */
.cosmic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="500" cy="500" r="1" fill="white"/></svg>')
    repeat;
  animation: twinkle 10s infinite linear;
}

.nebula {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    ellipse at center,
    rgba(125, 95, 255, 0.1) 0%,
    rgba(255, 106, 106, 0.1) 35%,
    rgba(15, 15, 16, 0.1) 100%
  );
  z-index: -1;
  animation: rotate 240s infinite linear;
  opacity: 0.5;
}

@keyframes twinkle {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 10000px 5000px;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(
    90deg,
    var(--accent-purple) 0%,
    var(--accent-pink) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  position: relative;
  display: block; /* Changed from inline-block to block for proper centering */
  text-align: center; /* Ensure text is centered */
  margin: 0 auto; /* Add auto margins for centering */
}

.gradient-text::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    var(--accent-purple) 0%,
    var(--accent-pink) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: blur(15px);
  opacity: 0.7;
  width: 100%; /* Ensure the after element spans the full width */
}

/* Header */
header {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(15, 15, 16, 0.7);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  padding: 1rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  margin-left: 1rem;
  font-size: 1.5rem;
  margin-bottom: 0;
  background: linear-gradient(
    90deg,
    var(--accent-purple) 0%,
    var(--accent-pink) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  font-weight: 500;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--accent-purple) 0%,
    var(--accent-pink) 100%
  );
  transition: width var(--transition-speed) ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 110;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  margin: 5px 0;
  transition: transform var(--transition-speed) ease,
    opacity var(--transition-speed) ease;
}

/* Hero Section */
.hero {
  padding: 6rem 0;
  text-align: center;
}

.hero h1 {
  max-width: 800px;
  margin: 0 auto 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--text-secondary);
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(
    90deg,
    var(--accent-purple) 0%,
    var(--accent-pink) 100%
  );
  color: white;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  overflow: hidden;
  font-size: 1.1rem;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent-pink) 0%,
    var(--accent-purple) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
  z-index: -1;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--glow-color);
}

.cta-button:hover::before {
  opacity: 1;
}

/* Prediction Section */
.prediction-section {
  padding: 5rem 0;
  text-align: center;
}

.prediction-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  padding: 2rem;
  max-width: 650px;
  margin: 2rem auto 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(125, 95, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.prediction-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(125, 95, 255, 0.1),
    transparent 40%
  );
  animation: rotate 10s linear infinite;
  z-index: -1;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background-color: rgba(
    26,
    26,
    29,
    0.9
  ); /* Darker background for better contrast */
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white; /* Brighter text color for better visibility */
  font-family: inherit;
  transition: all var(--transition-speed) ease;
}

.form-group input::placeholder,
.form-group select::placeholder {
  color: var(--text-secondary);
}

.form-group select option {
  background-color: var(--bg-darker); /* Dark background for dropdown options */
  color: white; /* Light text for dropdown options */
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 15px rgba(125, 95, 255, 0.3);
}

.calculate-button {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(
    90deg,
    var(--accent-purple) 0%,
    var(--accent-pink) 100%
  );
  color: white;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

.calculate-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px var(--glow-color);
}

.processing-text {
  display: none;
}

.calculate-button.processing .default-text {
  display: none;
}

.calculate-button.processing .processing-text {
  display: inline;
}

.dot-1,
.dot-2,
.dot-3 {
  animation: dot-fade 1.4s infinite;
}

.dot-2 {
  animation-delay: 0.2s;
}

.dot-3 {
  animation-delay: 0.4s;
}

@keyframes dot-fade {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.prediction-result {
  padding: 1.5rem;
  background-color: rgba(15, 15, 16, 0.5);
  border-radius: 8px;
  margin-top: 2rem;
  display: none;
  text-align: center;
}

.prediction-result.visible {
  display: block;
}

.result-content {
  font-size: 1.2rem;
  margin: 1.5rem 0;
  font-weight: 500;
  color: var(--text-light);
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0;
}

/* How It Works Section */
.how-it-works-section {
  padding: 5rem 0;
  text-align: center;
}

.process-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.process-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  flex: 1;
  max-width: 300px;
  border: 1px solid rgba(125, 95, 255, 0.2);
  transition: transform var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease;
}

.process-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(125, 95, 255, 0.2);
}

.process-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(125, 95, 255, 0.1);
  color: var(--accent-purple);
}

.process-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.process-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  text-align: center; /* Ensure the entire section is centered */
}

.faq-section .container h2 {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.faq-accordion {
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: rgba(26, 26, 29, 0.7);
  transition: background-color var(--transition-speed) ease;
}

.faq-question:hover {
  background-color: rgba(125, 95, 255, 0.1);
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.2rem;
}

.faq-icon {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
  transition: transform var(--transition-speed) ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-speed) ease;
  background-color: rgba(15, 15, 16, 0.5);
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  margin-bottom: 0;
}

/* Footer */
footer {
  background-color: var(--bg-darker);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo img {
  width: 50px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-logo p {
  margin-bottom: 0;
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(
    90deg,
    var(--accent-purple) 0%,
    var(--accent-pink) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-links h4,
.footer-social h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--text-light);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-speed) ease;
  color: var(--text-secondary);
}

.social-icons a:hover {
  background-color: var(--accent-purple);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(125, 95, 255, 0.4);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Responsive Styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .process-cards {
    flex-direction: column;
    align-items: center;
  }

  .process-card {
    max-width: 100%;
    width: 100%;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg-darker);
    z-index: 100;
    transition: right var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 3rem;
  }

  .footer-logo,
  .footer-links,
  .footer-social {
    width: 100%;
    text-align: center;
  }

  .footer-logo {
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .prediction-card {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.8rem;
  }

  .cta-button {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
  }
}

/* Add these styles to your existing style.css file */

/* Contact page styles */
.contact-section {
    padding: 80px 0;
}

.contact-card {
    background: rgba(16, 16, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #b8b8d0;
    margin-bottom: 40px;
}

textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    padding: 10px 15px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-link p {
    margin-top: 10px;
    color: #9292a6;
    font-size: 0.9rem;
}

.cta-button.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.hidden {
    display: none;
}

/* Active nav link styling */
nav ul li a.active {
    color: #a162ff;
    border-bottom: 2px solid #a162ff;
}

/* Update these styles to ensure the success message is visible */
.prediction-result.hidden {
    display: none;
}

#message-result {
    background: rgba(125, 95, 255, 0.1);
    border: 1px solid rgba(125, 95, 255, 0.3);
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

#message-result h3 {
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

#message-result .result-content {
    margin-bottom: 1.5rem;
}

/* Message result styling */
.message-result {
    padding: 1.5rem;
    background: rgba(125, 95, 255, 0.1);
    border: 1px solid rgba(125, 95, 255, 0.3);
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-result h3 {
    color: var(--accent-purple);
    margin-bottom: 1rem;
}

.message-result .result-content {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    font-weight: 500;
    color: var(--text-light);
}

/* Remove the conflicting classes */
.prediction-result.hidden {
    display: none;
}

#message-result.prediction-result {
    display: none; /* This will be overridden by JavaScript */
}

/* Blog page styles */
.blog-list-section {
    padding: 80px 0;
}

.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-post-item {
    background: rgba(16, 16, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-post-item h2 {
    margin-bottom: 15px;
}

.blog-post-item p {
    color: #b8b8d0;
    margin-bottom: 25px;
}

/* Blog post styles */
.blog-post-section {
    padding: 80px 0;
}

.blog-post-content {
    background: rgba(16, 16, 28, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-post-content h1 {
    margin-bottom: 20px;
}

.blog-post-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.blog-post-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.blog-post-content p {
    color: #b8b8d0;
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 30px;
    background-color: rgba(26, 26, 29, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden; /* Ensure rounded corners are respected */
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background-color: rgba(125, 95, 255, 0.1);
    color: var(--text-light);
    font-weight: 600;
}

tbody tr:hover {
    background-color: rgba(125, 95, 255, 0.05);
}

/* Responsive Table Styles */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th, td {
        min-width: 150px; /* Adjust as needed */
    }
}
