/* ===== Custom Theme Colors ===== */
:root {
    --primary-green: #2d8a3d;
    --primary-red: #dc3545;
    --primary-cream: #f5ede1;
    --primary-black: #1a1a1a;
    --light-bg: #f5ede1;
    --dark-bg: #e8dcc8;
}

/* ===== General Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ===== Fixed Social Icons ===== */
.fixed-social-icons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 999;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-icon:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.facebook-icon {
    background: linear-gradient(135deg, #1877f2 0%, #0a66c2 100%);
}

.facebook-icon:hover {
    background: linear-gradient(135deg, #0a66c2 0%, #054399 100%);
}

.instagram-icon {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcaf45 100%);
}

.instagram-icon:hover {
    background: linear-gradient(135deg, #6c2e8f 0%, #e01010 50%, #f0a037 100%);
}

@media (max-width: 768px) {
    .fixed-social-icons {
        right: 10px;
        gap: 15px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ===== Go to Top Button ===== */
.go-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green) 0%, #25704d 100%);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(45, 138, 61, 0.3);
    transition: all 0.3s ease;
    z-index: 998;
}

.go-to-top-btn.show {
    display: flex;
}

.go-to-top-btn:hover {
    background: linear-gradient(135deg, #25704d 0%, #1a5036 100%);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(45, 138, 61, 0.4);
}

.go-to-top-btn:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .go-to-top-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

html {
    scroll-behavior: smooth;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-black);
}

.section-title {
    position: relative;
    display: inline-block;
    color: var(--primary-black);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-green) 100%);
    border-radius: 2px;
}

/* ===== Navigation ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-green) 0%, #25704d 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
    font-weight: bold;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-cream) !important;
}

.navbar-brand i {
    margin-right: 8px;
    font-size: 1.8rem;
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 10px;
    border-radius: 5px;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 10px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    background: white;
    padding: 30px 0;
    overflow: hidden;
    min-height: auto;
}

.hero-info {
    padding: 40px 30px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
}

.restaurant-name {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-black);
    margin-bottom: 8px;
    text-transform: uppercase;
    animation: slideInLeft 0.8s ease-out;
}

.tagline {
    font-size: 1rem;
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 1px;
    animation: slideInLeft 0.8s ease-out 0.1s backwards;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 18px;
    gap: 15px;
    animation: fadeInUp 0.8s ease-out backwards;
}

.info-item:nth-child(3) {
    animation-delay: 0.2s;
}

.info-item:nth-child(4) {
    animation-delay: 0.3s;
}

.info-item:nth-child(5) {
    animation-delay: 0.4s;
}

.info-icon {
    min-width: 45px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #25704d 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-icon i {
    font-size: 1.3rem;
    color: white;
}

.info-item:hover .info-icon {
    background: var(--primary-red);
    transform: scale(1.1) rotate(5deg);
}

.info-text {
    flex: 1;
}

.info-text p {
    margin: 0;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    font-weight: 500;
}

.info-text a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.info-text a:hover {
    color: var(--primary-red);
}

.open-badge {
    background: var(--primary-green);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 900;
    margin-left: 8px;
    display: inline-block;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

.hero-banner-wrapper {
    position: relative;
    height: 350px;
    overflow: hidden;
    background: var(--primary-cream);
    margin: 20px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 138, 61, 0.6) 0%, rgba(220, 53, 69, 0.5) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-banner-wrapper:hover .banner-overlay {
    opacity: 1;
}

.banner-overlay h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-overlay p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-order-now {
    background: var(--primary-red);
    color: white;
    padding: 12px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-order-now:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
    color: white;
}

/* ===== Menu Section ===== */
#menu {
    background: #ffffff;
}

.menu-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.2);
}

.menu-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-card:hover .menu-img {
    transform: scale(1.05);
}

.menu-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.menu-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.menu-card:hover .menu-icon {
    color: var(--primary-red);
    transform: rotate(15deg) scale(1.2);
}

.menu-name {
    color: var(--primary-black);
    font-size: 1.3rem;
    margin-bottom: 8px;
    margin: 0;
}

.menu-price {
    font-size: 1.5rem;
    color: var(--primary-red);
    font-weight: 700;
}

/* ===== Gallery Section ===== */
#gallery {
    background: var(--primary-cream);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    height: 250px;
    cursor: pointer;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(220, 53, 69, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===== Menu Templates Section ===== */
#menu-templates {
    background: var(--primary-cream);
    padding: 80px 0;
}

