/* Funk-IT — look & feel carried over from the old melvinholt.com template */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --text: #1c1c1c;
  --muted: #777777;
  --line: #eeeeee;
  --accent: #1c1c1c;
  --on-accent: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --bg-alt: #1c1c1c;
    --text: #eeeeee;
    --muted: #9a9a9a;
    --line: #2a2a2a;
    --accent: #eeeeee;
    --on-accent: #141414;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.7 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
h1, h2, h3, .logo { font-family: "Montserrat", "Poppins", sans-serif; }
a { color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ---------- preloader ---------- */
.loading {
  position: fixed; inset: 0; z-index: 1000;
  background: #fff; display: grid; place-items: center;
  transition: opacity .8s, visibility .8s;
}
.loading.done { opacity: 0; visibility: hidden; }
.load-circle {
  width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid #eee; border-top-color: #1c1c1c;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 99;
  padding: 24px 0; transition: all .5s;
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-size: 18px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: #fff; text-decoration: none;
}
.navbar nav { display: flex; gap: 28px; }
.navbar nav a {
  color: #fff; text-decoration: none; font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1px; position: relative; padding: 4px 0;
}
.navbar nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: currentColor; transition: width .3s;
}
.navbar nav a:hover::after, .navbar nav a.active::after { width: 100%; }
.navbar.nav-scroll {
  background: var(--bg); padding: 14px 0;
  box-shadow: 0 30px 50px rgba(0, 0, 0, .05);
}
.navbar.nav-scroll .logo, .navbar.nav-scroll nav a { color: var(--text); }
@media (max-width: 640px) {
  .navbar nav a:not(.lang) { display: none; }
}

/* ---------- header ---------- */
.header {
  min-height: 100vh; min-height: 100svh;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  background: #000 url(../img/bg.jpg) center / cover no-repeat;
  color: #fff; text-align: center;
}
.header::after {
  content: ""; position: absolute; inset: 0;
  background: #000; opacity: .65; z-index: 1;
}
.header .container { position: relative; z-index: 2; width: 100%; padding-top: 60px; padding-bottom: 60px; }
.header .hello { font-size: clamp(18px, 3vw, 24px); font-weight: 300; margin: 0 0 18px; }
.header h1 {
  font-size: clamp(30px, 5.4vw, 56px); font-weight: 300; line-height: 1.2;
  margin: 0 auto 22px; max-width: 23ch; text-wrap: balance;
}
.header h1 strong { font-weight: 600; }
.header .sub { font-size: clamp(16px, 2vw, 18px); color: rgba(255,255,255,.8); max-width: 36em; margin: 0 auto 34px; }

/* rotating word — "clip" effect from the old animated.headline.js */
.cd-words-wrapper {
  display: inline-flex; position: relative; vertical-align: top;
  overflow: hidden; white-space: nowrap; font-weight: 600;
  transition: width .6s ease;
}
.cd-words-wrapper::after {
  content: ""; position: absolute; top: 10%; right: 0;
  width: 2px; height: 80%; background: #aebcb9;
}
.cd-words-wrapper b { font-weight: 600; display: none; padding-right: 8px; }
.cd-words-wrapper b.is-visible { display: inline-block; }

.buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.buton {
  display: inline-block; padding: 11px 30px; border-radius: 5px;
  font-size: 14px; text-decoration: none; transition: all .5s;
  border: 1px solid #fff; color: #fff;
}
.buton:hover { background: #fff; color: #1c1c1c; }
.buton.solid { background: #fff; color: #1c1c1c; }
.buton.solid:hover { background: transparent; color: #fff; }

.social-icon { margin-top: 34px; display: flex; gap: 10px; justify-content: center; }
.social-icon a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0, 0, 0, .3); color: #fff; transition: all .4s;
}
.social-icon a:hover { background: #fff; color: #1c1c1c; }
.social-icon .fa { font-size: 15px; }

.scroll-down {
  position: absolute; bottom: 26px; left: 50%; z-index: 2;
  width: 24px; height: 38px; margin-left: -12px;
  border: 2px solid rgba(255,255,255,.6); border-radius: 12px;
}
.scroll-down::before {
  content: ""; position: absolute; left: 50%; top: 7px;
  width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: #fff; animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- sections ---------- */
.section-padding { padding: 100px 0; }
.bg-gray { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(26px, 4vw, 34px); font-weight: 700; margin: 0 0 10px;
}
.section-head h2 span { color: var(--muted); }
.section-head p { color: var(--muted); margin: 0 auto; max-width: 34em; }

/* offer */
.steps {
  list-style: none; padding: 0; margin: 0 0 40px;
  display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.steps li {
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 34px 28px; text-align: center; transition: transform .4s, box-shadow .4s;
}
.steps li:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.06); }
.steps .num {
  width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 20px;
  border: 1px solid var(--text);
}
.steps h3 { font-size: 17px; margin: 0 0 8px; }
.steps p { margin: 0; color: var(--muted); }
.note { text-align: center; max-width: 40em; margin: 0 auto; color: var(--muted); font-style: italic; }

/* cases */
.cases { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.case {
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: 30px 28px; transition: transform .4s, box-shadow .4s;
}
.case:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,.06); }
.case .who { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 0 0 8px; }
.case h3 { font-size: 19px; margin: 0 0 16px; line-height: 1.35; }
.case dl { margin: 0; }
.case dt { font-weight: 600; font-size: 14px; }
.case dd { margin: 0 0 12px; color: var(--muted); }
.case dd:last-child { margin-bottom: 0; color: var(--text); }

/* contact */
.contact-items { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 760px; margin: 0 auto; }
.contact-items a {
  display: block; text-align: center; text-decoration: none;
  padding: 34px 20px; border: 1px solid var(--line); border-radius: 6px; transition: all .4s;
}
.contact-items a:hover { background: var(--accent); color: var(--on-accent); }
.contact-items .fa { font-size: 30px; display: block; margin-bottom: 12px; }
.contact-items h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 4px; }
.contact-items span { font-size: 17px; word-break: break-word; }

footer { background: #111; color: #888; text-align: center; padding: 30px 0; font-size: 14px; }
footer a { color: #ddd; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .15s; }
.reveal.d2 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cd-words-wrapper, .steps li, .case { transition: none; }
  .scroll-down::before, .load-circle { animation: none; }
}
