/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
  /* Colors */
  --primary-500: #fa1239;
  --primary-600: #e41034;
  --bg-pink-dark: #f8d6de; /* Left side background */
  --bg-pink-light: #ffe7eb; /* Right side background */
  --primary-50: #ffe7eb;

  --neutral-900: #000000;
  --neutral-600: #000000;
  --white: #ffffff;

  /* Typography */
  --fs-h1: 64px;
  --fs-h2: 48px;
  --fs-h3: 20px;
  --fs-body: 18px;

  /* Spacing & Layout */
  --spacing-section: 50px;
  --container-width: 1400px;
  --nav-height: 100px;
}

* {
  box-sizing: border-box;
}

/* CLEAN CODE RESET: Remove all default margins */
body,
h1,
h2,
h3,
h4,
p,
ul,
li,
figure,
button {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Figtree", sans-serif;
  color: var(--neutral-600);
  line-height: 34px;
  font-size: var(--fs-body);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  padding-inline: 50px;
  margin: auto;
}

.text-center {
  text-align: center;
  align-items: center;
}

.text-red {
  color: var(--primary-500);
}
.text-white {
  color: var(--white);
}
.bg-pink-light {
  background-color: #ffe7eb;
}

.section-padding {
  padding-block: var(--spacing-section);
}

.tag {
  display: inline-block;
  background: #fd92a44d;
  color: #000;
  padding: 5px 10px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  border-radius: 6px;
}

.tag-dark {
  color: #000;
  background: #cf7d8b;
}

.tag-dark-pink {
  color: #000;
  background: #fd92a4;
}

/* Typography */
h1,
h2,
h3,
h4 {
  color: var(--neutral-900);
  font-weight: 700;
  line-height: 1.4;
}
h1 {
  font-size: var(--fs-h1);
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
}
h3 {
  font-size: 24px;
}
h4 {
  font-size: 20px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 24px;
  border-radius: 30px;
  font-weight: 500;
  font-size: 18px;
  line-height: auto;
  white-space: nowrap;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Button Variants */
.btn-primary,
.btn-pill-primary {
  background-color: var(--primary-500);
  color: var(--white);
  border: 1px solid var(--primary-500);
  box-shadow: 0 4px 15px rgba(250, 18, 57, 0.3);
}

.btn-primary:hover,
.btn-pill-primary:hover {
  background: white;
  color: var(--primary-500);
  border: 1px solid rgba(250, 18, 57);
  box-shadow: 0 0 12px 0 rgba(250, 18, 57, 0.58);
}

.btn-white,
.btn-pill-white {
  background: white;
  color: var(--primary-500);
  border: 1px solid rgba(250, 18, 57);
  box-shadow: 0 0 12px 0 rgba(250, 18, 57, 0.58);
}

.btn-white:hover,
.btn-pill-white:hover {
  background-color: var(--primary-500);
  color: var(--white);
  border: 1px solid var(--white);
  box-shadow: 0 4px 15px rgba(250, 18, 57, 0.3);
}

/* Hero "Resume Packages" Button */
.btn-outline,
.btn-pill-outline-red {
  background-color: var(--white);
  color: var(--primary-500);
  border: 1px solid var(--primary-500);
}
.btn-outline:hover,
.btn-pill-outline-red:hover {
  background-color: var(--bg-pink-light);
}

.btn-white-outline,
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid white;
}

.btn-white-outline:hover,
.btn-outline-white:hover {
  background: white;
  color: var(--primary-500);
  border: 1px solid rgba(250, 18, 57);
  box-shadow: 0 0 12px 0 rgba(250, 18, 57, 0.58);
}

/* =========================================
   3. DESKTOP STYLES (Default > 1024px)
   ========================================= */

/* --- Split Background Logic --- */
.navbar,
.hero {
  /* Hard stop gradient at 45% to create the split look */
  background: linear-gradient(
    90deg,
    var(--bg-pink-dark) 50%,
    var(--bg-pink-light) 50%
  );
}

