:root {
  --primary: #1acb96;
  --primary-dark: #15a077;
  --primary-light: #e6f7f2;
  --secondary: #373643;
  --secondary-light: #4f4d5d;
  --accent: #1acb96;
  --accent-hover: #15a077;
  --background: #ffffff;
  --background-alt: #f8fafc;
  --text: #373643;
  --text-light: #4f4d5d;
  --text-lighter: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

/* Navbar */
.navbar {
  background: var(--background);
  box-shadow: none;
  position: fixed;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  height: 80px;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  height: 70px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
}

.logo::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--primary);
  transform: rotate(45deg) translateY(-2px);
  border-radius: 2px;
  transition: var(--transition);
}

.logo:hover::after {
  transform: rotate(225deg) translateY(-2px);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

.nav-links a:not(.cta-button)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-links a:not(.cta-button):hover {
  color: var(--primary);
}

.nav-links a:not(.cta-button):hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(26, 203, 150, 0.05);
  border-radius: 50%;
  top: -200px;
  right: -100px;
  z-index: 0;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-content h1 span {
  color: var(--primary);
  position: relative;
}

.hero-content h1 span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 8px;
  background: var(--primary);
  opacity: 0.2;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-image {
  position: relative;
}

.resume-preview {
  width: 100%;
  aspect-ratio: 3/4;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  border: 1px solid var(--border);
  padding: 20px;
}

.resume-header {
  height: 60px;
  background: var(--background-alt);
  border-radius: 8px;
  margin-bottom: 20px;
}

.resume-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resume-section {
  height: 40px;
  background: var(--background-alt);
  border-radius: 6px;
}

.resume-section:nth-child(odd) {
  width: 100%;
}

.resume-section:nth-child(even) {
  width: 80%;
}

.floating-element {
  position: absolute;
  background: var(--primary);
  opacity: 0.1;
  border-radius: 50%;
  z-index: 1;
}

.floating-element.one {
  width: 100px;
  height: 100px;
  top: -30px;
  right: -20px;
  animation: float1 6s ease-in-out infinite;
}

.floating-element.two {
  width: 70px;
  height: 70px;
  bottom: 100px;
  right: -30px;
  animation: float2 8s ease-in-out infinite;
}

.floating-element.three {
  width: 50px;
  height: 50px;
  bottom: 30px;
  left: 30px;
  animation: float3 7s ease-in-out infinite;
}

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

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 15px); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, -15px); }
}

.trust-indicators {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.trust-indicators span {
  color: var(--text-light);
  font-size: 0.875rem;
}

.company-logos {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.company-logos img {
  opacity: 0.6;
  transition: var(--transition);
}

.company-logos img:hover {
  opacity: 1;
}

/* Stats Section */
.stats {
  background: linear-gradient(to right, var(--primary), #15b8a6);
  padding: 3rem 0;
  color: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-item p {
  opacity: 0.8;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Features Section */
.features {
  padding: 120px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  width: 1000px;
  height: 1000px;
  background: linear-gradient(135deg, rgba(26, 203, 150, 0.05) 0%, rgba(55, 54, 67, 0.05) 100%);
  border-radius: 50%;
  top: -400px;
  right: -200px;
  z-index: 0;
}

.subtitle {
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: block;
}

.features-header, .workflow-header, .testimonials-header, .templates-header, .pricing-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
  position: relative;
}

.features-header h2, .workflow-header h2, .testimonials-header h2, .templates-header h2, .pricing-header h2 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.features-header p, .workflow-header p, .testimonials-header p, .templates-header p, .pricing-header p {
  color: var(--text-light);
  font-size: 1.125rem;
}

.features-content {
  display: flex;
  gap: 4rem;
  align-items: center;
  position: relative;
}

/* Updated Video Styles */
.features-video {
  flex: 1;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  cursor: pointer;
  background-color: #000; /* Dark background while video loads */
}

.features-video video {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: var(--transition);
  border-radius: 30px;
  display: block;
  /* Fix for Safari */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.features-video:hover video {
  transform: scale(1.02);
}

/* Enhanced play button styles */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(26, 203, 150, 0.3);
}

.play-button::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
      transform: scale(1);
      opacity: 0.3;
  }
  70% {
      transform: scale(1.5);
      opacity: 0;
  }
  100% {
      transform: scale(1.5);
      opacity: 0;
  }
}

.play-button span {
  color: white;
  font-size: 32px;
  margin-left: 6px;
}

.play-button:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--primary-dark);
}

.features-grid {
  flex: 1;
  display: grid;
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--border);
  z-index: 1;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 203, 150, 0.05) 0%, rgba(255, 255, 255, 0) 60%);
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 203, 150, 0.1);
  border-radius: 16px;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: rotate(-10deg);
}

.feature-card h3 {
  color: var(--secondary);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Workflow Section */
.workflow {
  padding: 120px 0;
  background: var(--background-alt);
  position: relative;
  overflow: hidden;
}

.workflow-steps {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.workflow-steps::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 40px;
  width: 2px;
  background: var(--primary);
  opacity: 0.2;
}

.workflow-step {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  position: relative;
}

.workflow-step:last-child {
  margin-bottom: 0;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 20px rgba(26, 203, 150, 0.2);
}

.step-content {
  flex: 1;
  padding-top: 0.5rem;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.step-content p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* Testimonials Section */
.testimonials {
  padding: 120px 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
}

.testimonials::before, .testimonials::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(26, 203, 150, 0.05);
  border-radius: 50%;
  z-index: 0;
}

.testimonials::before {
  top: -100px;
  right: -100px;
}

.testimonials::after {
  bottom: -100px;
  left: -100px;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  position: relative;
  display: none;
}

.testimonial-card.active {
  display: block;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 100px;
  color: var(--primary);
  opacity: 0.1;
  font-family: serif;
  line-height: 1;
}

.testimonial-content {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--text-light);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-light);
}

