html { scroll-behavior: smooth; overflow-x: clip; }
body::-webkit-scrollbar{
  width: 0;
}
body { font-family: 'Inter', sans-serif; color: #374151; width: 100%; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6, .font-heading { font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.02em; }

/* Hero fade-in keyframes */
@keyframes heroFadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
.hero-animate { animation: heroFadeUp 1.2s ease-out forwards; opacity: 0; }
.hero-animate.delay-1 { animation-delay: 0.2s; }
.hero-animate.delay-2 { animation-delay: 0.5s; }
.hero-animate.delay-3 { animation-delay: 0.8s; }

/* Animated background for special offer */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.animated-gradient {
    background: linear-gradient(-45deg, #2563EB, #1e40af, #1d4ed8, #3b82f6);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

/* Section heading underline */
.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #F59E0B;
    margin: 1rem auto 0;
    border-radius: 2px;
    transition: width 0.6s ease;
}
.section-heading.aos-animate::after,
.section-heading:hover::after {
    width: 120px;
}

/* Navbar shrink */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

/* Nav links animated underline */
.nav-link-hover {
    position: relative;
    display: inline-block;
}
.nav-link-hover::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #2563EB;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}
.nav-link-hover:hover::after,
.nav-item-dropdown:hover .nav-link-hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Dropdown Styles */
.nav-item-dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 320px;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1.25rem;
    z-index: 100;
    border: 1px solid rgba(0,0,0,0.05);
}
.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(15px);
}
.dropdown-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}
.dropdown-item:hover { background: #f8fafc; }
.dropdown-item iconify-icon {
    font-size: 1.5rem;
    color: #2563EB;
    margin-top: 2px;
}

/* Mobile menu overlay */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    overflow-y: auto;
    transition: max-height 0.4s ease-in-out;
    background: #ffffff;
    z-index: 50;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.mobile-menu.open {
    max-height: 85vh;
}

/* Project gallery hover */
.project-card { overflow: hidden; position: relative; }
.project-card img { transition: transform 0.6s ease; }
.project-card:hover img { transform: scale(1.08); }
.project-card .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.9), rgba(37,99,235,0.3));
    opacity: 0; transition: opacity 0.4s ease;
    display: flex; align-items: flex-end; padding: 1.5rem;
}
.project-card:hover .overlay { opacity: 1; }

/* Partner grayscale */
.partner-logo { 
    filter: grayscale(100%) contrast(0.5); 
    opacity: 0.5; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}
.partner-logo:hover { 
    filter: grayscale(0%) contrast(1); 
    opacity: 1; 
    transform: scale(1.05); 
}

/* Infinite Scroll Animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.scroll-parent {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    overflow-x: clip;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.scroll-track {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.scroll-track:hover {
    animation-play-state: paused;
}

.partner-item {
    flex: 0 0 auto;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Masonry grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 1rem;
}
.masonry-grid .tall { grid-row: span 2; }
@media (max-width: 768px) {
    .masonry-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
}
@media (max-width: 480px) {
    .masonry-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
}

/* Counter */
.counter-num { font-variant-numeric: tabular-nums; }

/* Button hover */
.btn-hover { transition: all 0.3s ease; }
.btn-hover:hover { transform: scale(1.05); box-shadow: 0 20px 40px rgba(37,99,235,0.3); }

/* Custom Searchable Dropdown */
.custom-select-wrapper { position: relative; }
.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 4px;
    z-index: 50;
    display: none;
    flex-direction: column;
    max-height: 300px;
}
.custom-select-dropdown.show { display: flex; }
.custom-select-box {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.custom-select-checkbox:checked ~ .custom-select-box {
    border-color: #16a34a;
}
.custom-select-checkbox:checked ~ .custom-select-box::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: #16a34a;
    border-radius: 2px;
}
.custom-select-options::-webkit-scrollbar { width: 6px; }
.custom-select-options::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 4px; }
.custom-select-options::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
.custom-select-options::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.form-input:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