/* --- Navbar --- */
.navbar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #fa1239;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  font-size: 18px;
  font-weight: 500;
  color: #282828;
  padding: 10px 5px;
}
.nav-links a:hover {
  color: var(--primary-500);
  border-bottom: 2px solid #fa1239;
}

.nav-links a.active {
  color: var(--primary-500);
  border-bottom: 2px solid #fa1239;
}

.desktop-buttons,
.desktop-actions {
  display: flex;
  gap: 24px;
}

/* Hide Mobile Controls on Desktop */
.mobile-controls {
  display: none;
}

/* =========================================
   MOBILE SIDEBAR MENU
   ========================================= */

/* The dark transparent background overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
}

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

/* The Sidebar Container */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -100%; /* Hidden off-screen initially */
  width: 60%; /* Covers most of the mobile screen */
  max-width: 470px;
  height: 100vh;
  background-color: #ffe3e8; /* The pink background color */
  z-index: 1002;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-sidebar.active {
  right: 0; /* Slides in */
}

/* Header (Logo + Close Button) */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
}

.sidebar-logo img {
  height: 40px;
  width: auto;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 10000;
}

.close-btn img {
  width: 40px;
  height: 40px;
}

/* Navigation Links */
.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 0 40px;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 18px;
  font-weight: 500;
  color: var(--neutral-900);
  text-decoration: none;
  padding: 10px;
}

.sidebar-nav li a:hover {
  color: var(--primary-500);
}

.sidebar-nav li a:hover .nav-icon {
  /* This calculates the exact shift from black to #fa1239 */
  filter: invert(16%) sepia(99%) saturate(6669%) hue-rotate(345deg)
    brightness(98%) contrast(98%);
}

.sidebar-nav li a.active {
  color: var(--primary-500);
}

.sidebar-nav li a.active .nav-icon {
  /* This calculates the exact shift from black to #fa1239 */
  filter: invert(16%) sepia(99%) saturate(6669%) hue-rotate(345deg)
    brightness(98%) contrast(98%);
}

/* Icons next to links */
.nav-icon {
  height: auto;
  width: auto;
}

/* Sidebar Buttons */
.sidebar-footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 30px;
  max-width: 395px;
  width: 100%;
  margin: 60px auto;
}

.sidebar-footer .btn {
  max-width: 100%;
  width: 100%;
}

.about-hero,
.page-hero {
  height: 270px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../assets/images/ats-software-resume-parsing-technology.png") no-repeat
      center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.about-hero h1,
.page-hero h1 {
  color: var(--white);
  font-weight: 600;
}

.about-hero .text-center,
.page-hero .text-center {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.breadcrumb-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--neutral-900);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.breadcrumb-pill a {
  color: var(--neutral-900);
}

.breadcrumb-pill .divider {
  color: #000;
  font-size: 15px;
  font-weight: 500;
  border: none;
}

/* --- Hero Section --- */
.hero {
  padding-block: 0px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.text-group {
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.text-group p {
  max-width: 485px;
  width: 100%;
}

.highlight-wrapper,
.highlight-text {
  position: relative;
  display: inline-block;
  color: var(--primary-500);
}

.underline-img,
.highlight-text::after {
  position: absolute;
  bottom: -6px;
  left: 0;
  height: auto;
}

@keyframes draw-underline {
  from {
    clip-path: inset(0 100% 0 0); /* 100% hidden from the right */
  }
  to {
    clip-path: inset(0 0 0 0); /* Fully visible */
  }
}

/* Apply it to the underline image */
.highlight-wrapper .underline-img {
  /* Runs once for 1.5 seconds, waits 0.5s before starting */
  animation: draw-underline 1.5s ease-out 0.5s forwards;

  /* Ensure it starts hidden before animation kicks in */
  clip-path: inset(0 100% 0 0);
}

.cta-group {
  display: flex;
  gap: 24px;
}

/* Visual Side */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  width: fit-content;
}

/* Floating Elements (Badges & Decorations) */
.badge,
.hero-deco {
  position: absolute;
  background: white;
  display: flex;
  align-items: center;
  z-index: 2;
}

/* Common Badge Style */
.badge {
  padding: 25px 15px;
  border-radius: 10px;
}

/* Decoration Style (Book / Resume Icon) */
.hero-deco {
  background: transparent; /* No white background for these icons typically, or subtle */
  z-index: 1;
}

/* Resume Icon (Left) */
.deco-resume {
  top: 2%;
  left: 7%;
  width: 142px;
  height: auto;
  animation-delay: 0s;
}

/* Book Icon (Right) */
.deco-book {
  top: 30%;
  right: 5%;
  width: 115px;
  height: auto;
  animation-delay: 2s;
}

@keyframes float-vertical {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px); /* Moves up slightly */
  }
  100% {
    transform: translateY(0px);
  }
}