.testimonial-author h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--secondary);
}

.testimonial-author p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  transform: scale(1.3);
}

/* Templates Section */
.templates {
  padding: 120px 0;
  background: var(--background);
}

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

.template-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border);
}

.template-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.template-image {
  position: relative;
  overflow: hidden;
}

.template-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.template-card:hover img {
  transform: scale(1.05);
}

.template-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 203, 150, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.template-card:hover .template-overlay {
  opacity: 1;
}

.preview-button {
  padding: 0.75rem 1.5rem;
  background: white;
  color: var(--primary);
  border-radius: 30px;
  font-weight: 600;
  transform: translateY(20px);
  transition: var(--transition);
}

.template-card:hover .preview-button {
  transform: translateY(0);
}

.preview-button:hover {
  background: var(--secondary);
  color: white;
}

.template-card h3 {
  padding: 1.5rem;
  text-align: center;
  font-size: 1.25rem;
  color: var(--secondary);
}

/* Pricing Section */
.pricing {
  padding: 120px 0;
  background: var(--background-alt);
  position: relative;
  overflow: hidden;
}

.pricing::before {
  content: '';
  position: absolute;
  width: 1000px;
  height: 1000px;
  background: linear-gradient(135deg, rgba(26, 203, 150, 0.05) 0%, rgba(55, 54, 67, 0.05) 100%);
  border-radius: 50%;
  bottom: -400px;
  left: -200px;
  z-index: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pricing-card {
  padding: 3rem 2rem;
  background: white;
  border-radius: 20px;
  text-align: center;
  position: relative;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  transform: translateY(-20px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
  transform: translateY(-25px);
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge.accent {
  background: var(--secondary);
}

.pricing-card h3 {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.price {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 1.5rem 0;
  color: var(--primary);
  line-height: 1;
}

.price span {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 400;
}

.savings {
  display: inline-block;
  background: rgba(26, 203, 150, 0.1);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
}

.pricing-card ul li {
  margin: 1rem 0;
  color: var(--text-light);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
}

.pricing-card ul li.disabled {
  opacity: 0.7;
}

.pricing-card ul li.disabled::before {
  content: '✗';
  color: var(--text-lighter);
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(to right, var(--primary), #15b8a6);
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-section::before, .cta-section::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.cta-section::before {
  width: 300px;
  height: 300px;
  top: -150px;
  right: -100px;
}

.cta-section::after {
  width: 200px;
  height: 200px;
  bottom: -100px;
  left: 10%;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

.cta-button.large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  border-radius: 8px;
}

.no-credit-card {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: white;
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-section h4 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.footer-section p {
  color: var(--text-lighter);
  margin-bottom: 1.5rem;
}

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

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-section a {
  display: block;
  color: var(--text-lighter);
  text-decoration: none;
  margin: 0.75rem 0;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

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

/* Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
  z-index: -1;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(26, 203, 150, 0.3);
}

.cta-button:hover::before {
  left: 0;
}

.cta-button .arrow-icon {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.cta-button:hover .arrow-icon {
  transform: translateX(4px);
}

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

.cta-button.outline:hover {
  background: rgba(26, 203, 150, 0.05);
}

.cta-button.secondary {
  background: var(--secondary);
}

.cta-button.secondary:hover {
  box-shadow: 0 10px 25px rgba(55, 54, 67, 0.2);
}

/* Animations */
[data-aos] {
  opacity: 0;
  transition: all 0.8s ease;
}

[data-aos="fade-up"] {
  transform: translateY(50px);
}

[data-aos="fade-right"] {
  transform: translateX(-50px);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .pricing-grid {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .pricing-card.featured {
      transform: none;
  }

  .pricing-card.featured:hover {
      transform: translateY(-10px);
  }
}

@media (max-width: 768px) {
  h1 {
      font-size: 2.5rem !important;
  }
  
  h2 {
      font-size: 2rem !important;
  }

  .hero .container {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 3rem;
  }

  .hero-content h1 {
      font-size: 2.5rem;
  }

  .hero-buttons {
      justify-content: center;
  }

  .trust-indicators {
      flex-direction: column;
      gap: 1rem;
  }

  .nav-links {
      display: none;
  }

  .mobile-menu-toggle {
      display: flex;
  }

  .features-content {
      flex-direction: column;
  }

  .features-video {
      width: 100%;
      margin-bottom: 3rem;
  }
  
  .features-grid {
      width: 100%;
  }
}

@media (max-width: 576px) {
  .container {
      padding: 0 1.5rem;
  }
  
  .hero {
      padding: 120px 0 60px;
  }
  
  .hero-content h1 {
      font-size: 2rem;
  }
  
  .hero-buttons {
      flex-direction: column;
      width: 100%;
  }
  
  .hero-buttons a {
      width: 100%;
  }
  
  .feature-card, .pricing-card, .template-card {
      padding: 1.5rem;
  }
  
  .price {
      font-size: 2.5rem;
  }
  
  .workflow-step {
      flex-direction: column;
      text-align: center;
      align-items: center;
  }
  
  .workflow-steps::before {
      display: none;
  }
}

.resume-preview-image {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

/* Modal styles */
.template-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.template-modal-content {
  position: relative;
  background-color: white;
  margin: auto;
  padding: 0;
  max-width: 80%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.template-modal-close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 2001;
}

#template-modal-image {
  width: 100%;
  height: auto;
  display: block;
}

.template-image img {
  width: 100%;
  height: 220px;
  object-fit: contain; /* Change from cover to contain */
  background-color: #f8fafc; /* Light background to make template borders visible */
  transition: var(--transition);
}