:root{
    --black: #121212;
    --white: #ffffff;
    --red: #FF4500;
}

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

body{
    font-family: Arial, sans-serif;
    /* This CSS variable syntax was fixed */
    background-color: var(--black);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Removed text-align: center; as it causes layout issues */
}

/* --- Main Content Blur Effect --- */
#main-content.blurred {
    filter: blur(8px);
    transition: filter 0.3s ease-out;
}

/* --- Header / Navigation --- */
header{
    position: fixed;
    /* Adjusted to 20px from 25px */
    bottom: 20px; 
    left: 50%;
    transform: translate(-50%);
    width: 90%;
    max-width: 700px; /* Added max-width for better scaling */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Changed border-radius for a clean pill shape */
    border-radius: 50px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.3);
    z-index: 100; /* Ensure header is above other content */
}
header h1{
    color: var(--white);
    font-weight: 700;
    font-size: 22px; /* Slightly reduced size */
    letter-spacing: 1px;
}
nav a{
    color: var(--white);
    margin-left: 25px;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    text-decoration: none; /* Added to remove underline */
}
nav a::after{
    content:"";
    position: absolute;
    left: 0%;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background-color: var(--red);
    transition: width 0.3s ease;
}
nav a:hover {
    color: var(--red);
}
nav a:hover::after{
    width: 100%;
}

/* --- Hero Section --- */
.hero{
    position: relative;
    height: 70vh;
    overflow: hidden;   
}
.hero video{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
}
.overlay{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

/* This class selector was fixed */
.hero-text {
    position: absolute;
    top: 35%;
    left: 10%;
    color: var(--white);
    max-width: 600px;
    z-index: 2;
    text-align: left; /* Added to override any parent centering */
}
.hero-text h2 {
    color: var(--red);
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.hero-text p {
    font-size: 20px;
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 25px;
}
/* General .btn class for all buttons */
.btn {
    background: var(--red);
    border: none;
    color: var(--white);
    padding: 12px 28px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none; /* For links styled as buttons */
    display: inline-block; /* For links styled as buttons */
}
.btn:hover {
    background: #e03d00; /* Darker red on hover */
}   

/* --- Featured Recipes Section --- */
.recipes{
    padding: 80px 60px;
    background-color: var(--black);
    text-align: center;
}
.recipes h2{
    color: var(--red);
    font-size: 32px;
    margin-bottom: 40px;
    letter-spacing: 1px;
}
.recipe-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.recipe-card{
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    text-align: left; /* Aligns text inside card to the left */
}
.recipe-card:hover{
    transform: translateY(-6px);
}
.recipe-card img{
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.recipe-card h3{
    margin: 15px 20px 10px; /* Adjusted margin */
    color: var(--white); /* Brighter color */
    font-size: 20px; /* Increased size */
}
/* NEW: Added styling for the paragraph */
.recipe-card p {
    margin: 0 20px 20px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
}

/* --- NEW: Browse by Cuisine Section --- */
.browse-cuisine {
    padding: 40px 60px 80px; /* Less top padding */
    background-color: var(--black);
    text-align: center;
}
.browse-cuisine h2 {
    color: var(--red);
    font-size: 32px;
    margin-bottom: 40px;
    letter-spacing: 1px;
}
.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}
.cuisine-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    display: block;
    height: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}
.cuisine-card:hover {
    transform: translateY(-6px);
}
.cuisine-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
    transition: filter 0.3s ease;
}
.cuisine-card:hover img {
    filter: brightness(50%);
}
.cuisine-name {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}


/* --- Footer --- */
footer{
    background: #0d0d0d;
    color: #aaa;
    text-align: center;
    padding: 30px; /* Increased padding */
    font-size: 14px;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Add padding-bottom to clear the fixed header */
    padding-bottom: 100px; 
}


/* --- NEW: Popup Styles --- */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
    /* Start hidden */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.popup-container.active {
    opacity: 1;
    visibility: visible;
}
.popup {
    background: #2a2a2a; /* Dark background for popup */
    color: var(--white);
    padding: 30px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    /* Animation */
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}
.popup-container.active .popup {
    transform: scale(1);
}
.popup-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--red);
}
.popup h2 {
    color: var(--red);
    margin-bottom: 15px;
    font-size: 28px;
}
.popup p {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 25px;
}