/* styles.css */
:root {
    --primary-color: #006D77;
    --secondary-color: #E29578;
    --accent-color-1: #FFD166;
    --accent-color-2: #7209B7;
    --neutral-light: #FAF3DD;
    --neutral-dark: #4A4E69;
}

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

body {
    font-family: 'Spectral', sans-serif;
    line-height: 1.6;
    color: var(--neutral-dark);
    background-color: var(--neutral-light);
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-family: 'Spectral', serif;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    font-weight: bold;
    margin-bottom: 2rem;
}  

header {
    background-color: var(--primary-color);
    color: var(--neutral-light);
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: light;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1rem;
}

nav ul li a {
    color: var(--neutral-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color-1);
}

main {
    margin-top: 60px;
}

section {
    padding: 4rem 2rem;
}

#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('FALAQ.png');
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--neutral-light);
}

.hero-content {
    /* background-color: rgba(0, 0, 0, 0.8); */
    background-color: rgba(0, 109, 119, 1);
    padding: 2rem;
    border-radius: 10px;
    max-width: 80%;
}

#hero h1 {
    font-size: 8rem;
    margin-bottom: 0rem;
    font-family: 'Spectral', serif;
    font-weight: 400;
}

#hero h2 {
    font-size: 2rem;
    margin-top: -2.5rem;
    margin-bottom: 1rem;
    font-family: 'Spectral', serif;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 2px;
    font-style: italic;
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
  }
  
  .menu-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: flex;
    flex-direction: column;
  }
  
  .menu-item h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
  }
  
  .menu-item p {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    flex-grow: 1;
  }
  
  .menu-item .price {
    font-weight: bold;
    color: var(--secondary-color);
    align-self: flex-end;
  }  
  
.menu-item:hover {
    transform: translateY(-5px);
}

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

#about {
    background-color: var(--primary-color);
    color: var(--neutral-light);
}

#map {
    height: 300px;
    background-color: #ccc; /* Placeholder for the map */
}

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
}

input, textarea, button {
    margin-bottom: 1rem;
    padding: 0.5rem;
}

button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: var(--primary-color);
}

footer {
    background-color: var(--neutral-dark);
    color: var(--neutral-light);
    text-align: center;
    padding: 1rem;
}

/* Add animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

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

.slide-up {
    animation: slideUp 0.5s ease-out;
}

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

@media screen and (max-width: 768px) {
    nav ul {
      flex-direction: column;
    }
    nav ul li {
      margin: 0.5rem 0;
    }
    #hero h1 {
      font-size: 4rem;
    }
    #hero h2 {
      font-size: 1.5rem;
    }
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        grid-template-columns: 1fr;
    }
    .menu-item {
    padding: 0.4rem;
    }
    .menu-item h3 {
    font-size: 0.8rem;
    }
    .menu-item p {
    font-size: 0.7rem;
    }
    .menu-item .price {
    font-size: 0.75rem;
    }
    #hero h2 {
        font-size: 1.5rem; /* Smaller font size for mobile */
        margin-top: -1.5rem; /* Adjust top margin to match smaller font */
    }
    #hero h1 {
        font-size: 4rem; /* Optionally, you can also reduce the h1 size */
    }
    .hero-content {
        max-width: 90%; /* Increase max-width for better mobile layout */
        padding: 1.5rem; /* Reduce padding for mobile */
    }  
}
  
  /* Mobile styles */
@media (max-width: 768px) {
    nav {
      display: none; /* Hide the entire nav in mobile view */
    }
    /* You might want to add a mobile menu button here if needed */
    /* For example:
    .mobile-menu-button {
      display: block;
      position: fixed;
      top: 10px;
      right: 10px;
      z-index: 1001;
    }
    */
    main {
      margin-top: 0; /* Remove the top margin since nav is hidden */
    }
}