:root {
    /* Colors */
    --color-primary: #FF6B6B; /* Coral Red */
    --color-secondary: #4ECDC4; /* Soft Teal */
    --color-accent: #FFCD88; /* Light Peach */
    --color-background-light: #F7FFF7; /* Off-white/Minty cream */
    --color-card-background: #FFFFFF; /* Pure White */
    --color-text-dark: #333333; /* Dark Gray */
    --color-text-light: #FFFFFF; /* White */

    /* Typography */
    --font-body: 'Inter', sans-serif;
    --font-display: 'Pacifico', cursive;
    --base-font-size: 16px;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
}

/* Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: var(--base-font-size);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Hero Section */
.hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80vh;
    padding: var(--spacing-lg) var(--spacing-sm);
    background: radial-gradient(circle at 20% 80%, var(--color-primary) 0%, transparent 30%),
                radial-gradient(circle at 80% 20%, var(--color-secondary) 0%, transparent 30%),
                var(--color-background-light);
    background-size: 200% 200%;
    animation: background-animation 15s ease infinite alternate;
    overflow: hidden; /* Clip floating hearts if they go too far */
}

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin-bottom: var(--spacing-md);
}

.hero-section h1 {
    font-family: var(--font-display);
    font-size: 4.5rem;
    color: var(--color-text-dark);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.hero-section .tagline {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-dark);
    max-width: 600px;
    margin: 0 auto;
}

/* Floating Hearts */
.floating-heart {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0;
    z-index: 5;
}

.floating-heart svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.heart-1 {
    top: 10%;
    left: 15%;
    animation: float-heart-1 15s ease-in-out infinite alternate;
}

.heart-2 {
    top: 50%;
    right: 10%;
    animation: float-heart-2 18s ease-in-out infinite alternate;
    animation-delay: 2s;
}

.heart-3 {
    bottom: 20%;
    left: 30%;
    animation: float-heart-3 12s ease-in-out infinite alternate;
    animation-delay: 4s;
}

@keyframes float-heart-1 {
    0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(100px, 150px) scale(1.2); opacity: 0.7; }
}

@keyframes float-heart-2 {
    0% { transform: translate(0, 0) scale(0.9); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(-120px, -100px) scale(1.1); opacity: 0.8; }
}

@keyframes float-heart-3 {
    0% { transform: translate(0, 0) scale(0.7); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(80px, -180px) scale(1.0); opacity: 0.6; }
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    padding: var(--spacing-lg) var(--spacing-sm);
    max-width: 1200px;
    margin: var(--spacing-lg) auto;
    flex-grow: 1; /* Allow main content to grow */
}

/* Card Styles */
.card {
    background-color: var(--color-card-background);
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: var(--spacing-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px; /* Ensure consistent height */
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card .icon-wrapper {
    width: 80px;
    height: 80px;
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.card:hover .icon-wrapper {
    transform: scale(1.1);
}

.card .icon-wrapper svg {
    width: 100%;
    height: 100%;
    transition: stroke 0.3s ease, fill 0.3s ease;
}

/* Specific icon color changes on hover */
.card:nth-child(1):hover .icon-wrapper svg path {
    stroke: var(--color-secondary); /* Change chef hat stroke */
}
.card:nth-child(2):hover .icon-wrapper svg path {
    stroke: var(--color-primary); /* Change heart stroke */
}
.card:nth-child(3):hover .icon-wrapper svg circle,
.card:nth-child(3):hover .icon-wrapper svg path {
    stroke: var(--color-secondary); /* Change pokeball stroke */
}


.card-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
}

.card-phrase {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-dark);
    padding: 0 var(--spacing-xs);
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    text-align: center;
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .hero-section h1 {
        font-size: 3.5rem;
    }

    .hero-section .tagline {
        font-size: 1.2rem;
    }

    .content-grid {
        padding: var(--spacing-md) var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .card {
        min-height: 250px;
        padding: var(--spacing-sm);
    }

    .card-title {
        font-size: 1.8rem;
    }

    .card-phrase {
        font-size: 1rem;
    }

    .floating-heart {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.8rem;
    }

    .hero-section .tagline {
        font-size: 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr; /* Stack cards on very small screens */
        padding: var(--spacing-md) var(--spacing-xs);
    }

    .card {
        min-height: 220px;
    }

    .footer {
        padding: var(--spacing-sm);
        font-size: 0.9rem;
    }
}
