/* ========================================
   CSS Variables & Theme
   ======================================== */
:root {
    /* Warm Beige Bakery Theme - Darker */
    --bg-primary: #f5f0e8;
    --bg-secondary: #ebe3d5;
    --bg-accent: #e0d5c3;
    --text-primary: #2d1b0e;
    --text-secondary: #6b5444;
    --text-tertiary: #9a8577;
    
    --accent-primary: #ff8a65;
    --accent-secondary: #ffb74d;
    --accent-glow: rgba(255, 138, 101, 0.25);
    
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 183, 147, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(255, 138, 101, 0.1);
    
    --card-bg: #ffffff;
    --card-border: #ffd4b8;
    
    /* Warm accent colors */
    --color-coral: #ff8a65;
    --color-peach: #ffb74d;
    --color-rose: #f48fb1;
    --color-cream: #ffe0b2;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-normal), color var(--transition-normal);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--accent-primary);
    color: white;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p { margin-bottom: var(--spacing-sm); }

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

a:hover { color: var(--accent-secondary); }

.gradient-text {
    background: linear-gradient(135deg, var(--color-coral), var(--color-peach), var(--color-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.small-text {
    font-size: 0.6em;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ========================================
   Layout Components
   ======================================== */
.container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    min-height: 100vh;
    padding: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-alt { background-color: var(--bg-primary); }

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-panel:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -5px rgba(255, 138, 101, 0.2), 0 10px 20px -5px rgba(255, 183, 101, 0.15);
    border-color: var(--color-coral);
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 0.5rem 0;
}

.nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    text-decoration: none;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-weight: 800;
    font-size: 1rem;
    border-radius: 10px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px var(--accent-glow);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.logo:hover .logo-badge {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px var(--accent-glow);
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color var(--transition-fast);
}

.hamburger-menu:hover {
    background-color: var(--bg-accent);
}

/* Dropdown Menu */
.nav-dropdown {
    position: absolute;
    top: 100%;
    right: var(--spacing-md);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 0.5rem;
    min-width: 200px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    display: block;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background-color: var(--bg-accent);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.theme-toggle:hover { background-color: var(--bg-accent); }

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content { max-width: 600px; }

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--color-coral), var(--color-peach));
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-mono);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-title { margin-bottom: 1.5rem; }

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
    color: white;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--bg-accent);
    border-color: var(--text-primary);
}

/* Finance Card */
.finance-card {
    padding: 2rem;
    min-width: 320px;
    border-top: 4px solid var(--accent-primary);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.card-title {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.metric-row {
    margin-bottom: 1.5rem;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.metric-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.divider {
    height: 1px;
    background-color: var(--card-border);
    margin: 1.5rem 0;
}

.market-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.stat-value {
    font-weight: 700;
    font-family: var(--font-mono);
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
}

.up-trend {
    color: #10b981; /* Finance Green */
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Strategy Card */
.strategy-card {
    padding: 2rem;
}

.strategy-header {
    margin-bottom: 2rem;
    text-align: center;
}

.strategy-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.strategy-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.strategy-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.strategy-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-accent);
    border-radius: 8px;
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.strategy-info {
    flex: 1;
}

.strategy-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.value-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}


.progress-bar {
    height: 6px;
    background-color: var(--bg-accent);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--accent-primary);
    border-radius: 3px;
    transition: width 1s ease-out;
}

/* ========================================
   About Section
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--accent-primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.stats-row {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}



/* ========================================
   Skills Grid
   ======================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.skill-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.skill-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.skill-icon {
    font-size: 1.75rem;
    color: var(--accent-primary);
}

.skill-card h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.skill-card ul {
    list-style: none;
    margin-top: auto;
}

.skill-card li {
    padding: 0.15rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-card li::before {
    content: '';
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========================================
   Projects/Experience Section
   ======================================== */
.projects-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.project-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.project-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.project-icon { font-size: 1.25rem; }

.role-title {
    color: var(--accent-primary);
    margin-bottom: 1rem !important;
    font-size: 0.95rem !important;
}

.project-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.project-metrics {
    display: flex;
    gap: 1.5rem;
    margin: auto 0 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-val {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.metric-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    background-color: var(--bg-accent);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

/* ========================================
   Contact & Footer
   ======================================== */
.contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-primary);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.social-link:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.footer {
    padding: 4rem 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--card-border);
    text-align: center;
}

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

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid { grid-template-columns: 1fr; }
    
    .skills-grid, .projects-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .skills-grid, .projects-list { grid-template-columns: 1fr; }
    
    .nav-links { display: none; } /* Simplified for mobile for now */
}

/* ========================================
   Custom Warm Theme Enhancements
   ======================================== */

/* Warm gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--color-coral), var(--color-peach), var(--color-rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

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

/* Soft background decorations */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    opacity: 0.08;
    z-index: -1;
    pointer-events: none;
}

body::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-coral), transparent);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

body::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-peach), transparent);
    bottom: -150px;
    left: -150px;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Warm badge */