.hero-deco,
.badge {
  animation: float-vertical 4s ease-in-out infinite;
}

/* Badge Positioning */
.badge-rating {
  bottom: 15%;
  left: 2%;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  background: #fff;
  backdrop-filter: blur(12px);
  animation-delay: 1s;
}
.badge-rating .score {
  font-size: 64px;
  font-weight: 600;
  color: #1cb098;
  line-height: 1;
}

.text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.badge-rating .label {
  font-size: 24px;
  color: #000;
  font-weight: 600;
}

.badge-count {
  top: 41%;
  max-width: 290px;
  padding: 30px 30px;
  right: 1%;
  gap: 16px;
  animation-delay: 2s;
  flex-direction: row;
  animation-delay: 3s;
}

.badge-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}
.badge-icon img {
  width: 80px;
  height: auto;
}

.badge-text {
  display: flex;
  flex-direction: column;
}
.badge-text .count {
  line-height: 1;
  font-size: 30px;
  font-weight: 800;
  color: var(--neutral-900);
}
.badge-text .label {
  text-align: left;
  font-size: 17px;
  line-height: 1.2;
  color: #666;
  font-weight: 500;
}

/* =========================================
   5. FEATURES SECTION (NEWLY STYLED)
   ========================================= */
.section-layout {
  max-width: 1340px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.section-header {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: white;
  padding: 40px 20px;
  border-radius: 20px;
  /* Soft shadow as seen in screenshot */
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.08);
  border: 1px solid #f9f9f9;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.card-icon {
  height: 150px;
  width: auto;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}

.feature-card p {
  color: #595959;
  font-size: 18px;
  line-height: 1.6;
}

/* Why Works */
.why-works {
  background: #1b2927;
  color: white;
}
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.feature-list li {
  background: #283634;
  display: flex;
  padding: 20px;
  gap: 26px;
  border-radius: 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent; /* Reserve space for border to prevent jumping */
  position: relative;
}

/* The Hover Effect */
.feature-list li:hover {
  background-color: #324240; /* Slightly lighter than the original #283634 */
  transform: translateX(8px); /* Slides the card to the right */
  border-color: var(--primary-500); /* Uses your red brand color */
  box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.3); /* Adds depth behind it */
}

.feature-list li .text-group {
  gap: 10px;
}
.list-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.list-icon img {
  width: 24px;
  aspect-ratio: 1/1;
}
.feature-list h3 {
  font-size: 20px;
  color: white;
}
.feature-list p {
  color: #fff;
  font-size: 18px;
}

.testimonials {
  /* Adds a subtle white-to-pink shade overlay on top of the image */
  background:
    linear-gradient(rgba(255, 231, 235, 0.8), rgba(255, 231, 235, 0.8)),
    url("../assets/images/test-bg.png");

  /* Ensures the image covers the area and stays centered */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* Testimonials */
.testimonial-card {
  background: white;
  border-radius: 20px;
  padding: 50px 40px;
  overflow: hidden;
  display: flex;
  gap: 30px;
}
.testimonial-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: center;
}

