/*
 * S2 Design - one-page website template
 * Built on Bootstrap 5.3. Change the look from the variables below.
 */
:root {
    --s2-green: #2cdd9b;
    --s2-teal: #1dc8cc;
    --s2-gradient: linear-gradient(to right, var(--s2-green) 0%, var(--s2-teal) 100%);
    --s2-gradient-hover: linear-gradient(to right, var(--s2-teal) 0%, var(--s2-green) 100%);
    --s2-ink: #3e4555;
    --s2-heading: #263238;
    --s2-muted: #8d97ad;
    --s2-band: #dee9eb;
    --s2-light: #f4f8fa;
    --s2-line: rgba(120, 130, 140, .13);
    --s2-shadow: 0 0 30px rgba(115, 128, 157, .1);
    --s2-footer: #263238;

    --bs-body-font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-font-weight: 300;
    --bs-body-color: var(--s2-muted);
    --bs-link-color-rgb: 38, 50, 56;
    --bs-link-hover-color-rgb: 44, 221, 155;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { font-size: 15px; line-height: 1.6; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--s2-heading); font-weight: 400; }
a { text-decoration: none; transition: color .2s ease; }
strong { font-weight: 600; }
.fw-medium { font-weight: 500 !important; }

.skip-link { position: absolute; top: 8px; left: 8px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 4px; }