.template-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.template-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(45, 138, 61, 0.2);
}

.template-img-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.template-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template-item:hover .template-img-wrapper img {
    transform: scale(1.05);
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 138, 61, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-overlay button,
.template-overlay a {
    padding: 8px 16px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.template-overlay .btn-view {
    background: var(--primary-red);
    color: white;
}

.template-overlay .btn-view:hover {
    background: #c82333;
    transform: scale(1.05);
}

.template-overlay .btn-download {
    background: white;
    color: var(--primary-green);
}

.template-overlay .btn-download:hover {
    background: var(--primary-green);
    color: white;
    transform: scale(1.05);
}

.template-item:hover .template-overlay {
    opacity: 1;
}

.template-info {
    padding: 20px;
    text-align: center;
}

.template-info i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 10px;
    display: block;
}

.template-info h5 {
    color: var(--primary-black);
    margin-bottom: 5px;
    font-weight: 700;
}

.template-info p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.template-modal-body {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
}

/* ===== About Section ===== */
#about {
    background: var(--primary-cream);
}

.about-feature {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    background: #f8f9fa;
}

.about-feature i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--primary-green);
}

.about-feature h6 {
    margin: 0;
    color: var(--primary-black);
    font-weight: 600;
}

/* ===== Contact Section ===== */
#contact {
    background: linear-gradient(135deg, var(--primary-green) 0%, #25704d 100%);
    color: white;
}

.contact-info {
    padding: 20px;
    color: white;
}

.contact-info i {
    font-size: 1.3rem;
    margin-right: 15px;
}

.contact-info p {
    margin: 0;
    display: inline;
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--primary-cream);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-green);
    color: white;
    box-shadow: 0 0 10px rgba(34, 134, 58, 0.3);
}

.btn-success {
    background: var(--primary-green) !important;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: var(--primary-red) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
}

/* ===== Footer ===== */
footer {
    background: var(--primary-black);
    border-top: 3px solid var(--primary-red);
    color: white;
}

footer p {
    margin: 0;
}

/* ===== Modal ===== */
.modal-content {
    background-color: #2d2d2d;
    color: white;
    border: 2px solid var(--primary-red);
}

.modal-header {
    background-color: var(--primary-green);
    color: white;
    border-bottom: 2px solid var(--primary-red) !important;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(45, 138, 61, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(45, 138, 61, 0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hero-info {
        padding: 30px 20px;
        min-height: auto;
    }

    .restaurant-name {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .hero-banner-wrapper {
        height: 250px;
        margin: 15px 15px;
    }

    .banner-overlay h2 {
        font-size: 1.5rem;
    }

    .banner-overlay p {
        font-size: 1rem;
    }

    .info-item {
        margin-bottom: 15px;
    }

    .info-text p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .menu-card {
        margin-bottom: 20px;
    }

    .btn-order {
        padding: 5px 10px;
        font-size: 0.85rem;
    }
}

/* ===== Smooth Scrolling ===== */
.navbar-nav .nav-link {
    color: #ffffff !important;
}

/* ===== Button Animations ===== */
.btn {
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn:active {
    transform: scale(0.98);
}

/* ===== Template Section ===== */
#template {
    background: white;
}

.template-card {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.template-card:hover {
    box-shadow: 0 10px 40px rgba(45, 138, 61, 0.2);
    border-color: var(--primary-green);
    transform: translateY(-5px);
}

.template-icon {
    flex-shrink: 0;
}

.template-icon i {
    font-size: 4rem;
    color: var(--primary-red);
    transition: all 0.3s ease;
}

.template-card:hover .template-icon i {
    color: var(--primary-green);
    transform: scale(1.1);
}

.template-content {
    flex: 1;
}

.template-content h4 {
    color: var(--primary-black);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.template-content p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
}

.template-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.template-buttons .btn {
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.template-buttons .btn-primary {
    background: var(--primary-green);
    border: none;
}

.template-buttons .btn-primary:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.template-buttons .btn-success {
    background: var(--primary-green);
    border: none;
    color: white;
}

.template-buttons .btn-success:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
    color: white;
}

.template-modal-body {
    max-height: 80vh;
    overflow-y: auto;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.template-modal-body img {
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}
.text-danger {
    color: var(--primary-red) !important;
}

.text-success {
    color: var(--primary-green) !important;
}

.bg-success {
    background-color: var(--primary-green) !important;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}
