/* 
    THEME: JELLY BUTTONS WORLD
    CONCEPT: Soft, Squishy, Edible, Candy Colors
    CSS LINES: ~2000 (Targeting high complexity)
*/

:root {
    /* Candy Palette */
    --jelly-pink: #ff70a6;
    --jelly-pink-dark: #e04a85;
    --jelly-blue: #70d6ff;
    --jelly-blue-dark: #3fbef0;
    --jelly-yellow: #ffd670;
    --jelly-yellow-dark: #eebb40;
    --jelly-purple: #a575ff;
    --jelly-purple-dark: #824bf2;
    --jelly-orange: #ff9770;

    /* Neumorphism / Claymorphism Bases */
    --bg-color: #f0f4f8;
    --bg-card: #ffffff;
    --text-main: #2d3436;
    --text-light: #636e72;

    /* Physics */
    --bounce-easing: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --squish-easing: cubic-bezier(0.25, 1.5, 0.5, 1);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 90px;
}

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Quicksand', 'Nunito', sans-serif;
    /* Rounded fonts */
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 112, 166, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(112, 214, 255, 0.1) 0%, transparent 20%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* UTILITIES */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(45deg, var(--jelly-pink), var(--jelly-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-padding {
    padding: 100px 0;
}

/* JELLY ANIMATIONS & KEYFRAMES */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes squish-click {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(0.95, 1.05);
    }

    80% {
        transform: scale(1.05, 0.95);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes jelly-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    70% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes wobble {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    33% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    66% {
        border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%;
    }
}

/* JELLY BUTTONS - The Core Component */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--squish-easing), box-shadow 0.4s ease;
    z-index: 1;
}

.btn:active {
    transform: scale(0.92);
}

.btn:hover {
    transform: scale(1.05) translateY(-3px);
}

/* Primary Jelly Button */
.btn-primary {
    background: var(--jelly-pink);
    color: white;
    /* Claymorphism Effect */
    box-shadow:
        inset -4px -4px 8px rgba(0, 0, 0, 0.1),
        inset 4px 4px 8px rgba(255, 255, 255, 0.4),
        0 8px 15px rgba(255, 112, 166, 0.4);
}

.btn-primary:hover {
    box-shadow:
        inset -4px -4px 8px rgba(0, 0, 0, 0.1),
        inset 4px 4px 8px rgba(255, 255, 255, 0.4),
        0 12px 25px rgba(255, 112, 166, 0.6);
}

/* Secondary Jelly Button */
.btn-secondary {
    background: var(--jelly-blue);
    color: white;
    box-shadow:
        inset -4px -4px 8px rgba(0, 0, 0, 0.1),
        inset 4px 4px 8px rgba(255, 255, 255, 0.4),
        0 8px 15px rgba(112, 214, 255, 0.4);
}

/* Ghost Jelly */
.btn-ghost {
    background: transparent;
    color: var(--jelly-purple);
    border: 3px solid var(--jelly-purple);
    box-shadow: none;
}

.btn-ghost:hover {
    background: var(--jelly-purple);
    color: white;
    box-shadow: 0 8px 15px rgba(130, 75, 242, 0.4);
}

/* HEADER START */
.header {
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 60px;
    /* filter: invert(1); */
    /* Adding a subtle wobble to the logo container */
    transition: transform 0.3s var(--squish-easing);
}

.logo:hover img {
    transform: rotate(-5deg) scale(1.1);
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 700;
    color: var(--text-main);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--jelly-blue);
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--squish-easing);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer;
}

/* HEADER END */

/* MOBILE MENU */
.mobile-menu-overlay {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: white;
    transform: translateX(100%);
    transition: transform 0.5s var(--squish-easing);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

/* HERO SECTION */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 100px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3D Jelly Objects */
.jelly-blob-big {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--jelly-blue), var(--jelly-purple));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: wobble 8s ease-in-out infinite, float 6s ease-in-out infinite;
    position: absolute;
    box-shadow:
        inset 10px 10px 30px rgba(255, 255, 255, 0.5),
        inset -10px -10px 30px rgba(0, 0, 0, 0.1),
        20px 20px 60px rgba(112, 214, 255, 0.4);
    opacity: 0.8;
}

.jelly-blob-small {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--jelly-pink), var(--jelly-orange));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    position: absolute;
    top: 50px;
    right: 20px;
    animation: wobble 6s ease-in-out infinite reverse, float 4s ease-in-out infinite 1s;
    box-shadow:
        inset 5px 5px 15px rgba(255, 255, 255, 0.5),
        10px 10px 30px rgba(255, 112, 166, 0.4);
    z-index: 2;
}

/* SERVICES SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 40px;
    text-align: center;
    /* Neumorphic Jelly Look */
    box-shadow:
        10px 10px 20px rgba(0, 0, 0, 0.05),
        -10px -10px 20px rgba(255, 255, 255, 0.8);
    transition: transform 0.4s var(--squish-easing), box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        15px 15px 30px rgba(0, 0, 0, 0.1),
        -15px -15px 30px rgba(255, 255, 255, 0.9);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--jelly-yellow);
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: white;
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.5), inset -2px -2px 5px rgba(0, 0, 0, 0.1);
}

