/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Candy Palette */
    --color-pink: #FF69B4;
    --color-pink-light: #FFB6C1;
    --color-cyan: #00FFFF;
    --color-cyan-dark: #00CED1;
    --color-purple: #9370DB;
    --color-purple-dark: #8A2BE2;
    --color-yellow: #FFD700;
    --color-cream: #FFFDD0;
    --color-mint: #98FF98;

    /* Functional Colors */
    --text-main: #2c3e50;
    --text-light: #7f8c8d;
    --bg-body: #fdfdfd;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);

    /* Shadows & Effects */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hard: 5px 5px 0px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(255, 105, 180, 0.4);

    /* Radii */
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-pill: 50px;

    /* Layout */
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Fredoka', sans-serif;
    color: var(--text-main);
    font-weight: 600;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. UTILITY CLASSES
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-pink), var(--color-cyan));
    margin: 10px auto 0;
    border-radius: 4px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    gap: 10px;
}

.btn-primary {
    background: var(--color-pink);
    color: var(--white);
    box-shadow: 0 4px 0 #d64d92;
    /* 3D effect */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #d64d92;
    background: #ff5caf;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #d64d92;
}

.btn-secondary {
    background: var(--color-cyan);
    color: var(--text-main);
    box-shadow: 0 4px 0 #00b3b6;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #00b3b6;
}

.btn-white {
    background: var(--white);
    color: var(--color-purple);
    box-shadow: 0 4px 0 #ddd;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.badge-pill {
    background: var(--color-yellow);
    color: #555;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 15px;
    box-shadow: var(--shadow-hard);
}

.highlight-text {
    color: var(--color-purple);
    position: relative;
    z-index: 1;
}

.highlight-text::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--color-mint);
    opacity: 0.6;
    z-index: -1;
    transform: skewX(-10deg);
}

/* =========================================
   3. ANIMATED BACKGROUND (Floating Candy)
   ========================================= */
.candy-bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.floating-candy {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: floaty 20s infinite linear;
}

/* Styles for individual candy pieces */
.c1 {
    width: 50px;
    height: 50px;
    background: var(--color-pink);
    top: 10%;
    left: 10%;
    animation-duration: 25s;
}

.c2 {
    width: 30px;
    height: 30px;
    background: var(--color-cyan);
    top: 20%;
    right: 15%;
    animation-duration: 30s;
    border-radius: 5px;
}

.c3 {
    width: 80px;
    height: 80px;
    border: 5px solid var(--color-purple);
    top: 60%;
    left: 5%;
    animation-duration: 35s;
    background: transparent;
}

.c4 {
    width: 40px;
    height: 40px;
    background: var(--color-yellow);
    bottom: 10%;
    right: 10%;
    animation-duration: 22s;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.c5 {
    width: 20px;
    height: 20px;
    background: var(--color-mint);
    top: 40%;
    left: 40%;
    animation-duration: 40s;
}

/* More candies */
.c6 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, var(--color-pink), transparent);
    top: 80%;
    left: 20%;
    animation-duration: 28s;
}

.c7 {
    width: 35px;
    height: 35px;
    background: var(--color-cyan-dark);
    top: 15%;
    right: 40%;
    animation-duration: 32s;
    border-radius: 0;
    transform: rotate(45deg);
}

.c8 {
    width: 55px;
    height: 55px;
    background: var(--color-purple-light);
    bottom: 20%;
    left: 50%;
    animation-duration: 36s;
    opacity: 0.2;
}

.c9 {
    width: 25px;
    height: 25px;
    border: 3px solid var(--color-yellow);
    top: 50%;
    right: 5%;
    animation-duration: 29s;
}

.c10 {
    width: 45px;
    height: 45px;
    background: var(--color-pink-light);
    top: 5%;
    left: 60%;
    animation-duration: 33s;
}

@keyframes floaty {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 50px) rotate(240deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* =========================================
   4. HEADER STYLES
   ========================================= */
.main-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 0 20px;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
    height: 70px;
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
    margin-top: 10px;
    border-radius: var(--radius-pill);
    padding: 0 20px;
    box-shadow: var(--shadow-soft);
}

.main-header.scrolled .header-container {
    margin-top: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.logo-wrapper a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 40px;
    filter: invert(1);
    width: auto;
}

