/* ============================
   FINFORFAM PORTFOLIO STYLES
   ============================ */

/* ---------- Root Colors ---------- */

:root {
  --bg-main: #eef3f4;
  --bg-alt: #e3eaec;

  --navy: #1f3447;
  --navy-soft: #30495e;

  --teal: #0f6e6e;
  --teal-hover: #0b5b5b;

  --border-soft: #d5dee2;

  --text-body: #425a6b;
  --text-muted: #6c7f8d;

  --radius-lg: 18px;
  --radius-md: 12px;

  --space-container-x: 1.5rem;
}


/* ---------- Base ---------- */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg-main);
  color: var(--text-body);
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
}


/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-inline: var(--space-container-x);
}

.section {
  padding: 48px 0;
  background: linear-gradient(
      180deg,
      #edf4f6 0%,
      #e6eef1 100%
    );;
}

.section-alt {
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(15,110,110,0.08),
      transparent 45%
    ),
    linear-gradient(
      180deg,
      #edf4f6 0%,
      #e6eef1 100%
    );
}


/* ---------- Header ---------- */

.site-header {
  position: absolute;
  width: 100%;
  z-index: 10;
  padding-top: 24px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  font-size: 1.1rem;
}


/* ---------- Typography ---------- */

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 18px;
}

.section-header h2 {
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  letter-spacing: -0.5px;
  color: var(--navy);
  margin-bottom: 20px;
  font-weight: 700;
}

h3 {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--navy-soft);
}


/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #148f8f, #0f6e6e);
  color: white;
  box-shadow: 0 6px 18px rgba(15, 110, 110, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0f6e6e, #0b5b5b);
  transform: translateY(-2px);
}


/* ---------- Grid Layout ---------- */

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.work-grid > div {
  position: relative;
}

.work-grid > div:first-child {
  padding-right: 40px;
}

/* ---------- Screenshot Styling ---------- */

.work-screenshot {
  padding: 0;
  border: none;
  background: none;
  scale: 90%;
}

.work-screenshot img {
  border-radius: 18px;
  box-shadow:
    0 30px 70px rgba(31,52,71,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.work-screenshot img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 40px 90px rgba(31,52,71,0.18);
}

.work-screenshot-lower {
  padding: 0;
  border: none;
  background: none;
  width: 60%;
  max-width: 600px;
  margin: 40px auto 0;;
  height: auto;
  margin-left: 40px;
}

.work-screenshot-lower img {
  border-radius: 20px;
  box-shadow:
    0 30px 70px rgba(31,52,71,0.12);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.work-screenshot-lower img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 40px 90px rgba(31,52,71,0.18);
}


/* ---------- Lists ---------- */

.work-points {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.work-points li {
  margin-bottom: 12px;
  padding-left: 22px;
  position: relative;
}

.work-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 9px;
}


/* ---------- Footer CTA Section ---------- */

.hero-actions {
  margin-top: 30px;
}


/* ---------- Subtle Polish ---------- */

.section-header {
  margin-bottom: 40px;
}

.section-alt .work-screenshot {
  box-shadow: 0 15px 40px rgba(31, 52, 71, 0.05);
}


/* ---------- Responsive ---------- */

@media (max-width: 900px) {

  .work-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}

.section p {
  margin-bottom: 16px;
}

.section + .section {
  border-top: 1px solid rgba(31,52,71,0.05);
}
/* ============================
   PREMIUM HERO
   ============================ */

.hero-section {
  padding-top: clamp(80px, 8vh, 110px);
  padding-bottom: clamp(120px, 12vh, 160px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 20%, rgba(15,110,110,0.08), transparent 40%),
    linear-gradient(180deg, #eef3f4 0%, #e9f1f3 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 110px;
  align-items: center;
}

/* Typography */
.hero-text {
  margin-top: -10px;
}

.hero-text h1 {
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 6px;
  color: var(--navy);
}

.hero-subtitle {
  font-size: 1.7rem;
  margin-bottom: 14px;
  font-weight: 600;
  color: var(--navy-soft);
  max-width: 600px;
}

.hero-lead {
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 40px;
  color: var(--text-body);
}

/* Screenshot */

.hero-image {
  position: relative;
  transform: scale(1.05);
}

.hero-image img {
  border-radius: 28px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow:
    0 60px 120px rgba(31,52,71,0.18),
    0 20px 40px rgba(31,52,71,0.10);
  transform: perspective(1400px) rotateY(-5deg) translateY(30px);
  transition: 0.5s ease;
  width: 100%;
  height: auto;
}

.hero-image img:hover {
  transform: perspective(1400px) rotateY(-2deg) translateY(15px);
}

/* Stronger CTA */

.hero-actions .btn-primary {
  padding: 18px 40px;
  font-size: 1.05rem;
}

h1, h2, h3 {
  line-height: 1.15;
}

p {
  font-size: 1rem;
}

/* Back link */

/* Header */
.omr-header {
  position: absolute;
  width: 100%;
  z-index: 10;
  padding-top: 1.2rem;
}

.omr-back {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--navy-soft);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.omr-back:hover {
  opacity: 1;
}

/* ===== Scroll Reveal ===== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger for child elements */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.18s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.30s; }

.emphasis-block {
  padding: 100px 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(15,110,110,0.08), transparent 60%);
}

.emphasis-text {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

.engineering-lead {
  font-size: 1.1rem;
  max-width: 720px;
  margin-bottom: 28px;
}

@media (max-width: 900px) {
  .section {
    padding-block: 72px;
  }
}

@media (max-width: 900px) {

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-text h1 {
    font-size: 2.6rem;
    letter-spacing: -1px;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .container {
    padding-inline: 1.4rem;
  }

  .work-screenshot-lower {
    width: 100%;
    margin-left: 0;
  }
}

.work-screenshot img,
.work-screenshot-lower img {
  border-radius: 22px;
  border: 1px solid rgba(31,52,71,0.06);
}

@media (max-width: 900px) {

  .work-screenshot,
  .work-screenshot-lower,
  .hero-image {
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .work-screenshot img,
  .work-screenshot-lower img,
  .hero-image img {
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 900px) {

  .work-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {

  .work-grid {
    gap: 60px;
  }

  .section p {
    font-size: 1.05rem;
  }

}

@media (max-width: 900px) {

  .work-screenshot img,
  .work-screenshot-lower img {
    box-shadow: 0 25px 60px rgba(31,52,71,0.12);
  }

}

@media (max-width: 900px) {

  .section-alt .work-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 900px) {

  .work-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .work-screenshot,
  .work-screenshot-lower {
    order: 2;
  }

  .work-grid > div:not(.work-screenshot):not(.work-screenshot-lower) {
    order: 1;
  }

}

@media (min-width: 901px) {
  .work-grid > div:first-child {
    padding-right: 40px;
  }
}