/* Modern Parallax Website Styling */
:root {
    --primary-color: #4B3832;
    --primary-color-light: #6e5349;
    --primary-color-dark: #3C2F2F;
    --secondary-color: #854442;
    --accent-color: #BE9B7B;
    --accent-color-light: #E4D4C8;
    --text-color: #333;
    --light-color: #f5f5f5;
    --dark-color: #263238;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
    perspective: 1px; /* Essential for parallax effect */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: var(--background-light);
    transform-style: preserve-3d; /* For 3D parallax effect */
    height: 100%;
    perspective: 1px;
    transform-style: preserve-3d;
}

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

a:hover {
    color: var(--accent-color);
}

/* Navbar styling */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 0.8rem 2rem;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.navbar .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    opacity: 0.7;
}

.navbar .blob:nth-child(1) {
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    left: -50px;
    top: -40px;
    animation: blob-move-1 15s ease-in-out infinite alternate;
}

.navbar .blob:nth-child(2) {
    width: 120px;
    height: 120px;
    background: var(--primary-color);
    left: 30%;
    top: -30px;
    animation: blob-move-2 18s ease-in-out infinite alternate;
}

.navbar .blob:nth-child(3) {
    width: 180px;
    height: 180px;
    background: var(--secondary-color);
    right: 20%;
    top: -60px;
    animation: blob-move-3 20s ease-in-out infinite alternate;
}

.navbar .blob:nth-child(4) {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    right: -20px;
    top: -20px;
    animation: blob-move-4 12s ease-in-out infinite alternate;
}

@keyframes blob-move-1 {
    0% { transform: translateX(0) translateY(0) scale(1); }
    100% { transform: translateX(80px) translateY(30px) scale(1.3); }
}

@keyframes blob-move-2 {
    0% { transform: translateX(0) translateY(0) scale(1); }
    100% { transform: translateX(-60px) translateY(20px) scale(1.2); }
}

@keyframes blob-move-3 {
    0% { transform: translateX(0) translateY(0) scale(1); }
    100% { transform: translateX(40px) translateY(30px) scale(0.8); }
}

@keyframes blob-move-4 {
    0% { transform: translateX(0) translateY(0) scale(1); }
    100% { transform: translateX(-30px) translateY(40px) scale(1.4); }
}

.navbar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    z-index: -1;
}

.navbar.scrolled {
    padding: 0.5rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    position: relative;
    z-index: 10;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.navbar-nav {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-item {
    margin: 0 1rem;
}

.nav-link {
    color: white;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0.25rem;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 80%;
}

.navbar-toggler {
    border: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Parallax sections */
.parallax-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d; /* Essential for 3D effect */
    z-index: 1;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: translateZ(-1px) scale(2);
    z-index: -1;
    will-change: transform; /* Performance optimization */
}

.content-wrapper {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 2rem 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    transition: transform 0.1s ease-out;
    will-change: transform; /* Performance optimization */
}

/* Hero section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/static/uploads/hero-bg.jpg');
    transform-style: preserve-3d;
    will-change: transform, background-position;
    transition: background-position 0.1s ease-out;
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    transform: translateZ(0);
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    transform: translateZ(0.1px) scale(0.9);
    will-change: transform;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
    transform: translateZ(0.05px) scale(0.95);
    will-change: transform;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    transform: translateZ(0);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #4a5bb5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: rgba(92, 107, 192, 0.1);
    transform: translateY(-2px);
}

.btn-outline.active {
    background-color: var(--primary-color);
    color: white;
}

/* Add specific style for category filter button group */
.category-filter-buttons .btn {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 500;
    margin: 0 0.2rem;
}

/* Card styling */
.card {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px) translateZ(0);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--dark-color);
    transition: transform 0.3s ease;
}

.card:hover .card-title {
    transform: translateY(-2px);
}

.card-text {
    color: #666;
    margin-bottom: 1.2rem;
}

/* Item grid */
.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    transform-style: preserve-3d;
}

/* Section styling */
.section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--dark-color);
    position: relative;
    will-change: transform;
    transform: translateZ(0);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
    will-change: opacity, transform;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Float animation for buttons and small elements */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

.btn-primary, .btn-outline {
    animation: float 4s ease-in-out infinite;
}

/* Forms styling */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.2);
}

/* Alert styling */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Footer styling */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: white;
    margin: 0 1rem;
    opacity: 0.8;
}

.footer-link:hover {
    opacity: 1;
}

.footer-text {
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Dashboard sections */
.dashboard-header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    opacity: 0.8;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 3rem 1rem;
    }

    .content-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

/* Display Enhancements */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

.delay-5 {
    transition-delay: 1s;
}

/* Custom Section Dividers */
.coffee-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem auto 2rem;
    max-width: 320px;
}

.coffee-divider span {
    flex-grow: 1;
    height: 1px;
    background-color: var(--accent-color);
    opacity: 0.5;
}

.coffee-divider i {
    padding: 0 15px;
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Coffee Bean Animation */
.coffee-bean {
    position: relative;
    background-color: rgba(190, 155, 123, 0.1);
    border-radius: 50%;
}

.coffee-bean::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    background-color: rgba(190, 155, 123, 0.08);
    border-radius: 50%;
}

/* Section Styling */
.section {
    padding: 5rem 0;
}

.section-subheading {
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--primary-color-dark);
}

/* Button Enhancements */
.btn {
    border-radius: 0.25rem;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    border-color: var(--primary-color-dark);
}

.btn-accent {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--text-light);
}

.btn-accent:hover {
    background-color: #AB876A;
    border-color: #AB876A;
}

/* Card Enhancements */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
    border: none;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Background Utilities */
.bg-soft-primary {
    background-color: rgba(75, 56, 50, 0.05);
}

.bg-soft-accent {
    background-color: rgba(190, 155, 123, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0;
    }
    
    .display-1, .display-2, .display-3 {
        font-size: calc(1.5rem + 1.5vw);
    }
} 