.logo-text {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-pink);
    text-shadow: 1px 1px 0 var(--color-yellow);
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.desktop-nav a:not(.nav-cta-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background: var(--color-cyan);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.desktop-nav a:not(.nav-cta-btn):hover::after {
    width: 100%;
}

.nav-cta-btn {
    background: var(--color-purple);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 30px;
    box-shadow: 0 4px 0 #6a4c9c;
    transition: transform 0.2s !important;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #6a4c9c;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1002;
}

.bar {
    width: 100%;
    height: 4px;
    background: var(--color-pink);
    border-radius: 4px;
    position: absolute;
    transition: all 0.3s ease;
}

.top {
    top: 0;
}

.mid {
    top: 10px;
}

.bot {
    top: 20px;
}

/* Mobile Menu Animation */
.mobile-menu-toggle.open .top {
    transform: rotate(45deg);
    top: 10px;
}

.mobile-menu-toggle.open .mid {
    opacity: 0;
}

.mobile-menu-toggle.open .bot {
    transform: rotate(-45deg);
    top: 10px;
}

/* =========================================
   5. MOBILE MENU
   ========================================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-cream);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    background-image: repeating-linear-gradient(45deg, var(--color-cream) 25%, transparent 25%, transparent 75%, var(--color-cream) 75%, var(--color-cream)), repeating-linear-gradient(45deg, var(--color-cream) 25%, #fff 25%, #fff 75%, var(--color-cream) 75%, var(--color-cream));
    background-position: 0 0, 10px 10px;
    background-size: 20px 20px;
}

.mobile-menu-overlay.active {
    transform: translateY(0);
}

.menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.menu-content a {
    font-size: 2rem;
    font-family: 'Fredoka', sans-serif;
    color: var(--color-purple);
    font-weight: 700;
}

.menu-content a:hover {
    color: var(--color-pink);
    transform: scale(1.1);
}

.mobile-cta {
    margin-top: 20px;
    background: var(--color-pink);
    color: var(--white) !important;
    padding: 15px 40px;
    border-radius: 50px;
    box-shadow: 0 5px 0 #d64d92;
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero-section {
    padding-top: 150px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 2px dashed #ddd;
    padding-top: 20px;
}

.stat-item .count {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-cyan-dark);
    font-family: 'Fredoka', sans-serif;
}

.stat-item p {
    font-size: 0.9rem;
    margin: 0;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.candy-card-stack {
    position: relative;
    width: 250px;
    height: 350px;
}

.card-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.5rem;
    box-shadow: var(--shadow-soft);
    border: 3px solid rgba(255, 255, 255, 0.3);
    transition: transform 0.5s ease;
}

.card-visual i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.front {
    background: linear-gradient(135deg, var(--color-pink), #ff9eb5);
    z-index: 3;
    transform: rotate(-5deg);
    animation: sway1 6s infinite ease-in-out;
}

.middle {
    background: linear-gradient(135deg, var(--color-cyan), #84ffff);
    z-index: 2;
    transform: rotate(5deg) translate(20px, -10px);
    animation: sway2 7s infinite ease-in-out;
}

.back {
    background: linear-gradient(135deg, var(--color-purple), #b388ff);
    z-index: 1;
    transform: rotate(-10deg) translate(-20px, -20px);
    animation: sway3 8s infinite ease-in-out;
}

@keyframes sway1 {

    0%,
    100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(-8deg) translateY(-10px);
    }
}

@keyframes sway2 {

    0%,
    100% {
        transform: rotate(5deg) translate(20px, -10px);
    }

    50% {
        transform: rotate(8deg) translate(25px, -15px);
    }
}

@keyframes sway3 {

    0%,
    100% {
        transform: rotate(-10deg) translate(-20px, -20px);
    }

    50% {
        transform: rotate(-12deg) translate(-25px, -25px);
    }
}

.wave-separator {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    line-height: 0;
}

/* =========================================
   7. SERVICES GRID (Flip Cards)
   ========================================= */
.services-section {
    padding: 100px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.candy-wrapper {
    background-color: transparent;
    width: 100%;
    height: 350px;
    perspective: 1000px;
    /* Enable 3D */
    cursor: pointer;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-md);
}

.candy-wrapper:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.card-front {
    background-color: var(--white);
}

.card-back {
    color: white;
    transform: rotateY(180deg);
}

.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: white;
}

/* Service Colors */
.color-1 {
    background: var(--color-pink);
    box-shadow: 0 0 15px var(--color-pink-light);
}

.color-2 {
    background: var(--color-cyan);
    box-shadow: 0 0 15px var(--color-cyan);
}

.color-3 {
    background: var(--color-purple);
    box-shadow: 0 0 15px var(--color-purple-light);
}

.color-4 {
    background: var(--color-yellow);
    box-shadow: 0 0 15px #ffe066;
}

.color-5 {
    background: var(--color-mint);
    box-shadow: 0 0 15px #b0ffb0;
}

.color-6 {
    background: #ff9f43;
    box-shadow: 0 0 15px #ffbca0;
}

