:root {
    --stipl-dark-blue: #063781;
    --stipl-blue: #067fd0;
    --stipl-black: #011f4b;
    --stipl-gray: #939393;
    --topbar-height: 42px;
    --sticky-offset: 120px;
}

html, body { overflow-x: clip; }
@supports not (overflow: clip) { html, body { overflow-x: hidden; } }

html, body {
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", sans-serif;
}

.py-6 { padding-top: 4rem !important; padding-bottom: 4rem !important; }
.py-7 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

.card-hover { transition: transform .25s ease, box-shadow .25s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }

.hero-glow {
    background: radial-gradient(120% 120% at 0% 0%, #FFF5B2 0%, var(--stipl-blue) 55%, #ffffff 100%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .08) inset;
}

.btn-stipl-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--stipl-dark-blue);
    --bs-btn-border-color: var(--stipl-dark-blue);
    background: linear-gradient(135deg, var(--stipl-dark-blue), var(--stipl-blue));
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.35s ease;
}

.btn-stipl-primary:hover {
    background: linear-gradient(135deg, var(--stipl-blue), var(--stipl-dark-blue));
    box-shadow: 0 6px 25px rgba(6, 127, 208, 0.45);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-stipl-primary:active {
    transform: translateY(0px);
    box-shadow: 0 3px 15px rgba(6, 127, 208, 0.3);
}

.bg-navbar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    top: 0;
    left: 0;
    z-index: 9991;
    transition: all .3s;
    background: rgba(255, 255, 255, .7);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.text-primary { color: var(--stipl-dark-blue) !important; }
.text-blue { color: var(--stipl-blue) !important; }
.text-dark { color: var(--stipl-black) !important; }
.bg-primary { background: var(--stipl-dark-blue) !important; }
.bg-blue { background: var(--stipl-blue) !important; }
.bg-dark-blue { background: var(--stipl-black) !important; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 1046;
    min-height: var(--topbar-height);
    display: block;
    color: #fff;
    background: linear-gradient(120deg, var(--stipl-dark-blue), var(--stipl-blue), var(--stipl-black), var(--stipl-blue)) 0% 50% / 200% 200% no-repeat;
    animation: stiplGradient 9s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .topbar { animation: none; background-size: 100% 100%; }
    .topbar::after { background: none; }
    [data-aos="fade-scale"] { transform: none !important; opacity: 1 !important; }
}

@keyframes stiplGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.navbar.sticky-below-topbar {
    position: sticky;
    top: var(--topbar-height);
    z-index: 1045;
}

.topbar .small { opacity: .95; }
.topbar a.link-light:hover { text-decoration: underline; }

.btn-whatsapp {
    background: #4CAF50;
    border: none;
    color: white;
    transition: .5s;
}

.btn-whatsapp:hover {
    background: #8bc34a;
    transition: .5s;
}

.hero-swiper-wrap.fullscreen { height: 80vh; min-height: 650px; }
.hero-swiper { width: 100%; height: 650px; }
.hero-swiper .swiper-wrapper { height: 650px; }
.hero-swiper .swiper-slide { height: 100%; position: relative; }

.hero-slide {
    position: relative;
    height: 100%;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay { pointer-events: none; }
.hero-controls, .hero-btn { z-index: 10; pointer-events: auto; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.arrow-business-png {
    position: absolute;
    bottom: -10%;
    left: 90%;
    transform: translateX(-50%);
    max-width: min(30vw, 520px);
    z-index: 2;
    opacity: 0.7;
    pointer-events: none;
    will-change: transform;
}

.arrow-right-png {
    position: absolute;
    bottom: -10%;
    left: 90%;
    transform: translateX(-50%);
    max-width: min(30vw, 520px);
    z-index: 2;
    opacity: 0.7;
    pointer-events: none;
    will-change: transform;
}

.arrow-header-png {
    position: absolute;
    top: -100%;
    right: 0;
    transform: translateX(0%);
    max-width: min(30vw, 520px);
    z-index: -1;
    opacity: 0.2;
    pointer-events: none;
    will-change: transform;
    overflow: hidden;
}

.arrow-left-png {
    position: absolute;
    bottom: 5%;
    left: 10%;
    transform: translateX(-50%);
    max-width: min(30vw, 520px);
    z-index: 2;
    opacity: .7;
    pointer-events: none;
    will-change: transform;
}

.arrow-hover-button {
    padding-right: 0px !important;
    transition: 0.4s ease !important;
}

.arrow-hover-button:hover {
    padding-right: 50px !important;
    transition: 0.4s ease !important;
}

.text-grey {
    color: #d4d4d4 !important;
}

.hero-png {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 60%;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    will-change: transform;
}

@keyframes pngFadeIn { from { opacity: 0; } to { opacity: 0.7; } }
.hero-slide .hero-png { animation: pngFadeIn .8s ease .3s forwards; }

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-content * { opacity: 0; transform: translateY(20px); }
.fade-up { animation: fadeUp 0.8s ease forwards; }
.fade-delay-1 { animation-delay: .2s; }
.fade-delay-2 { animation-delay: .4s; }
.fade-delay-3 { animation-delay: .6s; }
.fade-delay-4 { animation-delay: .8s; }

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: clamp(3rem, 40vh, 14rem);
    padding-bottom: clamp(2rem, 7vh, 5rem);
    color: #fff;
}

.hero-controls {
    position: absolute;
    right: 20px;
    bottom: 18px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-progress {
    width: 140px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .25);
    overflow: hidden;
    left: -120px !important;
    top: 20px !important;
}

.hero-progress .swiper-pagination-progressbar-fill {
    background: linear-gradient(90deg, var(--stipl-dark-blue), var(--stipl-blue));
}

.hero-btn {
    width: 44px; height: 44px; border: 0; border-radius: 50%;
    background: transparent;
    border: 1px solid #fff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
    cursor: pointer;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.hero-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 0, 0, .16); }
.hero-btn:active { transform: translateY(0); }

.hero-prev::after,
.hero-next::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: #fff;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

.hero-prev::after {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path d="M15 18l-6-6 6-6" stroke="%23000" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path d="M15 18l-6-6 6-6" stroke="%23000" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.hero-next::after {
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path d="M9 6l6 6-6 6" stroke="%23000" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path d="M9 6l6 6-6 6" stroke="%23000" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

.btn-stipl-primary {
    --bs-btn-color: #fff;
    background: linear-gradient(135deg, var(--stipl-dark-blue), var(--stipl-blue));
    border: 1px solid rgba(255, 255, 255, 0.25);
    --bs-btn-border-color: transparent;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .2);
    transition: all .35s ease;
}

.btn-stipl-primary:hover {
    background: linear-gradient(135deg, var(--stipl-blue), var(--stipl-dark-blue));
    box-shadow: 0 6px 25px rgba(6, 127, 208, .45);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .4);
}

.btn-stipl-primary:active {
    transform: translateY(0);
    box-shadow: 0 3px 15px rgba(6, 127, 208, .3);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { background-attachment: initial; }
}

.scroll-progress {
    position: fixed; left: 0; top: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--stipl-dark-blue), var(--stipl-blue));
    z-index: 11000; transition: width .1s linear;
}

