/* FiberSwift modern layer: loaded after style.css, keeps the brand (green + navy) */
:root {
    --fs-green: #64c04f;
    --fs-green-dark: #4aa536;
    --fs-green-soft: rgba(100, 192, 79, .12);
    --fs-navy: #211e3b;
    --fs-navy-2: #15132a;
    --fs-ink: #3a3858;
    --fs-muted: #6b6a80;
    --fs-line: rgba(33, 30, 59, .1);
    --fs-radius: 18px;
    --fs-shadow: 0 18px 45px -18px rgba(33, 30, 59, .28);
}

html { scroll-behavior: smooth; }
::selection { background: var(--fs-green); color: #fff; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }

/* ---------- buttons ---------- */
.theme-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    white-space: nowrap !important;      /* "Talk to Us ->" always on one line */
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--fs-green), var(--fs-green-dark)) !important;
    box-shadow: 0 10px 25px -10px rgba(100, 192, 79, .8);
    transition: transform .25s ease, box-shadow .25s ease;
}
.theme-btn i { margin: 0 !important; transition: transform .25s ease; }
.theme-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(100, 192, 79, .9); }
.theme-btn:hover i { transform: translateX(4px); }
.theme-btn.minimal-btn, .theme-btn.black { background: transparent !important; box-shadow: none; }

