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

:root {
    /* Brand Colors (Purple and Orange Glossy Mix) */
    --color-bg-start: #f3e8ff; /* Light purple */
    --color-bg-mid: #fff7ed;   /* Light orange */
    --color-bg-end: #e9d5ff;   /* Lavender */
    
    --color-primary: #f97316;  /* Warm Orange */
    --color-primary-hover: #ea580c;
    --color-secondary: #9333ea; /* Purple */
    --color-highlight: #a855f7; /* Light Purple */
    
    --color-card-bg: rgba(255, 255, 255, 0.45);
    --color-text-main: #1f2937;
    --color-text-muted: #4b5563;
    --color-border: rgba(255, 255, 255, 0.7);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --container-max: 1200px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --shadow-sm: 0 4px 15px rgba(147, 51, 234, 0.05);
    --shadow-md: 0 10px 25px rgba(147, 51, 234, 0.1);
    --shadow-lg: 0 20px 40px rgba(147, 51, 234, 0.15);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background: linear-gradient(135deg, var(--color-bg-start), var(--color-bg-mid), var(--color-bg-end));
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navbar - Fluid Look */
.header {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: calc(100% - 48px);
    max-width: var(--container-max);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(147, 51, 234, 0.08);
}

.header.scrolled {
    top: 12px;
    width: calc(100% - 24px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 40px rgba(147, 51, 234, 0.12);
    border-color: rgba(255, 255, 255, 0.9);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--color-secondary);
}

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

.nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--color-text-main);
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.6);
    color: var(--color-secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.header.scrolled .nav-link:hover, .header.scrolled .nav-link.active {
    background: rgba(147, 51, 234, 0.08);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text-main);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.5);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    color: var(--color-secondary);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: white;
    border-color: var(--color-secondary);
    transform: translateY(-2px);
}

/* Hero Section (Glossy Image Overlay) */
.hero {
    position: relative;
    padding: 180px 0 100px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomEffect 20s infinite alternate;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.6), rgba(249, 115, 22, 0.5));
    backdrop-filter: blur(2px);
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

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

.glossy-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: white;
}

.hero-content h1, .hero-content p {
    color: white;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
}

.hero h1 span {
    background: linear-gradient(45deg, #ffedd5, #f3e8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Section Common */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
    background: linear-gradient(45deg, var(--color-secondary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Food Cards (Glossy) */
.food-card {
    background: var(--color-card-bg);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.food-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.9);
}

.card-img-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

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

.card-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 12px;
    color: var(--color-secondary);
    box-shadow: var(--shadow-sm);
}

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

.card-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: var(--color-secondary);
}

.card-desc {
    color: var(--color-text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.difficulty-easy { color: var(--color-highlight); }
.difficulty-medium { color: var(--color-primary); }
.difficulty-hard { color: var(--color-secondary); }

/* Filters */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-secondary);
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

/* Detail Page Layout */
.detail-hero {
    padding: 140px 0 60px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.detail-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin: 40px 0;
}

.recipe-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    padding: 60px 0;
}

.sidebar-box, .step-card, .content-wrapper {
    background: var(--color-card-bg);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.sidebar-box {
    padding: 32px;
    position: sticky;
    top: 100px;
}

.sidebar-box h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--color-secondary);
}

.ingredient-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.ingredient-list li::before {
    content: '✓';
    color: var(--color-secondary);
    font-weight: bold;
}

.steps-container h2 {
    font-size: 28px;
    margin-bottom: 32px;
    color: var(--color-secondary);
}

.step-card {
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
}

.step-num {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--color-secondary);
}

/* About & Contact pages */
.content-wrapper {
    padding: 60px;
    border-radius: var(--border-radius-lg);
    max-width: 900px;
    margin: 40px auto;
}

.content-wrapper p {
    margin-bottom: 24px;
    font-size: 18px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: var(--color-text-main);
}

.form-group input, .form-group textarea {
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: white;
    box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.1);
}

/* Footer (Glossy) */
.footer {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 80px 0 40px;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--color-secondary);
}

.footer-desc {
    color: var(--color-text-muted);
    margin-bottom: 24px;
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--color-text-muted);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .recipe-layout { grid-template-columns: 1fr; }
    .sidebar-box { position: static; }
    .hero h1 { font-size: 48px; }
}

@media (max-width: 768px) {
    .header {
        top: 16px;
        width: calc(100% - 32px);
    }
    .header.scrolled {
        top: 12px;
        width: calc(100% - 24px);
    }
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hamburger { display: flex; }
    .nav-menu {
        position: absolute;
        top: calc(100% + 16px);
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 24px;
        border: 1px solid rgba(255, 255, 255, 0.6);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 12px;
        text-align: center;
    }
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .hero-buttons { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 36px; }
    .step-card { flex-direction: column; gap: 16px; }
    .content-wrapper { padding: 32px 20px; }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

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