.divider {
  border: 1px solid #000000;
}

.test-main {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.role {
  display: flex;
  align-items: center;
  gap: 16px;
}

.role strong {
  font-size: 20px;
}
.testimonial-image {
  display: flex;
  align-items: center;
  flex: 0 0 326px;
}
.testimonial-image img {
  max-width: 326px;
  width: 100%;
  aspect-ratio: 326/367;
  object-fit: cover;
  transition: transform 0.4s ease-out;
}

.testimonial-image img:hover {
  transform: scale(1.02);
}

.nav-arrows {
  display: flex;
  gap: 10px;
}

/* Base button */
.arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
}

/* Arrow shape */
.arrow-btn::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
}

/* Previous (filled red) */
.arrow-btn.prev {
  background: #fa1239;
  color: #fff;
  border: none;
}

.arrow-btn.prev::before {
  transform: rotate(-135deg);
}

/* Next (outline red) */
.arrow-btn.next {
  background: transparent;
  color: #fa1239;
  border: 2px solid #fa1239;
}

/* Hover (optional) */
.arrow-btn:hover {
  transform: translateY(-2px);
}

/* =========================================
   AI WARNING SECTION (DARK THEME)
   ========================================= */
/* --- AI Warning Section Specifics --- */
.ai-header-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr;
  align-items: start;
  gap: 40px;
  margin-bottom: 20px;
}

.ai-header-grid h2 {
  max-width: 680px;
}

.ai-header-grid .subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: #000;
  max-width: 445px;
}

.ai-warning .split-layout {
  display: flex;
  justify-content: space-between;
}

/* Image with Red Decorative Shapes */
.decorated-image-container {
  position: relative;
  display: inline-block;
}

.ai-main-img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 600 / 620;
  transition: transform 0.4s ease-out;
}

.ai-main-img:hover {
  transform: scale(1.02);
}

/* Warning List with Dividers */
.warning-list {
  list-style: none;
  max-width: 494px;
}

.warning-list li {
  display: flex;
  gap: 20px;
  padding: 28px 0px;
  border-bottom: 1px solid #fc607a; /* Soft pink divider */
  align-items: flex-start;
}

.warning-list li .text-group {
  gap: 10px;
}

.warning-list li:first-child {
  padding: 0px 0px 28px;
}

.warning-list li:last-child {
  border-bottom: none;
  padding: 28px 0px 0px;
}

.warning-list .cross-icon {
  width: 28px;
  height: 28px;
  aspect-ratio: 1/1;
}

.warning-list strong {
  font-size: 24px;
  color: #000;
  display: block;
}

/* =========================================
   FOOTER CONTAINER (Dark)
   ========================================= */
.footer-dark {
  background-color: #1b0506;
  color: #fff;
  /* Extra top padding to give the CTA card breathing room */
  padding-top: 40px;
  position: relative;
  overflow: hidden;
}

/* =========================================
   CTA CARD (Inside Footer)
   ========================================= */
.cta-card {
  max-width: 1340px;
  width: 95%;
  margin: 0 auto;
  margin-bottom: 40px;
  background: #fb2a4d; /* #FA1239E6 */
  border-radius: 10px;
  padding: 40px 0px;
  position: relative;
  overflow: hidden;
  color: white;
}

.cta-card h2 {
  color: white;
  font-size: 30px;
  line-height: 42px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-card .split-layout {
  grid-template-columns: max-content auto;
  align-items: center;
  gap: 70px;
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  padding: 20px;
}

.cta-content-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  max-width: 680px;
  margin: 0 auto;
}

.cta-image-side {
  flex: 1;
  display: flex;
  justify-content: center;
}
.cta-image-side img {
  max-width: 100%;
  height: auto;
}

.cta-group {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}

