/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Splash Screen */
.splash-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #dc2626, #ea580c);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: splashFadeOut 0.8s ease-in-out 3s forwards;
}

.splash-content {
    text-align: center;
    color: white;
    animation: splashContentIn 1s ease-out;
}

.splash-logo {
    margin-bottom: 2rem;
    animation: logoPopIn 0.8s ease-out 0.5s both;
}

.splash-logo-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: logoFloat 2s ease-in-out infinite alternate;
}

@keyframes logoPopIn {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-180deg);
    }
    70% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes logoFloat {
    0% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(-10px);
    }
}

.splash-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: titleSlideIn 0.8s ease-out 1s both;
}

@keyframes titleSlideIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.splash-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    animation: taglineSlideIn 0.8s ease-out 1.3s both;
}

@keyframes taglineSlideIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.splash-loader {
    animation: loaderFadeIn 0.5s ease-out 2s both;
}

@keyframes loaderFadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.loader-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.loader-dots span {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: dotBounce 1.4s ease-in-out infinite both;
}

.loader-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes splashContentIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes splashFadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Main Content */
.main-content {
    opacity: 0;
    animation: mainContentFadeIn 0.8s ease-out .5s forwards;
}

@keyframes mainContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive splash screen */
@media (max-width: 768px) {
    .splash-title {
        font-size: 2.5rem;
    }
    
    .splash-tagline {
        font-size: 1.2rem;
    }
    
    .splash-logo-img {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .splash-title {
        font-size: 2rem;
    }
    
    .splash-tagline {
        font-size: 1rem;
    }
    
    .splash-logo-img {
        width: 100px;
        height: 100px;
    }
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom, #fef7ed, #fed7aa);
    min-height: 100vh;
}

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

.hidden {
    display: none !important;
}

/* Header */
.header {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid #dc2626;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo {
    height: 4rem;
    width: 4rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.logo-text p {
    font-size: 0.875rem;
    color: #6b7280;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

.phone {
    color: #374151;
    font-weight: 500;
}

.cart-btn {
    position: relative;
    background: white;
    border: 2px solid #dc2626;
    color: #dc2626;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

/* Hero Section */
.hero {
    background: linear-gradient(to right, #dc2626, #ea580c);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.order-type {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.order-btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    background: #b91c1c;
    color: white;
}

.order-btn.active {
    background: white;
    color: #dc2626;
}

.order-btn:hover {
    transform: translateY(-2px);
}

.promo-banner {
    background: #fbbf24;
    color: #92400e;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    display: inline-block;
}

.promo-title {
    font-weight: 700;
    font-size: 1.125rem;
}

.promo-text {
    font-size: 0.875rem;
}

/* Menu Section */
.menu {
    padding: 4rem 0;
}

.menu h3 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #111827;
    margin-bottom: 3rem;
}

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

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

.pizza-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.pizza-content {
    padding: 1.5rem;
}

.pizza-emoji {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
}

.pizza-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

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

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

.pizza-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
}

.add-to-cart-btn {
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.add-to-cart-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* About Section */
.about {
    background: #f3f4f6;
    padding: 4rem 0;
}

.about h3 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: #111827;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.125rem;
    color: #374151;
    max-width: 48rem;
    margin: 0 auto 2rem;
    text-align: center;
}

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

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature p {
    color: #6b7280;
}

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

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

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

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

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

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 400px;
    background: white;
    box-shadow: -4px 0 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s;
}

.cart-sidebar:not(.hidden) {
    transform: translateX(0);
}

.cart-content {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cart-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: 1px solid #d1d5db;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

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

.empty-cart {
    color: #6b7280;
    text-align: center;
    padding: 2rem 0;
}

.cart-item {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.cart-item-name {
    font-weight: 600;
    font-size: 0.875rem;
}

.remove-btn {
    background: none;
    border: 1px solid #dc2626;
    color: #dc2626;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
}

.remove-btn:hover {
    background: #fef2f2;
}

.cart-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.quantity-btn {
    background: none;
    border: 1px solid #d1d5db;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-price {
    font-weight: 700;
}

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

.cart-total {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: right;
    color: #dc2626;
}

.checkout-btn {
    width: 100%;
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

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

/* Cart Summary (floating) */
.cart-summary {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border: 2px solid #dc2626;
    z-index: 150;
}

.cart-summary h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.cart-summary p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 0.75rem;
}

/* Checkout Modal */
.checkout-modal {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom, #fef7ed, #fed7aa);
    z-index: 300;
    overflow-y: auto;
}

.checkout-content {
    min-height: 100vh;
}

.checkout-header {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid #dc2626;
    padding: 1rem 0;
}

.checkout-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkout-body {
    padding: 2rem 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

.order-summary,
.customer-info {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.order-summary h3,
.customer-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-items {
    margin-bottom: 1.5rem;
}

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

.checkout-item-info h4 {
    font-weight: 600;
}

.checkout-item-info p {
    color: #6b7280;
    font-size: 0.875rem;
}

.checkout-item-price {
    font-weight: 700;
}

.order-total {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.total-price {
    color: #dc2626;
}

.order-type-display {
    color: #6b7280;
    font-size: 0.875rem;
}

.checkout-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.complete-order-btn {
    width: 100%;
    background: #dc2626;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.complete-order-btn:hover {
    background: #b91c1c;
}

/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .order-type {
        flex-direction: column;
        align-items: center;
    }

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

    .cart-sidebar {
        width: 100%;
    }

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

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .menu,
    .about {
        padding: 2rem 0;
    }

    .cart-summary {
        bottom: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
    }
}


/* Success Page */
.success-page {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #dc2626, #ea580c);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.success-content {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideInUp 0.6s ease-out;
}

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

.success-animation {
    position: relative;
    margin-bottom: 2rem;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pizza-spinner {
    font-size: 4rem;
    animation: spin 2s linear infinite;
    position: absolute;
}

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

.checkmark {
    font-size: 3rem;
    color: #16a34a;
    background: white;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
    animation: checkmarkPop 0.6s ease-out 0.5s both;
    z-index: 1;
}

@keyframes checkmarkPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.success-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.success-message {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

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

.order-details {
    background: #f9fafb;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-label {
    font-weight: 500;
    color: #6b7280;
}

.detail-value {
    font-weight: 700;
    color: #111827;
}

.progress-section {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.progress-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111827;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}

.progress-steps::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 50%;
    height: 2px;
    background: #16a34a;
    z-index: 1;
    animation: progressFill 2s ease-out 1s both;
}

@keyframes progressFill {
    from {
        width: 0%;
    }
    to {
        width: 50%;
    }
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    z-index: 2;
    position: relative;
    transition: all 0.3s ease;
}

.step.active {
    color: #16a34a;
}

.step.active .step-icon {
    background: #16a34a;
    color: white;
    transform: scale(1.1);
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.step span {
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
}

.success-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.7s both;
}

.track-order-btn,
.new-order-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.track-order-btn {
    background: #dc2626;
    color: white;
}

.track-order-btn:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

.new-order-btn {
    background: white;
    color: #dc2626;
    border: 2px solid #dc2626;
}

.new-order-btn:hover {
    background: #fef2f2;
    transform: translateY(-2px);
}

.thank-you {
    border-top: 1px solid #e5e7eb;
    padding-top: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.thank-you p {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.thank-you p:first-child {
    font-weight: 600;
    color: #111827;
    font-size: 1.125rem;
}

.contact-info {
    font-size: 0.875rem;
}

/* Responsive adjustments for success page */
@media (max-width: 768px) {
    .success-content {
        padding: 2rem;
        margin: 1rem;
    }

    .success-title {
        font-size: 2rem;
    }

    .success-message {
        font-size: 1rem;
    }

    .progress-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .step {
        flex: 1;
        min-width: 120px;
    }

    .success-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .success-content {
        padding: 1.5rem;
    }

    .pizza-spinner {
        font-size: 3rem;
    }

    .checkmark {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .success-animation {
        height: 100px;
    }
}
