/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #0b438d;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d61919;
}

/* Organic clip paths */
.clip-wave-bottom {
    clip-path: ellipse(120% 100% at 50% 0%);
}

.clip-wave-top {
    clip-path: ellipse(120% 100% at 50% 100%);
}

.clip-curve-bottom {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%);
}

.clip-organic {
    clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 75% 85%, 50% 95%, 25% 85%, 0% 75%);
}

.clip-diagonal {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
}

.clip-diagonal-reverse {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Image masks for organic blending */
.mask-gradient-right {
    -webkit-mask-image: linear-gradient(to right, black 40%, transparent 100%);
    mask-image: linear-gradient(to right, black 40%, transparent 100%);
}

.mask-gradient-left {
    -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
    mask-image: linear-gradient(to left, black 40%, transparent 100%);
}

.mask-gradient-bottom {
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.mask-gradient-top {
    -webkit-mask-image: linear-gradient(to top, black 60%, transparent 100%);
    mask-image: linear-gradient(to top, black 60%, transparent 100%);
}

.mask-radial {
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.mask-organic-right {
    -webkit-mask-image: linear-gradient(105deg, black 30%, transparent 70%);
    mask-image: linear-gradient(105deg, black 30%, transparent 70%);
}

.mask-organic-left {
    -webkit-mask-image: linear-gradient(255deg, black 30%, transparent 70%);
    mask-image: linear-gradient(255deg, black 30%, transparent 70%);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.glass-dark {
    background: rgba(11, 67, 141, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(11, 67, 141, 0.15);
}

.glass-white {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Curved section divider SVGs */
.curve-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.curve-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

.curve-divider-top {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.curve-divider-top svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 80px;
}

/* Scroll animation triggers */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Timeline connector */
.timeline-connector {
    position: relative;
}

.timeline-connector::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #d61919, #0b438d);
    border-radius: 2px;
    transform: translateY(-50%);
}

.timeline-connector:last-child::after {
    display: none;
}

/* Premium button styles */
.btn-primary {
    background: linear-gradient(135deg, #d61919 0%, #ff6b6b 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(214, 25, 25, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(214, 25, 25, 0.45);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    transform: translateY(-3px);
}

.btn-secondary-dark {
    background: transparent;
    color: #0b438d;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid rgba(11, 67, 141, 0.4);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary-dark:hover {
    background: rgba(11, 67, 141, 0.08);
    border-color: #0b438d;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #0b438d;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #0b438d;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline:hover {
    background: #0b438d;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 67, 141, 0.3);
}

/* Navigation scrolled state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08) !important;
}

.nav-scrolled .nav-link {
    color: #0b438d !important;
}

.nav-scrolled .nav-brand {
    color: #0b438d !important;
}

.nav-scrolled .nav-cta {
    background: linear-gradient(135deg, #d61919 0%, #ff6b6b 100%) !important;
    color: white !important;
}

/* Mobile Menu Button - High Contrast Outline & Shadow */
#mobile-menu-btn {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid rgba(8, 35, 71, 0.35) !important;
    color: #082347 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

#mobile-menu-btn:hover {
    background-color: #082347 !important;
    color: #ffffff !important;
    border-color: #082347 !important;
    box-shadow: 0 6px 18px rgba(8, 35, 71, 0.35) !important;
}

.nav-scrolled #mobile-menu-btn {
    background-color: #ffffff !important;
    border: 1.5px solid #082347 !important;
    color: #082347 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

/* Testimonial card slider styles */
.slider-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: max-content;
    align-items: center;
}

.testimonial-card {
    flex: 0 0 450px;
    margin: 0 12px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.35;
    transform: scale(0.85);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

@media (max-width: 640px) {
    .testimonial-card {
        flex: 0 0 85vw;
        margin: 0 8px;
    }
}

.testimonial-card.active {
    opacity: 1;
    transform: scale(1.1);
    background: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(11, 67, 141, 0.12);
    border: 1px solid transparent;
}

.testimonial-card .stars-wrapper {
    display: none;
}

.testimonial-card .quote-wrapper {
    display: flex;
}

.testimonial-card.active .stars-wrapper {
    display: flex;
}

.testimonial-card.active .quote-wrapper {
    display: none;
}

/* Service card hover effects */
.service-image-wrapper {
    overflow: hidden;
    border-radius: 9999px;
}

.service-image-wrapper img {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-section:hover .service-image-wrapper img {
    transform: scale(1.05);
}

/* Feature card animations */
.feature-card {
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(11, 67, 141, 0.15);
}

/* Counter animation */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* Smooth gradient overlays */
.hero-overlay {
    background: linear-gradient(135deg,
            rgba(8, 35, 71, 0.85) 0%,
            rgba(11, 67, 141, 0.65) 35%,
            rgba(11, 67, 141, 0.35) 55%,
            rgba(0, 0, 0, 0.1) 100%);
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #ebebeb40;
}

.mobile-menu.open {
    transform: translateX(0);
}

/* Process timeline curved line */
.process-line {
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, #d61919 0%, #0b438d 50%, #d61919 100%);
    border-radius: 2px;
    z-index: 0;
}

/* Parallax helper */
.parallax-bg {
    will-change: transform;
}