/* General Styling */
:root {
    --primary-brown: #3E2723;
    --secondary-maroon: #6A1B28;
    --accent-orange: #FF8C00;
    --light-cream: #F5F5DC;
    --text-color-light: #f4f4f4;
    --text-color-dark: #333;
    --font-script: 'Dancing Script', cursive;
    --font-body: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color-light);
    background-color: var(--primary-brown);
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color-light);
}

p {
    margin-bottom: 10px;
}

a {
    text-decoration: none;
    color: var(--accent-orange);
}

ul {
    list-style: none;
}

/* Header */
.header {
    background-color: var(--primary-brown);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo h1 {
    font-size: 2.2em;
    margin: 0;
    color: var(--light-cream);
    font-weight: 700;
}

.main-nav ul {
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--text-color-light);
    font-weight: 400;
    padding: 5px 0;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-orange);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

.main-nav ul li a:hover {
    color: var(--accent-orange);
    transform: translateY(-2px);
}

.mobile-nav-toggle {
    display: none;
    font-size: 2em;
    color: var(--text-color-light);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--primary-brown);
    border: 2px solid var(--accent-orange);
}

.btn-primary:hover {
    background-color: darken(var(--accent-orange), 10%);
    /* This won't work in pure CSS, use a slightly darker color */
    background-color: #e67e00;
    /* Darker orange */
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
}

.btn-secondary:hover {
    background-color: var(--accent-orange);
    color: var(--primary-brown);
    transform: translateY(-3px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, var(--primary-brown) 0%, var(--secondary-maroon) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    max-width: 55%;
    padding-right: 40px;
    animation: fadeInLeft 1s ease-out forwards;
}

.headline-script {
    font-family: var(--font-script);
    font-size: 4em;
    color: var(--light-cream);
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 2.8em;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--light-cream);
}

.hero-content .description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    flex: 1;
    max-width: 45%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 40px;
}

.coffee-cup-img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
    animation: bounceIn 1.5s ease-out forwards;
}

/* Coffee Splash Animation */
.coffee-splash {
    position: absolute;
    top: 30%;
    left: 45%;
    width: 100px;
    height: 100px;
    background: url('../images/splash.png') no-repeat center center / contain;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: splashEffect 2s ease-out 1s forwards;
    z-index: 1;
}

@keyframes splashEffect {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
}

/* Floating Beans Animation */
.floating-bean {
    position: absolute;
    opacity: 0;
    animation: floatAndFade 5s infinite ease-in-out;
}

.bean-1 {
    width: 30px;
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.bean-2 {
    width: 25px;
    top: 60%;
    left: 80%;
    animation-delay: 1.5s;
}

.bean-3 {
    width: 35px;
    top: 40%;
    left: 10%;
    animation-delay: 3s;
}

@keyframes floatAndFade {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(-50px) rotate(360deg);
        opacity: 0;
    }
}


/* General Page Sections */
main {
    padding: 60px 0;
    background-color: var(--primary-brown);
}

section {
    margin-bottom: 60px;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.2);
    /* Slightly transparent background for sections */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: var(--accent-orange);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background: var(--light-cream);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* About Page */
.about-page .container {
    color: var(--text-color-light);
}

.about-story,
.about-mission,
.about-sourcing,
.about-team,
.about-values {
    margin-bottom: 60px;
}

.about-sourcing .sourcing-content {
    display: flex;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.about-sourcing .sourcing-content img {
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.about-sourcing .sourcing-content p {
    flex: 1;
    min-width: 300px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--accent-orange);
}

.team-member h3 {
    color: var(--accent-orange);
    margin-bottom: 5px;
}

.team-member p {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.7);
}

/* Menu Page */
.menu-page .container {
    color: var(--text-color-light);
}

.menu-categories {
    text-align: center;
    margin-bottom: 40px;
}

.menu-categories ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.menu-categories button {
    background: transparent;
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1em;
}