#toTop {
    position: fixed; right: 16px; bottom: 16px; z-index: 1040;
    opacity: 0; transform: translateY(8px);
    transition: all .25s ease;
}

#toTop.show { opacity: 1; transform: translateY(0); }

@media (min-width: 992px) {
    html.scroll-snap { scroll-snap-type: y proximity; }
    section.snap { scroll-snap-align: start; scroll-margin-top: 80px; }
}

.about-split { position: relative; background: #fff; }

.blue-glass {
    min-height: 320px;
    height: 100%;
    background-image: url('../img/glass-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-split__media {
    min-height: 420px;
    height: 100%;
    background-image: url('../img/about-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.roofz-bg {
    min-height: 350px;
    height: 100%;
    background-image: url('../img/roofz-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nav-logo { height: 50px; }

.agritech-bg {
    min-height: 350px;
    height: 100%;
    background-image: url('../img/agritech-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-split__content {
    padding: clamp(2rem, 4vw, 3rem);
    max-width: 760px;
    margin-inline: auto;
}

@media (min-width: 992px) {
    .about-split__media { min-height: 100%; }
    .about-split__content { padding: clamp(3rem, 5vw, 4rem); }
}

.collab-logo {
    max-height: 110px;
    max-width: 100%;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.collab-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.bg-contact {
    background-image: url('../img/contact-bg.jpg');
    background-size: cover;
    background-position: center;
}

.navbar-toggler { border: none; }
.navbar-toggler:focus { text-decoration: none; outline: 0; box-shadow: none; }

@media (max-width: 767.98px) {
    .nav-logo { height: 40px; }
    .hero-content { padding-top: clamp(3rem, 40vh, 12rem); }
    .hero-swiper-wrap.fullscreen { height: 70vh; min-height: 650px; }
    .bg-contact { background-image: none; background-size: cover; background-position: center; }

    .arrow-header-png {
    top: 20%;
}
}

/* Custom AOS animation for fade and scale */
[data-aos="fade-scale"] {
    opacity: 0;
    transform: scale(0.9);
    transition-property: opacity, transform;
}
[data-aos="fade-scale"].aos-animate {
    opacity: 1;
    transform: scale(1);
}

/* ==== Welcome Overlay ==== */
.welcome-overlay[hidden] { display: none !important; }

.welcome-overlay {
  position: fixed; inset: 0; z-index: 12000;
  display: grid; place-items: center;
  pointer-events: auto;
}

.welcome-backdrop {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 120% at 15% 15%, rgba(6,127,208,.35), rgba(1,31,75,.65) 55%, rgba(0,0,0,.75) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: scale(1.02);
  transition: opacity .5s ease, transform .6s ease;
}

.welcome-card {
  position: relative; z-index: 1; text-align: center; color: #fff;
  padding: 2rem 2.25rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.06));
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  max-width: min(92vw, 560px);
  opacity: 0; transform: translateY(12px) scale(.98);
  transition: opacity .5s ease .12s, transform .6s cubic-bezier(.2,.7,.2,1) .12s;
}

.welcome-logo { display:block; margin: 0 auto .75rem; filter: drop-shadow(0 6px 16px rgba(0,0,0,.25)); }
.welcome-title { margin: .25rem 0 .5rem; font-weight: 700; letter-spacing:.2px; }
.welcome-text { margin: 0 0 1rem; opacity: .95; }

.welcome-overlay.is-visible .welcome-backdrop { opacity: 1; transform: scale(1); }
.welcome-overlay.is-visible .welcome-card { opacity: 1; transform: translateY(0) scale(1); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .welcome-backdrop, .welcome-card { transition: none; }
}

/* Optional: prevent horizontal scroll while overlay animates */
html.no-scroll, body.no-scroll { overflow: hidden; }

/* MOBILE NAVBAR */

.mobile-bottom-nav {
position: fixed;
    bottom: -2px;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  color: var(--stipl-black);
  text-decoration: none;
  font-size: 12px;
}

.mobile-bottom-nav .nav-item i {
  font-size: 18px;
  display: block;
}

.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item:hover {
  color: var(--stipl-blue);
}