/* ===== Global Styles ===== */
:root {
    --primary-color: #00bca0; /* WorkTre bright teal color */
    --primary-light: #1ad1b5;
    --primary-dark: #009a82;
    --secondary-color: #002c2c; /* WorkTre dark teal/navy color */
    --dark-color: #001a1a;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;

    /* Colors for animated gradients */
    --gradient-1: #00bca0;
    --gradient-2: #0099a5;
    --gradient-3: #002c2c;
    --gradient-4: #004343;

    /* Font Variables */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Open Sans', sans-serif;
    --accent-font: 'Poppins', sans-serif;
}

body {
    font-family: var(--body-font);
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.display-4, .display-5 {
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.text-center h2.display-5 {
    font-size: 2.8rem;
    margin-bottom: 0.75rem;
}

.lead {
    font-family: var(--body-font);
    font-weight: 300;
    line-height: 1.8;
    font-size: 1.18rem;
    letter-spacing: 0.01em;
    color: rgba(51, 51, 51, 0.85);
    margin-bottom: 2rem;
}

.nav-link, .btn {
    font-family: var(--accent-font);
    letter-spacing: 0.02em;
}

.card-title {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    line-height: 1.8;
}

/* Gradient Text */
.text-gradient {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Animated Gradient Text */
.animated-text-gradient {
    background: linear-gradient(90deg, var(--gradient-1), var(--gradient-3), var(--gradient-2), var(--gradient-4));
    background-size: 300% 300%;
    animation: text-gradient-animation 8s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

@keyframes text-gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== Navigation ===== */
#main-nav {
    transition: all 0.3s ease;
    background-color: transparent;
}

#main-nav.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#main-nav .navbar-brand {
    color: var(--primary-color);
}

#main-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

#main-nav .nav-link:hover {
    color: var(--primary-color);
}

#main-nav .nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

#main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: 3px;
}

/* ===== Hero Section ===== */
#hero {
    background-color: #fff;
    padding: 9rem 0 5rem;
    position: relative;
    overflow: hidden;
}

#hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 188, 160, 0.05) 0%, rgba(0, 44, 44, 0.05) 100%);
    z-index: -1;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-size: 3.2rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.hero-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: translateY(-5px);
}

/* ===== Benefits Section ===== */

.b-center {
    text-align: center;
}

.m-center {
    margin: 0 auto;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* ===== Features Section ===== */
.accordion-button {
    background-color: #fff;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(63, 81, 181, 0.05);
    border-left: 4px solid var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(63, 81, 181, 0.1);
}

.feature-list {
    list-style: none;
    padding-left: 0;
    font-family: var(--body-font);
}

.feature-list li {
    margin-bottom: 1rem;
    padding-left: 1.75rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
}

.feature-list li i {
    position: absolute;
    left: 0;
    top: 0.2rem;
    font-size: 1.1rem;
}

.feature-list li .text-success {
    color: var(--primary-color) !important;
}

/* ===== Pricing Section ===== */
.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.pricing-card.popular {
    transform: scale(1.05);
    position: relative;
    z-index: 1;
    animation: card-pulse 3s infinite;
    box-shadow: 0 10px 30px rgba(0, 188, 160, 0.2);
}

@keyframes card-pulse {
    0% {
        box-shadow: 0 10px 30px rgba(0, 188, 160, 0.2);
    }
    50% {
        box-shadow: 0 10px 30px rgba(0, 188, 160, 0.5);
    }
    100% {
        box-shadow: 0 10px 30px rgba(0, 188, 160, 0.2);
    }
}

.popular-badge {
    position: absolute;
    top: 25px;
    right: -47px;
    background: var(--primary-color);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    transform: rotate(45deg);
    font-weight: bold;
}

.pricing-tier {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    letter-spacing: -0.01em;
    position: relative;
    display: inline-block;
}

.pricing-tier::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

.pricing-amount {
    font-family: var(--heading-font);
    font-size: 3.2rem;
    font-weight: 800;
    display: flex;
    align-items: start;
    justify-content: center;
    margin: 1.5rem 0 0.75rem;
    letter-spacing: -0.02em;
}

.currency {
    font-size: 1.5rem;
    margin-top: 0.6rem;
    margin-right: 0.25rem;
    font-weight: 600;
}

.period {
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--gray-color);
    margin-top: 1rem;
    font-weight: normal;
    letter-spacing: 0;
}