.badge {
    background: linear-gradient(135deg, var(--color-coral), var(--color-peach));
    color: white;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Warm section line */
.section-line {
    background: linear-gradient(90deg, var(--color-coral), var(--color-peach), var(--color-rose));
    animation: lineGlow 2s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Colorful tags */
.tag {
    border: 1.5px solid transparent;
    transition: all var(--transition-fast);
}

.tag:nth-child(1) {
    background: linear-gradient(135deg, #ffe8d6, #ffd4b8);
    border-color: var(--color-coral);
    color: #d84315;
}

.tag:nth-child(2) {
    background: linear-gradient(135deg, #fff4e6, #ffe0b2);
    border-color: var(--color-peach);
    color: #ef6c00;
}

.tag:nth-child(3) {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    border-color: var(--color-rose);
    color: #c2185b;
}

.tag:nth-child(4) {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-color: var(--color-cream);
    color: #e65100;
}

.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Enhanced glass panel hover */
.glass-panel:hover {
    box-shadow: 0 20px 40px -5px rgba(255, 138, 101, 0.2), 0 10px 20px -5px rgba(255, 183, 101, 0.15);
    border-color: var(--color-coral);
}

/* ========================================
   Baking Portfolio Section
   ======================================== */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.recipe-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.recipe-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-primary);
}

.recipe-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-accent);
    position: relative;
}

.recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recipe-card:hover .recipe-image {
    transform: scale(1.05);
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.recipe-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Featured Recipe Badge */
.recipe-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--color-coral), var(--color-peach));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(255, 138, 101, 0.4);
    z-index: 10;
}

.featured-recipe {
    position: relative;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--card-border);
    width: 90%;
    max-width: 800px;
    border-radius: 16px;
    position: relative;
    box-shadow: var(--glass-shadow);
    animation: slideUp 0.3s;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close-modal {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: var(--accent-primary);
}

.view-recipe-btn {
    display: inline-block;
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-accent);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-align: center;
}

.view-recipe-btn:hover {
    background-color: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Modal Recipe Details */
.modal-recipe-header {
    margin-bottom: 2rem;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--card-border);
}

.modal-recipe-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.recipe-story {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 1rem;
    padding: 1rem;
    background-color: var(--bg-accent);
    border-left: 3px solid var(--accent-primary);
    border-radius: 4px;
    text-align: left;
}

.modal-recipe-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.recipe-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    padding-bottom: 0.5rem;
}

.ingredients-list {
    list-style: none;
}

.ingredients-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    padding-left: 1.5rem;
    position: relative;
}

.ingredients-list li::before {
    content: '•';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.instructions-list {
    list-style: decimal;
    padding-left: 1.5rem;
}

.instructions-list li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    padding-left: 0.5rem;
}

/* Baking section - COMPACT but full viewport */
#baking.section {
    min-height: 100vh !important;
    padding: var(--spacing-lg) 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

#baking .container {
    max-width: 1200px;
}

#baking .section-header {
    margin-bottom: 1.5rem !important;
}

#baking .section-title {
    font-size: 2rem !important;
    margin-bottom: 0.5rem !important;
}

#baking .section-line {
    margin: 0.5rem auto 0 !important;
    width: 50px !important;
}

#baking .section-subtitle {
    font-size: 0.85rem !important;
    margin-top: 0.75rem !important;
    line-height: 1.4 !important;
    max-width: 650px !important;
}

#baking .recipes-grid {
    gap: 1rem !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

#baking .recipe-image-container {
    height: 150px !important;
}

#baking .recipe-content {
    padding: 1rem !important;
}

#baking .recipe-content h3 {
    font-size: 1rem !important;
    margin-bottom: 0.4rem !important;
}

#baking .recipe-content p {
    font-size: 0.8rem !important;
    margin-bottom: 0.6rem !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
}

#baking .recipe-tags {
    margin-bottom: 0.6rem !important;
    gap: 0.3rem !important;
}

#baking .tag {
    font-size: 0.65rem !important;
    padding: 0.2rem 0.5rem !important;
}

#baking .view-recipe-btn {
    padding: 0.6rem 0.8rem !important;
    font-size: 0.8rem !important;
}

#baking .recipe-badge {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.65rem !important;
}

@media (max-width: 1024px) {
    #baking .recipes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    #baking .recipes-grid {
        grid-template-columns: 1fr !important;
    }
    
    .modal-recipe-grid {
        grid-template-columns: 1fr;
    }
}


/* Center nav links while keeping logo on left */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Recipes section - 3x3 grid layout */
#recipes .recipes-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
}

#recipes .recipe-image-container {
    height: 180px !important;
}

#recipes .recipe-content {
    padding: 1.25rem !important;
}

#recipes .recipe-content h3 {
    font-size: 1.05rem !important;
}

#recipes .recipe-content p {
    font-size: 0.85rem !important;
    -webkit-line-clamp: 2 !important;
}

@media (max-width: 1024px) {
    #recipes .recipes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 640px) {
    #recipes .recipes-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Fix scroll offset for navigation */
section {
    scroll-margin-top: 100px;
}

#recipes {
    scroll-margin-top: 120px;
}