/* Hero bg overlay */
.hero-bg {
    background-image: linear-gradient(rgba(15,23,42,0.85), rgba(15,23,42,0.75)), url('https://images.unsplash.com/photo-1581783898377-1c85bf937427?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
/* Fix background-attachment:fixed on ALL mobile (causes initial viewport bug on Android & iOS) */
@media (max-width: 1024px) {
    .hero-bg, .page-banner {
        background-attachment: scroll !important;
    }
}

/* Alert */
.alert { animation: slideDown 0.4s ease; }
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Team Page Styles */
.page-banner {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#ffffff22 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    z-index: 2;
}

/* Enhanced Team Cards */
.team-card {
    background: white;
    border-radius: 24px;
    padding: 16px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.team-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px -15px rgba(15, 23, 42, 0.15);
    border-color: rgba(37, 99, 235, 0.15);
}
.team-img-wrapper {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #f8fafc;
}
.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.team-card:hover .team-img-wrapper img {
    transform: scale(1.1);
}
.team-social-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.85), transparent 70%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 24px;
    gap: 12px;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-card:hover .team-social-overlay {
    opacity: 1;
    transform: translateY(0);
}
.social-btn {
    width: 40px;
    height: 40px;
    background: white;
    color: #0F172A;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.social-btn:hover {
    background: #2563EB;
    color: white;
    transform: scale(1.15) rotate(-5deg);
}

.team-content {
    padding: 24px 8px 8px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.team-card h3 {
    font-size: 1.75rem;
    line-height: 1.1;
}
.team-cta {
    margin-top: auto;
    padding-top: 20px;
}

/* Glass Card for Form */
.glass-form-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
}

/* Feature Badge */
.value-badge {
    background: #eff6ff;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563EB;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}
.value-card:hover .value-badge {
    background: #2563EB;
    color: white;
    transform: rotate(-10deg) scale(1.1);
}

/* Page Banner Slider */
.banner-slider-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.banner-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: bannerFade 12s infinite ease-in-out;
}
.banner-slide-1 {
    background-image: url('../images/small_banner/1.png');
}
.banner-slide-2 {
    background-image: url('../images/small_banner/2.png');
    animation-delay: 6s;
}
@keyframes bannerFade {
    0%, 100% { opacity: 0; transform: scale(1.05); }
    15%, 40% { opacity: 1; transform: scale(1); }
    50% { opacity: 0; transform: scale(1); }
}
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.2) 100%);
    z-index: 1;
}

/* Banter Preloader */
#preloader {
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
}
body.preloader-active { overflow: hidden; }

.banter-loader {
  position: relative;
  width: 72px;
  height: 72px;
}
.banter-loader__box {
  float: left;
  position: relative;
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
.banter-loader__box:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #2563EB; /* brand-blue */
  border-radius: 4px;
}
.banter-loader__box:nth-child(3n) { margin-right: 0; margin-bottom: 6px; }
.banter-loader__box:nth-child(1):before, .banter-loader__box:nth-child(4):before { margin-left: 26px; }
.banter-loader__box:nth-child(3):before { margin-top: 52px; }
.banter-loader__box:last-child { margin-bottom: 0; }

@keyframes moveBox-1 {
  9.0909090909% { transform: translate(-26px, 0); }
  18.1818181818% { transform: translate(0px, 0); }
  27.2727272727% { transform: translate(0px, 0); }
  36.3636363636% { transform: translate(26px, 0); }
  45.4545454545% { transform: translate(26px, 26px); }
  54.5454545455% { transform: translate(26px, 26px); }
  63.6363636364% { transform: translate(26px, 26px); }
  72.7272727273% { transform: translate(26px, 0px); }
  81.8181818182% { transform: translate(0px, 0px); }
  90.9090909091% { transform: translate(-26px, 0px); }
  100% { transform: translate(0px, 0px); }
}
.banter-loader__box:nth-child(1) { animation: moveBox-1 4s infinite; }

@keyframes moveBox-2 {
  9.0909090909% { transform: translate(0, 0); }
  18.1818181818% { transform: translate(26px, 0); }
  27.2727272727% { transform: translate(0px, 0); }
  36.3636363636% { transform: translate(26px, 0); }
  45.4545454545% { transform: translate(26px, 26px); }
  54.5454545455% { transform: translate(26px, 26px); }
  63.6363636364% { transform: translate(26px, 26px); }
  72.7272727273% { transform: translate(26px, 26px); }
  81.8181818182% { transform: translate(0px, 26px); }
  90.9090909091% { transform: translate(0px, 26px); }
  100% { transform: translate(0px, 0px); }
}
.banter-loader__box:nth-child(2) { animation: moveBox-2 4s infinite; }

