/* =========================================================
   IBTIKARY
   Main Stylesheet
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #172033;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
  --primary: #176b87;
  --primary-dark: #10556d;
  --accent: #20a889;

  --text: #172033;
  --text-light: #526071;
  --muted: #6b7280;

  --background: #ffffff;
  --surface: #f7f9fb;
  --surface-green: #eef9f6;

  --border: #e5e9ee;

  --shadow:
    0 18px 50px rgba(15, 23, 42, 0.07);

  --radius: 22px;

  --container: 1120px;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
  width: min(
    calc(100% - 40px),
    var(--container)
  );

  margin-inline: auto;
}


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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(255, 255, 255, 0.94);

  border-bottom: 1px solid var(--border);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;

  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 150px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text-light);

  text-decoration: none;

  font-size: 0.94rem;
  font-weight: 600;

  transition:
    color 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding:
    105px
    0
    115px;

  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(32, 168, 137, 0.10),
      transparent 30%
    ),
    radial-gradient(
      circle at 15% 35%,
      rgba(23, 107, 135, 0.08),
      transparent 30%
    ),
    #ffffff;
}

.hero-inner {
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 850px;
}

.eyebrow {
  margin: 0 0 16px;

  color: var(--primary);

  font-size: 0.78rem;
  font-weight: 800;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;

  max-width: 900px;

  color: var(--text);

  font-size:
    clamp(
      2.8rem,
      7vw,
      5.3rem
    );

  line-height: 1.02;

  letter-spacing: -0.055em;

  font-weight: 800;
}

.hero h1 span {
  display: block;

  color: var(--primary);
}

.hero-description {
  max-width: 700px;

  margin:
    30px
    0
    0;

  color: var(--text-light);

  font-size:
    clamp(
      1.05rem,
      2vw,
      1.25rem
    );

  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;

  gap: 14px;

  margin-top: 36px;
}


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

.button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 50px;

  padding:
    0
    22px;

  border-radius: 12px;

  text-decoration: none;

  font-size: 0.95rem;
  font-weight: 700;

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

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #ffffff;
  background: var(--primary);

  box-shadow:
    0 10px 25px rgba(23, 107, 135, 0.18);
}

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  color: var(--text);

  background: #ffffff;

  border: 1px solid var(--border);
}

.button-secondary:hover {
  border-color: #cbd5df;

  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.06);
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {
  max-width: 720px;

  margin-bottom: 50px;
}

.section-heading h2 {
  margin: 0;

  color: var(--text);

  font-size:
    clamp(
      2rem,
      4vw,
      3.2rem
    );

  line-height: 1.1;

  letter-spacing: -0.04em;

  font-weight: 800;
}

.section-heading > p:last-child {
  margin:
    18px
    0
    0;

  color: var(--text-light);

  font-size: 1.08rem;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.projects-section {
  padding:
    105px
    0
    120px;

  background: var(--surface);
}

.projects-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    );

  gap: 28px;
}


/* =========================================================
   PROJECT CARD
   ========================================================= */

.project-card {
  overflow: hidden;

  background: #ffffff;

  border: 1px solid var(--border);

  border-radius: var(--radius);

  box-shadow:
    0 8px 30px rgba(15, 23, 42, 0.035);

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

.project-card:hover {
  transform: translateY(-5px);

  box-shadow:
    var(--shadow);
}


/* =========================================================
   PROJECT VISUAL
   ========================================================= */

.project-visual {
  height: 260px;

  display: flex;

  align-items: center;
  justify-content: center;

  position: relative;

  overflow: hidden;
}


/* FitSpend */

.fitspend-visual {
  background:
    linear-gradient(
      135deg,
      #eef9f6,
      #e1f3ee
    );
}

.visual-icon {
  width: 105px;
  height: 105px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 28px;

  background: #20a889;

  color: #ffffff;

  font-size: 3.4rem;
  font-weight: 800;

  box-shadow:
    0 20px 45px rgba(32, 168, 137, 0.22);
}

.visual-label {
  position: absolute;

  bottom: 24px;
  left: 28px;

  color: #176b58;

  font-size: 0.85rem;
  font-weight: 750;

  letter-spacing: 0.04em;
}


/* 20words */

.words-visual {
  background:
    linear-gradient(
      135deg,
      #f2f3ff,
      #eaf9f6
    );
}

.words-mark {
  text-align: center;
}

.words-number {
  font-size: 5.6rem;

  line-height: 0.9;

  font-weight: 850;

  letter-spacing: -0.1em;

  background:
    linear-gradient(
      90deg,
      #5149b9,
      #62c4b3
    );

  -webkit-background-clip: text;
  background-clip: text;

  color: transparent;
}

.words-name {
  margin-top: 12px;

  color: #38a993;

  font-size: 1.25rem;
  font-weight: 800;

  letter-spacing: 0.22em;
}


/* Content Project */

.content-visual {
  background:
    linear-gradient(
      135deg,
      #f3f6fb,
      #e9eef7
    );
}

.content-mark {
  width: 135px;
  height: 135px;

  padding: 28px;

  display: flex;
  flex-direction: column;

  justify-content: center;

  gap: 15px;

  border-radius: 30px;

  background: #e5f5f1;

  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.08);
}