/* Spacing and section headings */
.spacer { padding: 90px 0; }
@media (max-width: 767px) { .spacer { padding: 60px 0; } }
.title { margin: 20px 0 15px; }
.display-title { font-size: clamp(2rem, 1.4rem + 2vw, 2.5rem); }
.subtitle { color: var(--s2-muted); line-height: 24px; font-weight: 300; }
.eyebrow { color: var(--s2-green); text-transform: uppercase; font-weight: 500; font-size: 14px; margin-bottom: 0; }
.bg-light-green { background-color: var(--s2-band); }
.bg-light { background-color: var(--s2-light) !important; }
.text-megna { color: var(--s2-teal); }
.text-success { color: var(--s2-green) !important; }
.text-gradient { background: var(--s2-gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.link { color: var(--s2-heading); }
.link:hover { color: var(--s2-green); }

/* Buttons */
.btn { font-weight: 500; border-radius: 4px; }
.btn-md { padding: 15px 45px; font-size: 16px; }
@media (max-width: 575px) { .btn-md { padding: 13px 28px; } }
.btn-gradient { background: var(--s2-gradient); border: 0; color: #fff; }
.btn-gradient:hover, .btn-gradient:focus-visible { background: var(--s2-gradient-hover); color: #fff; }
.btn-success { background: var(--s2-green); border-color: var(--s2-green); color: #fff; }
.btn-success:hover { background: var(--s2-teal); border-color: var(--s2-teal); }
.btn-outline-success { color: var(--s2-green); border-color: var(--s2-green); }
.btn-outline-success:hover { background: var(--s2-green); border-color: var(--s2-green); color: #fff; }
.btn-outline-dark { color: var(--s2-heading); border-color: rgba(38, 50, 56, .5); }
.btn-arrow .bi { display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.btn-arrow:hover .bi { transform: translateX(5px); }
.btn-link { color: var(--s2-heading); }
.link-underline-anim { padding-left: 0; padding-right: 0; position: relative; }
.link-underline-anim::after { content: ""; position: absolute; left: 0; right: 30px; bottom: 12px; height: 1px; background: currentColor; transform-origin: left; transition: transform .3s ease; }
.link-underline-anim:hover::after { transform: scaleX(0); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; transition: box-shadow .3s ease; }
.site-header.scrolled { box-shadow: var(--s2-shadow); }
.topbar { padding: 4px 0; font-size: 14px; }
.topbar a { color: var(--s2-muted); padding: 10px 8px; display: inline-block; font-weight: 400; }
.topbar a:hover { color: var(--s2-heading); }
.topbar .divider { width: 1px; height: 18px; background: var(--s2-line); vertical-align: middle; margin: 0 6px; }
.main-nav { border-top: 1px solid var(--s2-line); padding: 0; min-height: 64px; }
.main-nav .nav-link { color: var(--s2-heading); font-size: 13px; font-weight: 400; text-transform: uppercase; padding: 22px 10px !important; margin: 0 10px; }
.main-nav .nav-link:hover, .main-nav .nav-link.active, .main-nav .show > .nav-link { color: var(--s2-green); }
.main-nav .dropdown-menu { border: 0; box-shadow: var(--s2-shadow); padding: 10px 0; margin-top: 0; animation: menu-in .2s ease; }
.main-nav .dropdown-item { font-size: 14px; padding: 8px 22px; color: var(--s2-ink); }
.main-nav .dropdown-item:hover { background: var(--s2-light); color: var(--s2-green); }
@keyframes menu-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.navbar-toggler { border: 0; font-size: 28px; color: var(--s2-green); }
.navbar-toggler:focus { box-shadow: none; }

/* The logo hangs below the bar on large screens, centred between the two menus */
.logo-tab { display: flex; flex-direction: column; align-items: center; gap: 10px; background: #fff; margin: 0; padding: 14px 0; }
.logo-tab img { height: 34px; width: auto; }
.logo-tab .logo-text { height: 26px; }
@media (min-width: 992px) {
    .main-nav .container { position: relative; }
    .logo-tab { position: absolute; left: 50%; top: -42px; transform: translateX(-50%); width: 240px; padding: 22px 0 18px; box-shadow: var(--s2-shadow); z-index: 2; }
    .logo-tab img { height: 70px; }
    .logo-tab .logo-text { height: 28px; }
    .site-header.scrolled .logo-tab { top: -1px; padding: 10px 0; }
    .site-header.scrolled .logo-tab img { height: 34px; }
    .site-header.scrolled .logo-tab .logo-text { display: none; }
    .logo-tab, .logo-tab img { transition: all .3s ease; }
    .main-nav .navbar-collapse { justify-content: space-between; }
    .main-nav .navbar-nav:last-child { margin-right: 0; }
}
@media (max-width: 991px) {
    .logo-tab { flex-direction: row; padding: 10px 0; }
    .main-nav .nav-link { padding: 12px 0 !important; margin: 0; }
    .main-nav .navbar-collapse { border-top: 1px solid var(--s2-line); padding-bottom: 12px; }
}

/* Hero */
.hero { padding-top: 140px; }
@media (max-width: 991px) { .hero { padding-top: 60px; } }
.hero-title { font-size: 90px; font-weight: 800; line-height: 90px; margin-bottom: 30px; }
@media (max-width: 767px) { .hero-title { font-size: 50px; line-height: 54px; font-weight: 700; } }
.word-rotator { display: block; font-size: .45em; line-height: 1.3; font-weight: 700; color: var(--s2-muted); opacity: .5; perspective: 400px; }
.word-rotator.out { animation: word-out .5s ease forwards; }
.word-rotator.in { animation: word-in .5s ease forwards; }
@keyframes word-out { to { opacity: 0; transform: rotateX(90deg); } }
@keyframes word-in { from { opacity: 0; transform: rotateX(-90deg); } to { opacity: .5; transform: none; } }
.hero .subtitle { max-width: 360px; }

/* The laptop around the hero screenshot, drawn in CSS */
.laptop { position: relative; max-width: 640px; margin: 0 auto; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .laptop { animation: none; } }
.laptop-screen { background: #fff; border: 2px solid #d5dbe0; border-bottom: 0; border-radius: 16px 16px 0 0; padding: 18px 18px 22px; margin: 0 9%; box-shadow: var(--s2-shadow); }
.laptop-screen img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid #eef1f4; }
.laptop-base { height: 16px; background: linear-gradient(#f3f5f7, #dfe4e8); border-radius: 0 0 14px 14px; position: relative; box-shadow: 0 30px 40px -20px rgba(38, 50, 56, .25); }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 18%; height: 6px; background: #cfd6dc; border-radius: 0 0 8px 8px; }

/* Feature cards */
.card { border: 0; border-radius: 4px; }
.card-shadow { box-shadow: var(--s2-shadow); }
.features .card { background: rgba(255, 255, 255, .55); }
.features .card-body { padding: 40px 30px; }
.features .card p { color: var(--s2-muted); }
.feature-icon { font-size: 80px; display: inline-block; margin: 16px 0 24px; line-height: 1; }
@media (min-width: 768px) { .feature-middle { margin-top: 40px; } .feature-cards .col-12 { margin-top: 30px; } }

/* News */
.news-head { border-bottom: 1px solid var(--s2-line); padding-bottom: 20px; }
.news-head h2 { font-weight: 500; }
.news-head a { font-weight: 500; font-size: 14px; }
.news-item img { border-radius: 2px; transition: transform .4s ease; }
.news-item a:hover img { transform: scale(1.04); }
.news-item h3 a { color: var(--s2-heading); font-weight: 500; }
.news-item h3 a:hover { color: var(--s2-green); }
.news-item p { font-size: 14px; }
.news-item p a { color: var(--s2-heading); font-weight: 400; }

/* Forms */
.form-control { border-color: #e9ecef; padding: 12px 16px; font-weight: 300; border-radius: 4px; }
.form-control:focus { border-color: var(--s2-green); box-shadow: 0 0 0 .2rem rgba(44, 221, 155, .2); }
.form-check-input:checked { background-color: var(--s2-green); border-color: var(--s2-green); }
.form-check-input:focus { border-color: var(--s2-green); box-shadow: 0 0 0 .2rem rgba(44, 221, 155, .2); }
.form-check-label { font-size: 14px; }
.form-result { margin: 12px 0 0; font-size: 14px; color: var(--s2-green); min-height: 1.5em; }
.form-result.error { color: #e2524b; }

/* About */
.framed { padding: 10px; background: #fff; border: 1px solid #ddd; }

/* Call to action */
.cta h2 { color: var(--s2-heading); }

/* Counters */
.counter-value { font-size: 2rem; font-weight: 500; color: var(--s2-green); margin: 0; }
.counter-label { font-size: 14px; opacity: .8; margin: 4px 0 0; font-weight: 400; color: var(--s2-ink); }

/* The scrolling strip of work (replaces the carousel plugin) */
.work-strip { position: relative; }
.work-strip-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.work-strip-track::-webkit-scrollbar { display: none; }
.work-strip-track img { flex: 0 0 20%; width: 20%; height: auto; scroll-snap-align: start; object-fit: cover; aspect-ratio: 16 / 10; }
@media (max-width: 1199px) { .work-strip-track img { flex-basis: 33.333%; width: 33.333%; } }
@media (max-width: 767px) { .work-strip-track img { flex-basis: 50%; width: 50%; } }
.work-strip-dots { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.work-strip-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #c3ccd1; transition: background .2s ease; }
.work-strip-dots button[aria-current="true"] { background: var(--s2-green); }

/* Skyline */
.skyline { max-width: 900px; width: 100%; }

/* Portfolio */
.filters button { background: none; border: 0; padding: 10px; color: var(--s2-muted); font-weight: 400; }
.filters button:hover, .filters button.active { color: var(--s2-green); }
.portfolio-grid { margin-top: 40px; }
.portfolio-grid > [hidden] { display: none; }
.portfolio-grid.filtering > div { animation: pop .4s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.work { display: block; overflow: hidden; }
.work img { display: block; width: 100%; height: auto; padding: 10px; border: 1px solid #ddd; background: #fff; transition: transform 1s ease; }
.work:hover img, .work:focus-visible img { transform: scale(1.05); }

/* Lightbox */
.lightbox .modal-content { background: transparent; border: 0; position: relative; }
.lightbox img { width: 100%; height: auto; max-height: 85vh; object-fit: contain; }
.lightbox .btn-close { position: absolute; top: -40px; right: 0; opacity: .9; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(38, 50, 56, .6); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; }
.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }
@media (max-width: 991px) { .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; } }
.modal-backdrop.show { opacity: .85; }

/* Team */
.team { text-align: center; }
.pro-pic { overflow: hidden; margin-bottom: 20px; }
.pro-pic img { width: 100%; height: auto; padding: 10px; border: 1px solid #ddd; transition: transform 1s ease; }
.pro-pic img:hover { transform: scale(1.05); }
.team .title { font-weight: 500; margin: 10px 0 4px; }
.team .subtitle { margin: 0 0 20px; font-size: 13px; }
.social { margin-top: 24px; }
.social a { color: var(--s2-muted); padding: 0 6px; }
.social a:hover { color: var(--s2-green); }

/* Pricing: the coloured tops are CSS gradients with a curved edge */
.billing-switch { display: inline-flex; align-items: center; gap: 12px; color: var(--s2-ink); font-weight: 400; }
.billing-switch .form-check { margin: 0; padding-left: 2.5em; min-height: 0; }
.billing-switch .form-check-input { width: 3em; height: 1.5em; cursor: pointer; background-color: var(--s2-green); border-color: var(--s2-green); --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"); }
.pricing-row { margin-top: 90px; align-items: start; }
.plan { overflow: hidden; background: #fff; }
.plan-top { position: relative; color: #fff; padding: 36px 20px 70px; background: var(--s2-gradient); }
.plan-top-left { clip-path: ellipse(120% 100% at 0% 0%); }
.plan-top-middle { clip-path: polygon(0 0, 100% 0, 100% 78%, 72% 92%, 50% 74%, 28% 92%, 0 78%); background: linear-gradient(160deg, var(--s2-teal), var(--s2-green)); }
.plan-top-right { clip-path: ellipse(120% 100% at 100% 0%); }
.plan-name { text-transform: uppercase; font-size: 14px; font-weight: 500; margin: 0; letter-spacing: .04em; }
.plan-price { font-size: 2.5rem; font-weight: 500; margin: 0; line-height: 1.2; }
.plan-star { display: inline-flex; width: 54px; height: 54px; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); margin-top: 14px; font-size: 22px; }
.plan-list { list-style: none; padding: 0; margin: 10px 0 40px; }
.plan-list li { padding: 18px 0; }
.plan-list strong { display: block; color: var(--s2-heading); font-weight: 400; font-size: 1.15rem; }
.plan-list span { color: var(--s2-muted); font-size: 14px; }
@media (min-width: 992px) { .plan-featured { margin-top: -60px; } }

/* Contact */
.contact-art { background: #fff; padding: 40px; }
.contact-details { box-shadow: var(--s2-shadow); }
.contact-details .card-body { gap: 18px; padding: 28px; }
.contact-details h3 { font-weight: 500; margin-bottom: 4px; }
.contact-details p { margin: 0; font-size: 14px; }
.detail-icon { flex: none; width: 54px; height: 54px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--s2-gradient); color: #fff; font-size: 22px; }

/* Footer */
.site-footer { background: var(--s2-footer); color: rgba(255, 255, 255, .6); }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: #fff; }
.round-social a { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 50%; margin: 0 4px; background: rgba(255, 255, 255, .08); transition: transform .2s ease, background .2s ease; }
.round-social a:hover { transform: translateY(-5px); background: var(--s2-green); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0; }

/* Back to top */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--s2-gradient); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; z-index: 1020; box-shadow: var(--s2-shadow); }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { color: #fff; }
