/* Base Styles */
body {
    background-color: #f8fafc;
    font-family: 'Inter', sans-serif;
}

.hero-section {
    background-color: #f1f5f9;
    background-image: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2394a3b8' fill-opacity='0.1'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 1.4l2.83 2.83 1.41-1.41L1.41 0H0v1.41zM38.59 40l-2.83-2.83 1.41-1.41L40 38.59V40h-1.41zM40 1.41l-2.83 2.83-1.41-1.41L38.59 0H40v1.41zM20 18.6l2.83-2.83 1.41 1.41L21.41 20l2.83 2.83-1.41 1.41L20 21.41l-2.83 2.83-1.41-1.41L18.59 20l-2.83-2.83 1.41-1.41L20 18.59z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-slideIn {
    animation: slideIn 0.5s ease-out forwards;
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideInFromTop {
    animation: slideInFromTop 0.8s ease-out forwards;
}

/* Special Animated Gradient Text */
.animated-gradient-text {
    background: linear-gradient(90deg, #f59e0b, #d946ef, #f59e0b);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-animation 4s linear infinite;
}

@keyframes gradient-animation {
    to {
        background-position: 200% center;
    }
}

/* Component Styles */
.service-card {
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

a,
button {
    touch-action: manipulation;
}

/* Live Filter Styles */
.filter-btn {
    padding: 8px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.filter-btn:hover {
    background-color: #fca5a5;
    /* A light red for hover */
    border-color: #f87171;
    /* A medium red for hover */
    color: #7f1d1d;
    /* A dark red for text */
}

.filter-btn.active {
    background-color: #ef4444;
    /* Bright red for active */
    color: #ffffff;
    border-color: #ef4444;
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.service-card.hidden-by-filter {
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

/* Enhanced Flipkart-Style Mobile Menu */
.mobile-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    border-right: 1px solid #e2e8f0;
}

.mobile-menu-container.show {
    transform: translateX(0);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.mobile-menu-overlay.show {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* --- Styling for Mobile Menu User Profile --- */
.user-profile-section {
    background: #ffffff;
    padding: 20px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.user-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: #f59e0b;
    border-radius: 50%;
}

.user-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0c0d0dff;
    margin: 0;
    line-height: 1.2;
}

.user-info p {
    font-size: 0.875rem;
    color: #0c0d0dff;
    margin: 0;
}

/* Enhanced Menu Items */
.menu-items {
    flex: 1;
    padding: 0;
    background: white;
}

.menu-section-title {
    padding: 16px 20px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f1f5f9;
    background: #f8f9fa;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #1f2937;
    text-decoration: none;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 500;
    position: relative;
    transform: translateX(-10px);
    opacity: 0;
}

.mobile-menu-container.show .menu-item {
    animation: slideInMenuLeft 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.menu-item:hover {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    color: #92400e;
    transform: translateX(5px);
    box-shadow: inset 4px 0 #f59e0b;
}

.menu-item.active {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    color: #92400e;
    border-left: 4px solid #f59e0b;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2);
}

.menu-item-icon {
    margin-right: 16px;
    color: #6b7280;
    transition: all 0.3s ease;
    width: 20px;
    height: 20px;
}

.menu-item:hover .menu-item-icon,
.menu-item.active .menu-item-icon {
    color: #d97706;
    transform: scale(1.1);
}

.menu-item-text {
    flex: 1;
    font-size: 15px;
}

.menu-item-arrow {
    width: 16px;
    height: 16px;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.menu-item:hover .menu-item-arrow {
    transform: translateX(3px);
    color: #d97706;
}

@keyframes slideInMenuLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Staggered Animation Delays */
.menu-item:nth-child(1) {
    animation-delay: 0.1s;
}

.menu-item:nth-child(2) {
    animation-delay: 0.15s;
}

.menu-item:nth-child(3) {
    animation-delay: 0.2s;
}

.menu-item:nth-child(4) {
    animation-delay: 0.25s;
}

.menu-item:nth-child(5) {
    animation-delay: 0.3s;
}

.menu-item:nth-child(6) {
    animation-delay: 0.35s;
}

.menu-item:nth-child(7) {
    animation-delay: 0.4s;
}

.menu-item:nth-child(8) {
    animation-delay: 0.45s;
}

/* Enhanced Mobile Header Layout */
@media (max-width: 768px) {
    .mobile-header-layout {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 6px;
    }

    .mobile-menu-btn {
        flex-shrink: 0;
        order: 1;
        padding: 8px;
        border-radius: 6px;
        transition: all 0.2s ease;
    }

    .mobile-menu-btn:hover {
        /* background: rgba(245, 158, 11, 0.1); */
        /* THIS LINE IS REMOVED TO PREVENT BACKGROUND COLOR */
    }

    .mobile-logo {
        flex-shrink: 0;
        order: 2;
        margin-left: 2px;
    }

    .mobile-logo svg {
        width: 18px;
        height: 18px;
    }

    .mobile-logo span {
        font-size: 15px;
    }

    .mobile-search-btn {
        flex-shrink: 0;
        order: 3;
        padding: 6px;
        margin-left: auto;
        border-radius: 4px;
        transition: background-color: 0.15s ease;
    }

    .mobile-search-btn:hover {
        background-color: rgba(245, 158, 11, 0.1);
    }

    .mobile-login {
        flex-shrink: 0;
        order: 4;
        padding: 6px 10px;
        border-radius: 4px;
        transition: background-color: 0.15s ease;
        font-size: 11px;
    }

    .mobile-login:hover {
        background-color: rgba(245, 158, 11, 0.1);
    }

    .mobile-cart {
        flex-shrink: 0;
        order: 5;
        padding: 6px;
        border-radius: 4px;
        transition: background-color: 0.15s ease;
    }

    .mobile-cart:hover {
        background-color: rgba(245, 158, 11, 0.1);
    }
}

/* Search Bar */
#mobile-search-bar {
    transition: all 0.3s ease-in-out;
}

#mobile-search-bar.show {
    display: block !important;
}

body.menu-open {
    overflow: hidden;
}

/* Cart Styles */
.add-to-cart .tick {
    font-size: 1.2em;
    margin-left: 5px;
}

.add-to-cart {
    transition: all 0.3s ease;
}

/* Floating Cart */
#floating-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    transition: transform 0.3s ease-in-out;
    transform: translateY(100%);
}

#floating-cart.show {
    transform: translateY(0);
}

@media (max-width: 320px) {
    .mobile-menu-container {
        width: 100%;
    }
}

/* Login Page Specific Styles */
.hero-bg {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideInDown-form {
    animation: slideInDown 1.0s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.form-container {
    background: rgb(203 213 225);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    box-shadow: 0 0 8px rgba(236, 201, 75, 0.5);
    border-color: #ecc94b;
}

.pulse-button {
    position: relative;
    transition: transform 0.3s ease, background-color: 0.3s ease;
}

.pulse-button:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(236, 201, 75, 0.3) 0%, transparent 70%);
    animation: pulse 1.2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes pulse-click {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-click {
    animation: pulse-click 0.3s ease;
}

.login-container {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.login-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to right, #10b981, #059669);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    color: white;
    transition: background 0.3s ease, transform 0.2s ease;
}

.login-button:hover {
    background: linear-gradient(to right, #059669, #047857);
    transform: scale(1.05);
}