@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");
/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --background: #ffffff;
  --surface: #f9fafb;
  --border: #e5e7eb;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --scroll-snap: y mandatory;
}

/* Enhanced Apple-like scroll behavior */
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-x: hidden;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Inter",
    Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--background);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Sections with enhanced snap behavior */
section {
  min-height: 100vh; /* Each section fills the full screen */
  display: flex; /* Flexbox for centering */
  flex-direction: column; /* Keep content stacked */
  justify-content: center; /* Center vertically */
  align-items: center; /* Center horizontally */
  text-align: center; /* Optional: center text */
  padding: 2rem; /* Add breathing space */
}

/* Add scroll transition states */
section {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Enhanced loading states for scroll transitions */
.section-loading {
  opacity: 0.7;
  transform: translateY(20px);
}

.section-loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

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

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  width: 150px;
  height: auto;
  cursor: pointer;
  background: var(--primary-color);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center; /* Ensures buttons align vertically with text */
  flex: 1;
}

.nav-menu li:first-child {
  margin-left: auto;
}
.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

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

.auth-buttons {
  display: flex;
  gap: 1rem;
}
.auth-buttons-container {
  margin-left: auto; /* This magic CSS pushes this li to the far right */
}
.auth-buttons-container {
  margin-left: auto;
}
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 100px;
  background-image: url("images/herobig.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-content {
  flex: 1;
  width: 100%;
  z-index: 2;
  position: relative;
  animation: fadeInUp 1s ease-out;

  background: rgba(255, 255, 255, 0.1); /* 75% opaque white */
  backdrop-filter: blur(5px); /* Blurs the image behind the text */
  -webkit-backdrop-filter: blur(5px); /* Safari support */
  padding: 2.5rem; /* Space inside the box */
  border-radius: 24px; /* Rounded corners */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
  border: 1px solid rgba(255, 255, 255, 0.5); /* Subtle border */
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background-image: linear-gradient(var(--primary-color), var(--primary-color));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.7;
  color: #1f2937;
  text-shadow: none;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  position: relative;
}

.floating-elements {
  position: relative;
  width: 100vw;
  height: 200px;
  color: var(--primary-color);
}

.float-item {
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: float 6s ease-in-out infinite;
}

.float-item:nth-child(1) {
  top: 0;
  left: 10%;
  animation-delay: 0s;
}

.float-item:nth-child(2) {
  top: 50%;
  left: 20%;
  animation-delay: 1.5s;
}

.float-item:nth-child(3) {
  bottom: 40%;
  left: 30%;
  animation-delay: 3s;
}

.float-item:nth-child(4) {
  top: 50%;
  left: 40%;
  animation-delay: 4.5s;
}
.float-item:nth-child(5) {
  top: 0;
  left: 50%;
  animation-delay: 0s;
}

.float-item:nth-child(6) {
  top: 50%;
  left: 60%;
  animation-delay: 1.5s;
}

.float-item:nth-child(7) {
  bottom: 0;
  left: 70%;
  animation-delay: 3s;
}

.float-item:nth-child(8) {
  top: 50%;
  left: 80%;
  animation-delay: 4.5s;
}

.float-item:nth-child(9) {
  top: 0;
  left: 90%;
  animation-delay: 0s;
}

/* Section content centering */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  width: 100%;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* About Section - ensure centering */
.about {
  background: var(--surface);
  width: 100%;
}

.about .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

/* Services Section centering */
.services {
  width: 100%;
}

.services .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
}

/* Reviews Section centering */
.reviews {
  background: var(--surface);
  width: 100%;
}

.reviews .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  width: 100%;
  max-width: 1200px;
}

/* FAQ Section centering */
.faq {
  width: 100%;
}

.faq .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* Contact Section centering */
.contact {
  background: var(--surface);
  width: 100%;
}

.contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  width: 100%;
  max-width: 1200px;
}

.about-text h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.feature-list i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.stat-card h4 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: var(--text-light);
  font-weight: 500;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 2rem;
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-card ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-card li {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  position: relative;
}

.service-card li::before {
  content: "•";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-top: 1rem;
}

.learn-more {
  color: var(--primary-color);
  font-weight: 600;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.learn-more i {
  transition: transform 0.3s ease;
}

.service-card:hover .learn-more i {
  transform: translateX(5px);
}

/* Large Service Modal Styles */
.verification-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers the button horizontally */
  text-align: left; /* Centers the paragraph text */
  padding: 2rem 1.5rem !important; /* Adds nice padding around the edges */
  gap: 1.5rem; /* Adds space between text and button */
}
.service-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 24px;
  max-width: 1000px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.service-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header h2 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-header-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.modal-body {
  padding: 3rem;
}

.modal-intro {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  line-height: 1.8;
  text-align: center;
}

.modal-section {
  margin-bottom: 3rem;
}

.modal-section h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-section h3 i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.modal-section p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  padding: 1.5rem;
  border-radius: 16px;
  border: 2px solid var(--primary-color);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.feature-item h4 {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-item h4 i {
  color: var(--secondary-color);
}

.feature-item p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
}

