/********** Template CSS **********/
:root {
    --primary: #4FD1C5;
    --secondary: #38B2AC;
    --light: #F8FAFC;
    --dark: #000000;
    --accent: #81E6D9;
}

* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #334155;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    border: none;
    background: var(--primary);
    color: #000000;
    cursor: pointer;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(79, 209, 197, 0.4);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(79, 209, 197, 0.5);
    color: #000000;
}


/*** 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 {
    transition: all .3s ease;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    color: #000000;
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.3);
    font-weight: 600;
}

.btn.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 209, 197, 0.4);
    color: #000000;
}

.btn.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
}

.btn.btn-outline-primary:hover {
    background: var(--primary);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 209, 197, 0.4);
}

.btn.btn-dark {
    background: #000000;
    border: 2px solid #000000;
    color: var(--primary);
    font-weight: 600;
}

.btn.btn-dark:hover {
    background: var(--dark);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 209, 197, 0.4);
}

.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;
}

.rounded-pill {
    border-radius: 50rem !important;
}


/*** Navbar ***/
.navbar {
    transition: all 0.3s ease;
}

.navbar.sticky-top {
    top: -100px;
    transition: .5s;
}

.navbar .navbar-brand h1 {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 10px 0;
    color: #64748B;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
}

.navbar .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    transition: width 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover::after,
.navbar .navbar-nav .nav-link.active::after {
    width: 100%;
}

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

@media (max-width: 991.98px) {
    .navbar .navbar-nav {
        margin-top: 20px;
        margin-bottom: 15px;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    text-align: center;
    z-index: 1;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}


/*** Service ***/
.service-item {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid #E2E8F0;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(79, 209, 197, 0.2) !important;
    border-color: var(--primary);
}

.service-item .service-icon {
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}


/*** Stats Section ***/
.bg-light {
    background: linear-gradient(135deg, #F8FAFC 0%, #E0F2FE 100%) !important;
}


/*** Shadow Effects ***/
.shadow-sm {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
}


/*** Animations ***/
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}


/*** Icon Circles ***/
.rounded-circle {
    box-shadow: 0 5px 15px rgba(79, 209, 197, 0.15);
    transition: all 0.3s ease;
}

.rounded-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(79, 209, 197, 0.3);
}


/*** Footer ***/
.footer {
    color: #94A3B8;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #94A3B8;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary);
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
    letter-spacing: 1px;
    box-shadow: none;
    padding-left: 5px;
}

.footer .btn.btn-square {
    color: #94A3B8;
    border: 1px solid #94A3B8;
}

.footer .btn.btn-square:hover {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .copyright a {
    color: var(--primary);
}

.footer .copyright a:hover {
    color: var(--accent);
}


/*** Form Styling ***/
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(79, 209, 197, 0.25);
}


/*** Custom Gradient Backgrounds ***/
.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%) !important;
}

.text-primary {
    color: var(--primary) !important;
}


/*** Improved Typography ***/
.display-2, .display-3, .display-4, .display-5, .display-6 {
    font-weight: 700;
    line-height: 1.2;
}

.text-muted {
    color: #64748B !important;
}


/*** Hover Effects for Images ***/
img {
    transition: all 0.3s ease;
}

.position-relative:hover img {
    transform: scale(1.05);
}


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

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}


/*** Mobile Responsiveness ***/
@media (max-width: 768px) {
    .display-2 {
        font-size: 2.5rem;
    }
    
    .display-6 {
        font-size: 1.8rem;
    }
    
    h1 {
        font-size: 2rem;
    }
}