/* ---------- header ---------- */
.header-wrap { backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.main-menu > ul > li > a { position: relative; transition: color .2s; }
.main-menu > ul > li > a::after {
    content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
    background: var(--fs-green); transition: width .25s;
}
.main-menu > ul > li:hover > a::after, .main-menu > ul > li.current > a::after { width: 100%; }
.header-cta { white-space: nowrap; }

/* ---------- cards ---------- */
.single-case-study, .single-features, .single-service-card, .fs-card {
    transition: transform .3s ease, box-shadow .3s ease;
}
.single-case-study:hover { transform: translateY(-6px); box-shadow: var(--fs-shadow); }
.single-case-study { border-radius: var(--fs-radius); overflow: hidden; }

/* ---------- typing / code animation ---------- */
.fs-typed { color: var(--fs-green); font-family: "Fira Code", "JetBrains Mono", Consolas, monospace; font-weight: 600; }
.fs-caret {
    display: inline-block; width: .09em; height: 1em; margin-left: 3px; vertical-align: -.12em;
    background: var(--fs-green); animation: fs-blink 1s steps(1) infinite;
}
@keyframes fs-blink { 50% { opacity: 0; } }

.fs-hero-line {
    display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px;
    margin: 0 0 22px; padding: 8px 16px; border-radius: 999px;
    background: var(--fs-green-soft); color: var(--fs-navy); font-size: 15px;
}
.fs-hero-line b { color: var(--fs-green-dark); }

.fs-code-band { padding: 90px 0; background: var(--fs-navy-2); position: relative; overflow: hidden; }
.fs-code-band::before {
    content: ""; position: absolute; inset: -30% -10% auto auto; width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(100, 192, 79, .28), transparent 65%); pointer-events: none;
}
.fs-code-band h2, .fs-code-band p { color: #fff; }
.fs-code-band p { opacity: .75; }
.fs-code-band .fs-kicker { color: var(--fs-green); }

.fs-kicker {
    display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: 13px;
    font-weight: 700; color: var(--fs-green-dark); margin-bottom: 12px;
}

.fs-window {
    background: #0e0c1f; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .7); overflow: hidden; position: relative;
}
.fs-window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #181632; }
.fs-window-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.fs-window-bar i:nth-child(1) { background: #ff5f56; }
.fs-window-bar i:nth-child(2) { background: #ffbd2e; }
.fs-window-bar i:nth-child(3) { background: #27c93f; }
.fs-window-bar span { margin-left: 10px; font: 12px/1 "Fira Code", Consolas, monospace; color: #8c8aa8; }
.fs-window pre {
    margin: 0; padding: 22px 24px; min-height: 290px; background: transparent; border: 0;
    font: 14px/1.75 "Fira Code", "JetBrains Mono", Consolas, monospace; color: #d6d4ee; white-space: pre-wrap;
}
.fs-window .k { color: #64c04f; }   /* keyword */
.fs-window .s { color: #f9c66a; }   /* string */
.fs-window .f { color: #7cc7ff; }   /* function */
.fs-window .c { color: #6f6d8e; font-style: italic; }
.fs-window .n { color: #ff8fab; }

/* ---------- reveal on scroll ---------- */
.fs-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.fs-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .fs-reveal { opacity: 1; transform: none; transition: none; }
    .fs-caret { animation: none; }
}

/* ---------- services grid ---------- */
.fs-section { padding: 100px 0; }
.fs-section-title { max-width: 680px; margin: 0 auto 55px; text-align: center; }
.fs-section-title h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.15; margin-bottom: 14px; }
.fs-section-title p { color: var(--fs-muted); }
.fs-svc {
    height: 100%; padding: 30px 28px; border-radius: var(--fs-radius); background: #fff;
    border: 1px solid var(--fs-line); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.fs-svc:hover { transform: translateY(-6px); box-shadow: var(--fs-shadow); border-color: var(--fs-green); }
.fs-svc .ic {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    background: var(--fs-green-soft); color: var(--fs-green-dark); font-size: 22px; margin-bottom: 20px;
}
.fs-svc h3 { font-size: 20px; margin-bottom: 10px; color: var(--fs-navy); }
.fs-svc p { color: var(--fs-muted); margin: 0; font-size: 15px; }
.fs-grid-gap > [class*="col-"] { margin-bottom: 28px; }

/* ---------- team ---------- */
.fs-hero {
    position: relative; overflow: hidden; padding: 150px 0 90px; color: #fff;
    background: radial-gradient(900px 400px at 85% 0%, rgba(100, 192, 79, .28), transparent 60%),
                linear-gradient(160deg, var(--fs-navy) 0%, var(--fs-navy-2) 100%);
}
.fs-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); line-height: 1.08; margin-bottom: 18px; }
.fs-hero p { color: rgba(255, 255, 255, .78); max-width: 640px; font-size: 18px; }
.fs-crumbs { font-size: 14px; margin-bottom: 20px; color: rgba(255, 255, 255, .6); }
.fs-crumbs a { color: var(--fs-green); }

.fs-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 45px; padding: 0; list-style: none; }
.fs-tabs button {
    border: 1px solid var(--fs-line); background: #fff; color: var(--fs-navy); padding: 10px 22px;
    border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s;
}
.fs-tabs button:hover { border-color: var(--fs-green); color: var(--fs-green-dark); }
.fs-tabs button.active { background: var(--fs-green); border-color: var(--fs-green); color: #fff; }

.fs-member {
    display: block; height: 100%; border-radius: 22px; overflow: hidden; background: #fff; color: inherit;
    border: 1px solid var(--fs-line); transition: transform .3s, box-shadow .3s;
}
a.fs-member:hover { transform: translateY(-8px); box-shadow: var(--fs-shadow); color: inherit; }
.fs-avatar {
    aspect-ratio: 1 / 1; display: grid; place-items: center; position: relative; overflow: hidden;
    background: linear-gradient(145deg, var(--fs-navy), #3a3475);
}
.fs-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
a.fs-member:hover .fs-avatar img { transform: scale(1.05); }
.fs-avatar .init { font-size: 64px; font-weight: 800; color: var(--fs-green); letter-spacing: .04em; }
.fs-badge {
    position: absolute; left: 16px; top: 16px; background: var(--fs-green); color: #fff; font-size: 12px;
    font-weight: 800; letter-spacing: .08em; padding: 6px 12px; border-radius: 999px;
}
.fs-member-body { padding: 24px; }
.fs-member-body h3 { font-size: 22px; margin: 0 0 4px; color: var(--fs-navy); }
.fs-member-body .role { color: var(--fs-green-dark); font-weight: 700; font-size: 14px; }
.fs-member-body p { color: var(--fs-muted); font-size: 14px; margin: 12px 0 16px; }
.fs-more { font-weight: 700; color: var(--fs-navy); }
.fs-more i { margin-left: 6px; transition: margin .2s; }
a.fs-member:hover .fs-more i { margin-left: 12px; }
.fs-empty {
    text-align: center; padding: 50px 24px; border: 2px dashed var(--fs-line); border-radius: 22px; color: var(--fs-muted);
}
.fs-member-wrap.is-hidden { display: none; }

/* team detail */
.fs-profile-photo {
    border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .6);
    background: linear-gradient(145deg, var(--fs-navy), #3a3475); display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
}
.fs-profile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.fs-profile-photo .init { font-size: 90px; font-weight: 800; color: var(--fs-green); }
.fs-chip {
    display: inline-block; margin: 0 8px 10px 0; padding: 9px 16px; border-radius: 999px; font-size: 14px;
    font-weight: 600; background: var(--fs-green-soft); color: var(--fs-navy);
}
.fs-hero .fs-chip { background: rgba(255, 255, 255, .1); color: #fff; }
.fs-social a {
    display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25); color: #fff; margin-right: 10px; transition: all .2s;
}
.fs-social a:hover { background: var(--fs-green); border-color: var(--fs-green); }
.fs-stat { text-align: center; padding: 26px 12px; border-radius: 18px; background: var(--fs-green-soft); }
.fs-stat b { display: block; font-size: 34px; color: var(--fs-navy); }
.fs-stat span { color: var(--fs-muted); font-size: 14px; }
.fs-quote {
    padding: 40px; border-radius: 24px; color: #fff; position: relative;
    background: linear-gradient(145deg, var(--fs-navy), #3a3475); font-size: 24px; line-height: 1.4;
}
.fs-quote::before { content: "\201C"; font-size: 90px; line-height: .6; color: var(--fs-green); display: block; }
.fs-focus { padding: 26px; border-radius: 18px; border: 1px solid var(--fs-line); height: 100%; background: #fff; }
.fs-focus h4 { font-size: 18px; color: var(--fs-navy); margin-bottom: 8px; }
.fs-focus p { margin: 0; color: var(--fs-muted); font-size: 15px; }
.fs-proj { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--fs-line); background: #fff; color: inherit; height: 100%; transition: transform .3s, box-shadow .3s; }
.fs-proj:hover { transform: translateY(-6px); box-shadow: var(--fs-shadow); color: inherit; }
.fs-proj .img { aspect-ratio: 16 / 9; background: #ddd center/cover no-repeat; }
.fs-proj .body { padding: 18px 20px; }
.fs-proj h4 { margin: 0 0 6px; font-size: 18px; color: var(--fs-navy); }
.fs-proj p { margin: 0; font-size: 14px; color: var(--fs-muted); }

/* ---------- contact form ---------- */
.fs-form {
    background: #fff; padding: 38px; border-radius: 24px; border: 1px solid var(--fs-line); box-shadow: var(--fs-shadow);
}
.fs-form h3 { color: var(--fs-navy); margin-bottom: 6px; }
.fs-form .lead-sm { color: var(--fs-muted); margin-bottom: 24px; }
.fs-field { margin-bottom: 18px; }
.fs-field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--fs-navy); }
.fs-field input, .fs-field textarea {
    width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--fs-line);
    background: #fafafc; font: inherit; color: var(--fs-navy); transition: border-color .2s, box-shadow .2s;
}
.fs-field input:focus, .fs-field textarea:focus {
    outline: 0; border-color: var(--fs-green); box-shadow: 0 0 0 4px var(--fs-green-soft); background: #fff;
}
.fs-field.has-error input, .fs-field.has-error textarea { border-color: #e5484d; }
.fs-error { color: #e5484d; font-size: 13px; margin-top: 5px; min-height: 0; }
.fs-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }
.fs-alert { display: none; padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 600; }
.fs-alert.ok { display: block; background: var(--fs-green-soft); color: #2c7a1b; }
.fs-alert.bad { display: block; background: #fde8e9; color: #b4232a; }
.fs-form button[disabled] { opacity: .7; cursor: wait; }
.fs-info-card { display: flex; gap: 16px; padding: 22px; border-radius: 18px; border: 1px solid var(--fs-line); background: #fff; margin-bottom: 18px; }
.fs-info-card .ic { flex: none; width: 50px; height: 50px; border-radius: 14px; background: var(--fs-green-soft); color: var(--fs-green-dark); display: grid; place-items: center; font-size: 20px; }
.fs-info-card h4 { margin: 0 0 4px; font-size: 17px; color: var(--fs-navy); }
.fs-info-card p { margin: 0; color: var(--fs-muted); font-size: 15px; word-break: break-word; }

/* footer newsletter feedback */
.fs-news-msg { font-size: 13px; margin-top: 8px; min-height: 18px; }
.fs-news-msg.ok { color: var(--fs-green); }
.fs-news-msg.bad { color: #ff8a8f; }

/* ---------- dark mode (existing toggle adds body.dark-1) ---------- */
body.dark-1 .fs-svc, body.dark-1 .fs-member, body.dark-1 .fs-focus, body.dark-1 .fs-proj,
body.dark-1 .fs-form, body.dark-1 .fs-info-card, body.dark-1 .fs-tabs button { background: #1b1933; border-color: rgba(255, 255, 255, .08); }
body.dark-1 .fs-svc h3, body.dark-1 .fs-member-body h3, body.dark-1 .fs-focus h4, body.dark-1 .fs-proj h4,
body.dark-1 .fs-form h3, body.dark-1 .fs-field label, body.dark-1 .fs-info-card h4, body.dark-1 .fs-more,
body.dark-1 .fs-section-title h2, body.dark-1 .fs-tabs button, body.dark-1 .fs-stat b { color: #fff; }
body.dark-1 .fs-field input, body.dark-1 .fs-field textarea { background: #12102a; color: #fff; border-color: rgba(255, 255, 255, .12); }
body.dark-1 .fs-hero-line { color: #fff; }
body.dark-1 .fs-chip { color: #fff; }

@media (max-width: 767px) {
    .fs-section { padding: 70px 0; }
    .fs-hero { padding: 120px 0 60px; }
    .fs-form { padding: 24px; }
    .fs-window pre { font-size: 12.5px; min-height: 250px; }
}

/* header: always readable, on light and dark heroes */
header.header-1 { background: rgba(255, 255, 255, .92); box-shadow: 0 1px 0 var(--fs-line); }
body.dark-1 header.header-1 { background: rgba(21, 19, 42, .92); }
header.header-1 .main-menu > ul { white-space: nowrap; }
