/* =====================================================
   ROOT
===================================================== */

:root {
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #2563eb;

  --radius: 18px;
  --max: 1100px;
  --pad: 20px;

  --space-section: 120px;
  --space-block: 60px;
  --space-button: 28px;
}


/* =====================================================
   BASE
===================================================== */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}


body {
  font-family: system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #f8fafc 60%,
    #ffffff 100%
  );

  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}


a {
  color: inherit;
  text-decoration: none;
}

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

svg {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

button,
a {
  color: inherit;
}


/* Consistent heading spacing */
section > h2:not(:first-child) {
  margin-top: 60px;
}

@media (max-width: 640px) {
  :root {
    --space-section: 90px;
    --space-block: 40px;
  }
}


/* =====================================================
   HEADER
===================================================== */

.header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}


.header .container {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.2px;
}


/* =====================================================
   NAVIGATION
===================================================== */

.nav {
  display: flex;
  align-items: center;
}

.menu {
  display: flex;
  gap: 28px;
}

.menu a {
  font-weight: 500;
}

/* Desktop separators */
@media (min-width: 721px) {
  .menu a:not(:last-child)::after {
    content: "|";
    margin-left: 28px;
    color: var(--muted);
  }
}

/* =====================================================
   HAMBURGER
===================================================== */

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
}

/* Mobile menu */
@media (max-width: 720px) {

  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    position: fixed;
    top: 84px;
    left: 16px;
    right: 16px;

    flex-direction: column;
    gap: 20px;

    padding: 26px;
    border-radius: 26px;

    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);

    border: 1px solid rgba(15,23,42,0.06);
   box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);

  }

  .menu.open {
    display: flex;
  }
}


/* =====================================================
   BUTTONS
===================================================== */


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 26px;
  border-radius: 16px;

  background: var(--accent);
  color: #ffffff;

  border: none;
  font-weight: 600;
  text-align: center;

 transition: transform 0.2s ease, box-shadow 0.2s ease;

}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.25);
}

/* Optional subtle outline style */
.btn.ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}


/* =====================================================
   HERO (APPLE STYLE)
===================================================== */

.hero {
  padding: 96px 0 32px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}

.hero p {
  max-width: 680px;
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 28px;
}

.tech-tags {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.3px;
  margin-bottom: 36px;
}

.actions {
  display: flex;
  gap: 20px;
  margin-top: 36px;
  margin-bottom: 60px;
}


@media (max-width: 520px) {
  .actions {
    flex-direction: column;
  }

  .actions .btn {
    width: 100%;
    text-align: center;
  }
}


/* =====================================================
   SERVICES
===================================================== */

.services-section {
  margin-top: 100px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 48px;
}

.services-grid {
  display: grid;
  gap: 48px;
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 28px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  display: block;              /* important for <a> */
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;

}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  transition: color 0.2s ease;
}

.service-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.service-card:hover h3 {
  color: var(--accent);
}


/* =====================================================
   PORTFOLIO
===================================================== */

.portfolio-grid {
  display: grid;
  gap: 44px;
  margin-top: 64px;
}

@media (min-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.portfolio-card {
  padding: 22px; /* was 32px */
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}



.portfolio-image img {
  transition: filter 0.25s ease;
}

.portfolio-card:hover .portfolio-image img {
  filter: brightness(1.04);
}



.portfolio-image {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 18px;
  background: #f1f5f9;
  border: 1px solid rgba(15,23,42,0.05);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-content h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.portfolio-content p {
  color: var(--muted);
  font-size: 15px;
}
/* Add breathing room below Selected Work */

.portfolio-section {
  margin-bottom: 120px;
}


/* =====================================================
   CASE STUDY (HIRECHECK)
===================================================== */

.case-grid {
  display: grid;
  gap: 48px;
  margin-top: 48px;
  margin-bottom: 100px;
}

@media (min-width: 980px) {
  .case-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

.case-card {
  padding: 28px; /* reduced from 42px */
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}



.case-card h2 {
  margin: 0 0 14px;
  font-size: 20px; /* slightly tighter than 22px */
}

.case-card .muted {
  margin-top: 10px !important;
  font-size: 14px;
}



.case-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.case-list li {
  margin-bottom: 10px;
  color: var(--muted);
}

.video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;

  border-radius: 16px; /* slightly tighter */
  overflow: hidden;

  border: 1px solid rgba(15,23,42,0.05);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);

  margin-top: 14px; /* subtle breathing space under heading */
   transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* =====================================================
   FOOTER (APPLE FADE)
===================================================== */

.footer {
  position: relative;
  padding: 56px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: transparent;
}

/* Smooth fade into footer */
.footer::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 0;
  right: 0;
  height: 160px;

  background: linear-gradient(
    to bottom,
    rgba(248,250,252,0),
    rgba(255,255,255,1)
  );

  pointer-events: none;
}

/* =====================================================
   CONTACT LAYOUT
===================================================== */

.contact-wrapper {
  margin-top: 64px;
  margin-bottom: var(--space-section);
  max-width: 680px;
  display: block;
}



/* Card */

.contact-card {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);

  padding: 56px;
  border-radius: 28px;

  border: 1px solid rgba(15,23,42,0.06);

  box-shadow:
    0 30px 80px rgba(15,23,42,0.06),
    0 12px 36px rgba(15,23,42,0.05);

max-width: 680px;   /* match hero paragraph width */
width: 100%;
margin-left: 0;


  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
}


