:root {
    --bg-color: #ffffff;
    --accent-color: #ffecd2;
    --text-color: #4a4a4a;
    --secondary-text: #8e8e8e;
    --primary-pastel: #ffc3a0;
    --secondary-pastel: #ffafbd;
    --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 40px rgba(255, 175, 189, 0.2);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary-text);
    margin-left: 2.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-pastel);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-pastel);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

body {
    background-color: #fcfcfc;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-top: 60px; /* Space for fixed nav */
}

/* Background Elements */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.4;
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-color);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #e0f2f1;
    bottom: -150px;
    right: -150px;
    animation-duration: 25s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #fce4ec;
    top: 50%;
    left: 60%;
    animation-duration: 30s;
}

@keyframes move {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(100px, 50px) rotate(90deg); }
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
}

header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
    background: transparent;
}

.hero-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    object-fit: cover;
    border-radius: 50px 5px 50px 5px;
    box-shadow: var(--soft-shadow);
    margin-bottom: 3rem;
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--secondary-text);
    max-width: 600px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--secondary-pastel);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary-pastel);
    margin: 1rem auto;
    border-radius: 2px;
}

.sweets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.sweet-card {
    background: white;
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--soft-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.sweet-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

.sweet-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 1.5rem;
}

.sweet-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.sweet-card .origin {
    font-size: 0.8rem;
    color: var(--secondary-pastel);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

.sweet-card .description {
    font-size: 0.9rem;
    color: var(--secondary-text);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    border-radius: 40px;
    padding: 3rem;
    box-shadow: var(--soft-shadow);
    overflow-y: auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--secondary-text);
}

.recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.recipe-details h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.ingredients, .steps {
    margin-top: 2rem;
}

.ingredients h4, .steps h4, .recipe-tips h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

.recipe-tips {
    margin-top: 2rem;
    background: #fff9f0;
    padding: 1.5rem;
    border-radius: 18px;
    border-left: 5px solid var(--accent-color);
}

.recipe-tips p {
    font-size: 0.9rem;
    color: var(--text-color);
    font-style: italic;
}

ul, ol {
    padding-left: 1.2rem;
    color: var(--secondary-text);
}

li {
    margin-bottom: 0.5rem;
}

/* Tabs Navigation */
.tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: -2rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.tab-btn {
    background: white;
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary-text);
    cursor: pointer;
    border-radius: 50px;
    box-shadow: var(--soft-shadow);
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--secondary-pastel);
    color: white;
    box-shadow: var(--hover-shadow);
}

.tab-content {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tips Styles */
.tips-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.tip-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    transition: transform 0.3s ease;
}

.tip-item:hover {
    transform: translateY(-5px);
}

.tip-number {
    position: absolute;
    top: -20px;
    left: 20px;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--accent-color);
    opacity: 0.8;
    z-index: -1;
}

.tip-item h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.tip-item p {
    font-size: 0.95rem;
    color: var(--secondary-text);
}

/* Featured Page Styles */
.featured-page {
    padding-top: 4rem;
}

.featured-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.featured-text .month {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--secondary-pastel);
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.featured-text h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.featured-image-container img {
    width: 100%;
    border-radius: 40px;
    box-shadow: var(--soft-shadow);
    animation: floating 8s ease-in-out infinite;
}

.featured-content {
    max-width: 800px;
    margin: 0 auto;
}

.feature-story {
    text-align: center;
    margin-bottom: 5rem;
}

.feature-story h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.feature-story p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    line-height: 2;
}

.feature-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.highlight-item {
    background: white;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
}

.highlight-item h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-pastel);
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .top-nav { padding: 1rem 1.25rem; }
    .logo { font-size: 1.2rem; white-space: nowrap; }
    .nav-links { display: flex; }
    .nav-links a { margin-left: 1.1rem; font-size: 0.82rem; white-space: nowrap; padding: 10px 0; }
    .featured-hero { grid-template-columns: 1fr; gap: 2rem; }
    .featured-text h2 { font-size: 2.5rem; }
    .feature-highlights { grid-template-columns: 1fr; }
    .tabs { flex-direction: column; align-items: center; gap: 1rem; }
    .modal-content {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    .recipe-image { height: 300px; }
}