.color-1-bg {
    background: linear-gradient(135deg, var(--color-pink), #ff8ec3);
}

.color-2-bg {
    background: linear-gradient(135deg, var(--color-cyan), #5ffbfb);
}

.color-3-bg {
    background: linear-gradient(135deg, var(--color-purple), #a88bf2);
}

.color-4-bg {
    background: linear-gradient(135deg, var(--color-yellow), #ffeaa7);
    color: #555 !important;
}

.color-5-bg {
    background: linear-gradient(135deg, var(--color-mint), #b8e994);
    color: #555 !important;
}

.color-6-bg {
    background: linear-gradient(135deg, #ff9f43, #feb47b);
}

.card-back ul {
    text-align: left;
    margin-bottom: 20px;
    list-style-type: disc;
    padding-left: 20px;
}

/* =========================================
   8. CALCULATOR SECTION
   ========================================= */
.calculator-section {
    padding: 100px 0;
    background: #f9f9f9;
    position: relative;
    overflow: hidden;
}

.drip-top,
.drip-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23ffffff'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    z-index: 2;
}

.drip-top {
    top: 0;
    transform: rotate(180deg);
}

.drip-bottom {
    bottom: 0;
}

.calc-wrapper {
    background: var(--white);
    border-radius: 30px;
    padding: 50px;
    box-shadow: var(--shadow-soft);
    border: 2px solid var(--color-cyan);
}

.calc-header {
    text-align: center;
    margin-bottom: 40px;
}

.calc-body {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.calc-controls {
    flex: 1;
    min-width: 300px;
}

.calc-results {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-purple);
}

.control-group input[type="range"] {
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    background: var(--color-pink);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.5);
    transition: transform 0.2s;
}

.control-group input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.range-value {
    float: right;
    font-weight: 600;
    color: var(--color-cyan-dark);
}

.result-box {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-box.highlight {
    background: var(--color-purple);
    color: white;
    border: none;
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(147, 112, 219, 0.3);
}

.result-box .value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
}

.calc-disclaimer {
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    margin-top: 20px;
    font-style: italic;
}

/* =========================================
   9. INDUSTRIES & TESTIMONIALS
   ========================================= */
.industry-carousel {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.industry-item {
    width: 150px;
    height: 150px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, background 0.3s;
    border: 2px dashed #eee;
}

.industry-item:hover {
    transform: translateY(-10px) rotate(10deg);
    background: var(--color-cream);
    border-color: var(--color-yellow);
}

.industry-item i {
    font-size: 2.5rem;
    color: var(--color-pink);
    margin-bottom: 10px;
}

.industry-item span {
    font-weight: 600;
    color: var(--text-main);
}

.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--white) 0%, #fff0f5 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.testimonial-bubble {
    background: var(--white);
    padding: 40px;
    border-radius: 0 30px 30px 30px;
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -15px;
    width: 15px;
    height: 30px;
    background: var(--white);
    /* Simple corner hack */
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.quote-icon {
    font-size: 1.5rem;
    color: #eee;
    margin-bottom: 15px;
}

.author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-cyan);
}

.author h4 {
    font-size: 1rem;
    margin: 0;
}

.author span {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* =========================================
   10. LEGAL & CONTACT PAGES (Styles)
   ========================================= */
.legal-page,
.contact-page {
    padding-top: 150px;
    padding-bottom: 50px;
}

.content-box {
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 50px;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-pink);
}

.legal-content h2 {
    color: var(--color-purple);
    margin-top: 30px;
    margin-bottom: 15px;
}

.legal-content p {
    margin-bottom: 15px;
    text-align: justify;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info-panel {
    background: var(--color-purple);
    color: white;
    padding: 40px;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.contact-info-panel::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-purple);
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 15px;
    font-family: 'Quicksand', sans-serif;
    transition: border 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-pink);
    background: #fff0f5;
}

textarea.form-control {
    resize: none;
}

/* =========================================
   11. FOOTER
   ========================================= */
.main-footer {
    background: #2c3e50;
    color: white;
    padding-top: 60px;
    padding-bottom: 20px;
    position: relative;
    margin-top: 100px;
}

.footer-syrup {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%232c3e50' fill-opacity='1' d='M0,224L48,202.7C96,181,192,139,288,144C384,149,480,203,576,218.7C672,235,768,213,864,192C960,171,1056,149,1152,154.7C1248,160,1344,192,1392,208L1440,224L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col h3 {
    color: var(--color-cyan);
    margin-bottom: 20px;
    font-family: 'Fredoka', sans-serif;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #bdc3c7;
}

.footer-col a:hover {
    color: var(--color-pink);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--color-pink);
    transform: rotate(360deg);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #7f8c8d;
}

/* =========================================
   13. CHAT WIDGET STYLES (New)
   ========================================= */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Quicksand', sans-serif;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--color-pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.4);
    transition: transform 0.3s;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.1) rotate(10deg);
}

