:root {
    --primary-color: #38A169; /* Green */
    --secondary-color: #3182CE; /* Blue */
    --primary-light: #9AE6B4;
    --secondary-light: #90CDF4;
    --bg-color: #F7FAFC;
    --text-color: #2D3748;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
}

.primary-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.section-title {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.ingredient-item {
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.ingredient-item:hover {
    border-left: 6px solid var(--secondary-color);
    transform: translateX(5px);
}

.btn-primary {
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #2F855A; /* Darker green */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 161, 105, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #2C5282; /* Darker blue */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
}

.card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.scaling-vector {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Cpath fill='%2338A169' d='M400 50c-190 0-350 160-350 350s160 350 350 350 350-160 350-350S590 50 400 50zm0 100c138 0 250 112 250 250S538 650 400 650 150 538 150 400s112-250 250-250z'/%3E%3Cpath fill='%233182CE' d='M630 170L170 630M170 170l460 460'/%3E%3Ccircle cx='400' cy='400' r='50' fill='%2338A169'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Animation classes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.float {
    animation: float 5s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

/* Input range styling */
input[type=range] {
    -webkit-appearance: none;
    height: 7px;
    background: #e2e8f0;
    border-radius: 5px;
    background-image: linear-gradient(var(--primary-color), var(--primary-color));
    background-size: 0% 100%;
    background-repeat: no-repeat;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 2px 0 #555;
    transition: background .3s ease-in-out;
}

input[type=range]::-webkit-slider-thumb:hover {
    background: var(--secondary-color);
}

input[type=range]::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    box-shadow: none;
    border: none;
    background: transparent;
}

/* Custom tooltip */
.custom-tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted var(--primary-color);
}

.custom-tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.custom-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