.menu-categories button:hover,
.menu-categories button.active {
    background-color: var(--accent-orange);
    color: var(--primary-brown);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.menu-item {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    padding-bottom: 15px;
    opacity: 1;
    transform: translateY(0);
}

.menu-item.hidden {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: none;
    overflow: hidden;
    transition: all 0.5s ease-out;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--accent-orange);
}

.menu-item h3 {
    color: var(--accent-orange);
}

.menu-item p {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    padding: 10px;
}

.menu-item .price {
    display: block;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--light-cream);
}

.menu-item-text {
    display: flex;
    margin-bottom: 3rem;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
}

.dietary-info {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--light-cream);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.75em;
    font-weight: 500;
}

.dietary-info.vegan {
    background-color: #28a745;
    /* Green for vegan */
}

.dietary-info.gluten-free {
    background-color: #007bff;
    /* Blue for gluten-free */
}


.special-deals {
    margin-top: 60px;
    text-align: center;
}

.deal-item {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.deal-item:hover {
    transform: translateY(-5px);
}

.deal-item h3 {
    color: var(--accent-orange);
    margin-bottom: 10px;
}

/* Contact Page */
.contact-page .container {
    color: var(--text-color-light);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.info-item {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.info-item h3 {
    color: var(--accent-orange);
    margin-bottom: 15px;
}

.info-item p {
    margin-bottom: 5px;
}

.info-item a {
    color: var(--light-cream);
}

.map-container {
    margin-top: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

.contact-form-section {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 60px;
}

.contact-form-section h3 {
    text-align: center;
    color: var(--accent-orange);
    margin-bottom: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--light-cream);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--text-color-light);
    font-family: var(--font-body);
    font-size: 1em;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 3px rgba(255, 140, 0, 0.3);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    cursor: pointer;
}

.form-message {
    margin-top: 20px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #28a745;
    /* Green */
    color: white;
}

.form-message.error {
    background-color: #dc3545;
    /* Red */
    color: white;
}

.social-media {
    text-align: center;
}

.social-media h3 {
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a img {
    width: 40px;
    height: 40px;
    filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(180deg) brightness(120%) contrast(100%);
    /* Make icons light */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-links a img:hover {
    transform: scale(1.1);
    filter: invert(50%) sepia(100%) saturate(2000%) hue-rotate(0deg) brightness(100%) contrast(100%);
    /* Orange on hover */
}


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.1);
        opacity: 1;
    }

    80% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}


/* Responsive Design */
@media (max-width: 992px) {
    .header .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav {
        width: 100%;
        margin-top: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        display: none;
        /* Hidden by default for mobile */
        width: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        padding: 15px 0;
        border-radius: 8px;
    }

    .main-nav ul.active {
        display: flex;
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        top: 25px;
        right: 20px;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .hero-image {
        max-width: 100%;
        padding: 0;
    }

    .hero-content {
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .headline-script {
        font-size: 3em;
    }

    .hero-content h2 {
        font-size: 2em;
    }

    .about-sourcing .sourcing-content {
        flex-direction: column;
    }

    .about-sourcing .sourcing-content img {
        max-width: 100%;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 2em;
    }

    .headline-script {
        font-size: 2.5em;
    }

    .hero-content h2 {
        font-size: 1.8em;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }

    .menu-categories ul {
        flex-direction: column;
    }

    .menu-categories button {
        width: 80%;
    }

    .menu-items-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.8em;
    }

    .headline-script {
        font-size: 2em;
    }

    .hero-content h2 {
        font-size: 1.5em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 25px;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    /* ... other styles ... */

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        display: none;
        /* Hidden by default for mobile */
        width: 100%;
        background-color: rgba(0, 0, 0, 0.4);
        padding: 15px 0;
        border-radius: 8px;
    }

    .main-nav ul.active {
        display: flex;
        /* Display when 'active' class is present */
    }

    .main-nav ul li {
        margin: 10px 0;
    }

    .mobile-nav-toggle {
        display: block;
        /* Show the hamburger icon */
        position: absolute;
        top: 25px;
        right: 20px;
    }

    /* ... other styles ... */
}