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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: linear-gradient(
    135deg,
    #f4e4bc 0%,
    #deb887 50%,
    #d2b48c 100%
  );
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* --- Header --- */
header {
  background: rgba(250, 240, 230, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
  background: rgba(250, 240, 230, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  color: var(--accent-color);
}

.logo img {
  height: 2.8rem;
  width: 2.8rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  border: 2px solid var(--glass-border);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 1001;
}

.mobile-menu-btn:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

main {
  padding-top: 90px;
}

/* --- Section Styling --- */
.section {
  padding: 6rem 0;
  min-height: 80vh;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* --- Home/Hero Section --- */
#home.section {
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  position: relative;
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  margin: 2rem;
  padding: 4rem;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23D2B48C;stop-opacity:0.3" /><stop offset="100%" style="stop-color:%23CD853F;stop-opacity:0.3" /></linearGradient></defs><rect fill="url(%23grad1)" width="1200" height="800"/><circle fill="%23ffffff" fill-opacity="0.1" cx="200" cy="150" r="120"/><circle fill="%23ffffff" fill-opacity="0.08" cx="800" cy="300" r="80"/><circle fill="%23ffffff" fill-opacity="0.06" cx="1000" cy="100" r="60"/><circle fill="%23ffffff" fill-opacity="0.04" cx="400" cy="600" r="100"/></svg>');
  background-size: cover;
  animation: floatBackground 20s ease-in-out infinite;
  z-index: 1;
}

@keyframes floatBackground {
  0%,
  100% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-image {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-strong);
  transition: all 0.3s ease;
  border: 3px solid var(--glass-border);
}

.hero-image img:hover {
  transform: scale(1.05);
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out;
  text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 40px rgba(139, 69, 19, 0.4);
}

.btn-secondary {
  background: rgba(250, 240, 230, 0.8);
  backdrop-filter: blur(10px);
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

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

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

/* --- Story Section --- */
.story-content {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 4rem;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  margin: 0 auto;
  max-width: 1000px;
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  text-align: justify;
}

/* --- Gallery Section --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--glass-border);
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: var(--shadow-strong);
  border-color: var(--primary-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Menu Section (Image Based) --- */
.menu-image-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.menu-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  border: 2px solid var(--glass-border);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-image:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-strong);
  border-color: var(--primary-color);
}

/* --- Contact Form --- */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.contact-form {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}

.contact-info {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
}

.contact-info h3 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--bg-light);
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--glass-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
}

/* --- Footer --- */
#contact.section {
  padding-bottom: 0;
}

footer {
  background: linear-gradient(
    135deg,
    rgba(47, 27, 20, 0.95),
    rgba(93, 78, 55, 0.9)
  );
  color: white;
  padding: 4rem 0 1.5rem;
  border-radius: 30px 30px 0 0;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}
.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  transform: translateY(-2px) scale(1.1);
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--secondary-color)
  );
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(250, 240, 230, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.86, 0, 0.07, 1);
  }

  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 3rem 2rem;
  }

  .hero-image {
    order: -1;
  }

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

  .contact-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 4rem 0;
  }
  .section-header h2 {
    font-size: 2.5rem;
  }
  .section-header p {
    font-size: 1.1rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  .story-content {
    padding: 2.5rem 1.5rem;
  }
  .logo {
    font-size: 1.8rem;
  }
  .logo img {
    height: 2.5rem;
    width: 2.5rem;
  }
  .hero {
    padding: 2rem 1.5rem;
  }
  .contact-form,
  .contact-info {
    padding: 2rem;
  }
}

@media (max-width: 450px) {
  .menu-image-container {
    grid-template-columns: 1fr;
  }
}

/* Scroll Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Success Message */
.success-message {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  display: none;
  text-align: center;
  font-weight: 600;
}

.success-message.show {
  display: block;
  animation: slideInDown 0.5s ease-out;
}

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

/* Hero Carousel Fade Effect */
#heroCarousel {
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1);
  opacity: 1;
}

#heroCarousel.fading {
  opacity: 0;
}