/* --- Floating Decorations --- */
.cta-deco,
.cta-floating-icon {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

/* Existing Decor */
.deco-waves {
  top: 5%;
  left: 90%;
  width: 100%;
}
.deco-waves img {
  width: 100%;
  max-width: 131px;
}

.deco-circles {
  top: 25px;
  left: -7%;
}

.deco-circles img {
  aspect-ratio: 332 / 306;
  height: 306px;
}

.deco-dots {
  bottom: 5%;
  left: 94%;
  width: 60px;
}

/* Icon Positioning */
.float-mail {
  top: 2%;
  left: 7%;
  width: 54px;
}

/* NEW: Phone Icon Position */
.float-phone {
  top: 37%;
  right: 33%;
  width: 56px;
}

/* NEW: Footer Dots Positions */
.footer-dot1 {
  bottom: 7%;
  left: 20%;
  width: 17px;
}
.footer-dot2 {
  bottom: 7%;
  right: 35%;
  width: 17px;
}

/* =========================================
   FOOTER CONTENT ALIGNMENT
   ========================================= */
.footer-layout {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 2;
  padding: 0;
  max-width: 100%;
}

.footer-grid {
  max-width: 1400px;
  padding-inline: 50px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin: 0 auto;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-col-links {
  gap: 26px;
}

.footer-logo img {
  height: 42px;
  width: auto;
}
.brand-col p {
  font-size: 18px;
  line-height: 1.6;
  color: #d0d0d0;
}

.footer-col h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #fff;
  font-size: 18px;
  line-height: 1.68;
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer-links a img {
  width: 24px;
}

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

.footer-links a:hover img {
  filter: brightness(0) saturate(100%) invert(18%) sepia(95%) saturate(5200%)
    hue-rotate(345deg) brightness(100%) contrast(100%);
}

.footer-socials {
  display: flex;
  gap: 16px;
}
.footer-book {
  position: absolute;
  bottom: 12%;
  right: 2%;
  pointer-events: none;
}

.footer-bottom {
  background-color: #0c0202;
  padding: 10px 0px;
  font-size: 16px;
  z-index: 2;
}

.social-btn {
  background-color: var(--primary-500);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy spring effect */
}

.social-btn:hover {
  background-color: #ffe7eb;
}

.social-btn:hover img {
  filter: brightness(0) saturate(100%) invert(16%) sepia(88%) saturate(3300%)
    hue-rotate(345deg) brightness(85%) contrast(95%);
}

@media (min-width: 1024px) and (max-width: 1240px) {
  .hero-grid {
    padding-inline: 20px;
  }

  .navbar {
    height: 90px;
  }

  .nav-container {
    padding-inline: 20px;
  }

  .logo img {
    height: 35px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    padding: 10px 5px;
  }

  .desktop-buttons,
  .desktop-actions {
    gap: 10px;
  }

  .hero-content,
  .text-group {
    gap: 15px;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px;
    gap: 40px;
  }

  .cta-card .split-layout {
    gap: 30px;
  }

  .float-mail {
    width: 40px;
  }

  .deco-circles {
    left: -10%;
  }
  .float-phone {
    width: 40px;
  }

  .deco-dots {
    width: 50px;
  }
  .deco-waves img {
    width: 100%;
    max-width: 90px;
  }
}

/* =========================================
   5. TABLET BREAKPOINT (Max 1024px)
   ========================================= */
@media (max-width: 1024px) {
  :root {
    --fs-h1: 38px;
    --spacing-section: 60px;
    --fs-h2: 32px;
  }

  h4 {
    font-size: 24px;
  }

  .container {
    padding-inline: 40px;
  }

  /* --- Navbar Reset --- */
  .navbar {
    height: 80px;
    background: white; /* Turn Navbar White */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .logo img {
    height: 38px;
  }

  /* Hide Desktop Elements */
  .nav-links,
  .desktop-buttons,
  .desktop-actions {
    display: none;
  }

  /* Show Mobile Controls */
  .mobile-controls {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .menu-btn,
  .burger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: block; /* Ensure visible */
  }
  .menu-btn img,
  .burger-menu img {
    width: 42px;
  }

  .about-hero,
  .page-hero {
    height: 210px;
  }

  /* --- Hero Reset --- */
  .hero {
    background: linear-gradient(
      180deg,
      var(--bg-pink-dark) 50%,
      var(--bg-pink-light) 50%
    );
  }

  .hero-content {
    order: 1;
    padding: 35px 25px 20px;
    gap: 36px;
  }

  .text-group {
    gap: 18px;
  }

  .text-group h1 {
    max-width: 575px;
    width: 100%;
    margin: 0 auto;
  }

  .text-group p {
    max-width: 100%;
  }

  .underline-img {
    width: 217px;
  }

  .hero-visual {
    align-items: center;
    order: 2;
  }

  .hero-img {
    width: 295px;
    aspect-ratio: 295/396;
  }

  .hero-grid {
    grid-template-columns: 1fr; /* Stack Vertically */
    text-align: center;
  }

  .hero-content {
    align-items: center;
    padding-right: 0;
    order: 1; /* Content below image on tablet, matching screenshot stacking */
  }

  .text-group p {
    margin: 0 auto;
  }

  /* Image & Badges */
  .hero-image-wrapper {
    padding-top: 20px;
    margin: 0 auto;
  }

  .badge-rating {
    padding: 12px 8px;
    left: -10px;
    bottom: 50px;
    width: 206px;
    gap: 10px;
    border-radius: 5px;
  }

  .badge-rating .score {
    font-size: 30px;
  }

  .text {
    gap: 0;
  }

  .badge-rating .label {
    font-size: 17px;
  }

  .badge-rating .stars {
    width: 51px;
  }

  .badge-count {
    padding: 6px 10px;
    gap: 10px;
    left: 50%;
    top: 45%;
    width: 182px;
    border-radius: 5px;
  }

  .badge-text {
    gap: 0;
  }

  .badge-text .count {
    text-align: left;
    font-size: 18px;
  }

  .deco-resume {
    left: 20px;
    top: 10%;
    width: 72px;
  }
  .deco-book {
    right: 20px;
    top: 32%;
    width: 58px;
  }

  .badge-icon {
    width: 34px;
    height: 34px;
  }

  .badge-icon img {
    width: 34px;
    height: auto;
  }

  /* General Layouts */
  .container {
    max-width: 960px;
  }

  .section-header {
    gap: 15px;
  }

  .feature-card h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
  }

  .feature-card p {
    line-height: 1.8;
  }

  .feature-list h3 {
    font-size: 24px;
    font-weight: 600;
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .image-side {
    margin: 0 auto;
  }

  .rounded-img {
    max-width: 685px;
    width: 100%;
  }

  .feature-list {
    gap: 12px;
  }
  .testimonial-card {
    flex-direction: column-reverse;
    align-items: center;
    padding: 50px 30px;
  }
  .testimonial-image {
    flex: 0 0 326px;
  }

  .ai-header-grid {
    grid-template-columns: 1fr;
    align-items: center;
    gap: 24px;
    margin-bottom: 0px;
    margin: 0 auto;
  }

  .ai-header-grid h2 {
    max-width: 470px;
    text-align: center;
    margin: 0 auto;
  }

  .ai-header-grid .subtitle {
    max-width: 100%;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 15px;
  }

  .ai-warning .split-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  /* Warning List with Dividers */
  .warning-list {
    list-style: none;
    max-width: 96%;
    margin: 0 auto;
  }

  .warning-list li {
    padding: 24px 0px;
  }

  .warning-list li:first-child {
    padding: 0px 0px 24px;
  }

  .warning-list li .text-group {
    gap: 8px;
  }

  .warning-list .cross-icon {
    width: 24px;
    height: 24px;
  }

  .cta-card {
    width: 90%;
    padding: 10px 40px;
    border-radius: 12px;
  }

  .btn {
    max-width: fit-content;
    padding: 7px 20px;
  }

  .cta-card .split-layout {
    grid-template-columns: max-content 137px;
    justify-content: space-between;
    gap: 0%;
    max-width: 640px;
    padding: 10px;
  }
  .cta-group {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }

  .hero-content .cta-group {
    flex-direction: row;
  }

  .cta-card h2 {
    font-size: 20px;
    line-height: 30px;
  }

  .cta-image-side {
    max-width: 170px;
  }

  .cta-content-side {
    gap: 16px;
  }
  .deco-circles {
    top: 20%;
    left: -18%;
  }

  .float-mail {
    top: 35%;
    left: 12%;
    width: 27px;
  }

  .float-phone {
    top: 35%;
    right: 33%;
    width: 29px;
  }
  .deco-waves {
    top: 5%;
    left: 88%;
    width: 100%;
  }
  .deco-waves img {
    width: 100%;
    max-width: 67px;
  }

  .deco-dots {
    bottom: 10%;
    left: 94%;
    width: 31px;
  }

  .footer-dot1 {
    display: none;
  }

  .footer-dot2 {
    bottom: 15%;
    right: 26%;
    width: 9px;
  }

  .deco-circles img {
    height: 156px;
  }

  .footer-logo img {
    height: 39px;
    width: auto;
  }

  .footer-layout {
    padding: 0;
    max-width: 100%;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    padding: 10px 40px;
    gap: 24px 50px;
  }

  .footer-grid .footer-col:nth-child(4) {
    transform: translateY(-80%);
  }

  .social-btn {
    width: 36px;
    height: 36px;
  }

  .social-btn img {
    width: 21px;
    height: 21px;
  }

  .footer-book {
    display: none;
  }

  .footer-col {
    gap: 16px;
  }

  .brand-col {
    gap: 24px;
  }

  .footer-col-links {
    gap: 24px;
  }

  .footer-col h3 {
    font-size: 24px;
    font-weight: 600;
  }
}

/* =========================================
   6. MOBILE BREAKPOINT (Max 767px)
   ========================================= */
@media (max-width: 767px) {
  :root {
    --fs-h1: 34px;
    --fs-h2: 30px;
    --fs-body: 16px;
    --spacing-section: 40px;
  }

  h4 {
    font-size: 20px;
  }

  p {
    font-size: 18px;
  }

  .container {
    padding-inline: 20px;
  }
  .navbar {
    height: 55px;
  }

  .logo img {
    height: 23px;
  }

  .menu-btn img,
  .burger-menu img {
    width: 34px;
  }

  /* --- Navbar Changes --- */
  /* Hide the Contact Button on Mobile, keep Menu */
  .tablet-contact-btn {
    display: none;
  }

  .mobile-sidebar {
    width: 85%;
  }
  .sidebar-header {
    padding: 12px 16px;
  }

  .sidebar-nav {
    padding: 20px 20px 0;
  }

  .sidebar-footer {
    width: 90%;
    margin: 30px auto;
  }

  .sidebar-logo img {
    height: 26px;
  }

  .close-btn img {
    width: 34px;
    height: 34px;
  }

  .about-hero,
  .page-hero {
    height: 198px;
  }

  .about-hero .text-center,
  .page-hero .text-center {
    padding-bottom: 0;
  }

  /* --- Hero Changes --- */
  .hero {
    padding: 20px 0px 0px;
    background: linear-gradient(
      180deg,
      var(--bg-pink-dark) 60%,
      var(--bg-pink-light) 50%
    );
  }

  .hero-grid {
    padding: 0;
    grid-template-columns: auto;
  }

  .underline-img {
    display: none;
  }

  .cta-group {
    flex-direction: column;
    gap: 24px;
  }

  .hero-content {
    background: var(--bg-pink-dark);
    padding: 0 25px 20px;
    gap: 24px;
  }

  .hero-content .cta-group {
    flex-direction: column;
  }

  .hero-visual {
    background: var(--bg-pink-light);
  }

  .hero-img {
    width: 285px;
  }

  .badge-rating {
    left: -10%;
    bottom: 110px;
    padding: 8px 10px;
    width: 187px;
    align-items: center;
    flex-direction: row;
    gap: 8px;
    border-radius: 10px;
  }

  .badge-rating .score {
    font-size: 22px;
  }

  .badge-rating .stars {
    width: 81px;
  }
  .badge-rating .label {
    font-size: 14px;
  }

  .badge-count {
    padding: 15px 10px;
    width: 160px;
    border-radius: 10px;
    gap: 20px;
    top: 75%;
  }

  .badge-text .label {
    font-size: 11px;
  }

  /* Hide/Adjust Decorations on Mobile if too cluttered */
  .deco-resume,
  .deco-book,
  .deco-waves,
  .footer-dot1,
  .footer-dot2,
  .float-mail,
  .float-phone,
  .cta-image-side {
    display: none; /* Often cleaner to hide decorative floating icons on small mobile screens */
  }

  .section-layout {
    padding: 16px 32px;
  }

  .why-works .section-layout {
    padding: 15px 15px;
    gap: 26px;
  }

  .why-works h2 {
    max-width: 75%;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-header {
    gap: 10px;
  }

  .feature-card {
    padding: 40px 27px;
  }

  .feature-card h3 {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
  }

  .feature-card p {
    line-height: 1.6;
  }

  .feature-list h3 {
    font-size: 20px;
    font-weight: 700;
  }

  /* Footer & Grids */
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 0 20px 30px;
    gap: 26px;
  }

  .footer-grid .footer-col:nth-child(4) {
    transform: translateY(0%);
  }

  .testimonials .section-layout {
    gap: 30px;
    padding: 20px;
  }

  .testimonial-card {
    padding: 20px;
  }

  .testimonial-image {
    display: none;
  }

  .testimonial-content p {
    font-size: 18px;
  }

  .ai-header-grid .subtitle {
    padding: 0 15px;
  }

  .ai-warning .split-layout {
    gap: 26px;
  }

  .footer-layout {
    padding: 0;
  }

  .footer-grid {
    margin: 0;
  }
  .footer-logo img {
    height: 23px;
    width: auto;
  }

  .brand-col {
    max-width: 90%;
    gap: 16px;
  }
  .footer-col h3 {
    font-size: 20px;
    font-weight: 700;
  }
  .footer-col {
    gap: 16px;
  }
  .social-btn {
    width: 34px;
    height: 34px;
  }

  .social-btn img {
    width: 20px;
    height: 20px;
  }

  .footer-col-links {
    gap: 26px;
  }

  .social-icons {
    justify-content: center;
  }

  .cta-card .split-layout {
    padding: 10px 0px;
  }

  .cta-group .btn-outline-white {
    padding: 7px 10px;
  }

  .cta-card {
    padding: 30px 0px;
    border-radius: 10px;
  }
  .reverse-mobile {
    display: flex;
    flex-direction: column-reverse;
    gap: 32px;
  }

  .deco-circles {
    top: 17%;
    left: -45%;
  }

  .deco-dots {
    bottom: 50%;
    left: 93%;
  }

  .deco-circles img {
    aspect-ratio: 120 / 205;
  }

  .cta-content-side {
    max-width: 100%;
    gap: 70px;
  }

  .footer-bottom p {
    font-size: 16px;
  }
}

@media (min-width: 600px) and (max-width: 767px) {
  .deco-circles {
    left: -20%;
  }
}

@media (min-width: 510px) and (max-width: 600px) {
  .deco-circles {
    top: 20%;
    left: -25%;
  }
}

@media (min-width: 400px) and (max-width: 510px) {
  .deco-circles {
    left: -35%;
  }
}