.chat-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-pink);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    border: 2px solid #f0f0f0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, var(--color-pink), var(--color-purple));
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agent-avatar {
    position: relative;
    width: 40px;
    height: 40px;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid white;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--color-mint);
    border-radius: 50%;
    border: 2px solid white;
}

.header-info {
    flex: 1;
    margin-left: 15px;
}

.header-info span {
    font-weight: 700;
    display: block;
    font-family: 'Fredoka', sans-serif;
}

.header-info small {
    font-size: 0.8rem;
    opacity: 0.9;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
}

.close-chat:hover {
    opacity: 1;
}

.chat-body {
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    background: #f9f9f9;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.msg {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    max-width: 80%;
    line-height: 1.4;
}

.msg.received {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    outline: none;
    font-family: 'Quicksand', sans-serif;
}

.chat-input-area input:focus {
    border-color: var(--color-pink);
}

.chat-input-area button {
    background: var(--color-cyan);
    color: var(--text-main);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-input-area button:hover {
    transform: scale(1.1);
}


/* =========================================
   14. PROCESS SECTION (Timeline) - The "Cooking" Part
   ========================================= */
.process-section {
    padding: 100px 0;
    position: relative;
    background: #fff;
    overflow: hidden;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
    padding: 20px 0;
}

/* The Vertical Line */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 6px;
    background: repeating-linear-gradient(45deg,
            #f0f0f0,
            #f0f0f0 10px,
            #e0e0e0 10px,
            #e0e0e0 20px);
    /* Candy Cane Stripe look but subtle grey */
    transform: translateX(-50%);
    border-radius: 10px;
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 50%;
    z-index: 2;
}

.timeline-item.left {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    padding-left: 40px;
    text-align: left;
}

/* The Candy Dots */
.timeline-dot {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    font-size: 1.2rem;
    box-shadow: 0 0 0 5px white, 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.timeline-item.left .timeline-dot {
    right: -25px;
}

.timeline-item.right .timeline-dot {
    left: -25px;
}

.timeline-dot.color-1 {
    background: var(--color-pink);
}

.timeline-dot.color-2 {
    background: var(--color-cyan);
}

.timeline-dot.color-3 {
    background: var(--color-purple);
}

.timeline-dot.color-4 {
    background: var(--color-yellow);
    color: #444;
}

/* The Content Cards */
.timeline-content {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s;
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--color-purple);
}

.timeline-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Timeline Arrow Pointers */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 15px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item.left .timeline-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

.timeline-item.right .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}


/* =========================================
   15. CTA SECTION (Sugar Rush)
   ========================================= */
.cta-section {
    padding: 50px 0 100px;
}

.cta-card {
    background: linear-gradient(135deg, var(--color-cyan), var(--color-purple));
    border-radius: 40px;
    padding: 60px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(147, 112, 219, 0.4);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Background blob decoration */
.cta-decor-blob {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

/* Responsive fixes for Timeline */
@media (max-width: 768px) {
    .timeline {
        max-width: 100%;
        padding-left: 20px;
    }

    .timeline-line {
        left: 30px;
        /* Move line to left */
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 5px;
        right: auto;
    }

    .timeline-item.left .timeline-content::before,
    .timeline-item.right .timeline-content::before {
        left: -10px;
        right: auto;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
}

/* =========================================
   13. MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 30px auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .about-section .row {
        flex-direction: column;
    }

    .col-half {
        width: 100%;
    }
}


/* =========================================
   FIX FOR CHAT INPUT AREA
   ========================================= */

/* The container at the bottom of the chat window */
.chat-input-area {
    display: flex;
    /* Aligns input and button side-by-side */
    align-items: center;
    /* Vertically centers them */
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid #eee;
    gap: 10px;
    /* Space between input and button */
}

/* The text input field */
.chat-input-area input {
    flex: 1;
    /* Takes up all available space */
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    /* Rounded pill shape */
    background: #f8f9fa;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    outline: none;
    /* Removes the blue browser outline */
    transition: border-color 0.3s;
}

.chat-input-area input:focus {
    border-color: var(--color-pink);
    background: #fff;
}

/* The send button */
.chat-input-area button {
    width: 40px;
    height: 40px;
    background: var(--color-cyan);
    /* Bright color */
    color: var(--text-main);
    border: none;
    border-radius: 50%;
    /* Perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.chat-input-area button:hover {
    transform: scale(1.1);
    background: var(--color-cyan-dark);
}

.chat-input-area button i {
    font-size: 1rem;
    margin-left: -2px;
    /* Visual adjustment to center the plane icon */
}