/* styles.css */

/* ===== Base Styles ===== */
:root {
  --primary-color: #3a6ea5;
  --primary-dark: #2a5183;
  --primary-light: #4b7eb5;
  --secondary-color: #ff6b35;
  --secondary-dark: #e55525;
  --secondary-light: #ff8c63;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --bg-dark: #e9ecef;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --success: #28a745;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px base for easier rem calculations */
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  font-display: swap;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.6rem;
  color: var(--text-dark);
}

h1 {
  font-size: 4.2rem;
  background-image: linear-gradient(45deg, var(--primary-dark), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 3.2rem;
  margin-bottom: 2.4rem;
  position: relative;
}

h2:after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
  margin-top: 1.2rem;
}

h3 {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

p {
  margin-bottom: 1.6rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
}

.section-alt {
  background-color: var(--bg-light);
}

.section-intro {
  font-size: 1.8rem;
  max-width: 70rem;
  margin: 0 auto 4rem;
  text-align: center;
  color: var(--text-light);
}

/* ===== Header ===== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  margin-left: 2.5rem;
}

.nav-menu a {
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 3rem;
  height: 2.4rem;
  position: relative;
  z-index: 100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
  bottom: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* ===== CTA Buttons ===== */
.cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white);
  font-weight: 600;
  font-size: 1.6rem;
  padding: 1.2rem 2.4rem;
  border-radius: var(--border-radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-button:hover {
  background-color: var(--secondary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--white);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.secondary-button {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.6rem;
  padding: 1.1rem 2.3rem;
  border-radius: var(--border-radius);
  border: 2px solid var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.secondary-button:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.secondary-button:active {
  transform: translateY(0);
}

.large-cta {
  font-size: 1.8rem;
  padding: 1.5rem 3rem;
}

.cta-container {
  text-align: center;
  margin-top: 4rem;
}

.desktop-cta {
  display: inline-block;
}

/* ===== Hero Section ===== */
.hero-section {
  padding: 18rem 0 8rem;
  background: linear-gradient(135deg, #2a5183 0%, #4b7eb5 100%);
  color: var(--white);
  overflow: hidden;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.hero-content {
  flex: 1;
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transform: perspective(800px) rotateY(-5deg);
  transition: var(--transition);
}

.hero-image:hover img {
  transform: perspective(800px) rotateY(0);
}

.hero-section h1 {
  color: var(--white);
  margin-bottom: 2rem;
  font-size: 5.2rem;
  background-image: none;
}

.hero-subtitle {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.credibility-text {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  margin-bottom: 3rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-buttons .cta-button {
  background-color: var(--secondary-color);
}

.hero-buttons .secondary-button {
  color: var(--white);
  border-color: var(--white);
}

.hero-buttons .secondary-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ===== Tools Section ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.tool-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}

.tool-card:hover {
  transform: translateY(-1rem);
  box-shadow: var(--shadow-lg);
}

.tool-icon {
  width: 8rem;
  height: 8rem;
  background-color: rgba(58, 110, 165, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--primary-color);
}

/* ===== Expectations Section ===== */
.section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
  align-items: center;
}

.feature-list {
  list-style-type: none;
  margin-bottom: 3rem;
}

.feature-list li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.5rem;
}

.feature-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
  color: var(--success);
}

.section-image img {
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.section-image:hover img {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

/* ===== Process Section ===== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
  counter-reset: process-counter;
}

.process-step {
  position: relative;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.process-step:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 4rem;
  height: 4rem;
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 700;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 1.5rem;
}

/* ===== Benefits Section ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
}

.benefit-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-md);
}

.benefit-icon {
  width: 8rem;
  height: 8rem;
  background-color: rgba(58, 110, 165, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: var(--primary-color);
}

/* ===== Eligibility Section ===== */
.eligibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 3rem;
}

.eligibility-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.eligibility-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-md);
}

.eligibility-icon {
  width: 6rem;
  height: 6rem;
  background-color: rgba(58, 110, 165, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
}

/* ===== Why Now Section ===== */
.why-now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3rem;
}

.why-now-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.why-now-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-0.5rem);
}

/* ===== Testimonials Section ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.testimonial-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-md);
}

.testimonial-icon {
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.testimonial-title {
  color: var(--text-light);
  font-style: italic;
  margin-top: -1rem;
}

blockquote p {
  position: relative;
  padding-left: 2rem;
  font-style: italic;
}

blockquote p:before {
  content: '"';
  font-size: 3rem;
  position: absolute;
  left: 0;
  top: -1rem;
  color: var(--primary-light);
  font-family: Georgia, serif;
}

/* ===== FAQ Section ===== */
.faq-container {
  max-width: 80rem;
  margin: 0 auto;
}

details {
  margin-bottom: 1.5rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
}

details:hover {
  box-shadow: var(--shadow-sm);
}

