/* Base Styles */
:root {
  --primary: #8e2de2;
  --primary-gradient: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%);
  --secondary: #14f195;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: rgba(26, 26, 46, 0.95); /* Dark blue with 95% opacity */
  backdrop-filter: blur(8px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
  background-color: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--light);
  text-decoration: none;
}

.logo span {
  color: var(--secondary);
}

.logo-icon {
  margin-right: 10px;
  font-size: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2.5rem;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: var(--light);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--secondary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(26, 26, 46, 0.95);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  top: 100%;
  left: 0;
  margin-top: 10px;
  transition: opacity 0.3s ease;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dropdown:hover .dropdown-content {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: fadeIn 0.3s ease;
}

.dropdown-content:hover {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-content a {
  color: var(--light);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-content a:hover {
  background-color: rgba(142, 45, 226, 0.3);
  color: var(--secondary);
  padding-left: 20px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--light);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  max-width: 400px;
  height: 100vh;
  background-color: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1001;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.3);
}

.mobile-nav.active {
  left: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-menu {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--light);
}

.mobile-nav-links {
  list-style: none;
  padding: 1rem 0;
}

.mobile-nav-links li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-links a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
  color: var(--secondary);
  background-color: rgba(142, 45, 226, 0.1);
}

.mobile-dropdown-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem 1.5rem;
  color: var(--light);
  background: none;
  border: none;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-dropdown-btn:hover {
  color: var(--secondary);
  background-color: rgba(142, 45, 226, 0.1);
}

.mobile-dropdown-content {
  display: none;
  background-color: rgba(0, 0, 0, 0.2);
  padding-left: 1rem;
}

.mobile-dropdown-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 5%;
  background-color: var(--dark);
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 60%;
  padding-right: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-primary {
  background: var(--primary-gradient);
  color: white;
  border: none;
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(142, 45, 226, 0.4);
}

.cta-secondary {
  background: transparent;
  color: var(--light);
  border: 2px solid var(--secondary);
}

.cta-secondary:hover {
  background-color: var(--secondary);
  color: var(--dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(20, 241, 149, 0.3);
}

.hero-image {
  position: relative;
  width: 40%;
  z-index: 10;
  animation: floatAnimation 3s ease-in-out infinite alternate;
  
}

.hero-image img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
   border-radius: 16px;
}


/* Features Section */
.features {
  padding: 8rem 5% 5rem;
  background-color: #161629;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--light);
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--secondary);
  font-size: 1.2rem;
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(142, 45, 226, 0.3);
}

.feature-card:hover::before {
  opacity: 0.1;
}

.feature-icon {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Newsletter Section */
.newsletter {
  padding: 5rem 5%;
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
}

.newsletter-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}

.newsletter h2 {
  color: white;
  margin-bottom: 1rem;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.newsletter-input:focus {
  outline: none;
}

.newsletter-button {
  padding: 1rem 2rem;
  border: none;
  background-color: var(--dark);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.newsletter-button:hover {
  background-color: var(--secondary);
  color: var(--dark);
}

/* Footer */
.footer {
  background-color: #14142b;
  padding: 5rem 5% 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h4 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 2px;
  bottom: 0;
  left: 0;
  background: var(--primary-gradient);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--secondary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--card-bg);
  color: var(--light);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary-gradient);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(142, 45, 226, 0.3);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Suggested Section in Mobile Nav */
.suggested-section {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.suggested-section h4 {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.suggested-section a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(142, 45, 226, 0.1);
  margin-bottom: 0.5rem;
  border-left: 3px solid var(--secondary);
}

.suggested-section a:hover {
  background: rgba(142, 45, 226, 0.2);
  color: var(--secondary);
  padding-left: 2rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes floatAnimation {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-15px);
  }
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    width: 55%;
  }
  
  .hero-image {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 5%;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu {
    display: block;
  }
  
  .hero {
    flex-direction: column;
    height: auto;
    padding: 120px 5% 5rem;
  }
  
  .hero-content {
    width: 100%;
    padding-right: 0;
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-image {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

/* The MarvRisingStar Difference Section */
.difference {
  padding: 8rem 5% 5rem;
  background-color: #161629;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.difference-content {
  margin-top: 3rem;
}

.intro-text {
  text-align: center;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: rgba(255, 255, 255, 0.8);
}

.difference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.difference-item {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.difference-item:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(142, 45, 226, 0.3);
}

.difference-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-right: 1.5rem;
  line-height: 1;
}

.difference-text h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--light);
}

.difference-text p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.ad-rectangle {
  max-width: 300px;
  height: 250px;
}

.ad-large-rectangle {
  max-width: 336px;
  height: 280px;
}

.ad-sidebar {
  max-width: 160px;
  height: 600px;
  float: right;
  margin: 0 0 2rem 2rem;
}

/* Getting Started Guide Section */
.getting-started {
  padding: 8rem 5% 5rem;
  background-color: #14142b;
  position: relative;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.step-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
}

.step-card:hover::before {
  opacity: 0.1;
}

.step-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.step-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--light);
}

