 /* ==========================================================================
           1. CSS Variables & Global Styles
           ========================================================================== */
        :root {
            --primary-color: #ff3d00; /* Vibrant Red-Orange */
            --secondary-color: #ffc107; /* Bright Yellow */
            --dark-color: #212121; /* Dark Gray for Text */
            --light-color: #fff8e1; /* Creamy White Background */
            --card-bg: #ffffff;
            --shadow-color: rgba(0, 0, 0, 0.1);
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--light-color);
            color: var(--dark-color);
            overflow-x: hidden; /* Prevent horizontal scroll from 3D elements */
        }

        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 8px;
        }
        ::-webkit-scrollbar-track {
            background: var(--light-color);
        }
        ::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #e63600;
        }

        /* ==========================================================================
           2. Header & Navigation
           ========================================================================== */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            padding: 20px 8%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            transition: background 0.3s ease;
        }

        .header.scrolled {
            background: rgba(255, 248, 225, 0.9);
            backdrop-filter: blur(5px);
            box-shadow: 0 2px 10px var(--shadow-color);
        }
        
        .logo {
            font-size: 1.8rem;
            font-weight: 900;
            color: var(--primary-color);
            text-decoration: none;
        }

        .nav a {
            font-size: 1rem;
            color: var(--dark-color);
            text-decoration: none;
            margin-left: 30px;
            font-weight: 600;
            transition: color 0.3s ease;
        }

        .nav a:hover {
            color: var(--primary-color);
        }
        
        .nav-toggle {
            display: none; /* For mobile */
        }

        /* ==========================================================================
           3. General Section Styling
           ========================================================================== */
        section {
            padding: 100px 8%;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            position: relative;
            overflow: hidden;
        }
        
        .section-title {
            font-size: 3rem;
            font-weight: 900;
            color: var(--dark-color);
            margin-bottom: 50px;
            text-align: center;
        }
        .section-title span {
            color: var(--primary-color);
        }

        /* ==========================================================================
           4. Hero Section
           ========================================================================== */
        #hero {
            display: flex;
            justify-content: center;
            align-items: center;
            text-align: center;
            perspective: 1000px; /* Enable 3D space */
        }

        .hero-content {
            position: relative;
            z-index: 2;
        }

        .hero-title {
            font-size: 5rem;
            font-weight: 900;
            line-height: 1.1;
            color: var(--dark-color);
        }

        .hero-title .highlight {
            color: var(--primary-color);
            display: block;
        }

        .hero-subtitle {
            font-size: 1.2rem;
            margin: 20px 0 30px;
            color: var(--dark-color);
            font-weight: 400;
        }

        .cta-button {
            background: var(--primary-color);
            color: white;
            padding: 15px 35px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.1rem;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: inline-block;
        }

        .cta-button:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 20px rgba(255, 61, 0, 0.3);
        }

        .hero-food {
            position: absolute;
            will-change: transform; /* Performance optimization */
            user-select: none;
        }
        
        /* Positions for hero food items */
        #hero-burger { width: 300px; top: 10%; left: 5%; }
        #hero-pizza { width: 350px; top: 5%; right: 5%; }
        #hero-fries { width: 250px; bottom: 5%; left: 25%; }
        #hero-soda { width: 200px; bottom: 10%; right: 15%;}


        /* ==========================================================================
           5. Menu Section
           ========================================================================== */
        .menu-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            width: 100%;
        }

        .menu-card {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 5px 15px var(--shadow-color);
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }
        
        .menu-card img {
            width: 80%;
            margin-bottom: 15px;
            transition: transform 0.5s ease-in-out;
        }
        
        .menu-card:hover img {
            transform: rotate(15deg) scale(1.1);
        }
        
        .menu-card h3 {
            font-size: 1.5rem;
            color: var(--dark-color);
            margin-bottom: 10px;
        }

        .menu-card .price {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        /* ==========================================================================
           6. Special Deals Section (3D Flip Cards)
           ========================================================================== */
        .deals-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
            width: 100%;
            perspective: 1500px;
        }

        .deal-card-container {
            perspective: 1500px;
            height: 400px;
            cursor: pointer;
        }
        
        .deal-card {
            width: 100%;
            height: 100%;
            position: relative;
            transition: transform 0.8s;
            transform-style: preserve-3d;
            box-shadow: 0 10px 30px var(--shadow-color);
            border-radius: 20px;
        }
        
        .deal-card-face {
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            -webkit-backface-visibility: hidden; /* Safari */
            border-radius: 20px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            text-align: center;
        }

        .deal-card-front {
            background-color: var(--secondary-color);
            color: var(--dark-color);
        }
        
        .deal-card-front h3 { font-size: 2rem; margin-bottom: 15px; }
        .deal-card-front p { font-size: 1.1rem; }
        .deal-card-front img { width: 60%; margin-top: 20px; }

        .deal-card-back {
            background-color: var(--primary-color);
            color: white;
            transform: rotateY(180deg);
        }

        .deal-card-back h3 { font-size: 1.8rem; }
        .deal-card-back p { font-size: 1rem; margin: 15px 0; }
        .deal-card-back .price { font-size: 2.5rem; font-weight: 900; }

        /* ==========================================================================
           7. About Us Section
           ========================================================================== */
        #about {
            background-color: var(--dark-color);
            color: var(--light-color);
        }
        #about .section-title {
            color: var(--light-color);
        }
        #about .section-title span {
            color: var(--secondary-color);
        }

        .about-content {
            display: flex;
            align-items: center;
            gap: 50px;
        }
        .about-image {
            flex: 1;
            text-align: center;
        }
        .about-image img {
            max-width: 400px;
            border-radius: 20px;
            transform: rotate(-5deg);
        }
        .about-text {
            flex: 1.5;
            font-size: 1.1rem;
            line-height: 1.8;
        }
        
        /* For JS text animation */
        .about-text p span {
            display: inline-block;
            opacity: 0;
            transform: translateY(20px) rotateX(90deg);
        }


        /* ==========================================================================
           8. Testimonials Section
           ========================================================================== */
        .testimonials-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            width: 100%;
        }
        
        .testimonial-card {
            background: var(--card-bg);
            padding: 30px;
            border-radius: 20px;
            box-shadow: 0 5px 15px var(--shadow-color);
            border-top: 5px solid var(--secondary-color);
        }
        
        .testimonial-card p {
            font-style: italic;
            margin-bottom: 20px;
        }
        
        .testimonial-author {
            display: flex;
            align-items: center;
        }
        
        .testimonial-author img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            margin-right: 15px;
            object-fit: cover;
        }

        .testimonial-author h4 {
            font-weight: 700;
        }


        /* ==========================================================================
           9. Contact Section
           ========================================================================== */
        #contact {
            background-color: var(--primary-color);
            color: white;
        }
        
        #contact .section-title {
            color: white;
        }
        #contact .section-title span {
            color: var(--secondary-color);
        }

        .contact-form {
            width: 100%;
            max-width: 600px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }
        
        .form-group {
            position: relative;
        }

        .form-input {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 10px;
            background: var(--light-color);
            font-family: 'Poppins', sans-serif;
            font-size: 1rem;
            color: var(--dark-color);
            outline: none;
            border-bottom: 3px solid transparent;
            transition: border-bottom-color 0.3s, background-color 0.3s;
        }

        .form-input:focus {
            background: white;
            border-bottom-color: var(--secondary-color);
        }
        
        .form-label {
            position: absolute;
            left: 15px;
            top: 15px;
            color: #aaa;
            pointer-events: none;
            transition: all 0.3s ease;
        }
        
        .form-input:focus + .form-label,
        .form-input:not(:placeholder-shown) + .form-label {
            top: -10px;
            left: 10px;
            font-size: 0.8rem;
            color: var(--light-color);
            background: var(--primary-color);
            padding: 0 5px;
            border-radius: 5px;
        }

        .form-button {
            background: var(--secondary-color);
            color: var(--dark-color);
            padding: 15px 35px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.1rem;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: inline-block;
            border: none;
            cursor: pointer;
            align-self: center;
        }
        
        .form-button:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }
        
        /* ==========================================================================
           10. Footer
           ========================================================================== */
        .footer {
            background-color: var(--dark-color);
            color: var(--light-color);
            text-align: center;
            padding: 20px 8%;
        }

        /* ==========================================================================
           11. Responsive Design
           ========================================================================== */
        @media (max-width: 992px) {
            .hero-title { font-size: 4rem; }
            .hero-food { width: 25vw !important; }
            .about-content { flex-direction: column; }
        }
        
        @media (max-width: 768px) {
            .nav {
                display: none; /* Simple hiding for this example */
            }
            .section-title { font-size: 2.5rem; }
            .hero-title { font-size: 3rem; }
            .hero-subtitle { font-size: 1rem; }
            
            /* Simplify hero on mobile for performance and clarity */
            .hero-food {
                width: 20vw !important;
            }
             #hero-burger { top: 5%; left: 5%; }
             #hero-pizza { top: 15%; right: 5%; }
             #hero-fries { bottom: 20%; left: 10%; }
             #hero-soda { bottom: 10%; right: 10%;}

            .about-content {
                flex-direction: column;
                text-align: center;
            }
            .about-image img {
                max-width: 80%;
                transform: rotate(0deg);
            }
        }
        
        @media (max-width: 480px) {
            .logo { font-size: 1.5rem; }
            .hero-title { font-size: 2.5rem; }
            .cta-button, .form-button { width: 100%; text-align: center; }
        }
