/* Custom Styles for Food Studio */
:root {
    --primary-color: #E23744;
    /* Zomato Red */
    --secondary-color: #1C1C1C;
    /* Dark Black/Gray */
    --dark-color: #111827;
    --light-color: #ffffff;
    --text-muted: #6b7280;
    --border-radius: 0.8rem;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: #ffffff;
    overflow-x: hidden;
    color: var(--dark-color);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-family: var(--font-heading);
}

.navbar-brand {
    font-weight: 800;
    font-style: italic;
    color: var(--primary-color) !important;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Comparison Slider */
.comparison-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    cursor: col-resize;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.comparison-image.before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    border-right: 2px solid white;
}

.handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    cursor: ew-resize;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
}

.handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

.handle i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.badge-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 4;
    backdrop-filter: blur(4px);
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
}

/* Features & Cards */
.hover-shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(226, 55, 68, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    transition: transform 0.3s;
}

.feature-icon:hover {
    transform: rotate(10deg) scale(1.05);
}

/* Floating Food Animation */
@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating-item img {
    animation: floatUpDown 4s ease-in-out infinite;
}

.drop-shadow-food {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
}

.drop-shadow-phone {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* Category Grid */
.category-card {
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.category-bg {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-card:hover .category-bg {
    transform: scale(1.1);
}

.category-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    color: white;
}

/* Testimonials */
.testimonial-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(226, 55, 68, 0.05);
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
    font-weight: 600;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E23744'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    filter: none;
}

.accordion-button {
    font-family: var(--font-body);
    font-weight: 500;
}

.accordion-item {
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    margin-bottom: 10px;
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 60px auto 0;
    text-align: left;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.faq-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-question {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.faq-answer {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.navbar-brand {
    font-weight: 900;
    font-style: italic;
    color: var(--primary-color) !important;
    font-size: 1.8rem;
    letter-spacing: -1px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

/* Comparison Slider */
.comparison-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    touch-action: none;
    /* Prevent scroll interference */
    cursor: col-resize;
    /* Indicate interactive area */
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.comparison-image.before {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    /* Initially show 50% from left */
    border-right: 2px solid white;
    /* Optional: might behave oddly with clip-path, handle usually covers seam */
}

/* Fix border on clip-path: border is clipped too. Add border to handle or separate element if needed. 
   For now, strictly relying on handle to show separation. */

.handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    cursor: ew-resize;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.handle i {
    color: var(--primary-color);
}

.badge-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    font-weight: bold;
    z-index: 4;
}

.label-before {
    left: 20px;
}

/* Changed to left because it is now relative to the Before image which is full width but clipped */
.label-after {
    right: 20px;
}

/* Changed to right to avoid overlap if images are same */

/* Features & Cards */
.hover-shadow {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 107, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.transform-hover {
    transition: transform 0.3s ease;
}

.transform-hover:hover {
    transform: translateY(-5px);
}

/* Floating Food Animation */
@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating-item img {
    animation: floatUpDown 4s ease-in-out infinite;
}

.drop-shadow-food {
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
}

.drop-shadow-phone {
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.hover-float {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Category Grid */
.category-card {
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.category-bg {
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.category-card:hover .category-bg {
    transform: scale(1.1);
}

.category-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: white;
}

/* Testimonials */
.testimonial-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    border-left: 5px solid var(--primary-color);
}

/* Pricing Section */
.pricing-card {
    border: none;
    border-radius: 12px;
    transition: 0.3s;
}

.pricing-card:hover {
    margin-top: -10px;
}

/* Dashboard Styles */
.sidebar-nav .nav-link {
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background-color: #fff0f0;
    /* Light pink background */
    color: var(--primary-color) !important;
    border-left: 4px solid var(--primary-color);
}

.sidebar-nav .nav-link i {
    width: 24px;
    text-align: center;
}

/* Brand Red Overrides for Pricing & FAQ */
/* Pricing overrides removed */

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(226, 55, 68, 0.05);
    /* Very light red */
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23E23744'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    filter: none;
}

.accordion-button:focus {
    border-color: rgba(226, 55, 68, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(226, 55, 68, 0.25);
}

/* FAQ Section */
.faq-section {
    max-width: 800px;
    margin: 60px auto 0;
    text-align: left;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.faq-item {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
}

.faq-question {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.faq-answer {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Security Protections */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

/* Global Button Overrides */
.btn-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
    border: none !important;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #c02e3b !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(226, 55, 68, 0.3) !important;
    transform: translateY(-1px);
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    background-color: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(226, 55, 68, 0.3) !important;
    transform: translateY(-1px);
}

/* Utilities */
.hover-red {
    transition: color 0.2s ease-in-out;
}
.hover-red:hover {
    color: var(--primary-color) !important;
}

/* Global Typography Uniformity */
body {
    font-family: 'Poppins', sans-serif !important;
}
h1, h2, .display-4, .display-5, .page-heading {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    font-family: 'Montserrat', sans-serif !important;
    letter-spacing: -0.5px;
}
h3, h4, .section-title, .card-title, .auth-header h2 {
    font-size: 1.75rem !important;
    font-weight: 600 !important;
    font-family: 'Montserrat', sans-serif !important;
}
h5, h6 {
    font-size: 1.25rem !important;
    font-family: 'Poppins', sans-serif !important;
}