.pricing-features {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
    font-family: var(--body-font);
}

.pricing-features li {
    margin-bottom: 1rem;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-features li i {
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-size: 1rem;
}

/* ===== CTA Section ===== */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

#cta {
    background-color: var(--secondary-color);
}

#cta.animated-gradient:before {
    opacity: 0.9;
}

footer.animated-gradient:before {
    opacity: 0.3;
}

/* ===== Contact Section ===== */
.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(63, 81, 181, 0.1);
    color: var(--primary-color);
    font-size: 1rem;
    border-radius: 50%;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

#contact .social-icons a {
    background-color: rgba(63, 81, 181, 0.1);
    color: var(--primary-color);
}

#contact .social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== Footer ===== */
.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

/* ===== Button Styles ===== */
.btn {
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.02em;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.btn-lg {
    font-size: 1.05rem;
    padding: 0.65rem 1.75rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border: none;
}

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

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* ===== Animation Classes ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for multiple items */
.animate-on-scroll:nth-child(1) {
    transition-delay: 0.1s;
}
.animate-on-scroll:nth-child(2) {
    transition-delay: 0.2s;
}
.animate-on-scroll:nth-child(3) {
    transition-delay: 0.3s;
}
.animate-on-scroll:nth-child(4) {
    transition-delay: 0.4s;
}
.animate-on-scroll:nth-child(5) {
    transition-delay: 0.5s;
}
.animate-on-scroll:nth-child(6) {
    transition-delay: 0.6s;
}

/* ===== Animated Gradient Background ===== */
.animated-gradient {
    position: relative;
    overflow: hidden;
}

.animated-gradient:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, var(--gradient-1), var(--gradient-2), var(--gradient-3), var(--gradient-4));
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    z-index: -1;
    opacity: 0.8;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-gradient-light:before {
    opacity: 0.2;
}

.animated-gradient-content {
    position: relative;
    z-index: 1;
}

/* ===== Price Comparison Slider ===== */
.pricing-comparison-slider {
    max-width: 800px;
    margin: 0 auto;
}

.slider-container {
    position: relative;
    width: 100%;
    padding: 0 30px;
    margin-bottom: 30px;
}

.slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background-color: rgba(0, 44, 44, 0.1);
    transform: translateY(-50%);
    border-radius: 2px;
}

.slider-input {
    -webkit-appearance: none;
    width: 100%;
    height: 24px;
    background: transparent;
    outline: none;
    margin: 0;
    z-index: 2;
    position: relative;
}

.slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.slider-input::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    border: none;
    transition: all 0.3s ease;
}

.slider-input::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.slider-label {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-color);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 20px;
    border-radius: 25px;
    letter-spacing: -0.01em;
}

.slider-label:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.slider-label.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.comparison-content {
    position: relative;
    overflow: hidden;
}

.comparison-panel {
    transition: transform 0.5s ease-in-out, opacity 0.3s ease-in-out;
}

.comparison-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.comparison-item:last-child {
    border-bottom: none;
}

.feature-name {
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.feature-value {
    font-family: var(--body-font);
    color: var(--dark-color);
    font-size: 0.95rem;
}

.plan-title {
    font-family: var(--heading-font);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.plan-price {
    display: flex;
    align-items: baseline;
    font-weight: bold;
    color: var(--dark-color);
    font-family: var(--heading-font);
    justify-content: center;
    margin: 1.5rem 0 2rem;
}

.plan-price .currency {
    font-size: 1.3rem;
    margin-right: 4px;
    font-weight: 600;
    margin-top: 0.6rem;
}

.plan-price .amount {
    font-size: 2.8rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-price .period {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-left: 5px;
    font-weight: normal;
    margin-top: 0.6rem;
    font-family: var(--body-font);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991.98px) {
    #hero {
        padding-top: 8rem;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .slider-container {
        padding: 0 15px;
    }
}

@media (max-width: 767.98px) {
    #hero {
        padding-top: 7rem;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 3rem;
    }

    .hero-text .d-flex {
        justify-content: center;
    }

    .pricing-card {
        margin-bottom: 2rem;
    }

    .comparison-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }

    .feature-value {
        margin-top: 4px;
    }
}