/* ============================================================
   HOME.CSS — SaaS CORPORATE STARTUP REDESIGN
   ============================================================ */

/* ── HERO SECTION ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  padding: 120px 1.5rem 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at top right, rgba(255, 46, 126, 0.05), transparent 40%),
    radial-gradient(circle at bottom left, rgba(11, 31, 58, 0.03), transparent 40%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(255, 46, 126, 0.08);
  top: -100px;
  right: -100px;
  animation: float 15s infinite alternate ease-in-out;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(11, 31, 58, 0.05);
  bottom: 10%;
  left: -200px;
  animation: float 20s infinite alternate-reverse ease-in-out;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(30px, 50px);
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-image-col {
    display: none;
  }

  /* Hide illustration on small screens for cleaner look */
}

/* Hero Text */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-blue-light);
  color: var(--brand-navy);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-title {
  margin-bottom: 1.25rem;
  color: var(--brand-navy);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 540px;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .hero-subtitle {
    margin: 0 auto 2.5rem;
  }
}

/* Hero Image & Floating Cards */
.hero-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 24px;
  z-index: 1;
}

.hero-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

.floating-card {
  position: absolute;
  background: var(--bg-card);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  animation: float-card 6s ease-in-out infinite alternate;
  z-index: 2;
}

.fc-1 {
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.fc-2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 3s;
}

@keyframes float-card {
  0% {
    transform: translateY(0px);
  }

  100% {
    transform: translateY(-15px);
  }
}

.fc-icon {
  font-size: 1.5rem;
  background: var(--bg-main);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.fc-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--brand-navy);
  font-family: 'Poppins', sans-serif;
}

.fc-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── SEARCH BOX ────────────────────────────────────────────── */
.search-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0.5rem;
  width: 100%;
  max-width: 700px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

@media (max-width: 992px) {
  .search-box {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .search-box {
    flex-direction: column;
    border-radius: 16px;
    padding: 1rem;
    gap: 0.5rem;
  }

  .search-divider,
  .location-icon {
    display: none;
  }

  .search-box .btn-primary {
    width: 100%;
    margin-top: 0.5rem;
  }
}

.search-box:focus-within {
  border-color: rgba(11, 31, 58, 0.2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.search-icon-wrap {
  display: flex;
  align-items: center;
  padding: 0 0.8rem 0 1rem;
  color: var(--text-muted);
}

.search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 0.9rem 0.5rem;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  outline: none;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-divider {
  width: 1px;
  height: 32px;
  background: var(--border-light);
  flex-shrink: 0;
  margin: 0 0.5rem;
}

/* Quick Filters */
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 992px) {
  .quick-filters {
    justify-content: center;
  }
}

.pill {
  padding: 0.4rem 1.25rem;
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.pill:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
  transform: translateY(-1px);
}

/* Trust Strip */
.trust-strip {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .trust-strip {
    justify-content: center;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.trust-item svg {
  stroke: var(--brand-pink);
}

/* ── CATEGORIES ────────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  border-radius: 16px;
}

.category-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
  background: var(--brand-blue-light);
}

.category-card:hover .category-icon-wrap {
  transform: scale(1.1) rotate(-5deg);
  background: var(--brand-navy);
  color: #fff;
}

.cat-tech .category-icon-wrap {
  color: #3b82f6;
}

.cat-finance .category-icon-wrap {
  color: #10b981;
}

.cat-design .category-icon-wrap {
  color: #f59e0b;
}

.cat-marketing .category-icon-wrap {
  color: #8b5cf6;
}

.cat-healthcare .category-icon-wrap {
  color: #ef4444;
}

.cat-education .category-icon-wrap {
  color: #06b6d4;
}

.cat-engineering .category-icon-wrap {
  color: #f59e0b;
}

.cat-sales .category-icon-wrap {
  color: #8b5cf6;
}

/* ── COMPANY SHOWCASE ──────────────────────────────────────── */
.company-showcase {
  overflow: hidden;
  padding: 3rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: #fff;
}

.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  display: flex;
}

.logo-track {
  display: flex;
  align-items: center;
  width: calc(200px * 10);
  animation: scroll 30s linear infinite;
}

.logo-track img {
  width: 120px;
  height: auto;
  margin: 0 40px;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s ease;
}

.logo-track img:hover {
  filter: grayscale(0%) opacity(1);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-200px * 5));
  }
}

/* ── HOW IT WORKS ──────────────────────────────────────────── */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step-card {
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--brand-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
  font-family: 'Poppins', sans-serif;
  box-shadow: var(--shadow-md);
}

/* ── RESUME PROMO ──────────────────────────────────────────── */
.resume-promo-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  border-radius: 24px;
  border: none;
  background: var(--brand-navy);
  color: #fff;
  padding: 0;
}

@media (max-width: 768px) {
  .resume-promo-card {
    grid-template-columns: 1fr;
  }
}

.resume-promo-content {
  padding: 4rem;
}

@media (max-width: 768px) {
  .resume-promo-content {
    padding: 3rem 2rem;
    text-align: center;
  }
}

.resume-promo-content .section-title {
  color: #fff;
}

.promo-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (max-width: 768px) {
  .promo-features {
    align-items: center;
  }
}

.promo-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: #E2E8F0;
}

.resume-promo-image {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), transparent);
  position: relative;
}

.mock-resume {
  width: 280px;
  height: 380px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: rotate(5deg);
  position: relative;
}

.mr-header {
  width: 50%;
  height: 20px;
  background: var(--border-light);
  border-radius: 4px;
}

.mr-line {
  width: 100%;
  height: 8px;
  background: var(--bg-main);
  border-radius: 4px;
}

.mr-box {
  width: 100%;
  height: 40px;
  background: var(--bg-main);
  border-radius: 4px;
}

.mr-score-badge {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--success);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
}

/* ── TESTIMONIALS ──────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}

.stars {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.quote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-weight: 500;
  font-style: italic;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
}

.user-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--brand-navy);
}

.user-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── BLOG ──────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
}

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

.blog-img {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

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

.blog-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: #fff;
  z-index: 1;
  position: relative;
}

.read-more {
  font-weight: 600;
  color: var(--brand-pink);
  margin-top: auto;
  display: inline-block;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.blog-card:hover .read-more {
  color: var(--brand-navy);
}

/* ── SUBSCRIBE / JOB ALERTS ────────────────────────────────── */
.subscribe-section {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.subscribe-form {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0 1rem;
}

@media (max-width: 600px) {
  .subscribe-form {
    flex-direction: column;
  }
}

.subscribe-input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
}

.subscribe-input:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.1);
}

.subscribe-btn {
  padding: 0.85rem 2rem;
  flex-shrink: 0;
}

.content-block {
  margin-bottom: 6rem;
}

.spacing-top {
  margin-top: 5rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
}

@media (max-width: 600px) {
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}