@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    /* Color Palette - Sky Blue & Green Glossy */
    --bg-cream: #e0f2fe; /* Light sky blue */
    --bg-yellow: #d1fae5; /* Light glossy green */
    --bg-pink: #bae6fd; /* Sky blue 200 */
    
    --primary-accent: #0ea5e9; /* Sky Blue */
    --secondary-accent: #10b981; /* Glossy Green */
    --highlight-accent: #38bdf8; /* Bright Sky Blue */
    
    --card-bg: rgba(255, 255, 255, 0.5); /* Translucent for glassmorphism */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-heading-alt: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* UI Values */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --shadow-soft: 0 8px 32px 0 rgba(14, 165, 233, 0.15);
    --shadow-hover: 0 15px 45px 0 rgba(16, 185, 129, 0.3);
    --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-yellow) 50%, var(--bg-pink) 100%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-accent);
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    background-color: var(--bg-yellow);
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* Typography Classes */
.title-xl { font-size: clamp(2.5rem, 5vw, 4rem); font-family: var(--font-heading-alt); font-weight: 700; margin-bottom: 1.5rem; }
.title-lg { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.title-md { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
.subtitle { font-size: 1.125rem; color: var(--text-secondary); max-width: 700px; margin: 0 auto 2rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #fff;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0ea5e9, #0369a1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, #34d399, #059669);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #10b981, #047857);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--secondary-accent);
    color: var(--secondary-accent);
}

.btn-outline:hover {
    background: var(--secondary-accent);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Header & Navigation - New Glossy Floating Design */
.header {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.7), rgba(16, 185, 129, 0.7));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
}

.header.scrolled {
    top: 10px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.85), rgba(16, 185, 129, 0.85));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 30px;
}

.logo {
    font-family: var(--font-heading-alt);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo span {
    color: #d1fae5;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    font-weight: 500;
    font-family: var(--font-heading);
    position: relative;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d1fae5;
    transition: var(--transition);
}

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

.nav-link:hover,
.nav-link.active {
    color: #d1fae5;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(14, 165, 233, 0.6), rgba(16, 185, 129, 0.7)), url('images/hero-finnish-food-background-spread.jpg') center/cover no-repeat;
}

.hero .title-xl {
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero .subtitle {
    color: #f0fdf4;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }

/* Food Cards (Glossy) */
.food-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.food-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.food-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--secondary-accent), #059669);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card-desc {
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Recipe Detail Page */
.recipe-hero {
    padding: 140px 0 60px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 40px;
}

.recipe-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.recipe-hero-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.recipe-hero-img img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.recipe-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.recipe-content-box {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.ingredient-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.ingredient-list li::before {
    content: "•";
    color: var(--primary-accent);
    font-weight: bold;
    font-size: 1.5rem;
    margin-right: 10px;
}

.step-list {
    counter-reset: step-counter;
}

.step-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
}

.step-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--primary-accent), #0284c7);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-heading);
}

.sidebar-box {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 30px;
    border-radius: var(--radius-lg);
    position: sticky;
    top: 120px;
    box-shadow: var(--shadow-soft);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    color: #fff;
    margin-bottom: 15px;
    text-shadow: none;
}

.footer-text {
    color: #9ca3af;
    font-size: 0.95rem;
}

.footer-heading {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: var(--highlight-accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .recipe-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .recipe-layout {
        grid-template-columns: 1fr;
    }
    .sidebar-box {
        position: static;
    }
}

@media (max-width: 768px) {
    .header {
        top: 10px;
        width: 90%;
        border-radius: 30px;
    }
    .nav-container {
        padding: 0 20px;
    }
    .hamburger {
        display: block;
    }
    .nav-menu {
        position: absolute;
        top: 80px;
        left: -120%;
        width: 100%;
        height: auto;
        background: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(16, 185, 129, 0.95));
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        transition: 0.4s;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    .nav-menu.active {
        left: 0;
    }
    .hero {
        padding: 140px 0 60px;
        text-align: center;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .title-xl {
        font-size: 2.2rem;
    }
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
}