@keyframes moveBox-3 {
  9.0909090909% { transform: translate(-26px, 0); }
  18.1818181818% { transform: translate(-26px, 0); }
  27.2727272727% { transform: translate(0px, 0); }
  36.3636363636% { transform: translate(-26px, 0); }
  45.4545454545% { transform: translate(-26px, 0); }
  54.5454545455% { transform: translate(-26px, 0); }
  63.6363636364% { transform: translate(-26px, 0); }
  72.7272727273% { transform: translate(-26px, 0); }
  81.8181818182% { transform: translate(-26px, -26px); }
  90.9090909091% { transform: translate(0px, -26px); }
  100% { transform: translate(0px, 0px); }
}
.banter-loader__box:nth-child(3) { animation: moveBox-3 4s infinite; }

@keyframes moveBox-4 {
  9.0909090909% { transform: translate(-26px, 0); }
  18.1818181818% { transform: translate(-26px, 0); }
  27.2727272727% { transform: translate(-26px, -26px); }
  36.3636363636% { transform: translate(0px, -26px); }
  45.4545454545% { transform: translate(0px, 0px); }
  54.5454545455% { transform: translate(0px, -26px); }
  63.6363636364% { transform: translate(0px, -26px); }
  72.7272727273% { transform: translate(0px, -26px); }
  81.8181818182% { transform: translate(-26px, -26px); }
  90.9090909091% { transform: translate(-26px, 0px); }
  100% { transform: translate(0px, 0px); }
}
.banter-loader__box:nth-child(4) { animation: moveBox-4 4s infinite; }

@keyframes moveBox-5 {
  9.0909090909% { transform: translate(0, 0); }
  18.1818181818% { transform: translate(0, 0); }
  27.2727272727% { transform: translate(0, 0); }
  36.3636363636% { transform: translate(26px, 0); }
  45.4545454545% { transform: translate(26px, 0); }
  54.5454545455% { transform: translate(26px, 0); }
  63.6363636364% { transform: translate(26px, 0); }
  72.7272727273% { transform: translate(26px, 0); }
  81.8181818182% { transform: translate(26px, -26px); }
  90.9090909091% { transform: translate(0px, -26px); }
  100% { transform: translate(0px, 0px); }
}
.banter-loader__box:nth-child(5) { animation: moveBox-5 4s infinite; }

@keyframes moveBox-6 {
  9.0909090909% { transform: translate(0, 0); }
  18.1818181818% { transform: translate(-26px, 0); }
  27.2727272727% { transform: translate(-26px, 0); }
  36.3636363636% { transform: translate(0px, 0); }
  45.4545454545% { transform: translate(0px, 0); }
  54.5454545455% { transform: translate(0px, 0); }
  63.6363636364% { transform: translate(0px, 0); }
  72.7272727273% { transform: translate(0px, 26px); }
  81.8181818182% { transform: translate(-26px, 26px); }
  90.9090909091% { transform: translate(-26px, 0px); }
  100% { transform: translate(0px, 0px); }
}
.banter-loader__box:nth-child(6) { animation: moveBox-6 4s infinite; }

@keyframes moveBox-7 {
  9.0909090909% { transform: translate(26px, 0); }
  18.1818181818% { transform: translate(26px, 0); }
  27.2727272727% { transform: translate(26px, 0); }
  36.3636363636% { transform: translate(0px, 0); }
  45.4545454545% { transform: translate(0px, -26px); }
  54.5454545455% { transform: translate(26px, -26px); }
  63.6363636364% { transform: translate(0px, -26px); }
  72.7272727273% { transform: translate(0px, -26px); }
  81.8181818182% { transform: translate(0px, 0px); }
  90.9090909091% { transform: translate(26px, 0px); }
  100% { transform: translate(0px, 0px); }
}
.banter-loader__box:nth-child(7) { animation: moveBox-7 4s infinite; }

