html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
/* Prevent horizontal scroll */
html {
    overflow-x: hidden;
}
body {
    max-width: 100%;
    overflow-x: clip; /* better than hidden */
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

/* Center nav pill style */
.nav-pill-custom {
    background: #f5f7fb;
    padding: 6px 10px;
    border-radius: 40px;
}

    /* Nav links */
    .nav-pill-custom .nav-link {
        color: #555;
        font-weight: 500;
        padding: 6px 16px;
        border-radius: 30px;
        transition: all 0.3s ease;
    }

    /* Active pill */
    .nav-pill-custom .active-pill {
        background: #4f8dfd;
        color: #fff !important;
    }

    /* Hover effect */
    .nav-pill-custom .nav-link:hover {
        background: #e6ecff;
        color: #000;
    }
/* Fixed navbar smooth effect */
.custom-navbar {
    transition: all 0.3s ease;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

/* On scroll effect */
.navbar-scrolled {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}
/* Contact button */
.contact-btn {
    background: #4f8dfd;
    border: none;
    font-weight: 500;
    transition: 0.3s;
}

    .contact-btn:hover {
        background: #3b73e0;
    }
/* Footer Base */
.footer-modern {
    background: url('/images/footer-bg.png') repeat center center;
    background-size: cover;
    position: relative;
    padding: 80px 0 40px;
}

/* Newsletter Box */
.newsletter-box {
    background: url('/images/newsletter-bg.png') no-repeat center center;
    background-size: cover;
    padding: 40px;
    border-radius: 20px;
    margin-top: -120px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

/* Newsletter Input */
.newsletter-form input {
    max-width: 300px;
    border-radius: 30px;
    padding: 10px 15px;
    border: none;
}

/* Footer Content */
.footer-content ul li {
    margin-bottom: 10px;
    color: #555;
    cursor: pointer;
}

/* Bottom */
.footer-bottom {
    font-size: 14px;
    margin-top:-65px;
}

/* Social Icons */
.social-icons span {
    margin-left: 10px;
    font-size: 18px;
    cursor: pointer;
}

/* Background Big Text */
.footer-bg-text {
    font-size: 280px;
    font-weight: 800;
    color: rgb(225 221 221 / 20%);
    pointer-events: none;
    text-transform: lowercase;
    margin-top:-160px;
}

/* Responsive */
@media (max-width: 768px) {
    .newsletter-box {
        margin-top: 0;
    }

    .footer-bg-text {
        font-size: 60px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/* Header entry animation */
.custom-navbar {
    transform: translateY(-80px);
    opacity: 0;
    animation: navbarReveal 0.8s ease forwards;
}

@keyframes navbarReveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* When scrolling */
.navbar-scrolled {
    padding: 10px 0 !important;
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,0.85) !important;
    transition: all 0.3s ease;
}
/* Navbar links animation */
.navbar-nav .nav-item {
    opacity: 0;
    transform: translateY(-10px);
    animation: navFade 0.6s ease forwards;
}

    .navbar-nav .nav-item:nth-child(1) {
        animation-delay: 0.2s;
    }

    .navbar-nav .nav-item:nth-child(2) {
        animation-delay: 0.3s;
    }

    .navbar-nav .nav-item:nth-child(3) {
        animation-delay: 0.4s;
    }

    .navbar-nav .nav-item:nth-child(4) {
        animation-delay: 0.5s;
    }

@keyframes navFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.footer-content > .row > div {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

/* stagger */
.footer-modern.active .row > div:nth-child(1) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.footer-modern.active .row > div:nth-child(2) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.footer-modern.active .row > div:nth-child(3) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

.footer-modern.active .row > div:nth-child(4) {
    transition-delay: 0.8s;
    opacity: 1;
    transform: translateY(0);
}
.footer-bg-text {
    animation: floatText 4s ease-in-out infinite;
}

@keyframes floatText {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}
.btn {
    transition: all 0.3s ease;
}

    .btn:hover {
        transform: translateY(-2px) scale(1.03);
        box-shadow: 0 10px 25px rgba(79,141,253,0.3);
    }
