/* ===================================================================
   Reuven Bortman — SAP S/4HANA EWM Consultant
   Shared design system  |  SAP-blue corporate, clean
   =================================================================== */

:root {
  /* Palette */
  --navy-900: #061a30;
  --navy-800: #0a2540;
  --navy-700: #0f3a5f;
  --blue-600: #0070f2;   /* SAP blue */
  --blue-500: #1f8bff;
  --blue-100: #e6f1ff;
  --cyan-400: #19b3c9;
  --ink: #1a2433;
  --slate: #4a5a70;
  --muted: #6b7a90;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --bg-softer: #eef3fa;
  --white: #ffffff;

  /* Type */
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  /* Layout */
  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, .08), 0 1px 2px rgba(10, 37, 64, .06);
  --shadow-md: 0 10px 30px rgba(10, 37, 64, .10);
  --shadow-lg: 0 24px 60px rgba(10, 37, 64, .16);
  --t: .25s cubic-bezier(.4, 0, .2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--blue-500); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-800); line-height: 1.2; font-weight: 600; }
ul { list-style: none; }

/* Layout helpers */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #dce6f2; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: var(--cyan-400); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--slate); font-size: 1.06rem; }
.section--navy .section-head p { color: #aebfd4; }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 50px; border: 1.5px solid transparent;
  cursor: pointer; transition: all var(--t); white-space: nowrap;
}
.btn--primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(0, 112, 242, .28); }
.btn--primary:hover { background: var(--blue-500); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 112, 242, .36); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue-600); color: var(--blue-600); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy-800); }
.btn--light:hover { color: var(--blue-600); transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }

/* ============ Header / Nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; color: var(--navy-800); font-size: 1.12rem; }
.brand:hover { color: var(--navy-800); }
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-700));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  box-shadow: 0 4px 12px rgba(0, 112, 242, .3);
}
.brand .brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500; font-size: .95rem; color: var(--slate);
  padding: 9px 15px; border-radius: 8px; transition: all var(--t);
}
.nav-links a:hover { color: var(--navy-800); background: var(--bg-softer); }
.nav-links a.active { color: var(--blue-600); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); margin: 5px 0; transition: all var(--t); border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(155deg, var(--navy-800) 0%, var(--navy-900) 60%, #04101e 100%);
  color: #e8f0fa; padding: 96px 0 104px;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(620px 320px at 82% 8%, rgba(0, 112, 242, .35), transparent 70%),
    radial-gradient(520px 320px at 10% 95%, rgba(25, 179, 201, .18), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  color: #bcd4f0; font-size: .82rem; font-weight: 500; padding: 7px 15px; border-radius: 50px; margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #36d399; box-shadow: 0 0 0 4px rgba(54, 211, 153, .2); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.3rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(100deg, #4aa8ff, #4fe0d4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-lead { font-size: 1.14rem; color: #aec4de; max-width: 540px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-stats .num { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: #fff; line-height: 1; }
.hero-stats .lbl { font-size: .82rem; color: #93a9c4; margin-top: 6px; }

/* Hero side card */
.hero-card {
  background: rgba(255, 255, 255, .055); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px; padding: 26px; backdrop-filter: blur(8px); box-shadow: var(--shadow-lg);
}
.hero-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; }
.hero-card .skill-row { display: flex; justify-content: space-between; align-items: center; font-size: .92rem; color: #cdddf0; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.hero-card .skill-row:last-child { border-bottom: none; }
.hero-card .skill-row .lvl { display: flex; gap: 4px; }
.hero-card .skill-row .lvl i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.hero-card .skill-row .lvl i.on { background: var(--cyan-400); }

/* ============ Cards / grids ============ */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: all var(--t); height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0f5; }
.card .ico {
  width: 50px; height: 50px; border-radius: 12px; margin-bottom: 18px;
  background: var(--blue-100); color: var(--blue-600);
  display: grid; place-items: center; font-size: 1.4rem;
}
.card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .97rem; }

