* {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/exp.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
    color: #000000a4;
    transition: background 0.3s ease-in-out;
}

.header {
    padding: 3.5rem 0;
    text-align: center;
    position: relative;
    margin-top: 60px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    padding: 2rem 0;
}

.header h1 {
    font-size: 4em;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 3rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Card Styles - Updated for better layout */
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    height: 400px; /* Fixed height for consistency */
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 220px; /* Fixed height for consistent images */
    object-fit: cover; /* Maintains aspect ratio while covering the space */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Takes up remaining space */
    justify-content: space-between;
}

.card-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #2c3e50;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Limits text to 4 lines */
    -webkit-box-orient: vertical;
    font-family: 'Montserrat', sans-serif;
}

.card-content small {
    color: #666;
    font-size: 0.85rem;
    align-self: flex-end;
    font-style: italic;
    margin-top: auto; /* Pushes to bottom of flex container */
    font-family: 'Montserrat', sans-serif;
}

/* Media query updates for cards */
@media (max-width: 992px) {
    .card {
        height: 380px;
    }
    
    .card img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .card {
        height: 360px;
    }
    
    .card img {
        height: 180px;
    }
    
    .card-content {
        padding: 1.2rem;
    }
    
    .card-content p {
        font-size: 0.95rem;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 576px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

.upload-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #FF6B6B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 25px;
    z-index: 9999;
}

.upload-btn:hover {
    transform: scale(1.1) rotate(180deg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.modal-content {
    background: white;
    width: 80%;
    max-width: 550px;
    margin: 50px auto;
    padding: 2.5rem;
    border-radius: 24px;
    position: relative;
    animation: modalSlide 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* Custom file input styling */
input[type="file"].form-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

input[type="file"].form-input::file-selector-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    cursor: pointer;
    font-weight: 500;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

input[type="file"].form-input::file-selector-button:hover {
    background: linear-gradient(135deg, #45a049, #3d8b3d);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    outline: none;
    border-color: #0f3b38;
    box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.1);
}

/* File upload container */
.file-upload-container {
    position: relative;
    width: 100%;
    min-height: 80px;
    padding: 0.6rem;
    border: 1px dashed #e1e8f0;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
    background: rgba(248, 249, 250, 0.95);
    margin-bottom: 0.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 0.2rem;
}

.file-upload-container:hover {
    border-color: #4CAF50;
    background: #f0f7f0;
    transform: translateY(-2px);
}

.file-upload-container i {
    font-size: 1.3rem;
    color: #4CAF50;
    margin-bottom: 0.2rem;
    transition: transform 0.3s ease;
}

.file-upload-container:hover i {
    transform: translateY(-3px);
}

.file-upload-container p {
    color: #2c3e50;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.1;
}

.file-upload-container .file-types {
    font-size: 0.65rem;
    color: #666;
    margin: 0;
}

.submit-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8em;
    color: #2c3e50;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #FF6B6B;
}

@keyframes modalSlide {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

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

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

    .content-grid {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .file-upload-container {
        min-height: 70px;
        padding: 0.5rem;
    }

    .file-upload-container i {
        font-size: 1.2rem;
    }

    .file-upload-container p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .file-upload-container {
        min-height: 60px;
        padding: 0.4rem;
    }

    .file-upload-container i {
        font-size: 1.1rem;
    }

    .file-upload-container p {
        font-size: 0.7rem;
    }
}

:root {
    --primary-color: #4CAF50;
    --secondary-color: #2c3e50;
    --accent-color: #45a049;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* body {
    margin: 0;
    padding: 0;
    line-height: 1.6;
} */

nav {
    background: rgba(255, 255, 255,1);
    /* box-shadow: 0 2px 20px var(--shadow-color); */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 0.8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    color: #e0e0e0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

nav a:hover,
nav a.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.search-wrapper {
    position: relative;
    max-width: 250px;
}

.search-wrapper input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    padding-right: 3rem;
    border: none;
    border-radius: 30px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    cursor: pointer;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.1);
}


@media (max-width: 576px) {
    .search-wrapper {
        max-width: 150px;
    }
}

.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/kasaragod-cuisine.jpg');
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    margin-top: 60px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cuisine-section {
    padding: 4rem 2rem;
}

.cuisine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cuisine-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.cuisine-card:hover {
    transform: translateY(-10px);
}

.cuisine-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cuisine-content {
    padding: 1.5rem;
}

.cuisine-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.cuisine-content p {
    color: #666;
    margin-bottom: 1rem;
}

.location {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.price {
    font-weight: bold;
    color: var(--secondary-color);
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .cuisine-section {
        padding: 2rem 1rem;
    }
}