/* 
=====================================================
   GOURMET HAVEN - MODERN RESTAURANT STYLESHEET
   Academic Project
===================================================== 
*/

/* --- CSS Variables / Design Tokens --- */
:root {
    /* Color Palette */
    --clr-bg: #0a0a0c;
    --clr-surface: #151618;
    --clr-surface-light: #1e1f22;
    --clr-primary: #d4af37; /* Metallic Gold for elegance */
    --clr-primary-hover: #f1c40f;
    --clr-text: #eaeaea;
    --clr-text-muted: #a0a0a0;
    
    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
    
    /* Layout & Utilities */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --container-width: 1200px;
}

/* --- Resets & Base Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography styles */
h1, h2, h3, .logo, .footer-logo {
    font-family: var(--font-serif);
    font-weight: 600;
}

/* Common Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--clr-primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: var(--clr-text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.primary-btn {
    background-color: var(--clr-primary);
    color: var(--clr-bg);
}

.primary-btn:hover {
    background-color: var(--clr-primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* --- 1. Navigation Bar --- */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.85); /* Glassmorphism start */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

#header.scrolled {
    background: rgba(10, 10, 12, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.8rem;
    color: var(--clr-primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 1rem;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--clr-primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--clr-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--clr-text);
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- 2. Home Section (Hero) --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,10,12,0.4), var(--clr-bg));
    z-index: -1;
}

.hero-content {
    text-align: center;
    animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: white;
}

.hero-content .highlight {
    color: var(--clr-primary);
}

.hero-content .tagline {
    font-size: 1.3rem;
    color: var(--clr-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

/* --- 3. Menu Section --- */
.menu-section {
    background-color: var(--clr-bg);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.menu-item {
    background: var(--clr-surface);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    display: flex;
    flex-direction: column;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 175, 55, 0.2);
}

.item-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.menu-item:hover .item-img {
    transform: scale(1.08); /* Hover animation for image */
}

.price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--clr-primary);
    color: var(--clr-bg);
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-family: var(--font-sans);
    z-index: 2;
}

.item-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.item-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: white;
}

.item-content p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* --- 4. About Section --- */
.about-section {
    background-color: var(--clr-surface-light);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background-image: radial-gradient(circle at top right, rgba(212, 175, 55, 0.03) 0%, transparent 60%);
}

.about-container {
    max-width: 800px;
    text-align: center;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--clr-text-muted);
}

.about-content strong {
    color: var(--clr-text);
}

.about-content span {
    color: var(--clr-primary);
    font-weight: 600;
}

/* --- 5. Order Section (Form) --- */
.order-section {
    background: url('./assets/pizza.png') center/cover fixed; /* Parallax effect */
    position: relative;
    z-index: 1;
}

.order-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.9); /* Dark overlay */
    z-index: -1;
}

.order-container {
    background: var(--clr-surface);
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.half { width: 50%; }
.two-thirds { width: 70%; }
.third { width: 30%; }

label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--clr-text);
    letter-spacing: 0.5px;
}

input, select, textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--clr-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Fix select option colors */
select option {
    background-color: var(--clr-surface);
    color: white;
}

.submit-btn {
    background-color: var(--clr-primary);
    color: var(--clr-bg);
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem;
    font-size: 1.1rem;
}

.submit-btn:hover {
    background-color: var(--clr-primary-hover);
}

/* --- 6. Contact & Footer Section --- */
.contact-section {
    background-color: var(--clr-bg);
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.brand-col p {
    color: var(--clr-text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-col h4 {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-info li {
    margin-bottom: 0.8rem;
    color: var(--clr-text-muted);
    display: flex;
    gap: 0.5rem;
}

.contact-info strong {
    color: var(--clr-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--clr-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-text);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-weight: 600;
    font-size: 0.9rem;
}

.social-icon:hover {
    background-color: var(--clr-primary);
    color: var(--clr-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .brand-col p {
        margin: 1rem auto 0;
    }
    
    .contact-info li {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background-color: var(--clr-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .form-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .half, .two-thirds, .third {
        width: 100%;
    }

    .order-container {
        padding: 2rem;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}