/* Expertise pills grid */
.pill-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pill {
  display: flex; align-items: center; gap: 13px; background: #fff;
  border: 1px solid var(--line); border-radius: 11px; padding: 16px 18px; transition: all var(--t);
}
.pill:hover { border-color: var(--blue-500); box-shadow: var(--shadow-sm); }
.pill .pi { width: 38px; height: 38px; flex: none; border-radius: 9px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; font-size: 1.1rem; }
.pill span { font-weight: 500; font-size: .96rem; color: var(--ink); }

/* Client strip */
.clients { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.client-chip {
  font-family: var(--font-head); font-weight: 600; color: var(--navy-700);
  background: #fff; border: 1px solid var(--line); border-radius: 50px;
  padding: 11px 24px; font-size: .98rem; transition: all var(--t);
}
.client-chip:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ============ Timeline ============ */
.timeline { position: relative; max-width: 820px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue-500), var(--line)); }
.tl-item { position: relative; padding: 0 0 36px 60px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 12px; top: 5px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--blue-600); box-shadow: 0 0 0 4px var(--blue-100);
}
.tl-item .tl-role { font-family: var(--font-head); font-weight: 600; color: var(--blue-600); font-size: .9rem; }
.tl-item h3 { font-size: 1.16rem; margin: 2px 0 8px; }
.tl-item p { color: var(--slate); font-size: .97rem; }

/* ============ Experience cards ============ */
.xp-card {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue-600);
  border-radius: var(--radius); padding: 28px 30px; transition: all var(--t);
}
.xp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.xp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.xp-head h3 { font-size: 1.22rem; }
.xp-role { font-family: var(--font-head); font-weight: 600; color: var(--blue-600); font-size: .9rem; }
.xp-card ul.bullets { display: flex; flex-direction: column; gap: 8px; }
.xp-card ul.bullets li { position: relative; padding-left: 22px; color: var(--slate); font-size: .97rem; }
.xp-card ul.bullets li::before { content: "▪"; position: absolute; left: 4px; top: 0; color: var(--blue-500); }

/* Tag list */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: .8rem; font-weight: 500; color: var(--navy-700); background: var(--bg-softer); border-radius: 50px; padding: 5px 13px; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 26px; }
.contact-item .ci { width: 46px; height: 46px; flex: none; border-radius: 11px; background: var(--blue-100); color: var(--blue-600); display: grid; place-items: center; font-size: 1.2rem; }
.contact-item .cl { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.contact-item .cv { font-size: 1.04rem; color: var(--navy-800); font-weight: 500; }
.contact-item a.cv:hover { color: var(--blue-600); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--navy-800); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg-soft); transition: all var(--t);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); background: #fff; box-shadow: 0 0 0 3px rgba(0, 112, 242, .12); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .86rem; color: var(--muted); margin-top: 10px; }

/* ============ CTA band ============ */
.cta-band { background: linear-gradient(120deg, var(--blue-600), var(--navy-700)); border-radius: 20px; padding: 56px; text-align: center; color: #fff; box-shadow: var(--shadow-md); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: #d8e7fb; max-width: 540px; margin: 0 auto 26px; font-size: 1.06rem; }
.cta-band .hero-cta { justify-content: center; }

/* ============ Footer ============ */
.site-footer { background: var(--navy-900); color: #93a9c4; padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand .brand-sub { color: #8aa0bd; }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.footer-col a { display: block; color: #93a9c4; font-size: .94rem; padding: 5px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }

/* ============ Page hero (inner pages) ============ */
.page-hero { background: linear-gradient(155deg, var(--navy-800), var(--navy-900)); color: #dce6f2; padding: 66px 0; text-align: center; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 12px; }
.page-hero p { color: #aec4de; max-width: 620px; margin: 0 auto; font-size: 1.08rem; }
.breadcrumb { font-size: .86rem; color: #7e95b3; margin-bottom: 18px; }
.breadcrumb a { color: #9fb6d4; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 940px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px 22px; gap: 2px;
    box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform var(--t); z-index: 99;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 12px; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 40px 24px; }
}