summary {
  padding: 1.5rem 2rem;
  cursor: pointer;
  position: relative;
  font-weight: 600;
  background-color: var(--white);
  list-style: none;
  outline: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary:after {
  content: '+';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: var(--primary-color);
  transition: var(--transition);
}

details[open] summary:after {
  content: '−';
}

.faq-content {
  padding: 0 2rem 2rem;
  background-color: var(--white);
}

/* ===== Final CTA Section ===== */
.final-cta-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 10rem 0;
}

.final-cta-section h2 {
  color: var(--white);
}

.final-cta-section h2:after {
  margin-left: auto;
  margin-right: auto;
  background: var(--white);
}

.final-cta-section p {
  max-width: 60rem;
  margin: 0 auto 3rem;
  font-size: 1.8rem;
}

/* ===== Footer ===== */
.main-footer {
  background-color: #2a2f35;
  color: var(--gray-300);
  padding: 6rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-about h3, .footer-nav h3, .footer-contact h3 {
  color: var(--white);
  margin-bottom: 2rem;
  font-size: 2rem;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 1rem;
}

.footer-nav a {
  color: var(--gray-300);
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-contact ul {
  list-style: none;
}

.footer-contact li {
  margin-bottom: 1rem;
}

.footer-disclaimer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  font-size: 1.4rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.footer-copyright {
  text-align: center;
  font-size: 1.4rem;
  color: var(--gray-500);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

/* ===== Responsive Styles ===== */
@media (max-width: 1100px) {
  html {
    font-size: 60%;
  }
  
  .section-grid {
    gap: 3rem;
  }
}

@media (max-width: 900px) {
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-container {
    flex-direction: column;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  h2:after {
    margin-left: auto;
    margin-right: auto;
  }
  
  .feature-list li {
    text-align: left;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  section {
    padding: 6rem 0;
  }
  
  .desktop-cta {
    display: none;
  }
  
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    position: absolute;
    top: -100vh;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: top 0.3s ease-in-out;
    z-index: 99;
  }
  
  .nav-menu.active {
    top: 6rem;
  }
  
  .nav-menu li {
    margin: 1.5rem 0;
  }
  
  .hero-section {
    padding-top: 14rem;
  }
  
  h1 {
    font-size: 3.6rem;
    word-wrap: break-word;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 2.8rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .tools-grid,
  .benefits-grid,
  .eligibility-grid,
  .why-now-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .header-container {
    padding: 0 1rem;
  }
  
  .hero-section {
    padding-top: 12rem;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .process-step,
  .tool-card,
  .benefit-card,
  .eligibility-card,
  .why-now-card {
    padding: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.hero-section, .section-content, .section-image, .tool-card, .process-step, .benefit-card, .testimonial-card {
  animation: fadeIn 0.6s ease-out forwards;
}

.tool-card:nth-child(2), .process-step:nth-child(2), .benefit-card:nth-child(2), .testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}

.tool-card:nth-child(3), .process-step:nth-child(3), .benefit-card:nth-child(3), .testimonial-card:nth-child(3) {
  animation-delay: 0.4s;
}

.process-step:nth-child(4), .benefit-card:nth-child(4) {
  animation-delay: 0.6s;
}

.process-step:nth-child(5) {
  animation-delay: 0.8s;
}

/* ===== Advanced Effects ===== */
.tool-card, .benefit-card, .process-step, .eligibility-card, .why-now-card, .testimonial-card {
  position: relative;
  overflow: hidden;
}

.tool-card:after, .benefit-card:after, .process-step:after, .eligibility-card:after, .why-now-card:after, .testimonial-card:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: translateX(-100%);
  transition: var(--transition);
  pointer-events: none;
}

.tool-card:hover:after, .benefit-card:hover:after, .process-step:hover:after, .eligibility-card:hover:after, .why-now-card:hover:after, .testimonial-card:hover:after {
  transform: translateX(100%);
  transition: 1s;
}

/* Frosted glass effect */
.final-cta-section .cta-container {
  position: relative;
}

.final-cta-section .cta-container:before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* GPU Accelerated Properties */
.hero-image img, .section-image img, .tool-card, .process-step, .benefit-card, .eligibility-card, .why-now-card, .testimonial-card {
  will-change: transform;
  transform: translateZ(0);
}

/* Neumorphism effects */
.faq-container {
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  background: var(--bg-light);
  box-shadow: 
    20px 20px 60px #d9d9d9,
    -20px -20px 60px #ffffff;
}

details {
  border: none;
  background: var(--bg-light);
  box-shadow: 
    6px 6px 12px #d9d9d9,
    -6px -6px 12px #ffffff;
}

details:hover {
  box-shadow: 
    8px 8px 16px #d9d9d9,
    -8px -8px 16px #ffffff;
}

/* 3D transform on hover */
.tool-card:hover, .benefit-card:hover {
  transform: translateY(-1rem) perspective(1000px) rotateX(5deg);
}

/* Clip-path effects */
.hero-section {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Final CTA with gradient text */
.final-cta-section .large-cta {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
  transition: all 0.5s ease;
}

.final-cta-section .large-cta:hover {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--secondary-color) 100%);
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}