/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #34AD54;
    --primary-rgb: 6, 163, 218;
    --secondary-rgb: 52, 173, 84;
    --light: #EEF9FF;
    --dark: #091E3E;
    --dark-rgb: 9, 30, 62;

    /* Glassmorphism & Modern Utils */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --gradient-primary: linear-gradient(135deg, #06A3DA 0%, #047da8 100%);
    --gradient-secondary: linear-gradient(135deg, #34AD54 0%, #26803d 100%);
}

body {
    font-family: 'Nunito', sans-serif;
    color: #555;
    background-color: #f8f9fa;
}

/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0% {
        -webkit-transform: perspective(120px)
    }

    50% {
        -webkit-transform: perspective(120px) rotateY(180deg)
    }

    100% {
        -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg)
    }
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
    }

    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#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;
}

/*** Typography & Utilities ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}

.section-title {
    margin-bottom: 3rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    transition: all .3s ease;
    border-radius: 50px;
    /* Modern pill shape */
    padding: 10px 30px;
}

.btn-primary {
    color: #FFFFFF;
    background: #009688;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 150, 136, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 150, 136, 0.5);
    background: linear-gradient(135deg, #00796B 0%, #009688 100%);
}

.btn-secondary {
    color: #FFFFFF;
    background: var(--gradient-secondary);
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #26803d 0%, #34AD54 100%);
    box-shadow: 0 4px 15px rgba(52, 173, 84, 0.4);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.btn-square {
    width: 36px;
    height: 36px;
}

.btn-sm-square {
    width: 30px;
    height: 30px;
}

.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;
    border-radius: 50%;
    /* Circle */
}

/*** Navbar ***/
.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 25px;
    padding: 35px 0;
    color: #FFFFFF;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: var(--dark);
}

/* Glassmorphism Sticky Navbar */
.sticky-top.navbar-dark {
    position: fixed;
    background: rgba(255, 255, 255, 0.85);
    /* Translucent White */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-dark .navbar-brand img {
    height: 80px;
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(256, 256, 256, .1);
        z-index: 999;
    }

    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .5s;
    }

    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
}

/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(9, 30, 62, 0.9), rgba(9, 30, 62, 0.6));
    /* More dynamic gradient */
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

/*** Features / Facts Cards (Glassmorphism) ***/
.fact-item {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.fact-item:hover {
    transform: translateY(-5px);
}


/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% {
        left: 0;
    }

    50% {
        left: 145px;
    }

    100% {
        left: 0;
    }
}

@keyframes section-title-run {
    0% {
        left: 0;
    }

    50% {
        left: 145px;
    }

    100% {
        left: 0;
    }
}

@-webkit-keyframes section-title-run-center {
    0% {
        left: 50%;
        margin-left: -75px;
    }

    50% {
        left: 50%;
        margin-left: 45px;
    }

    100% {
        left: 50%;
        margin-left: -75px;
    }
}

@keyframes section-title-run-center {
    0% {
        left: 50%;
        margin-left: -75px;
    }

    50% {
        left: 50%;
        margin-left: 45px;
    }

    100% {
        left: 50%;
        margin-left: -75px;
    }
}

@-webkit-keyframes section-title-run-sm {
    0% {
        left: 0;
    }

    50% {
        left: 85px;
    }

    100% {
        left: 0;
    }
}

@keyframes section-title-run-sm {
    0% {
        left: 0;
    }

    50% {
        left: 85px;
    }

    100% {
        left: 0;
    }
}

/*** Service Item (Modern Card) ***/
.service-item {
    position: relative;
    height: 100%;
    /* Fix height issue */
    padding: 40px 30px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all .4s ease;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transition: height 0.4s ease;
    z-index: 0;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(6, 163, 218, 0.15);
}

.service-item:hover::before {
    height: 100%;
    opacity: 0.05;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    /* Circle for modern look */
    color: #fff;
    font-size: 24px;
    transition: transform 0.4s;
    box-shadow: 0 8px 20px rgba(6, 163, 218, 0.3);
}

.service-item:hover .service-icon {
    transform: rotate(360deg) scale(1.1);
}

.card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    background: #fff;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/*** Modern Card (General Use) ***/
.modern-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.modern-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
    transition: height 0.4s ease;
    z-index: -1;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(6, 163, 218, 0.15);
}

.modern-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.modern-card-icon {
    width: 60px;
    height: 60px;
    background: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    transition: .5s;
}

.modern-card:hover .modern-card-icon {
    background: var(--primary);
}

.modern-card:hover .modern-card-icon i {
    color: #FFFFFF !important;
}