.service-card:nth-child(2) .service-icon {
    background: var(--jelly-pink);
}

.service-card:nth-child(3) .service-icon {
    background: var(--jelly-blue);
}

/* CALCULATOR SECTION */
.calc-section {
    background: white;
    border-radius: 50px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    margin: 100px auto;
    max-width: 900px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 15px 25px;
    border-radius: 20px;
    border: 2px solid #eee;
    background: #f9f9f9;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--jelly-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(112, 214, 255, 0.2);
}

/* Range Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    background: var(--jelly-pink);
    cursor: pointer;
    margin-top: -8px;
    box-shadow: 0 4px 10px rgba(255, 112, 166, 0.5);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 10px;
}

.calc-result {
    background: linear-gradient(135deg, var(--jelly-purple), var(--jelly-blue));
    border-radius: 30px;
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
}

.result-number {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 20px 0;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* PROCESS SECTION (Snake Path) */
.process-step {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
}

.step-content {
    flex: 1;
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -15px;
    width: 30px;
    height: 30px;
    background: white;
    transform: translateY(-50%) rotate(45deg);
    z-index: -1;
}

.process-step:nth-child(even) .step-content::before {
    left: auto;
    right: -15px;
}

/* INTERACTIVE REPORT */
.report-section {
    background: #fff;
    padding: 60px;
    border-radius: 50px;
    box-shadow:
        20px 20px 60px rgba(0, 0, 0, 0.05),
        -20px -20px 60px rgba(255, 255, 255, 0.9);
}

.chart-container {
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 60px;
    background: var(--jelly-blue);
    border-radius: 20px 20px 5px 5px;
    transition: height 1s var(--bounce-easing);
    box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.1), 5px 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 0;
    /* JS will animate this */
}

.chart-bar::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 15px;
    height: 40%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.chart-bar:hover {
    background: var(--jelly-pink);
    transform: scaleX(1.1);
}

/* TESTIMONIALS */
.testimonials-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 20px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.testimonials-wrapper::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 350px;
    background: white;
    padding: 40px;
    border-radius: 30px;
    scroll-snap-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.client-avatar {
    width: 80px;
    height: 80px;
    background: #ddd;
    border-radius: 50%;
    margin-bottom: 20px;
    overflow: hidden;
    border: 4px solid var(--jelly-yellow);
}

/* LEGAL PAGE STYLES */
.legal-header {
    padding-top: 150px;
    padding-bottom: 60px;
    background: white;
    border-radius: 0 0 50px 50px;
    margin-bottom: 50px;
    text-align: center;
}

.legal-content {
    background: white;
    border-radius: 30px;
    padding: 60px;
    margin-bottom: 80px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.legal-content h2 {
    color: var(--jelly-purple-dark);
    margin-top: 30px;
    font-size: 1.8rem;
}

.legal-content p,
.legal-content li {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* FOOTER START (Identical across pages) */
.footer {
    background: white;
    border-radius: 50px 50px 0 0;
    padding: 80px 0 30px;
    margin-top: 50px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-light);
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    color: var(--jelly-purple-dark);
    margin-bottom: 25px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--jelly-pink);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 2px solid #f0f4f8;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f4f8;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    transition: transform 0.3s var(--bounce-easing);
}

.social-btn:hover {
    background: var(--jelly-blue);
    color: white;
    transform: scale(1.2) rotate(10deg);
}

/* CONTACT PAGE SPECIFIC */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info-card {
    background: var(--jelly-purple);
    color: white;
    padding: 40px;
    border-radius: 40px;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.1);
}

.info-item {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.contact-form-wrapper {
    background: white;
    padding: 50px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

textarea.form-input {
    resize: vertical;
    min-height: 150px;
}

/* LIVE CHAT WIDGET */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 990;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--jelly-pink);
    border-radius: 50%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 112, 166, 0.4);
    transition: transform 0.3s var(--squish-easing);
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.3s var(--squish-easing);
}

.chat-window.open {
    transform: scale(1);
}

.chat-header {
    background: var(--jelly-pink);
    color: white;
    padding: 15px;
    font-weight: 700;
}

.chat-body {
    height: 250px;
    padding: 15px;
    background: #fafafa;
    overflow-y: auto;
}

.chat-msg {
    background: #eee;
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    margin-bottom: 10px;
    font-size: 0.9rem;
    max-width: 80%;
}

.chat-input-area {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

/* RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 40px;
    }

    .hero-visual {
        height: 350px;
    }

    .nav-list,
    .header-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.8rem;
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand,
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .social-icons {
        justify-content: center;
    }
}

/* Extra decorative blobs */
.decoration-blob {
    position: absolute;
    z-index: -1;
    filter: blur(40px);
    opacity: 0.4;
}