/* Reset and Base 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;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo h1 {
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #dc2626;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cart-btn {
    position: relative;
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cart-btn:hover {
    background: #b91c1c;
}

.cart-count {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    background: #eab308;
    color: black;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 50%;
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Section with Video Background */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 4rem;
    overflow: hidden;
}

/* Video Container */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5); /* Darker overlay for better text readability */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 4xl;
    padding: 0 1rem;
}

.stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.stars i {
    color: #fbbf24;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-title .highlight {
    color: #fbbf24;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #d1d5db;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #eab308;
    color: black;
}

.btn-primary:hover {
    background: #d97706;
    transform: scale(1.05);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-secondary:hover {
    background: white;
    color: #dc2626;
    transform: scale(1.05);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 3;
}

.scroll-mouse {
    width: 1.5rem;
    height: 2.5rem;
    border: 2px solid white;
    border-radius: 1rem;
    position: relative;
}

.scroll-mouse::before {
    content: '';
    width: 0.25rem;
    height: 0.75rem;
    background: white;
    border-radius: 0.125rem;
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: pulse 2s infinite;
}

/* Menu Section */
.menu {
    padding: 5rem 0;
    background: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
}

.filter-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.filter-btn.active {
    background: #dc2626;
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pizza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pizza-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s;
}

.pizza-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transform: translateY(-0.25rem);
}

.pizza-image {
    position: relative;
    overflow: hidden;
}

.pizza-image img {
    width: 100%;
    height: 16rem;
    object-fit: cover;
    transition: transform 0.3s;
}

.pizza-card:hover .pizza-image img {
    transform: scale(1.05);
}

.pizza-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.pizza-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #dc2626;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.pizza-info {
    padding: 1.5rem;
}

.pizza-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.pizza-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.pizza-ingredients {
    margin-bottom: 1rem;
}

.ingredients-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ingredient-tag {
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.pizza-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background: #b91c1c;
}

.quantity {
    font-weight: bold;
    font-size: 1.125rem;
    min-width: 2rem;
    text-align: center;
}

.add-to-cart {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.pizza-price-large {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    background: #fef2f2;
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.feature-icon i {
    color: #dc2626;
    font-size: 1.5rem;
}

.feature-content h3 {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.feature-content p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.years-badge {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background: #eab308;
    color: black;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.years-number {
    font-size: 1.875rem;
    font-weight: bold;
}

.years-text {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    background: #1f2937;
    color: white;
}

.contact .section-header h2 {
    color: white;
}

.contact .section-header p {
    color: #d1d5db;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-item {
    text-align: center;
}

.contact-icon {
    background: #dc2626;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.contact-icon i {
    font-size: 2rem;
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #d1d5db;
}

.quick-order {
    background: #374151;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
}

.quick-order h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.quick-order p {
    color: #d1d5db;
    margin-bottom: 2rem;
}

.order-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Footer */
.footer {
    background: black;
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #dc2626;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #d1d5db;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #dc2626;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #9ca3af;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #dc2626;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

.footer-bottom i {
    color: #dc2626;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    inset: 0;
    z-index: 2000;
    overflow: hidden;
    display: none;
}

.cart-sidebar.open {
    display: block;
}

.cart-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

.cart-content {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    max-width: 28rem;
    background: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.cart-header h2 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
}

.close-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-btn:hover {
    background: #f3f4f6;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.empty-cart {
    text-align: center;
    padding: 3rem 0;
}

.empty-cart i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.empty-cart p {
    color: #6b7280;
    font-size: 1.125rem;
}

.empty-cart small {
    color: #9ca3af;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.cart-item img {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: #1f2937;
}

.cart-item-price {
    color: #dc2626;
    font-weight: bold;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.total-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #dc2626;
}

.cart-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.delivery-note {
    font-size: 0.75rem;
    color: #6b7280;
    text-align: center;
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .contact-info {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .order-buttons {
        flex-direction: column;
    }
    
    .cart-content {
        max-width: 100%;
    }
    
    /* Mobile video optimization */
    #bg-video {
        /* Optional: Uncomment to disable video on mobile for better performance */
        /* display: none; */
    }
    
    .hero {
        /* Fallback background if video is disabled on mobile */
        /* background: linear-gradient(135deg, #dc2626, #b91c1c, #991b1b); */
    }
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    
    .order-buttons {
        flex-direction: row;
    }
}