/*
 * Professional Restaurant/Catering Design Enhancements
 * Modern, elegant styling for Dora Catering
 */

/* ===== Color Palette ===== */
:root {
    --primary-color: #d43031;
    --primary-dark: #a82425;
    --secondary-color: #8eb640;
    --secondary-dark: #6e9230;
    --accent-gold: #f4c430;
    --dark-text: #2c2c2c;
    --light-text: #666;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* ===== Enhanced Header/Hero Section ===== */
.header-section {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),
                url('../img/intro-bg.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-background {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

.intro-logo {
    animation: fadeInDown 1s ease-out;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    margin-bottom: 30px;
}

.intro-paragraph {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.intro-paragraph a {
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.intro-paragraph a:hover {
    color: #fff;
    border-bottom-color: var(--accent-gold);
}

/* ===== Enhanced Navigation ===== */
#menu {
    background: rgba(44, 44, 44, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px var(--shadow);
    transition: all 0.3s ease;
}

#menu.navbar-default .navbar-nav > li > a {
    color: #ffffff !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin: 0 15px;
    padding: 8px 15px !important;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#menu.navbar-default .navbar-nav > li > a:hover,
#menu.navbar-default .navbar-nav > .active > a {
    color: var(--accent-gold) !important;
    background-color: rgba(244, 196, 48, 0.1);
    transform: translateY(-2px);
}

/* ===== Section Titles Enhancement ===== */
.section-title h2 {
    font-weight: 600;
    font-size: 42px;
    color: var(--dark-text);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 25px;
}

.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title p {
    font-size: 18px;
    color: var(--light-text);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== Enhanced Gallery Section ===== */
#gallery {
    background: var(--bg-white);
    padding: 80px 0;
    position: relative;
}

#gallery .section-title {
    margin-bottom: 50px;
}

/* Gallery Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-light);
    aspect-ratio: 1 / 1;
}

.gallery-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none; /* Don't block clicks on the image link */
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(212, 48, 49, 0.25);
}

.gallery-item a {
    display: block;
    height: 100%;
    width: 100%;
    position: relative;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.08);
}

/* Zoom icon overlay */
.gallery-item::after {
    content: "\f002";
    font-family: "FontAwesome";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: white;
    font-size: 48px;
    z-index: 2;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Gallery Loading State */
.gallery-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--light-text);
}

.gallery-loading i {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.gallery-loading p {
    font-size: 18px;
    margin-top: 20px;
}

/* Responsive Gallery Grid */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-item {
        border-radius: 12px;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    #gallery {
        padding: 60px 0;
    }
}

/* ===== Enhanced About Section ===== */
#about {
    background: var(--bg-white);
    padding: 80px 0;
}

#about .about-text {
    padding: 60px 40px;
}

#about h2 {
    color: var(--dark-text);
    margin-bottom: 30px;
}

#about h2::after {
    left: 0;
    margin-left: 0;
    transform: none;
}

#about p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--light-text);
    margin-bottom: 20px;
}

#about p b {
    color: var(--primary-color);
    font-weight: 600;
}

#about .about-img {
    box-shadow: 0 10px 40px var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

/* ===== Enhanced Menu Section ===== */
#restaurant-menu {
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
    padding: 80px 0;
}

.menu-section {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 30px var(--shadow);
    transition: all 0.3s ease;
    margin: 20px;
}

.menu-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.menu-section-title {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
    margin-bottom: 30px !important;
    position: relative;
    display: inline-block;
}

.menu-section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--secondary-color);
}

.menu-item {
    padding: 20px;
    margin: 20px 0;
    border-left: 3px solid var(--primary-color);
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: #fff;
    border-left-width: 5px;
    transform: translateX(5px);
    box-shadow: 0 4px 15px var(--shadow);
}

.menu-item-name {
    color: var(--dark-text) !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    margin-bottom: 10px !important;
}

.menu-item-description {
    color: var(--light-text) !important;
    font-size: 16px !important;
    line-height: 1.6;
}

/* ===== Enhanced Team/Chefs Section ===== */
#team {
    background: var(--bg-white);
    padding: 80px 0;
}

#team .chef-row {
    margin-bottom: 60px;
    padding: 40px 0;
}

#team .team-img {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow);
}

#team .team-img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(212, 48, 49, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

#team .team-img:hover::before {
    opacity: 1;
}

#team .team-img img {
    transition: transform 0.5s ease;
}

#team .team-img:hover img {
    transform: scale(1.05);
}

#team h3 {
    color: var(--primary-color);
    border-left: 4px solid var(--secondary-color);
    padding-left: 15px;
    margin-top: 30px;
}

#team ul li {
    position: relative;
    padding-left: 25px;
}

#team ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* ===== Enhanced Contact Section ===== */
#contact {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    padding: 80px 0;
    position: relative;
}

#contact::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png') repeat;
    opacity: 0.05;
}

#contact h3 {
    color: #ffffff !important;
    font-weight: 600;
}

#contact h3::after {
    background: var(--accent-gold);
}

#contact .contact-item p {
    color: #cccccc !important;
    font-size: 16px;
}

#contact .contact-item a {
    color: var(--accent-gold);
    transition: all 0.3s ease;
    text-decoration: none;
}

#contact .contact-item a:hover {
    color: #ffffff;
    text-decoration: underline;
}

#contact .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 6px;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

#contact .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(244, 196, 48, 0.1);
}

.btn-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff !important;
    border: none !important;
    padding: 16px 40px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(212, 48, 49, 0.4);
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 48, 49, 0.6);
}

/* ===== Enhanced Footer ===== */
#footer {
    background: #1a1a1a;
    padding: 50px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#footer p {
    color: #999;
    font-size: 15px;
}

#footer .social i.fa {
    font-size: 24px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #999;
    transition: all 0.3s ease;
}

#footer .social i.fa:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px) rotate(360deg);
}

/* ===== Animations ===== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Section fade-in on scroll */
section {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== Responsive Enhancements ===== */
@media (max-width: 767px) {
    .section-title h2 {
        font-size: 32px;
    }

    .intro-paragraph {
        font-size: 18px !important;
    }

    .menu-section {
        padding: 30px 20px;
        margin: 10px;
    }

    #contact {
        padding: 60px 0;
    }

    .btn-custom {
        padding: 14px 30px !important;
        font-size: 14px;
    }
}

/* ===== Professional Touches ===== */
.container {
    position: relative;
}

/* Add subtle texture to sections */
#about,
#restaurant-menu,
#team {
    position: relative;
}

/* Elegant dividers between sections */
section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
}

/* Loading animation for images */
.gallery-image {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.gallery-image[src] {
    animation: none;
    background: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Professional hover effects for links */
a {
    position: relative;
    transition: all 0.3s ease;
}

/* Elegant box shadows */
.shadow-elegant {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Gradient overlays for depth */
.gradient-overlay {
    position: relative;
}

.gradient-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    pointer-events: none;
}
