/* ========== Modern Reset & Variables ========== */
:root {
  --primary-color: #2575fc;
  --primary-gradient: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
  --secondary-color: #6a11cb;
  --text-color: #333;
  --bg-light: #f8f9fa;
  --bg-dark: #292a36;
  --card-bg: #ffffff;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --transition-slow: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-medium: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-light);
  overflow-x: hidden;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 4rem 0;
}

/* Button Styles */
.btn-primary {
  background: var(--primary-gradient);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.4);
  transition: var(--transition-medium);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 7px 20px rgba(37, 117, 252, 0.6);
}

/* ========== Enhanced Hero Section with Parallax ========== */
#hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-parallax-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.bg-layer {
  background-image: url('../img/hero-bg.jpg');
  filter: brightness(0.7);
}

.mid-layer {
  background-image: url('../img/mid-layer.png');
  opacity: 0.7;
}

.front-layer {
  background-image: url('../img/front-layer.png');
  opacity: 0.9;
}

#hero .overlay {
  width: 100%;
  height: 100%;
  background: rgba(37, 117, 252, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  color: #fff;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Mouse scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 15px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 10px;
  background: white;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
}

/* ========== Section Headers & Underline ========== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.underline {
  height: 4px;
  width: 80px;
  background: var(--primary-gradient);
  margin: 0 auto;
  border-radius: 2px;
}

/* ========== Mission Section ========== */
#mission {
  background: var(--card-bg);
  padding: 6rem 0;
}

.mission-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* ========== Categories Section ========== */
#problems {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 6rem 0;
}

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

.category-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: var(--transition-medium);
  transform-style: preserve-3d;
  position: relative;
  height: 340px;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-content {
  padding: 2rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.icon-container {
  background: linear-gradient(135deg, rgba(37, 117, 252, 0.1) 0%, rgba(106, 17, 203, 0.1) 100%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-medium);
}

.category-card:hover .icon-container {
  transform: scale(1.1);
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.category-card p {
  color: #666;
  margin-bottom: 1.5rem;
}

.explore-btn {
  color: var(--primary-color);
  font-weight: 600;
  position: relative;
  cursor: pointer;
  transition: var(--transition-fast);
}

.explore-btn::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--primary-gradient);
  transition: var(--transition-fast);
}

.category-card:hover .explore-btn::after {
  width: 100%;
}

/* Newsletter toggle button */
.newsletter-toggle {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
}

.newsletter-btn {
  background: rgba(37, 117, 252, 0.1);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition-fast);
}

.newsletter-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* Coming soon card */
.coming-soon .icon-container {
  background: linear-gradient(135deg, rgba(252, 37, 103, 0.1) 0%, rgba(252, 166, 37, 0.1) 100%);
}

.coming-soon .explore-btn {
  color: #fc2567;
}

.coming-soon .explore-btn::after {
  background: linear-gradient(135deg, #2582fc 0%, #25fc3a 100%);
}

/* ========== Problem Display Section ========== */
#problem-display {
  background: var(--bg-light);
  min-height: 80vh;
  padding: 2rem 0;
}

.back-btn {
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: var(--transition-fast);
}

.back-btn:hover {
  background: rgba(37, 117, 252, 0.1);
}

/* Problem content styles */
.problem {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  margin-bottom: 2rem;
  transition: var(--transition-medium);
}

.problem h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.options {
  list-style: none;
  margin-bottom: 2rem;
}

.options li {
  margin: 1rem 0;
  padding: 1rem;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.options li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-gradient);
  transform: scaleY(0);
  transition: var(--transition-fast);
}