.content-mark span {
  height: 13px;

  display: block;

  border-radius: 20px;

  background: #20a889;
}

.content-mark span:nth-child(1) {
  width: 100%;
}

.content-mark span:nth-child(2) {
  width: 72%;
}

.content-mark span:nth-child(3) {
  width: 50%;
}


/* Ibtikary Store */

.store-visual {
  background:
    linear-gradient(
      135deg,
      #fff8ef,
      #f1f9f6
    );
}

.store-mark {
  width: 190px;

  position: relative;

  text-align: center;
}

.store-roof {
  position: absolute;

  height: 12px;

  border-radius: 20px;
}

.roof-one {
  width: 115px;

  top: -18px;
  left: 12px;

  background: #5bcaa6;

  transform: rotate(-16deg);
}

.roof-two {
  width: 120px;

  top: -32px;
  right: 5px;

  background: #128bc0;

  transform: rotate(17deg);
}

.store-body {
  padding:
    22px
    12px;

  border-radius: 18px;

  background: #ffffff;

  border:
    5px solid #f47a25;

  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.08);
}

.store-body strong {
  display: block;

  color: #ffffff;

  padding:
    4px
    12px;

  border-radius: 14px;

  background: #f47a25;

  font-size: 1.05rem;
}

.store-body span {
  display: block;

  margin-top: 8px;

  color: #39b792;

  font-size: 1.25rem;

  font-weight: 800;

  letter-spacing: 0.04em;
}


/* =========================================================
   PROJECT CONTENT
   ========================================================= */

.project-content {
  padding: 30px;
}

.project-category {
  margin: 0 0 9px;

  color: var(--primary);

  font-size: 0.76rem;
  font-weight: 800;

  letter-spacing: 0.11em;

  text-transform: uppercase;
}

.project-content h3 {
  margin: 0;

  color: var(--text);

  font-size: 1.65rem;

  line-height: 1.2;

  letter-spacing: -0.025em;
}

.project-content > p:not(.project-category) {
  margin:
    15px
    0
    24px;

  color: var(--text-light);

  font-size: 0.98rem;

  line-height: 1.75;
}

.project-link {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  color: var(--primary);

  text-decoration: none;

  font-size: 0.94rem;
  font-weight: 750;
}

.project-link span {
  transition:
    transform 0.2s ease;
}

.project-link:hover span {
  transform: translateX(4px);
}

.project-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
  padding:
    120px
    0;

  background: #ffffff;
}

.about-grid {
  display: grid;

  grid-template-columns:
    0.9fr
    1.1fr;

  gap: 90px;

  align-items: start;
}

.about-heading h2 {
  margin: 0;

  color: var(--text);

  font-size:
    clamp(
      2.1rem,
      4vw,
      3.5rem
    );

  line-height: 1.08;

  letter-spacing: -0.045em;
}

.about-content {
  max-width: 650px;
}

.about-content p {
  margin:
    0
    0
    24px;

  color: var(--text-light);

  font-size: 1.05rem;

  line-height: 1.8;
}

.about-content .large-text {
  color: var(--text);

  font-size: 1.4rem;

  line-height: 1.65;

  font-weight: 600;
}


/* =========================================================
   WHAT WE BUILD
   ========================================================= */

.build-section {
  padding:
    110px
    0;

  background: var(--surface);
}

.build-grid {
  display: grid;

  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    );

  gap: 0;

  border-top:
    1px solid var(--border);
}

.build-item {
  padding:
    35px
    30px
    15px;

  border-right:
    1px solid var(--border);
}

.build-item:first-child {
  padding-left: 0;
}