/* Better spacing under hero */
.hero + .contact-wrapper {
  margin-top: 48px;
}


/* =====================================================
   CONTACT FORM
===================================================== */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}


/* Form group */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.2px;
}

/* Inputs */

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;

  border: 1px solid rgba(15,23,42,0.08);
  background: #ffffff;

  font-size: 16px;
  font-family: inherit;

  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* Focus state (Apple soft glow) */

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}


/* =====================================================
   SUBMIT BUTTON
===================================================== */

.submit-btn {
  margin-top: 8px;
  padding: 16px 28px;

  border-radius: 18px;
  font-size: 16px;
  font-weight: 600;

  align-self: flex-start;

  background: var(--accent);
  color: white;
  border: none;
  cursor: pointer;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37,99,235,0.25);
}



/* =====================================================
   HIRECHECK SCREENSHOTS
===================================================== */

.screenshots-section {
  margin-top: 100px;
  margin-bottom: 120px;
}

.screenshots-grid {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}

@media (min-width: 720px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .screenshots-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.shot {
  aspect-ratio: 9 / 19;   /* iPhone ratio */
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  background: #f8fafc;
}

.shot:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15,23,42,0.08);
}

.video-placeholder {
  position: relative;
  cursor: pointer;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 70px;
  background: rgba(37,99,235,0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.play-button::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 22px;
  border-style: solid;
  border-width: 12px 0 12px 18px;
  border-color: transparent transparent transparent white;
}

.video-placeholder:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.service-detail {
  max-width: 720px;
  margin-top: 60px;
 margin-top: var(--space-block);
}

.service-detail h2 {
  margin-top: 40px;
  font-size: 22px;
}

.service-detail ul {
  padding-left: 18px;
  margin-top: 16px;
}

/* FAQ SECTION */

.service-faq {
  margin-top: 100px;
  margin-bottom: 100px;
  max-width: 760px;
}

.faq-item {
  border-bottom: 1px solid rgba(15,23,42,0.08);
  padding: 20px 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  margin-top: 12px;
}

/* =========================
   PRICING SECTION
========================= */

.pricing-section {
  margin-top: var(--space-section);
  margin-bottom: var(--space-section);
}



.pricing-section h2 {
  margin-bottom: 12px;
}

.pricing-section p {
  color: var(--muted);
  margin-bottom: 40px;
}

/* Grid */

.pricing-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card */

.pricing-card {
  background: #ffffff;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 24px;
  padding: 40px;

  display: flex;
  flex-direction: column;

  box-shadow: 0 12px 30px rgba(15,23,42,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Featured (middle card) */

.pricing-card.featured {
  border: 1.5px solid var(--accent);
  box-shadow: 0 20px 60px rgba(37, 99, 235, 0.08);
}



.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px rgba(15,23,42,0.08);
}




/* Title */

.pricing-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* Price */

.pricing-price {
  font-size: 32px;
  font-weight: 700;
  margin: 12px 0 28px;
}

/* Feature list */

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.pricing-list li {
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--muted);
}

/* Button */

.pricing-card .btn {
  margin-top: auto;              /* pushes button to bottom */
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Optional: slightly larger featured button */

.pricing-card.featured .btn {
  padding: 14px 22px;
}

/* Mobile spacing */

@media (max-width: 640px) {
  .pricing-card {
    padding: 32px;
  }
}

.service-icon {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.service-icon svg {
  width: 36px;        /* control size here */
  height: 36px;
  max-width: none;    /* override global svg rule */
}

/* =====================================================
   GLOBAL BUTTON SPACING
===================================================== */

.service-detail .btn,
.pricing-section .btn,
.pricing-teaser .btn,
.portfolio-section .btn {
 margin-top: var(--space-button);
}

@media (max-width: 640px) {
  .contact-card {
    padding: 32px;
    border-radius: 22px;
  }
}

/* ==============================================
   CONTENT BLOCK STRUCTURE
============================================== */

.content-block {
  margin-bottom: var(--space-section);
  padding-bottom: var(--space-block);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}

.content-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Better button relationship */

.content-block .btn {
  margin-top: var(--space-button);
}

/* ==========================================
   CONTENT BLOCK SPACING
========================================== */

.content-block {
  margin-bottom: 80px;
}

.section-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(15,23,42,0.08),
    transparent
  );
  margin: 60px 0;   /* was 100px */
}

.pricing-teaser {
  max-width: 720px;
  margin-bottom: 120px;
}

.price-range {
  font-size: 26px;
  font-weight: 600;
  margin: 16px 0 20px;
}

.pricing-note {
  color: var(--muted);
  margin-bottom: 32px;
}

