/* Custom styles for NorthyNook Catering website */

/* Global Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Arial', sans-serif;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Color Variables */
:root {
    --primary-color: #dc3545; /* Bootstrap red */
    --secondary-color: #ffffff;
    --dark-text: #333;
    --light-text: #f8f9fa;
    --accent-color: #f8f9fa; /* Light gray/off-white for accents */
}

/* Navigation Styles */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
}

.nav-link {
    position: relative;
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
    background-color: #c82333;
    border-color: #bd2130;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Text Colors */
.text-theme {
    color: var(--primary-color) !important;
}

/* Background Classes */
.bg-theme {
    background-color: var(--primary-color) !important;
}

/* Form Styling */
.backdrop-blur {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.form-section input,
.form-section textarea {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.form-section .input-group-text {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Animation Styles */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.215, 0.610, 0.355, 1.000);
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.03);
}

.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.btn:hover::after {
    animation: ripple 1s ease-out;
}

/* Keyframes for animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(20);
        opacity: 0;
    }
}

/* Home Page Form Styles */
.form-section {
    position: relative;
    background-size: cover !important;
    background-position: center !important;
    min-height: 600px;
    display: flex;
    align-items: center;
    background-color: #f8f9fa; /* Fallback color in case the image doesn't load */
}

/* Background Colors */
.bg-theme {
    background-color: var(--primary-color) !important;
}

.bg-theme-light {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Border Colors */
.border-theme {
    border-color: var(--primary-color) !important;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.card-header.bg-theme {
    background: linear-gradient(135deg, var(--primary-color), #a52834) !important;
}

.form-section {
    position: relative;
    isolation: isolate;
}

.form-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: -1;
}

.form-section .card {
    backdrop-filter: blur(8px);
}

.form-section .form-control,
.form-section .input-group-text {
    background-color: rgba(33, 37, 41, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.form-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-section .form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.form-section .form-label {
    color: rgba(255, 255, 255, 0.9);
}

.input-group-text {
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus + .input-group-text {
    border-color: var(--primary-color);
}

.form-label {
    font-weight: 500;
}

/* Footer Styles */
footer {
    position: relative;
    margin-bottom: 0;
}

footer a:hover {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

footer .list-unstyled li a,
footer .list-unstyled li span {
    transition: transform 0.3s ease;
    display: inline-block;
}

footer .list-unstyled li a:hover {
    transform: translateX(5px);
}

footer h5::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
    margin-top: 8px;
}

/* About Us Page Styles */
.divider-custom {
    width: 100%;
    max-width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.divider-custom .divider-custom-line {
    width: 100%;
    max-width: 35px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

.divider-custom .divider-custom-icon {
    margin: 0 1rem;
    color: var(--primary-color);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.team-img-container {
    width: 120px;
    height: 120px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-theme {
    background-color: var(--primary-color) !important;
}

/* Menu Page Styles */
.menu-category-card {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.menu-category-card:hover {
    transform: translateY(-10px);
}

.menu-image-container {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.menu-category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(220, 53, 69, 0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.menu-category-card:hover .menu-overlay {
    opacity: 1;
}

.menu-category-card:hover .menu-category-img {
    transform: scale(1.1);
}

.menu-single-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.menu-single-page img {
    max-width: 100%;
    max-height: 80vh;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
    border-radius: 10px;
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    .nav-link::after {
        display: none;
    }
    
    .menu-image-container {
        height: 250px;
    }
}
