/* ============================================
   SERVICES SECTION
   Three service cards (Resume Creator, ATS Score
   Checker, Resume Reviewer), each with its own
   gradient identity, fully responsive down to
   small mobile.
============================================ */

.services-section{
  max-width:1180px;
  margin:0 auto;
  padding:64px 24px 88px;
}

.services-head{
  text-align:center;
  max-width:640px;
  margin:0 auto 48px;
}

.services-eyebrow{
  display:inline-block;
  font-size:13px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--primary);
  background:var(--primary-light);
  padding:6px 14px;
  border-radius:999px;
  margin-bottom:16px;
}

.services-head h2{
  font-size:32px;
  font-weight:800;
  color:var(--text-main);
  margin:0 0 12px;
  line-height:1.25;
}

.services-head p{
  font-size:15.5px;
  color:var(--text-muted);
  line-height:1.65;
  margin:0;
}

.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

.service-card{
  background:var(--bg-card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:32px 28px 30px;
  box-shadow:var(--shadow-sm);
  display:flex;
  flex-direction:column;
  transition:transform .22s ease, box-shadow .22s ease;
  position:relative;
  overflow:hidden;
}

.service-card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:4px;
}

.service-creator::before{ background:linear-gradient(90deg,#2563eb,#7c3aed); }
.service-ats::before{ background:linear-gradient(90deg,#0ea5e9,#10b981); }
.service-reviewer::before{ background:linear-gradient(90deg,#f59e0b,#ef4444); }

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

.service-icon{
  width:58px;
  height:58px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  color:#fff;
  margin-bottom:20px;
}

.service-creator .service-icon{ background:linear-gradient(135deg,#2563eb,#7c3aed); box-shadow:0 8px 20px rgba(37,99,235,.28); }
.service-ats .service-icon{ background:linear-gradient(135deg,#0ea5e9,#10b981); box-shadow:0 8px 20px rgba(14,165,233,.28); }
.service-reviewer .service-icon{ background:linear-gradient(135deg,#f59e0b,#ef4444); box-shadow:0 8px 20px rgba(245,158,11,.28); }

.service-card h3{
  font-size:20px;
  font-weight:800;
  color:var(--text-main);
  margin:0 0 10px;
}

.service-card > p{
  font-size:14.5px;
  color:var(--text-muted);
  line-height:1.65;
  margin:0 0 18px;
}

.service-points{
  list-style:none;
  margin:0 0 24px;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:9px;
}

.service-points li{
  font-size:13.5px;
  color:var(--text-main);
  display:flex;
  align-items:center;
  gap:9px;
  font-weight:500;
}

.service-points li i{
  font-size:11px;
  width:18px;
  height:18px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.service-creator .service-points li i{ color:#2563eb; background:var(--primary-light); }
.service-ats .service-points li i{ color:#0d9488; background:#ecfdf5; }
.service-reviewer .service-points li i{ color:#d97706; background:#fffbeb; }

.btn-service{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:14px 22px;
  border-radius:12px;
  text-decoration:none;
  font-size:14.5px;
  font-weight:700;
  color:#fff;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.btn-service:hover{ transform:translateY(-2px); filter:brightness(1.06); }
.btn-service:active{ transform:translateY(0); }
.btn-service:focus-visible{ outline:3px solid #fff; outline-offset:-5px; }

.btn-service-creator{
  background:linear-gradient(135deg,#2563eb,#7c3aed);
  box-shadow:0 10px 24px rgba(37,99,235,.3);
}
.btn-service-ats{
  background:linear-gradient(135deg,#0ea5e9,#10b981);
  box-shadow:0 10px 24px rgba(14,165,233,.3);
}
.btn-service-reviewer{
  background:linear-gradient(135deg,#f59e0b,#ef4444);
  box-shadow:0 10px 24px rgba(245,158,11,.3);
}

/* ===== Two-column layout for placeholder pages (ATS checker, reviewer) ===== */
.builder-layout.two-col{
  grid-template-columns:260px 1fr;
}
@media(max-width:1100px){
  .builder-layout.two-col{ grid-template-columns:1fr; }
  .builder-layout.two-col .ad-sidebar{ display:none; }
}

/* ===== UPLOAD DROPZONE (ATS Checker / Resume Reviewer) ===== */
.upload-dropzone{
  border:2px dashed var(--border);
  border-radius:14px;
  padding:36px 24px;
  text-align:center;
  cursor:pointer;
  transition:border-color .18s ease, background .18s ease;
  color:var(--text-muted);
}
.upload-dropzone:hover,
.upload-dropzone.dragover{
  border-color:var(--primary);
  background:var(--primary-light);
}
.upload-dropzone i{
  font-size:36px;
  color:var(--primary);
  margin-bottom:12px;
  display:block;
}
.upload-dropzone p{
  margin:0 0 4px;
  font-size:15px;
  color:var(--text-main);
}
.upload-hint{
  font-size:12.5px;
  color:var(--text-light);
}
.upload-status{
  margin-top:10px;
  font-size:13px;
  min-height:18px;
}
.upload-status.ok{ color:#059669; }
.upload-status.error{ color:#dc2626; }

/* ===== RESULTS: checklist ===== */
.checks-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:20px;
}
.check-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:12px 14px;
  border-radius:10px;
  font-size:13.5px;
}
.check-item.pass{ background:#ecfdf5; color:#065f46; }
.check-item.fail{ background:#fef2f2; color:#991b1b; }
.check-item i{ margin-top:2px; flex-shrink:0; }
.check-label{ font-weight:600; }
.check-tip{ font-weight:400; margin-top:3px; opacity:.85; }

.subsection-title{
  font-size:15px;
  font-weight:700;
  color:var(--text-main);
  margin:26px 0 10px;
  display:flex;
  align-items:center;
  gap:8px;
}
.keyword-summary{
  font-size:13.5px;
  color:var(--text-muted);
  margin:0 0 10px;
}
.keyword-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.keyword-tag{
  background:#ecfdf5;
  color:#047857;
  border:1px solid #a7f3d0;
  border-radius:999px;
  padding:5px 12px;
  font-size:12.5px;
  font-weight:600;
}
.keyword-tag.missing{
  background:#fef2f2;
  color:#b91c1c;
  border-color:#fecaca;
}
.keyword-tag-empty{
  font-size:12.5px;
  color:var(--text-light);
  font-style:italic;
}



@media (max-width:980px){
  .services-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width:680px){
  .services-section{ padding:48px 18px 64px; }
  .services-head h2{ font-size:25px; }
  .services-grid{ grid-template-columns:1fr; gap:20px; }
  .service-card{ padding:26px 22px 24px; }
}

/* ===== SCROLL-TRIGGERED ENTRANCE ANIMATION =====
   Starts hidden; an IntersectionObserver (see index.html) adds
   .in-view the first time the section scrolls into the viewport,
   which is when these transitions actually play. Cards stagger
   in one after another rather than all at once. */
.services-head{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .7s cubic-bezier(.21,.91,.32,1), transform .7s cubic-bezier(.21,.91,.32,1);
}
.services-section.in-view .services-head{
  opacity:1;
  transform:translateY(0);
}

.service-card{
  opacity:0;
  transform:translateY(40px) scale(.96);
  transition:opacity .65s cubic-bezier(.21,.91,.32,1),
             transform .65s cubic-bezier(.21,.91,.32,1),
             box-shadow .22s ease;
  /* transform/box-shadow above also serves the existing hover
     effect — entrance and hover share the same property list so
     they don't fight once .in-view has already played. */
}
.services-section.in-view .service-card{
  opacity:1;
  transform:translateY(0) scale(1);
}
.services-section.in-view .service-card:hover{
  transform:translateY(-6px) scale(1);
}
.services-section.in-view .service-card:nth-child(1){ transition-delay:.08s; }
.services-section.in-view .service-card:nth-child(2){ transition-delay:.22s; }
.services-section.in-view .service-card:nth-child(3){ transition-delay:.36s; }

/* Icon gets its own little pop, slightly after the card itself
   has started appearing, for a bit of extra polish. */
.service-icon{
  transition:transform .5s cubic-bezier(.34,1.56,.64,1);
}
.services-section.in-view .service-card:nth-child(1) .service-icon{ transition-delay:.30s; }
.services-section.in-view .service-card:nth-child(2) .service-icon{ transition-delay:.44s; }
.services-section.in-view .service-card:nth-child(3) .service-icon{ transition-delay:.58s; }
.services-section:not(.in-view) .service-icon{ transform:scale(.4) rotate(-8deg); }
.services-section.in-view .service-icon{ transform:scale(1) rotate(0deg); }

@media (prefers-reduced-motion:reduce){
  .services-head,
  .service-card,
  .service-icon{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}