@keyframes moveBox-8 {
  9.0909090909% { transform: translate(0, 0); }
  18.1818181818% { transform: translate(-26px, 0); }
  27.2727272727% { transform: translate(-26px, -26px); }
  36.3636363636% { transform: translate(0px, -26px); }
  45.4545454545% { transform: translate(0px, -26px); }
  54.5454545455% { transform: translate(0px, -26px); }
  63.6363636364% { transform: translate(0px, -26px); }
  72.7272727273% { transform: translate(0px, -26px); }
  81.8181818182% { transform: translate(26px, -26px); }
  90.9090909091% { transform: translate(26px, 0px); }
  100% { transform: translate(0px, 0px); }
}
.banter-loader__box:nth-child(8) { animation: moveBox-8 4s infinite; }

@keyframes moveBox-9 {
  9.0909090909% { transform: translate(-26px, 0); }
  18.1818181818% { transform: translate(-26px, 0); }
  27.2727272727% { transform: translate(0px, 0); }
  36.3636363636% { transform: translate(-26px, 0); }
  45.4545454545% { transform: translate(0px, 0); }
  54.5454545455% { transform: translate(0px, 0); }
  63.6363636364% { transform: translate(-26px, 0); }
  72.7272727273% { transform: translate(-26px, 0); }
  81.8181818182% { transform: translate(-52px, 0); }
  90.9090909091% { transform: translate(-26px, 0); }
  100% { transform: translate(0px, 0); }
}
.banter-loader__box:nth-child(9) { animation: moveBox-9 4s infinite; }

/* Sidebar Menu (Services) */
.sidebar-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
    transition: all 0.3s ease;
}
.sidebar-menu a:hover {
    background: #e2e8f0;
    color: #0F172A;
}
.sidebar-menu a.active {
    background: #2563EB;
    color: white;
    border-color: #2563EB;
}
.sidebar-menu a:last-child {
    border-bottom: none;
}

/* ============================================ */
/* MOBILE RESPONSIVE FIXES (UI/UX PRO MAX)      */
/* ============================================ */



/* Global container padding */
@media (max-width: 640px) {
    .max-w-7xl, .max-w-5xl, .max-w-4xl { padding-left: 1rem !important; padding-right: 1rem !important; }
    .page-banner { padding: 70px 0 35px !important; }
    .py-20 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .py-16 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
}

/* Responsive Typography */
@media (max-width: 768px) {
    html { font-size: 14px; } /* Scale down base font size slightly */
    h1 { font-size: 2rem !important; line-height: 1.25 !important; }
    h2 { font-size: 1.75rem !important; line-height: 1.3 !important; }
    h3 { font-size: 1.35rem !important; }
    .text-6xl { font-size: 2.5rem !important; }
    .text-5xl { font-size: 2rem !important; }
    .text-4xl { font-size: 1.6rem !important; }
    p { font-size: 0.9375rem !important; line-height: 1.6 !important; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.65rem !important; line-height: 1.35 !important; }
    h2 { font-size: 1.45rem !important; line-height: 1.35 !important; }
    .text-6xl { font-size: 2rem !important; }
    .text-5xl { font-size: 1.75rem !important; }
    .text-4xl { font-size: 1.4rem !important; }
    .page-banner { padding: 65px 0 30px !important; }
}

/* Navbar Mobile Fixes */
@media (max-width: 1024px) {
    #navbar img { height: 36px; }
    #navbar { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
}

/* iOS Background Fix (kept for older iOS + extra specificity) */
@supports (-webkit-touch-callout: none) {
    .hero-bg, .page-banner {
        background-attachment: scroll !important;
    }
}

/* Modal Responsive Behavior */
#modal-content {
    width: 100% !important;
    max-height: 92vh !important;
    margin: auto;
    display: flex;
    flex-direction: column;
}
@media (max-width: 640px) {
    #modal-content {
        border-radius: 1.25rem !important;
        margin: 0 5px;
    }
    .p-10 { padding: 1.25rem !important; }
    .px-10 { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
    .p-8 { padding: 1rem !important; }
    .px-8 { padding-left: 1rem !important; padding-right: 1rem !important; }
}

/* Hide scrollbars but allow scrolling */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
