/* Global Styles */
:root {
    --primary-color: #e25822;
    /* Flame Orange */
    --secondary-color: #f1c40f;
    /* Gold */
    --bg-color: #121212;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-color: #ffffff;
    --text-muted: #aaaaaa;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page Transition: Hide main content initially, show when body has .loaded class */
#main-header,
#home,
#about,
#intro-video,
#menu,
#contact,
footer {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1.5s ease-out, transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.loaded #main-header,
body.loaded #home,
body.loaded #about,
body.loaded #intro-video,
body.loaded #menu,
body.loaded #contact,
body.loaded footer {
    opacity: 1;
    transform: scale(1);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
#main-header {
    background: rgba(18, 18, 18, 0.95);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo-img {
    height: 50px;
    /* Adjust based on navbar height */
    width: auto;
    object-fit: contain;
}

.logo span span {
    /* The inner span for 'Gurme' color */
    color: var(--primary-color);
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-color);
    transition: 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav ul {
    text-align: center;
}

.mobile-nav li {
    margin: 2rem 0;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* Intro Overlay (Video) */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* Black background */
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1.5s cubic-bezier(0.77, 0, 0.175, 1), transform 1.5s cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 1;
}

#intro-overlay.fade-out {
    opacity: 0;
    transform: scale(1.1);
    background: transparent;
    pointer-events: none;
}

#intro-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the entire screen */
    object-position: center top;
    /* Align to top */
    border-radius: 0;
}

/* Home / Slider */
#home {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    /* Flexbox to center content */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    /* Add a dark overlay to make text readable */
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
    /* Bring active slide to front but behind controls if any */
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.slide-content h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
    animation: slideUp 1s ease-out forwards;
}

.slide-content p {
    font-size: 1.5rem;
    letter-spacing: 2px;
    animation: slideUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slider-controls {
    position: absolute;
    bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.slider-controls button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-controls button:hover {
    background: white;
    color: black;
}

.slider-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background: var(--primary-color);
}

.hero-signature {
    position: absolute;
    bottom: 120px;
    width: 100%;
    text-align: center;
    z-index: 3;
}

.hero-signature h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--secondary-color);
    font-style: italic;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* About Section */
#about {
    padding: 100px 0;
    background: #1a1a1a;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    justify-content: center;
}

.poem-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.poem-lines p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-style: italic;
    color: #ddd;
}

/* Menu Section */
#menu {
    padding: 100px 0;
}

.menu-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.menu-tab {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.menu-tab.active,
.menu-tab:hover {
    background: var(--primary-color);
}

.menu-category {
    display: none;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    animation: fadeIn 0.5s ease;
}

.menu-category.active {
    display: grid;
}

.menu-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.menu-item .price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.menu-item.highlight {
    border: 1px solid var(--secondary-color);
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-details small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Contact Section */
#contact {
    padding: 100px 0;
    background: #151515;
}

.contact-card {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.contact-item {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    flex: 1;
    min-width: 250px;
    transition: 0.3s;
}

.contact-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.contact-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-item p,
.contact-item a {
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 20px;
    background: #000;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 2.5rem;
    }

    .hero-signature h3 {
        font-size: 1.5rem;
    }

    .poem-card {
        padding: 1.5rem;
    }
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Video Section */
#intro-video {
    padding: 100px 0;
    background: #111;
    text-align: center;
}

.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.instagram-embed-wrapper {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    overflow: hidden;
}

.instagram-embed-wrapper iframe {
    max-width: 100%;
    border-radius: 5px;
}

.logo-flame-anim {
    position: absolute;
    top: 5px;
    left: 20px;
    width: 60px;
    height: 90px;
    background: radial-gradient(circle at 50% 80%, rgba(255, 69, 0, 0.7), rgba(255, 215, 0, 0) 70%);
    filter: blur(10px);
    mix-blend-mode: screen;
    animation: simple-flicker 0.15s infinite alternate ease-in-out;
    z-index: 20;
    border-radius: 40% 40% 40% 40%;
    transform-origin: bottom center;
}

@keyframes simple-flicker {
    0% {
        opacity: 0.6;
        transform: scale(1) skewX(-2deg) translateY(0);
        filter: blur(8px) brightness(1.2);
    }

    100% {
        opacity: 0.9;
        transform: scale(1.1) skewX(2deg) translateY(-2px);
        filter: blur(12px) brightness(1.5);
    }
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    left: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.5);
    color: #FFF;
}

/* Ensure WhatsApp button respects page transition */
.whatsapp-float {
    opacity: 0;
    transform: scale(0);
    transition: all 0.5s ease-out;
}

body.loaded .whatsapp-float {
    opacity: 1;
    transform: scale(1);
}


/* Feedback & Career Sections */
#feedback, #career {
    padding: 80px 0;
    text-align: center;
}

#feedback {
    background-color: #1a1a1a;
}

#career {
    background-color: #111;
}

.small-container {
    max-width: 800px;
    margin: 0 auto;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.half {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}


/* Map Container */
.map-container {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(226, 88, 34, 0.3);
}

.map-container iframe {
    display: block;
    filter: grayscale(100%) invert(92%) contrast(83%);
    transition: 0.3s;
}

.map-container:hover iframe {
    filter: none;
}


/* Skip Intro Button */
#skip-intro {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    cursor: pointer;
    z-index: 2001;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
    backdrop-filter: blur(5px);
    border-radius: 4px;
}

#skip-intro:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}