.options li:hover {
  transform: translateX(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.options li:hover::before {
  transform: scaleY(1);
}

/* Animation for correct answer */
.correct {
  animation: correct-answer 0.6s forwards;
}

@keyframes correct-answer {
  0% {
    background: #f8f9fa;
  }
  20% {
    background: rgba(40, 167, 69, 0.2);
  }
  100% {
    background: rgba(40, 167, 69, 0.15);
  }
}

/* Real-world application button */
.real-world-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  display: none; /* Hidden initially, will show after correct answer */
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
  transition: var(--transition-medium);
}

.real-world-btn:hover {
  box-shadow: 0 7px 20px rgba(37, 117, 252, 0.5);
  transform: translateY(-3px);
}

/* Real-world application content */
.real-world-content {
  margin-top: 2rem;
  background: #f0f4ff;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  display: none; /* Hidden initially */
  animation: fade-in 0.5s ease-in-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== Newsletter Modal ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--card-bg);
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem;
  background: var(--primary-gradient);
  color: white;
  position: relative;
}

.modal-header h2 {
  font-size: 1.5rem;
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  color: white;
  opacity: 0.8;
  transition: var(--transition-fast);
}

.close-modal:hover {
  opacity: 1;
}

.modal-body {
  padding: 2rem;
}

.modal-body p {
  margin-bottom: 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ced4da;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
  outline: none;
}

.form-note {
  font-size: 0.9rem;
  color: #6c757d;
  margin-top: 1.5rem;
  text-align: center;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

/* ========== Media Queries ========== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .categories {
    grid-template-columns: 1fr;
  }

  .category-card {
    height: 320px;
  }
}
/* Add these styles to your existing CSS file */

/* Make "More Problems" card larger and centered */
.coming-soon {
  grid-column: 1 / -1; /* Span all columns */
  max-width: 600px;
  margin: 0 auto;
  height: 360px; /* Taller than other cards */
  transition: var(--transition-medium);
}

.coming-soon:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.coming-soon .card-content {
  padding: 3rem;
}

.coming-soon .icon-container {
  width: 120px;
  height: 120px;
}

.coming-soon h3 {
  font-size: 2rem;
}

.coming-soon p {
  font-size: 1.2rem;
}

.coming-soon .explore-btn {
  font-size: 1.2rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, #2582fc 0%, #25fc3a 100%);
  color: white;
  border-radius: 50px;
  transition: var(--transition-medium);
}

.coming-soon .explore-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(252, 37, 103, 0.4);
}

/* Add button in problems that leads to newsletter */
.newsletter-problem-cta {
  margin-top: 2rem;
  text-align: right;
}

.newsletter-problem-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
  transition: var(--transition-medium);
}

.newsletter-problem-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(37, 117, 252, 0.5);
}

/* Update newsletter modal styles */
.modal-body h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #2575fc 0%, #6a11cb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.modal-body .subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.6;
}
/* Add to your existing CSS file */

/* Create substantial empty space at the bottom */
.page-spacer {
  height: 300px; /* Adjust height as needed */
  width: 100%;
}

/* Adjust the scroll detection threshold in JS or add this to prevent too-early popup */
#newsletterModal {
  /* Existing styles */
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

/* Update button text styles if needed */
.btn-primary {
  /* Your existing styles remain */
  text-transform: uppercase;
  font-weight: 600;
}

/* Form style updates after removing dropdown */
#newsletterForm {
  /* Add more space between email input and submit button */
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
/* Add these styles to your existing style.css file */

/* Info arrow button above problem box */
/* Update the info arrow button styles */
.info-arrow-container {
  display: none; /* Hide the old container above the problem */
}

/* Create new styles for the arrow on the right side */
.back-button-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.right-arrow-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  width: 44px; /* Slightly bigger */
  height: 44px; /* Slightly bigger */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(37, 117, 252, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.right-arrow-btn:hover {
  transform: translateX(5px); /* Move right on hover instead of up */
  box-shadow: 0 8px 15px rgba(37, 117, 252, 0.6);
}

/* Adjust responsive styles */
@media (max-width: 768px) {
  .right-arrow-btn {
    width: 40px;
    height: 40px;
  }
}