.step-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.getting-started-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Free Resource Section */
.free-resource {
  padding: 5rem 5%;
  background-color: #161629;
  position: relative;
}

.free-resource .container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.resource-content {
  flex: 1;
}

.resource-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--light);
}

.resource-content p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.resource-benefits {
  margin: 2rem 0;
  padding-left: 1.5rem;
}

.resource-benefits li {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding-left: 1.5rem;
}

.resource-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.resource-join {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Brevo Form Styling */
.resource-form-container {
  margin: 2rem 0;
}

#error-message, #success-message {
  font-size: 16px;
  text-align: left;
  font-family: Helvetica, sans-serif;
  border-radius: 3px;
  margin-bottom: 10px;
  padding: 10px;
  display: none;
}

#error-message {
  color: #661d1d;
  background-color: #ffeded;
  border: 1px solid #ff4949;
}

#success-message {
  color: #085229;
  background-color: #e7faf0;
  border: 1px solid #13ce66;
}

.sib-form-message-panel__text {
  display: flex;
  align-items: center;
}

.sib-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.custom-brevo-container {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  max-width: 100% !important;
}

/* Email and button container - exact match to original */
.email-button-container {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
}

.form-input-wrapper {
  flex: 1;
}

/* Fixed input styling to match original */
.form-input-wrapper input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  height: 100%;
  box-sizing: border-box;
}

input#EMAIL {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  height: 100%;
  border-radius: 0;
  margin: 0;
}

input#EMAIL:focus {
  outline: none;
}

/* Button styling exact match to original */
.resource-button {
  padding: 1rem 2rem;
  border: none;
  background: var(--primary-gradient);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  white-space: nowrap;
  height: auto;
}

.resource-button:hover {
  box-shadow: 0 5px 15px rgba(142, 45, 226, 0.3);
}

/* Captcha styling - outside the email container */
.captcha-wrapper {
  width: 100%;
  margin: 15px 0;
  display: flex;
  justify-content: flex-start;
}

.progress-indicator__icon {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  display: none;
}

.privacy-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.resource-image {
  flex: 1;
  max-width: 400px;
}

.resource-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.input--hidden {
  display: none !important;
}

/* Fix for Brevo form structure */
#sib-container {
  text-align: left !important;
}

#sib-form {
  display: flex;
  flex-direction: column;
}

/* Fix any additional Brevo styles that might interfere */
#sib-container input:-ms-input-placeholder {
  text-align: left;
  font-family: Helvetica, sans-serif;
  color: #c0ccda;
}

#sib-container input::placeholder {
  text-align: left;
  font-family: Helvetica, sans-serif;
  color: #c0ccda;
}

/* Ensure no Brevo default styles interfere */
#sib-container .input {
  padding: 1rem 1.5rem !important;
  text-align: left !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.sib-form-block {
  padding: 0 !important;
}

.form__entry {
  width: 100%;
}

/* Set consistent height and display for email and button */
.form-input-wrapper, .resource-button {
  height: 56px;
  display: flex;
  align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .free-resource .container {
    flex-direction: column;
  }
  
  .resource-image {
    order: -1;
    max-width: 100%;
  }
  
  .email-button-container {
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
  }
  
  .resource-button {
    width: 100%;
  }
}

/* Media Queries */
@media (max-width: 992px) {
  .free-resource .container {
    flex-direction: column;
  }
  
  .resource-image {
    order: -1;
    margin-bottom: 2rem;
  }
  
  .ad-sidebar {
    float: none;
    margin: 3rem auto;
  }
}

@media (max-width: 768px) {
  .difference-item {
    flex-direction: column;
  }
  
  .difference-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .resource-form {
    flex-direction: column;
    border-radius: 8px;
  }
  
  .resource-form input {
    border-radius: 8px 8px 0 0;
  }
  
  .resource-button {
    width: 100%;
    border-radius: 0 0 8px 8px;
  }
}