/********** Design tokens **********/
:root {
    --primary: #2E6FB0;
    --primary-dark: #1B4E85;
    --accent: #0EA5A0;
    --cyan: #0EA5A0;
    --dark: #14213D;
    --navy-800: #101A30;
    --light: #EEF3FB;
    --border: rgba(20, 33, 61, .09);
    --line: rgba(20, 33, 61, .09);
    --text-muted: #64748B;
    --paper: #F7F9FC;
    --tint: #EEF3FB;

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
    --shadow-md: 0 10px 24px -10px rgba(16, 24, 40, .18);
    --shadow-lg: 0 28px 56px -20px rgba(16, 24, 40, .26);
}

body {
    font-family: 'Inter', 'Manrope', sans-serif;
    color: #334159;
    background-color: var(--paper);
}

h1, h2, h3, h4, h5, h6,
.navbar-brand h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--dark);
}

.mono {
    font-family: 'Inter', sans-serif;
}

.logo-badge {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--dark);
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: var(--radius-pill);
    font-size: 15px;
    letter-spacing: 0;
    text-transform: none;
    transition: .25s ease;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-primary {
    background: var(--dark) !important;
    border-color: var(--dark) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-light {
    border: 1.5px solid var(--border);
    color: var(--dark);
    background: #FFFFFF;
}

.btn-outline-light:hover {
    background: var(--tint);
    border-color: var(--primary);
    color: var(--primary);
}

.btn.btn-square,
.btn.btn-sm-square,
.btn.btn-lg-square {
    border-radius: var(--radius-sm);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: 0;
    transition: .5s;
    box-shadow: 0 1px 0 var(--border);
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar .navbar-brand img {
    max-height: 50px;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar .navbar-nav .nav-link {
    margin-right: 6px;
    padding: 25px 12px;
    color: var(--dark);
    font-size: 14.5px;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        padding: 10px;
        margin: 12px 0 0 !important;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .3s ease;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .3s ease;
        opacity: 1;
    }

    .navbar .dropdown-item {
        border-radius: var(--radius-sm);
        padding: 10px 14px;
        font-size: 14.5px;
    }

    .navbar .dropdown-item:hover,
    .navbar .dropdown-item:focus {
        background: var(--tint);
        color: var(--primary);
    }
}

/*** Page hero (inner pages) ***/
.page-hero {
    padding: 100px 0 64px;
    background: linear-gradient(180deg, var(--tint) 0%, var(--paper) 85%);
}

.page-hero p {
    color: var(--text-muted);
    max-width: 560px;
    font-size: 16.5px;
}

.btn-play {
    position: relative;
    display: block;
    box-sizing: content-box;
    width: 16px;
    height: 26px;
    border-radius: 100%;
    border: none;
    outline: none !important;
    padding: 18px 20px 20px 28px;
    background: #FFFFFF;
    box-shadow: var(--shadow-md);
}

.btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    animation: pulse-border 1500ms ease-out infinite;
}

.btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 60px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 100%;
    transition: all 200ms;
}

.btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    left: -1px;
    border-left: 16px solid var(--primary);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(2);
        opacity: 0;
    }
}

.modal-video .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

.modal-video .modal-content {
    border-radius: var(--radius-md);
    border: none;
    overflow: hidden;
}

.modal-video .modal-body {
    position: relative;
    padding: 0px;
}

.modal-video .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}


/*** Cards & sections ***/
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
    color: var(--primary);
}

.section-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}

.surface-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.service-card {
    height: 100%;
    padding: 32px 26px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
    transition: .3s ease;
    position: relative;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.service-card .service-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: none;
    background: var(--tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 20px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 18px;
}

.project-card {
    height: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: .3s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.project-preview {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-body {
    padding: 28px 26px;
}

.contact-card {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 32px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 .2rem rgba(46, 111, 176, .15);
}


/*** Avatars ***/
.avatar-initials {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 21px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--primary), var(--dark));
    flex-shrink: 0;
}

.avatar-initials.lg {
    width: 92px;
    height: 92px;
    font-size: 30px;
}

.avatar-initials.sm {
    width: 42px;
    height: 42px;
    font-size: 15px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: var(--radius-pill);
    background: var(--tint);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 600;
    margin: 0 6px 6px 0;
}


/*** Membership / team ***/
.membership-item {
    height: 100%;
    padding: 36px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
    transition: .3s ease;
}

.membership-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}


/*** Testimonial ***/
.testimonial-carousel::before {
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to right, var(--paper) 0%, rgba(247, 249, 252, 0) 100%);
    z-index: 1;
}

.testimonial-carousel::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    background: linear-gradient(to left, var(--paper) 0%, rgba(247, 249, 252, 0) 100%);
    z-index: 1;
}

@media (min-width: 768px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 120px;
    }
}

@media (min-width: 992px) {
    .testimonial-carousel::before,
    .testimonial-carousel::after {
        width: 200px;
    }
}

.testimonial-carousel .owl-item .testimonial-text {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 34px;
    transform: scale(.92);
    box-shadow: var(--shadow-sm);
    transition: .4s ease;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    transform: scale(1);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.testimonial-carousel .owl-item .testimonial-item img,
.testimonial-carousel .owl-item .testimonial-text {
    transition: .4s ease;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 2;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    position: relative;
    color: var(--primary);
    font-size: 42px;
    transition: .3s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/
.footer {
    background: var(--navy-800);
}

.footer .btn.btn-social {
    margin-right: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    transition: .25s;
}

.footer .btn.btn-social:hover {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    text-align: left;
    color: rgba(255, 255, 255, .74);
    font-size: 15px;
    font-weight: normal;
    text-transform: none;
    transition: .25s;
}

.footer .btn.btn-link:hover {
    color: #FFFFFF;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 14.5px;
    color: rgba(255, 255, 255, .5);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer .copyright a {
    color: rgba(255, 255, 255, .78);
}

.footer .copyright a:hover {
    color: #FFFFFF;
}
