/********** Template CSS **********/
:root {
    --primary: #006D77;        /* deep teal accent */
    --secondary: #F5F7FA;      /* very light neutral background */
    --light: #FFFFFF;
    --dark: #0B1B2B;           /* near-black slate for text */
    --muted: #6B7A86;          /* subdued text */
    --glass: rgba(11,27,43,0.06);
    --radius: 10px;
    --elev: 0 8px 20px rgba(11,27,43,0.08);
}

body {
    font-family: 'Inter', 'Barlow', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: var(--secondary);
    color: var(--dark);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

h1,
h2,
.font-weight-bold {
    font-weight: 700 !important;
    letter-spacing: -0.02em;
    color: var(--dark);
}

h3,
h4,
.font-weight-semi-bold {
    font-weight: 600 !important;
    color: var(--dark);
}

h5,
h6,
.font-weight-medium {
    font-weight: 500 !important;
    color: var(--dark);
}

.pt-6 {
    padding-top: 80px;
}

.pb-6 {
    padding-bottom: 80px;
}

.py-6 {
    padding-top: 80px;
    padding-bottom: 80px;
}

.btn {
    font-family: 'Inter', 'Barlow', sans-serif;
    font-weight: 600;
    transition: all .35s ease;
    border-radius: 8px;
    box-shadow: none;
    padding: 10px 18px;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
}

.btn-primary {
    color: var(--light);
    background: linear-gradient(180deg, rgba(0,109,119,0.95), var(--primary));
    box-shadow: 0 6px 18px rgba(0,109,119,0.12);
    border-color: rgba(0,109,119,0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0,109,119,0.12);
}

.btn-square {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
    border-radius: 10px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    color: var(--dark);
    border: 1px solid rgba(11,27,43,0.06);
}

.back-to-top {
    position: fixed;
    display: none;
    right: 28px;
    bottom: 28px;
    z-index: 99;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--light);
    box-shadow: 0 10px 30px rgba(11,27,43,0.12);
}

/* subtle left accent for decorative shapes */
.top-shape::before {
    position: absolute;
    content: "";
    width: 26px;
    height: 100%;
    top: 0;
    left: -13px;
    background: linear-gradient(180deg, rgba(0,109,119,0.9), rgba(0,109,119,0.7));
    transform: skew(35deg);
}

/* Navbar refined */
.navbar-light .navbar-nav .nav-link {
    font-family: 'Inter', 'Barlow', sans-serif;
    padding: 18px 12px;
    font-size: 15px;
    text-transform: none;
    color: var(--dark);
    outline: none;
    transition: color .25s ease, transform .25s ease;
    letter-spacing: 0.02em;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 12px 10px;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        padding: 10px 0;
    }
}

/* Hero / Carousel caption with modern glass overlay */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(11,27,43,0.6), rgba(11,27,43,0.35));
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* responsive typography tweaks */
@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 13px;
        font-weight: 500 !important;
    }

    .carousel-caption h1 {
        font-size: 28px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.6rem;
    height: 2.6rem;
    filter: drop-shadow(0 6px 18px rgba(0,0,0,0.12));
}

/* Services: card-like, rounded, elevated */
.service-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform .35s ease, box-shadow .35s ease;
    border-radius: var(--radius);
    background: var(--light);
    box-shadow: var(--elev);
    border: 1px solid rgba(11,27,43,0.04);
    padding: 28px;
    text-align: center;
}

.service-item::after {
    position: absolute;
    content: "";
    width: 100%;
    height: 48px;
    bottom: -40px;
    left: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: .5s;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(11,27,43,0.10);
}

.service-item p {
    transition: margin .3s ease, color .25s ease;
    color: var(--muted);
}

.service-item:hover p {
    margin-bottom: 18px !important;
    color: var(--dark);
}

/* Team items: softer image movement and overlay */
.team-item {
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0.2));
    box-shadow: var(--elev);
}

.team-item img {
    transform: scale(1.05);
    margin-left: 0;
    transition: transform .6s ease;
    width: 100%;
    height: auto;
    display: block;
}

.team-item:hover img {
    transform: scale(1.12);
}

.team-item .team-text {
    left: 0;
    bottom: 0;
    position: absolute;
    width: 100%;
    padding: 18px;
    background: linear-gradient(180deg, rgba(11,27,43,0.0), rgba(11,27,43,0.6));
    color: var(--light);
    transition: transform .45s ease, opacity .35s ease;
    transform: translateY(10%);
    opacity: 0;
}

.team-item:hover .team-text {
    transform: translateY(0);
    opacity: 1;
}

.team-item .team-text::after {
    display: none;
}

/* Testimonials: minimal navigation */
.testimonial-carousel .owl-nav {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: start;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next{
    position: relative;
    margin: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    background: var(--dark);
    font-size: 18px;
    border-radius: 12px;
    transition: background .25s ease, transform .25s ease;
    box-shadow: 0 8px 24px rgba(11,27,43,0.08);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--light);
    background: var(--primary);
    transform: translateY(-3px);
}

.testimonial-carousel .owl-item img {
    width: 84px;
    height: 84px;
    border-radius: 12px;
    object-fit: cover;
}

/* Blog cards: modern rounded cards */
.blog-item {
    transition: transform .35s ease, box-shadow .35s ease;
    border-radius: 12px;
    overflow: hidden;
    background: var(--light);
    box-shadow: var(--elev);
    border: 1px solid rgba(11,27,43,0.04);
}

.blog-item img {
    transition: transform .5s ease;
    width: 100%;
    display: block;
    object-fit: cover;
}

.blog-item:hover {
    transform: translateY(-8px);
}

.blog-item:hover img {
    transform: scale(1.05);
}

/* small utility tweaks */
* {
    box-sizing: border-box;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* accessibility: focus states */
.navbar-light .navbar-nav .nav-link:focus,
.btn:focus,
a:focus {
    outline: 3px solid rgba(0,109,119,0.12);
    outline-offset: 2px;
}

/* mobile-friendly spacing */
@media (max-width: 576px) {
    .pt-6 { padding-top: 48px; }
    .pb-6 { padding-bottom: 48px; }
    .service-item { height: auto; padding: 20px; }
}