.pricing-box {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--primary-dark)
  );
  color: white;
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  margin: 2rem 0;
}

.pricing-box .price-amount {
  font-size: 3.5rem;
  font-weight: 800;
  margin: 1rem 0;
}

.pricing-box .price-period {
  font-size: 1.2rem;
  opacity: 0.9;
}

.pricing-box .price-description {
  margin-top: 1rem;
  font-size: 1.1rem;
  opacity: 0.95;
}

.cta-section {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: 20px;
  text-align: center;
  margin-top: 3rem;
}

.cta-section h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.benefits-list {
  list-style: none;
  margin: 2rem 0;
}

.benefits-list li {
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  background: var(--surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.benefits-list li i {
  color: var(--secondary-color);
  font-size: 1.3rem;
}

/* Reviews Section */
.reviews {
  background: var(--surface);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.review-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.review-header {
  margin-bottom: 1.5rem;
}

.reviewer-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.reviewer-info h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.rating {
  display: flex;
  gap: 0.25rem;
}

.rating i {
  color: var(--accent-color);
}

.review-card p {
  color: var(--text-light);
  font-style: italic;
  line-height: 1.7;
}

.rating-summary {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 300px;
  margin: 0 auto;
}

.rating-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
}

.rating-stars {
  margin: 1rem 0;
}

.rating-stars i {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin: 0 0.1rem;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 20px;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--surface);
}

.faq-question h3 {
  color: var(--text-dark);
  font-size: 1.2rem;
  text-align: left;
}

.faq-question i {
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 2rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 0 2rem 2rem;
  max-height: 300px;
}

.faq-answer p,
li {
  color: var(--text-light);
  line-height: 1.7;
}

/* Contact Section */
.contact {
  background: var(--surface);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.contact-item h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: var(--text-light);
  line-height: 1.6;
}

.contact-form {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1rem;
  justify-content: center;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.footer-logo .brand-name {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  padding: 10px;
}

.footer-logo p {
  opacity: 0.7;
  margin-bottom: 2rem;
  padding: 10px;
}

.social-links {
  display: flex;
  gap: 1rem;
  padding: 10px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.footer-section h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

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

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

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: white;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--text-dark);
}

.modal-content {
  padding: 0;
}

.auth-form {
  padding: 2rem;
}

.privacy-content {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.privacy-content h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.privacy-content h3:first-child {
  margin-top: 0;
}

.privacy-content p {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.auth-switch {
  margin-top: 1.5rem;
  color: var(--text-light);
}

.auth-switch a {
  color: var(--primary-color);
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

.forgot-password {
  color: var(--muted);
  margin-top: -15px;
  margin-bottom: 10px;
  text-align: right; /* aligns the link to the right */
}

.forgot-password a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.error {
  color: red;
  font-size: 13px;
  margin: 6px 0;
}
.hidden {
  visibility: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.loading {
  background-color: #ccc;
  pointer-events: none;
}

/* Success and Error Overlays */
.error {
  color: red;
  font-size: 13px;
  margin: 6px 0;
}

/* User menu styling */
.user-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-name {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Enhanced form validation styles */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  display: block;
}

/* Enhanced button hover effects */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}
/* --- MOBILE RESPONSIVE DESIGN (Max-Width: 768px) --- */
@media (max-width: 1024px) {
  /* 1. NAVIGATION MENU FIXES */
  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 0;
    transform: translateX(-100%);
    transition: var(--transition);
    z-index: 999;

    /* Ensure consistent spacing between ALL items */
    gap: 2rem;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li:first-child {
    margin-left: 0;
    margin-bottom: 0; /* REMOVED extra margin. Now it uses the same gap as everyone else. */
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }
  /* Make Logo visible when menu is open */
  .logo-container {
    position: relative;
    z-index: 1001; /* Same layer as hamburger so it sits ON TOP of the menu */
  }
  /* Reduce logo size on mobile */
  .logo {
    width: 110px; /* Default is 150px, this makes it about 25% smaller */
  }

  /* 2. AUTH BUTTONS FIX */
  .auth-buttons-container {
    margin-left: 0;
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .auth-buttons {
    flex-direction: column;
    width: 80%;
    gap: 1rem;
  }

  /* 3. HERO SECTION & ICONS FIX */
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 8rem 1rem 4rem;
    overflow: hidden;
    background-image: url("images/heromobile.jpg");
  }
  .hero-title {
    font-size: 2.5rem;
  }

  .hero > .container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .btn-large {
    width: 100%;
    max-width: 300px;
  }
  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: white !important;
  }

  /* --- HERO VISUAL FIX (Cascading Waterfall) --- */
  .hero-visual {
    position: relative;
    margin-top: 2rem;
    width: 100%;
    height: 420px; /* Tall container for the flow */
    display: block;
    z-index: 2;
    overflow: visible;
    color: var(--primary-color);
  }

  .floating-elements {
    width: 100%;
    height: 100%;
    position: relative;
  }

  .float-item {
    /* PC Styling */
    width: 55px;
    height: 55px;
    font-size: 1.4rem;
    opacity: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;

    /* Animation Base */
    animation-duration: 2.5s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
  }

  /* Ensure all 9 are visible */
  .float-item:nth-child(n) {
    display: flex;
  }

  /* --- ANIMATION (Counter-Flow) --- */
  .float-item:nth-child(odd) {
    animation-name: float-up;
  }
  .float-item:nth-child(even) {
    animation-name: float-down;
  }

  /* --- POSITIONS (The Waterfall Layout) --- */
  /* We stagger the vertical start points so they don't look like rows */

  /* 1. Top Left (Starts high) */
  .float-item:nth-child(1) {
    top: 0%;
    left: 8%;
    animation-delay: 0s !important;
  }

  /* 2. Top Right (Starts slightly lower) */
  .float-item:nth-child(2) {
    top: 5%;
    right: 8%;
    left: auto;
    animation-delay: -0.5s !important;
  }

  /* 3. Upper Center (Starts lowest of the top group) */
  .float-item:nth-child(3) {
    top: 15%;
    left: 50%;
    margin-left: -27.5px;
    animation-delay: -1s !important;
  }

  /* 4. Mid Left */
  .float-item:nth-child(4) {
    top: 35%;
    left: 6%;
    animation-delay: -1.5s !important;
  }

  /* 5. Dead Center */
  .float-item:nth-child(5) {
    top: 57%;
    left: 50%;
    margin-left: -27.5px;
    animation-delay: -2s !important;
    z-index: 2; /* Bring forward */
  }

  /* 6. Mid Right */
  .float-item:nth-child(6) {
    top: 40%;
    right: 12%;
    left: auto;
    animation-delay: -2.5s !important;
  }

  /* 7. Bottom Left */
  .float-item:nth-child(7) {
    bottom: 12%;
    left: 8%;
    top: auto;
    animation-delay: -3s !important;
  }

  /* 8. Bottom Center */
  .float-item:nth-child(8) {
    bottom: 0%;
    left: 50%;
    margin-left: -27.5px;
    top: auto;
    animation-delay: -3.5s !important;
  }

  /* 9. Bottom Right */
  .float-item:nth-child(9) {
    bottom: 10%;
    right: 8%;
    left: auto;
    top: auto;
    animation-delay: -4s !important;
  }

  /* --- KEYFRAMES --- */
  @keyframes float-up {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-15px);
    } /* Increased distance slightly for better effect */
  }

  @keyframes float-down {
    0%,
    100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(15px);
    }
  }

  /* 4. ABOUT SECTION TEXT FIX */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Forces "Expert tutors..." text to align left */
  .about-text {
    text-align: left;
    padding: 0 1rem;
  }

  .section-subtitle {
    padding: 0 1rem;
  }

  .feature-list li {
    justify-content: flex-start; /* Aligns checkmarks left */
  }

  /* 5. STAT CARDS FIX */
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 1rem; /* Smaller gap prevents overflow */
    padding: 0 0.5rem;
  }

  .stat-card {
    padding: 1.5rem 0.5rem;
  }

  .stat-card h4 {
    font-size: 2rem;
  }

  /* 6. GENERAL LAYOUT RESETS */
  section {
    min-height: auto;
    padding: 4rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* 7. GRID RESETS */
  .services-grid,
  .reviews-grid,
  .contact-grid,
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  /* 8. MODAL FIXES */
  .service-modal {
    width: 98%;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1.5rem;
    flex-direction: row;
    text-align: center;
    gap: 1rem;
  }

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

  .pricing-box .price-amount {
    font-size: 2.5rem;
  }

  /* Mobile adjustments for user profile menu */
  .user-menu {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
  }
  .dashboard-btn {
    width: 100%; /* Makes the black button fill the width like the Sign Up button */
    margin-bottom: 0.5rem; /* Adds a little space between Dashboard and Sign Out */
    text-align: center;
    justify-content: center;
    display: flex;
  }
  /* --- 9. EMAIL VERIFICATION MODAL FIXES --- */

  /* Fix the spacing and alignment of the content body */
  .verification-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the button horizontally */
    text-align: left; /* Centers the paragraph text */
    padding: 2rem 1.5rem !important; /* Adds nice padding around the edges */
    gap: 1.5rem; /* Adds space between text and button */
  }

  /* Fix the button appearance */
  #resend-verification {
    width: auto; /* Lets button size to text */
    min-width: 200px; /* Ensures it's not too small to tap */
    max-width: 100%;
    margin: 0 auto; /* Ensures centering */
    justify-content: center;
  }

  /* Ensure the modal title is also centered */
  .modal-header h2 {
    width: 100%;
    text-align: center;
    padding-right: 0; /* Removes gap left by close button */
  }
}
/* Add this to your style.css */
.dashboard-btn {
  background-color: black;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.dashboard-btn:hover {
  background-color: #222;
  transform: scale(1.05);
}
.spinner {
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

button[type="submit"]:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  pointer-events: none;
}
