/* Quan 79 - Restaurant Website Styles */

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

:root {
  --primary-color: #c71c4e;
  --bg-light: #b8a595;
  --bg-dark: #3d3d3d;
  --text-dark: #2c2c2c;
  --text-light: #f5f5f5;
  --sidebar-width: 194px;
}

body {
  font-family: "Segoe UI", "Roboto", "Noto Sans", "Arial", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--bg-light);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 15px 15px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.logo {
  width: 85px;
  height: 85px;
  background-color: var(--primary-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
  border: 3px solid white;
  padding: 10px;
  text-align: center;
  overflow: hidden;
}

.logo:hover {
  transform: scale(1.02);
}

.logo-text {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 24px;
  font-weight: bold;
  line-height: 0.95;
  max-width: 100%;
}

.logo-text span {
  display: block;
}

.logo-caption {
  margin-bottom: 14px;
  color: white;
  text-align: center;
  max-width: 120px;
}

.logo-subtitle {
  color: white;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.logo-en {
  color: white;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.3px;
  margin-top: 4px;
  max-width: 100%;
  white-space: nowrap;
}

.nav-menu {
  list-style: none;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  padding: 0 10px;
}

.nav-item {
  padding: 8px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 11px;
  color: var(--text-dark);
  line-height: 1.4;
  border-radius: 4px;
}

.nav-item:hover {
  background-color: rgba(199, 28, 78, 0.1);
  transform: translateX(3px);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: bold;
  font-size: 13px;
}

.social-icon:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 5px;
  margin-top: 18px;
  margin-bottom: 18px;
  padding: 3px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lang-btn {
  padding: 5px 10px;
  border: none;
  background-color: transparent;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  border-radius: 15px;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.lang-btn:hover {
  background-color: rgba(199, 28, 78, 0.1);
}

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

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 26, 26, 0.3), rgba(0, 0, 0, 0.4));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 40px;
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 18px;
  letter-spacing: 3px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Content Sections */
.section {
  padding: 100px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.content-grid.reverse {
  direction: rtl;
}

.content-grid.reverse > * {
  direction: ltr;
}

.content-text {
  line-height: 2;
  font-size: 16px;
}

.content-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.content-image:hover {
  transform: scale(1.03);
}

/* Gallery Section */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 60px 0;
}

.gallery-item {
  position: relative;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px;
  color: white;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

/* Info Section */
.info-section {
  background-color: white;
  padding: 80px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.info-item {
  padding: 30px;
}

.info-label {
  font-size: 14px;
  color: #888;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.info-value {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-dark);
}

/* CTA Button */
.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  margin-top: 30px;
  transition: all 0.3s ease;
  font-size: 16px;
  letter-spacing: 2px;
}

.cta-button:hover {
  background-color: #6b0a0a;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 26, 26, 0.3);
}

/* Footer */
.footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: 60px 80px 30px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,10 600,50 T1200,50 L1200,120 L0,120 Z" fill="%233D3D3D"/></svg>');
  background-size: cover;
  background-position: top;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-light);
}

.footer-description {
  line-height: 1.8;
  color: #b8b8b8;
}

.footer-title {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #b8b8b8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #888;
  font-size: 14px;
}

.social-icons {
  display: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2000;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.scroll-top:hover {
  background-color: #6b0a0a;
  transform: translateY(-5px);
}

/* Menu Preview */
.menu-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.menu-preview-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.menu-preview-item:hover {
  transform: translateY(-10px);
}

.menu-preview-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
  transition: box-shadow 0.3s ease;
}

.menu-preview-item:hover .menu-preview-image {
  box-shadow: 0 8px 25px rgba(199, 28, 78, 0.3);
}

.menu-preview-item h3 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 5px;
  font-weight: 700;
}

.menu-preview-item p {
  font-size: 14px;
  color: #666;
}

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

.fade-in {
  animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 0;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    width: 250px;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .section {
    padding: 60px 30px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .content-grid.reverse {
    direction: ltr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer {
    padding: 40px 30px 20px;
  }

  .section-title {
    font-size: 24px;
  }

  .info-section {
    padding: 40px 30px;
  }

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

  .menu-preview {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .menu-preview-image {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 24px;
  }

  .section {
    padding: 40px 20px;
  }

  .footer {
    padding: 30px 20px 20px;
  }
}
