:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --secondary-color: #2196F3;
    --secondary-dark: #1976D2;
    --secondary-light: #BBDEFB;
    --text-dark: #212121;
    --text-light: #FFFFFF;
    --background: #F5F5F5;
}

body {
    background-color: var(--background);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

.bg-primary { background-color: var(--primary-color); }
.bg-primary-dark { background-color: var(--primary-dark); }
.bg-primary-light { background-color: var(--primary-light); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-secondary-dark { background-color: var(--secondary-dark); }
.bg-secondary-light { background-color: var(--secondary-light); }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    transform: perspective(1000px) rotateX(0deg);
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: perspective(1000px) rotateX(5deg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

.input-field {
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    width: 100%;
}

.input-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76,175,80,0.2);
    outline: none;
}

.plate-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    pointer-events: none;
    z-index: 0;
}

.hero-section {
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.section {
    padding: 80px 0;
    position: relative;
}

.canvas-container {
    position: relative;
    height: 300px;
    margin: 20px 0;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.bg-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nutritional-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#plateCanvas {
    width: 100%;
    height: 100%;
}

.plate-section {
    position: relative;
    height: 400px;
}

.nutrient-progress {
    height: 10px;
    border-radius: 10px;
    margin: 10px 0;
    overflow: hidden;
    background-color: #f0f0f0;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: all 0.5s ease;
}