/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(139, 69, 19, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-logo h2 {
    font-family: 'Playfair Display', serif;
    color: #d4af37;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #d4af37;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #d4af37;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    color: #fff;
    border: 2px solid #d4af37;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.lang-btn.active,
.lang-btn:hover {
    background: #d4af37;
    color: #8b4513;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    background-image: url('./images/header.jpg');
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;

}

.hero-slide:nth-child(1) {
    background-image: url('./images/header.jpg');
}

.hero-slide:nth-child(2) {
    background-image: url('./images/logo.jpg');
}

.hero-slide:nth-child(3) {
    background-image: url('./images/header.jpg');
}

.hero-slide:nth-child(4) {
    background-image: url('./images/header.jpg');
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
    background: ; /* Light semi-transparent background for text readability */
    border-radius: 15px;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #d4af37;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: 1rem;
    justify-items: center; /* center buttons in their cell */
    align-items: center;
    padding-bottom: 10px;
}


.btn {
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #d4af37;
    color: #8b4513;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: #e6c547;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #d4af37;
}

.btn-secondary:hover {
    background: #d4af37;
    color: #8b4513;
}

.full-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: linear-gradient(45deg, #8b1e3f, #d4a017);*/
    background: linear-gradient(45deg, #103c4f, #82071f);
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 14px 30px;
    margin: 2rem auto 0 auto;
    border-radius: 12px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 260px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.full-menu-btn:hover {
    background: linear-gradient(45deg, #d4a017, #8b1e3f);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* About Section */
.about {
  background: #e8e7b3;
  padding: 80px 20px;
  text-align: center;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 40px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-header h2{
    font-size: 2.5rem;
    color: #5c3b11;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.about-header p{
    font-size: 1.1rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
    
}


.about-text {
    text-align: center;
}

.about-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #e74c3c, #c0392b);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
  color: black;
}

.stats-row {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat-card {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 150px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: #82071f;
  display: block;
  margin-bottom: 10px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
  opacity: 0;
  transform: translateX(50px);
  transition: all 1s ease;
}

.about-image img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Animation active state */
.visible {
  opacity: 1 !important;
  transform: translate(0,0) !important;
}

/* Menu Preview Section */
.menu-preview {
    padding: 5rem 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item-content {
    padding: 1.5rem;
}

.menu-item h3 {
    color: #8b4513;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.menu-item p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.price {
    font-weight: 700;
    color: #d4af37;
    font-size: 1.2rem;
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background: #f8f5f0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: #8b4513;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.reservation-form h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #8b4513;
    margin-bottom: 2rem;
}

.reservation-form form {
    display: grid;
    gap: 1rem;
}

.reservation-form input,
.reservation-form textarea {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.reservation-form input:focus,
.reservation-form textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.reservation-form textarea {
    resize: vertical;
    min-height: 100px;
}

.reservation-form button {
    justify-self: start;
    border: none;
    cursor: pointer;
}

/* Footer */
.footer {
    background: #8b4513;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: center;
}

.footer-logo h3 {
    font-family: 'Playfair Display', serif;
    color: #d4af37;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.footer-logo p {
    color: #ccc;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d4af37;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-social a:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #a0522d;
    color: #ccc;
}

/* Scroll-based Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.slide-left {
    transform: translateX(-50px);
}

.scroll-animate.slide-left.animate-in {
    transform: translateX(0);
}

.scroll-animate.slide-right {
    transform: translateX(50px);
}

.scroll-animate.slide-right.animate-in {
    transform: translateX(0);
}

.scroll-animate.scale-up {
    transform: scale(0.8);
}

.scroll-animate.scale-up.animate-in {
    transform: scale(1);
}

.scroll-animate.fade-only {
    transform: none;
}

.scroll-animate.fade-only.animate-in {
    opacity: 1;
}

/* Stagger animation delays for child elements */
.scroll-animate:nth-child(1) { transition-delay: 0.1s; }
.scroll-animate:nth-child(2) { transition-delay: 0.2s; }
.scroll-animate:nth-child(3) { transition-delay: 0.3s; }
.scroll-animate:nth-child(4) { transition-delay: 0.4s; }
.scroll-animate:nth-child(5) { transition-delay: 0.5s; }
.scroll-animate:nth-child(6) { transition-delay: 0.6s; }

/* Original fadeInUp animation for hero */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(139, 69, 19, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-content h2,
    .contact-info h2,
    .reservation-form h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0.8rem 15px;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Adjust typing animation for mobile */
    .typing-animation {
        white-space: normal;
    }
    
    .typing-animation.active {
        white-space: nowrap;
        animation-duration: 2s;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-item {
    text-align: center;
    padding: 2rem;
    background: #f8f5f0;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-item h3 {
    color: #8b4513;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* Payment Methods Section */
.payment-methods {
    padding: 5rem 0;
    background: #f8f5f0;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.payment-item {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.payment-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.payment-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.payment-item h3 {
    color: #8b4513;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.payment-item p {
    color: #666;
    line-height: 1.5;
}

/* Typing Animation Styles */
.typing-animation {
    opacity: 0;
    overflow: hidden;
    border-right: 2px solid #d4af37;
    white-space: nowrap;
    animation: none;
}

.typing-animation.active {
    opacity: 1;
    animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

.typing-animation.completed {
    border-right: none;
    opacity: 1 !important; /* Force visibility */
    overflow: visible; /* Allow text to be fully visible */
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #d4af37; }
}

/* Remove fade out animation - keep text visible */
.typing-animation.fade-out {
    opacity: 1 !important; /* Keep text visible instead of fading */
    border-right: none;
}

/* Language transition */
[data-translate] {
    transition: opacity 0.3s ease;
}

.language-transition {
    opacity: 0.7;
}
