* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.3;
    color: #e4e4e7;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    min-height: 100vh;
}



.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    color: white;
    padding: 1.7rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    animation: headerGlow 3s ease-in-out infinite alternate;
}

@keyframes headerGlow {
    from {
        box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
    }
    to {
        box-shadow: 0 8px 32px rgba(139, 92, 246, 0.5);
    }
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    animation: titleFloat 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 1;
}

@keyframes titleFloat {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-5px);
    }
}

header p {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 0.9; }
}

.filters {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 1.5rem 0;
    margin: 2rem 0;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideInFromTop 0.8s ease-out 0.2s both;
    transition: all 0.3s ease;
}

.filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.2);
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: fadeInScale 0.6s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.filter-group label {
    font-weight: 600;
    color: #a1a1aa;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

select, input {
    padding: 0.7rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px 0 20px 0;
    font-size: 1rem;
    background: rgba(15, 23, 42, 0.8);
    color: #e4e4e7;
    transition: all 0.3s ease;
    
}

select:focus, input:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(15, 23, 42, 1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transform: scale(1.02);
}

select:hover, input:hover {
    border-color: #8b5cf6;
    transform: translateY(-1px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 2fr));
    gap: 2rem;
    margin: 2rem 0;
}

.product-card {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(51, 65, 85, 0.8));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    animation: cardAppear 0.6s ease-out;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.product-card:hover .product-image {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.2);
}

.product-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #f8fafc;
    transition: color 0.3s ease;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: titleGradient 3s ease-in-out infinite alternate;
}

@keyframes titleGradient {
    from {
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        background-clip: text;
        -webkit-background-clip: text;
    }
    to {
        background: linear-gradient(135deg, #8b5cf6, #ec4899);
        background-clip: text;
        -webkit-background-clip: text;
    }
}

.product-description {
    color: #a1a1aa;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.product-card:hover .product-description {
    color: #d4d4d8;
}

.product-price {
    font-size: 1.4rem;
    font-weight: bold;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    animation: priceGlow 2s ease-in-out infinite alternate;
}

@keyframes priceGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.5));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.8));
    }
}

.product-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    animation: categoryPulse 2s ease-in-out infinite;
}

@keyframes categoryPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.product-category:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.order-btn {
    width: 100%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: buttonFloat 3s ease-in-out infinite;
}

@keyframes buttonFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-2px);
    }
}

.order-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.order-btn:hover::before {
    left: 100%;
}

.order-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.order-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.9));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    color: #a1a1aa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.close:hover {
    color: #ef4444;
    transform: scale(1.2);
    filter: drop-shadow(0 0 10px rgba(239, 68, 68, 0.5));
}

.form-group {
    margin-bottom: 1.5rem;
    animation: formGroupSlide 0.5s ease-out;
}

@keyframes formGroupSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #e4e4e7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(15, 23, 42, 0.8);
    color: #e4e4e7;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: rgba(15, 23, 42, 1);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transform: scale(1.02);
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-method {
    flex: 1;
    padding: 1rem;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.5);
    color: #a1a1aa;
    transition: all 0.3s ease;
    animation: paymentMethodBounce 2s ease-in-out infinite;
}

@keyframes paymentMethodBounce {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-2px);
    }
}

.payment-method:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-3px);
}

.payment-method.selected {
    border-color: #6366f1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    color: #e4e4e7;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.submit-order {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: submitPulse 2s ease-in-out infinite;
}

@keyframes submitPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
    }
}

.submit-order::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.submit-order:hover::before {
    left: 100%;
}

.submit-order:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
}

.loading {
    display: none;
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.spinner {
    border: 4px solid rgba(99, 102, 241, 0.3);
    border-top: 4px solid #6366f1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-message, .error-message {
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    text-align: center;
    animation: messageSlideIn 0.5s ease-out;
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(6, 182, 212, 0.2));
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.error-message {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 127, 0.2));
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
}

.dhaka-notice {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    text-align: center;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 12px;
    font-weight: 600;
    animation: noticeGlow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

@keyframes noticeGlow {
    from {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(217, 119, 6, 0.5);
    }
}

@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 2rem;
    }

    .modal-content {
        margin: 2% auto;
        width: 95%;
    }

    .payment-methods {
        flex-direction: column;
    }
}

/* Additional dark theme enhancements */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

/* Selection styling */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #e4e4e7;
}