/* Custom CSS for Maxima Cafe */

/* Google Fonts Import */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Poppins:wght@300;400;500;600&display=swap");

/* Root Variables */
:root {
  --primary-color: #023d27;
  --secondary-color: #6d814a;
  --accent-color: #6d814a;
  --dark-color: #023d27;
  --light-color: #f5ebd0;
  --text-color: #023d27;
  --transition: all 0.3s ease;
} /* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  font-weight: 700;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Navigation Styles */
.navbar {
  background: linear-gradient(
    135deg,
    rgba(2, 61, 39, 0.95),
    rgba(109, 129, 74, 0.95)
  ) !important;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(2, 61, 39, 0.98) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: white !important;
  text-decoration: none;
}

.brand-text {
  margin-left: 0.5rem;
}

.navbar-nav .nav-link {
  color: white !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: var(--transition);
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  background-color: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

.navbar-nav .nav-link:hover {
  color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
      135deg,
      rgba(2, 61, 39, 0.8),
      rgba(109, 129, 74, 0.8)
    ),
    url("https://images.unsplash.com/photo-1501339847302-ac426a4a7cbb?ixlib=rb-4.0.3")
      center/cover;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(2, 61, 39, 0.7),
    rgba(109, 129, 74, 0.7)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero-image img {
  border-radius: 15px;
  animation: fadeInRight 1s ease-out 0.3s both;
  position: relative;
  filter: contrast(1.1) brightness(0.95);
}

.hero-image {
  position: relative;
}

.logo-image {
  background-color: #f5ebd0;
}
.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    transparent 30%,
    rgba(0, 0, 0, 0.3) 80%
  );
  border-radius: 15px;
  pointer-events: none;
  z-index: 1;
  transition: var(--transition);
}

.hero-image:hover img {
  transform: scale(1.05);
  filter: contrast(1.15) brightness(0.9);
}

.hero-image:hover::before {
  background: radial-gradient(
    circle at center,
    transparent 25%,
    rgba(0, 0, 0, 0.4) 85%
  );
}

.hero-buttons .btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.btn-warning {
  background-color: var(--accent-color);
  border: none;
  color: var(--dark-color);
}

.btn-warning:hover {
  background-color: #5a6b42;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(109, 129, 74, 0.3);
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--dark-color);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  color: var(--dark-color);
  margin-bottom: 1rem;
  position: relative;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    var(--secondary-color)
  );
  margin: 0 auto 2rem;
  border-radius: 2px;
}

/* About Section */
#about {
  padding: 80px 0;
}

.about-image img {
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.about-image img:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.feature-item {
  text-align: center;
  padding: 2rem;
  border-radius: 10px;
  transition: var(--transition);
}

.feature-item:hover {
  background-color: var(--light-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Menu Section */
#menu {
  padding: 80px 0;
}

.nav-pills .nav-link {
  background: none;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  margin: 0 0.5rem;
  border-radius: 50px;
  padding: 10px 25px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-pills .nav-link.active,
.nav-pills .nav-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
}

.menu-item {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
  border: 1px solid #f0f0f0;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.menu-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 1rem;
}

.menu-details h5 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.price {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Gallery Section */
#gallery {
  padding: 80px 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

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

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 61, 39, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-overlay i {
  color: white;
  font-size: 2rem;
  transform: scale(0);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
  transform: scale(1);
}

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

/* Contact Section */
#contact {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

.contact-item h6 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-form .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 10px;
  padding: 12px 15px;
  transition: var(--transition);
}

.contact-form .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
  color: white;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.social-links .btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(109, 129, 74, 0.3);
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 2rem 0;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .navbar-brand {
    font-size: 1.5rem;
  }

  .hero-buttons .btn {
    margin-bottom: 1rem;
    display: block;
    width: 100%;
  }

  .menu-item {
    text-align: center;
  }

  .menu-item .d-flex {
    flex-direction: column;
    align-items: center;
  }

  .menu-image {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .nav-pills .nav-link {
    margin: 0.25rem;
    font-size: 0.9rem;
    padding: 8px 15px;
  }

  .gallery-item img {
    height: 200px;
  }

  .feature-item {
    margin-bottom: 2rem;
  }
}

/* Loading Animation */
.loading {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.loading.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--accent-color);
  color: var(--dark-color);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}