.build-item:last-child {
  border-right: 0;
}

.build-number {
  display: block;

  margin-bottom: 24px;

  color: var(--primary);

  font-size: 0.78rem;
  font-weight: 800;

  letter-spacing: 0.12em;
}

.build-item h3 {
  margin: 0;

  color: var(--text);

  font-size: 1.35rem;
}

.build-item p {
  max-width: 300px;

  margin:
    13px
    0
    0;

  color: var(--text-light);

  font-size: 0.96rem;

  line-height: 1.7;
}


/* =========================================================
   APPROACH
   ========================================================= */

.approach-section {
  padding:
    120px
    0;

  background: #ffffff;
}

.approach-card {
  padding:
    55px;

  border-radius:
    28px;

  background:
    linear-gradient(
      135deg,
      #f0faf7,
      #f4f7fb
    );

  border:
    1px solid #e1ebe8;
}

.approach-intro {
  max-width: 720px;
}

.approach-intro h2 {
  margin: 0;

  color: var(--text);

  font-size:
    clamp(
      2.1rem,
      4vw,
      3.4rem
    );

  line-height: 1.08;

  letter-spacing: -0.045em;
}

.approach-intro > p:last-child {
  max-width: 650px;

  margin:
    20px
    0
    0;

  color: var(--text-light);

  font-size: 1.08rem;

  line-height: 1.75;
}

.approach-steps {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap: 20px;

  margin-top: 55px;

  padding-top: 30px;

  border-top:
    1px solid rgba(23, 32, 51, 0.10);
}

.approach-step span {
  display: block;

  margin-bottom: 18px;

  color: var(--primary);

  font-size: 0.76rem;

  font-weight: 800;

  letter-spacing: 0.1em;
}

.approach-step strong {
  display: block;

  color: var(--text);

  font-size: 1.05rem;
}

.approach-step p {
  margin:
    8px
    0
    0;

  color: var(--text-light);

  font-size: 0.9rem;

  line-height: 1.6;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding:
    55px
    0
    30px;

  background: #172033;

  color: #ffffff;
}

.footer-inner {
  display: grid;

  grid-template-columns:
    1fr
    auto;

  gap: 35px;
}

.footer-brand strong {
  font-size: 1.3rem;

  letter-spacing: -0.02em;
}

.footer-brand p {
  margin:
    8px
    0
    0;

  color: #aeb8c6;

  font-size: 0.94rem;
}

.footer-links {
  display: flex;

  align-items: flex-start;

  gap: 24px;
}

.footer-links a {
  color: #dce2ea;

  text-decoration: none;

  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  grid-column: 1 / -1;

  padding-top: 25px;

  border-top:
    1px solid rgba(255, 255, 255, 0.10);
}

.footer-bottom p {
  margin: 0;

  color: #8f9aaa;

  font-size: 0.82rem;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .hero {
    padding:
      80px
      0
      90px;
  }

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

  .about-grid {
    grid-template-columns: 1fr;

    gap: 35px;
  }

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

  .build-item,
  .build-item:first-child {
    padding:
      28px
      0;

    border-right: 0;

    border-bottom:
      1px solid var(--border);
  }

  .build-item:last-child {
    border-bottom: 0;
  }

  .approach-steps {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    row-gap: 35px;
  }

}


@media (max-width: 650px) {

  .container {
    width: min(
      calc(100% - 32px),
      var(--container)
    );
  }

  .header-inner {
    min-height: 68px;
  }

  .main-nav {
    gap: 16px;
  }

  .main-nav a {
    font-size: 0.82rem;
  }

  .hero {
    padding:
      70px
      0
      75px;
  }

  .hero h1 {
    font-size:
      clamp(
        2.5rem,
        13vw,
        4rem
      );
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .projects-section,
  .about-section,
  .build-section,
  .approach-section {
    padding:
      80px
      0;
  }

  .project-visual {
    height: 230px;
  }

  .project-content {
    padding: 25px;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .approach-card {
    padding:
      32px
      24px;
  }

  .approach-steps {
    grid-template-columns: 1fr;

    gap: 28px;

    margin-top: 40px;
  }

  .footer-inner {
    grid-template-columns: 1fr;

    gap: 28px;
  }

  .footer-links {
    flex-wrap: wrap;

    gap:
      14px
      20px;
  }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
  outline:
    3px solid rgba(23, 107, 135, 0.35);

  outline-offset: 4px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

}
