/* Custom CSS for New Green Valley Restaurant */

/* CSS Variables for easy customization */
:root {
  --primary-color: #22c55e;
  --primary-dark: #16a34a;
  --secondary-color: #f8f9fa;
  --dark-color: #1f2937;
  --light-color: #ffffff;
  --text-color: #333333;
  --text-muted: #6c757d;
  --border-radius: 0.5rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 100vw;
    overflow-x: hidden;
}
.navbar-toggler {
    background:#fff;
    border-radius:2px;
}
/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Header styles */
.custom-header {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  padding: .5rem 0;
}
    .custom-header .navbar-brand span img{
        width:100px;
        height:auto;
    }
    .custom-header.scrolled {
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

.custom-header.scrolled .navbar-brand span,
.custom-header.scrolled .nav-link {
  color: var(--text-color) !important;
}

.custom-header.scrolled .navbar-brand i {
  color: var(--primary-color) !important;
}

/* Navigation */
/* Show dropdown on hover */
.dropdown-hover:hover > .dropdown-menu {
    display: block;
    margin-top: 0; /* Optional: removes the slight offset */
}

.dropdown-menu {
    margin-top: 0;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}
.nav-link {
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding:29px 15px !important;
}

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

.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, var(--primary-dark) 0%, #15803d 100%);
}

.btn-book-table {
  position: relative;
  overflow: hidden;
  animation: pulse 2s infinite;
}

.btn-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50px;
  background: rgba(34, 197, 94, 0.3);
  animation: ping 2s infinite;
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  75%, 100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Hero Section */
.hero-section {
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.btn-hero {
  animation: fadeInUp 1s ease-out 0.6s both;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn-prev {
  left: 2rem;
}

.slider-btn-next {
  right: 2rem;
}

.slide-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.5rem;
}

.slide-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  transition: var(--transition);
}

.slide-indicator.active {
  background: white;
  transform: scale(1.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: floatBounce 2.5s ease-in-out infinite;
}

.scroll-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Optional: make the arrow a little spaced from the text */
.scroll-arrow {
    margin-top: 4px;
}

/* Smooth up-down animation */
@keyframes floatBounce {
    0%, 100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, 10px);
        opacity: 0.9;
    }
}


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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40%, 43% {
    transform: translateX(-50%) translateY(-10px);
  }
  70% {
    transform: translateX(-50%) translateY(-5px);
  }
  90% {
    transform: translateX(-50%) translateY(-2px);
  }
}

/* Feature Icons */
.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.feature-icon:hover {
  transform: scale(1.1);
}

/* Menu Tabs */
.menu-item {
    display: none;
}

    .menu-item.active {
        display: block;
    }
.menu-tab {
  border-radius: 50px !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin-right:10px;
}

.menu-tab.active {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
  transform: scale(1.05);
}

.menu-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.menu-tab:hover::before {
  left: 100%;
}

/* Cards */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  transition: var(--transition);
}

.card:hover .card-img-top {
  transform: scale(1.05);
}
/*Rooms Section*/
/* General Section Styling */
#rooms {
    background-color: #f8f9fa;
}

    #rooms .rooms-title {
        font-size: 2.5rem;
        font-weight: 700;
        color: #343a40;
    }

    #rooms .rooms-subtitle {
        font-size: 1.2rem;
        max-width: 700px;
        margin: 0 auto;
    }

    /* Card Styles */
    #rooms .card {
        border: none;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
        border-radius: 16px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
        background-color: #ffffff;
    }

        #rooms .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
        }

    /* Image Styling */
    #rooms .card-img-top {
        height: 250px;
        object-fit: cover;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        transition: transform 0.3s ease;
    }

    #rooms .card:hover .card-img-top {
        transform: scale(1.05);
    }

    /* Card Body */
    #rooms .card-title {
        font-size: 1.5rem;
        font-weight: bold;
        color: #22c55e;
    }

    #rooms .card-text.text-muted {
        font-weight: 500;
        color: #6c757d !important;
    }

    #rooms .card-text.small {
        font-size: 0.95rem;
        color: #495057;
    }

    /* Feature List */
    #rooms ul.list-unstyled li {
        margin-bottom: 6px;
        font-size: 0.9rem;
        color: #495057;
        text-align:center;
    }

/* CTA Section */
.rooms-cta p {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
}

.rooms-cta .btn {
    font-size: 1.1rem;
    padding: 12px 28px;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
}

    .rooms-cta .btn:hover {
        background-color: #0056b3;
        transform: scale(1.05);
    }

/* Responsive */
@media (max-width: 768px) {
    #rooms .card-img-top {
        height: 200px;
    }

    #rooms .rooms-title {
        font-size: 2rem;
    }

    #rooms .rooms-subtitle {
        font-size: 1rem;
    }
    .navbar-brand span img{
        width:80px;
    }
    .navbar-brand span{
        font-size:1rem;
    }
}
/*Gallery Section*/
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 0.5rem;
}

    .gallery-item img {
        transition: transform 0.4s ease;
        width: 100%;
        height: auto;
        display: block;
    }

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gallery-icon {
    font-size: 2rem;
    color: #fff;
}
/* Contact Icons */
.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Forms */
.form-control,
.form-select {
  border: 2px solid #e9ecef;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25);
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #22c55e;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
    z-index: 9999;
    cursor: pointer;
}

/* Bounce animation keyframes */
@keyframes bounceUpDown {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: bounceUpDown 1.2s ease-in-out infinite;
}

.scroll-to-top:hover {
    transform: translateY(-3px); /* This will be overridden by animation; optional */
}


/* Social Links */
.social-links a {
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

/* Lightbox */
.lightbox-controls {
  z-index: 10;
}

.lightbox-controls button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Place Cards */
.place-card {
    cursor: pointer;
    transition: var(--transition);
}

    .place-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }

    .place-card .card-img-top {
        transition: var(--transition);
    }

    .place-card:hover .card-img-top {
        transform: scale(1.05);
    }

.gradient-overlay {
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}
/* Map Placeholder */
.map-placeholder {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
  }
  
  .slider-btn-prev {
    left: 1rem;
  }
  
  .slider-btn-next {
    right: 1rem;
  }
  
  .feature-icon {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
    .hero-section{
        height:200px;
        top:100px;
    }
    .hero-slider{
        height:200px;
        position:relative;
    }
    .slide{
        height:200px;
    }
    .btn-hero {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    #about{
        margin-top:65px;
    }
}

/* Animation classes for JavaScript */
.animate-in {
  animation: fadeInUp 0.8s ease-out;
}

.animate-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.animate-in-right {
  animation: fadeInRight 0.8s ease-out;
}

/* Loading states */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .navbar,
  .scroll-to-top,
  .slider-btn,
  .slide-indicators {
    display: none !important;
  }
}

/* Custom utilities */
.text-shadow {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
}

.gradient-overlay {
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}