/*** Testimonial ***/
.testimonial-carousel .owl-stage {
    display: flex;
}

.testimonial-carousel .owl-item {
    flex: 1 0 auto;
}

.testimonial-item {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin: 20px 10px;
    /* Spacing */
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
}

.testimonial-carousel .owl-dots {
    margin-top: 25px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 12px;
    height: 12px;
    background: #DDDDDD;
    border-radius: 50%;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    width: 30px;
    border-radius: 10px;
    /* Pill */
    background: var(--primary);
}

/*** Miscellaneous ***/
.bg-header {
    background: linear-gradient(rgba(9, 30, 62, 0.8), rgba(9, 30, 62, 0.8)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

/* Footer Modernization */
.footer-about {
    /* background: var(--gradient-primary) !important; */
    /* Use gradient instead of flat primary */
    border-radius: 0;
}

@media (min-width: 768px) {
    .footer-about {
        margin-bottom: -75px;
        border-radius: 15px;
    }
}

/* Glossy Footer Effect */
.glossy-footer {
    position: relative;
    background: linear-gradient(rgba(9, 30, 62, 0.85), rgba(9, 30, 62, 0.95)), url(../img/banner_about.jpg) center center no-repeat !important;
    background-size: cover !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

/* Pricing Cards */
.price-item {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
}

.price-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Calendly & Custom Modals (Preserved) */
.calendly-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.calendly-modal-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

/* ... Preserving Enhanced Modal Styles from original ... */
.enhanced-modal {
    box-shadow: 0 10px 36px rgba(52, 173, 84, 0.11), 0 0 0 4px #e6f9eb;
    border: 0.7px solid #34AD54;
    background: radial-gradient(circle at top right, #e6f9eb 0%, #fff 75%);
}

.enhanced-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(135deg, #34AD54 0%, #26803d 100%);
    color: #fff;
    font-size: 1.3em;
    font-weight: 600;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.enhanced-close-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
}

.enhanced-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.enhanced-modal-body {
    padding: 0;
    background: repeating-linear-gradient(135deg, #f0fff4 0px, #e6f9eb 150px);
}

.enhanced-floating-button {
    position: fixed !important;
    bottom: 30px !important;
    left: 30px !important;
    z-index: 998 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(90deg, #34AD54 0%, #26803d 100%) !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    border: 3px solid #fff !important;
    box-shadow: 0 7px 20px rgba(52, 173, 84, 0.23) !important;
    padding: 0 18px !important;
    height: 48px !important;
    min-width: 200px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    animation: floatUpDown 3s ease-in-out infinite !important;
}

.enhanced-floating-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(52, 173, 84, 0.3);
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@media (max-width:480px) {
    .enhanced-floating-button {
        height: 40px;
        font-size: 14px;
        padding: 0 16px 0 10px;
        left: 18px;
        bottom: 18px;
    }
}

/* Enhanced Form Styling */
.form-control,
.form-select {
    border-radius: 10px;
    background-color: #f8f9fa !important;
    /* Slightly lighter background */
    border: 1px solid transparent;
    transition: all 0.3s ease-in-out;
    padding-left: 20px;
}

.form-control:focus,
.form-select:focus {
    background-color: #fff !important;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(6, 163, 218, 0.2);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #999;
    font-weight: 500;
}

/* Quote Section Enhancement */
#quoteForm form {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#quoteForm h3 {
    color: #fff;
    margin-bottom: 20px;
    font-weight: 800;
}

/*** Tech Stack Carousel ***/
.tech-stack-carousel .owl-item img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain;
    margin: 0 auto;
}

/*** Process Section ***/
.process-item {
    position: relative;
    padding: 30px;
    background: #FFFFFF;
    border-radius: 15px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.08);
    transition: .5s;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    z-index: 1;
}

.process-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.process-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 50%;
    margin: 0 auto 20px auto;
    transition: .5s;
}

.process-item:hover .process-icon {
    background: var(--primary);
}

.process-item:hover .process-icon i {
    color: #FFFFFF !important;
}

.process-arrow {
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%);
    z-index: 2;
    color: var(--primary);
    font-size: 24px;
}

@media (max-width: 991px) {
    .process-arrow {
        display: none;
    }

    .process-item {
        margin-bottom: 20px;
    }
}

/*** Client Carousel ***/
.client-carousel .owl-item img {
    width: 150px !important;
    height: 100px !important;
    object-fit: contain;
    margin: 0 auto;
    transition: transform 0.3s;
}

.client-carousel .owl-item img:hover {
    transform: scale(1.1);
}

/*** Back to Top ***/
.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}