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

:root {
    /* Color Palette - Dark Black & Glossy */
    --bg-gradient: radial-gradient(circle at top right, #1a1a1a 0%, #050505 100%);
    --primary: #f97316;
    --primary-hover: #ea580c;
    --secondary: #ef4444;
    --highlight: #22c55e;
    --card-bg: linear-gradient(135deg, rgba(30, 30, 30, 0.6), rgba(10, 10, 10, 0.8));
    --border: rgba(255, 255, 255, 0.08);
    --text-primary: #f9fafb;
    --text-secondary: #a1a1aa;
    
    /* Layout */
    --container-width: 1200px;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Glossy FX */
    --glossy-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    --glossy-border: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background: var(--bg-gradient);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
}

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

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

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

/* Typography Utilities */
.text-center { text-align: center; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; color: #fff; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 3rem; max-width: 600px; margin-inline: auto; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--glossy-shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(249, 115, 22, 0.5);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-primary);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.4);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    box-shadow: var(--glossy-shadow), var(--glossy-border);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-image-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('images/photo-1515443961218-a51367888e4b.png') center/cover no-repeat;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
    opacity: 0.8;
}

.hero-image-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #050505 0%, transparent 50%, rgba(0,0,0,0.5) 100%);
}

/* Sections */
section {
    padding: 80px 0;
}

/* Cards & Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--glossy-shadow), var(--glossy-border);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), var(--glossy-border);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-img-wrapper {
    overflow: hidden;
    height: 220px;
    position: relative;
}

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

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

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.2);
}

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

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

.card-meta {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Detail Pages */
.recipe-header {
    padding-top: 120px;
    text-align: center;
    margin-bottom: 40px;
}

.recipe-hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--glossy-shadow);
    border: 1px solid rgba(255,255,255,0.05);
}

.recipe-info-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--glossy-shadow), var(--glossy-border);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

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

.info-item span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.info-item strong {
    color: #fff;
    font-size: 1.1rem;
}

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

.ingredients-box {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--glossy-shadow), var(--glossy-border);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 100px;
}

.ingredients-list {
    list-style: none;
    margin-top: 20px;
}

.ingredients-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.ingredients-list li::before {
    content: '✓';
    color: var(--highlight);
    margin-right: 10px;
    font-weight: bold;
}

.steps-box h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

.step {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    box-shadow: var(--glossy-shadow), var(--glossy-border);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.step h3 {
    margin-bottom: 10px;
    color: #fff;
}

.pro-tip {
    background: rgba(255, 255, 255, 0.03);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-img {
    border-radius: var(--border-radius);
    height: 200px;
    object-fit: cover;
    width: 100%;
    box-shadow: var(--glossy-shadow);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.gallery-img:hover {
    transform: scale(1.05);
    border-color: rgba(255,255,255,0.2);
}

/* Contact Form */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--glossy-shadow), var(--glossy-border);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #fff;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    font-family: inherit;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.form-control::placeholder {
    color: #666;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,0,0,0.7);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 0 0 3px rgba(249, 115, 22, 0.2);
}

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

/* Legal Pages */
.legal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--glossy-shadow), var(--glossy-border);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    margin-top: 40px;
}

.legal-content h2 { margin-top: 30px; margin-bottom: 15px; color: var(--primary); }
.legal-content p, .legal-content ul { margin-bottom: 15px; color: var(--text-secondary); }
.legal-content ul { margin-left: 20px; }
.legal-content li { margin-bottom: 8px; }

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    background: #050505;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

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

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-col p {
    color: var(--text-secondary);
}

.footer-links {
    list-style: none;
}

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

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

.footer-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(249, 115, 22, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .recipe-content { grid-template-columns: 1fr; }
    .ingredients-box { position: static; margin-bottom: 30px; }
    .hero-image-bg { width: 100%; clip-path: none; opacity: 0.15; }
    .hero-content { background: rgba(20,20,20,0.8); max-width: 100%; text-align: center; }
    .hero-btns { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 20px 0;
        text-align: center;
        box-shadow: var(--glossy-shadow);
        border-bottom: 1px solid var(--border);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero h1 { font-size: 2.5rem; }
    .recipe-info-bar { flex-direction: column; gap: 15px; }
}