:root {
    --bg-dark: #0a0a0a;
    --accent-primary: #ffffff;
    --accent-secondary: #888888;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-glow: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.5);
    --font-main: 'Inter', 'Outfit', sans-serif;
    --font-alt: 'Plus Jakarta Sans', sans-serif;
    --aurora-1: #1a1a1a;
    --aurora-2: #222222;
    --aurora-3: #111111;
    --aurora-4: #181818;
    --aurora-5: #202020;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Improves touch response */
    touch-action: manipulation;
}

/* --- BACKGROUND (Rich Drifting & Twinkling Stars) --- */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background: #030308;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(75, 0, 130, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 0, 128, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 0, 139, 0.2) 0%, transparent 60%);
    /* Performance: promote to its own layer */
    transform: translateZ(0);
    will-change: transform;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.20;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    /* Performance: avoid heavy blending on every scroll if possible */
    transform: translateZ(0);
}

/* Increased Star Density Performance Patch */
.squares-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
    background-image: 
        radial-gradient(1px 1px at 25% 15%, #ffffff 100%, transparent),
        radial-gradient(1px 1px at 50% 40%, #ffffff 100%, transparent),
        radial-gradient(1px 1px at 75% 25%, #ffffff 100%, transparent),
        radial-gradient(1.5px 1.5px at 15% 65%, #ffffff 100%, transparent),
        radial-gradient(1px 1px at 85% 55%, #ffffff 100%, transparent),
        radial-gradient(1px 1px at 10% 90%, #ffffff 100%, transparent),
        radial-gradient(1.5px 1.5px at 35% 85%, #ffffff 100%, transparent),
        radial-gradient(1px 1px at 60% 10%, #ffffff 100%, transparent),
        radial-gradient(2px 2px at 90% 90%, #ffffff 100%, transparent),
        radial-gradient(1px 1px at 20% 50%, #ffffff 100%, transparent),
        radial-gradient(1.2px 1.2px at 45% 25%, #ffffff 100%, transparent),
        radial-gradient(1px 1px at 80% 80%, #ffffff 100%, transparent);
    background-size: 500px 500px;
    opacity: 0.9;
    animation: space-drift 100s linear infinite;
    /* Performance: Force GPU */
    transform: translateZ(0);
    will-change: transform;
}

@keyframes space-drift {
    from { transform: translate3d(0, 0, 0); background-position: 0 0; }
    to { transform: translate3d(0, 0, 0); background-position: 500px 1000px; }
}

/* Twinkling Layer (Added more stars) */
.squares-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(1px 1px at 15% 25%, #fff 100%, transparent),
        radial-gradient(1.5px 1.5px at 35% 55%, #fff 100%, transparent),
        radial-gradient(1px 1px at 65% 85%, #fff 100%, transparent),
        radial-gradient(1px 1px at 85% 15%, #fff 100%, transparent),
        radial-gradient(2px 2px at 50% 5%, #fff 100%, transparent);
    background-size: 350px 350px;
    animation: twinkle 5s ease-in-out infinite alternate;
    will-change: opacity;
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

.aurora-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    filter: blur(100px);
    opacity: 0.45;
    pointer-events: none;
    /* Performance: GPU */
    transform: translateZ(0);
}

.aurora-item {
    position: absolute;
    width: 80vw;
    height: 80vw;
    border-radius: 50%;
    mix-blend-mode: screen;
    will-change: transform;
}

.aurora-1 { background: radial-gradient(circle, #4b0082 0%, transparent 70%); top: -20%; left: -20%; }
.aurora-2 { background: radial-gradient(circle, #000080 0%, transparent 70%); bottom: -10%; right: -10%; }
.aurora-3 { background: radial-gradient(circle, #8b008b 0%, transparent 70%); top: 20%; left: 20%; }

/* --- MAIN LAYOUT STRUCTURE --- */
.wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    /* Smooth Scroll Enhancement */
    will-change: transform;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    /* Optimization for mobile blurs */
    transform: translateZ(0);
}

.logo img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

h1 {
    font-family: var(--font-alt);
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(to bottom, #ffffff 0%, #bbbbbb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 0.15em;
    font-weight: 500;
    text-transform: uppercase;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.rating-stars svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-color, #ffd700);
    fill: none;
    filter: drop-shadow(0 0 8px var(--accent-color, rgba(255, 215, 0, 0.2)));
}

.star-item.filled svg {
    fill: var(--accent-color, #ffd700);
    filter: drop-shadow(0 0 12px var(--accent-color, rgba(255, 215, 0, 0.6)));
}

.content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.description {
    font-size: 1.3rem;
    color: var(--text-primary);
    max-width: 700px;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.4;
}

/* Quick Actions Bar */
.quick-actions-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 32px;
    width: 100%;
}

.quick-icon-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.quick-icon-btn:hover {
    transform: translateY(-3px) scale(1.05) translateZ(0);
    background: rgba(255, 255, 255, 0.1);
}

.quick-icon-btn svg {
    width: 24px;
    height: 24px;
}

/* Zomato Button  */
.order-hero-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 25px;
}

.order-hero-button {
    display: inline-flex;
    align-items: center;
    background: #e23744;
    border-radius: 100px;
    padding: 14px 32px; /* Made slightly more compact */
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(226, 55, 68, 0.3);
    animation: magnetic-pulse 2.5s infinite ease-in-out;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

@keyframes magnetic-pulse {
    0% { transform: scale(1) translate3d(0, 0, 0); }
    50% { transform: scale(1.02) translate3d(0, 0, 0); }
    100% { transform: scale(1) translate3d(0, 0, 0); }
}

.order-hero-button .icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

/* Compact Links Grid */
.section-heading {
    margin: 32px 0 16px;
    width: 100%;
}

.section-heading h2 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

.links-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
}

.link-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 12px 20px; /* Reduced padding for compact size */
    text-decoration: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 0.95rem; /* Slightly smaller font */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.link-button:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) translateZ(0);
}

.link-button .icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: opacity;
}
.reveal.active {
    opacity: 1;
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02); /* Very light tint */
    backdrop-filter: blur(8px); /* Subtle blur */
    -webkit-backdrop-filter: blur(8px);
    width: 100%;
}

.footer-address-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social-icon-circle {
    width: 36px;
    height: 36px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #000000;
}

.footer-social-icons .social-icon-circle svg {
    width: 18px;
    height: 18px;
}

.footer-icon {
    width: 14px; /* Reduced from 16px */
    height: 14px;
    vertical-align: middle;
    margin-right: 6px;
    opacity: 0.8;
}

.powered-by { font-size: 0.75rem; margin-bottom: 4px; opacity: 0.6; }
.copyright { font-size: 0.7rem; opacity: 0.4; }
/* Share Button - Premium Glass Style */
.share-trigger {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 14px; /* More modern squircle shape */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateZ(0);
}

.share-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px) translateZ(0); /* Removed rotate(5deg) */
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.1);
}

.share-trigger svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.share-trigger:active {
    transform: scale(0.92) translateZ(0);
}

/* --- SHARE MODAL --- */
.share-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.share-modal.active { display: flex; }

.share-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    padding: 32px;
}

.share-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.share-card-header h3 { color: white; font-size: 1.5rem; }

.close-modal {
    background: none; border: none; color: white;
    font-size: 2rem; cursor: pointer; opacity: 0.6;
}

.share-message { color: var(--text-secondary); margin-bottom: 12px; font-size: 0.9rem; }

.share-link-preview {
    background: rgba(255, 255, 255, 0.05); padding: 12px 16px;
    border-radius: 12px; font-size: 0.85rem; word-break: break-all;
    color: white; margin-bottom: 24px;
}

.copy-btn {
    width: 100%; padding: 16px; background: white; color: black;
    border: none; border-radius: 100px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* Responsive & Mobile Smoothness Patches */
@keyframes mobile-drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-100px, -100px, 0); }
}

@media (max-width: 768px) {
    .logo, .quick-icon-btn, .link-button, .footer, .share-trigger, .link-button:hover, .quick-icon-btn:hover {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }

    .aurora-container {
        display: none; /* Completely disable heavy blurs on mobile */
    }

    .noise-overlay {
        display: none; /* SVG filters are very heavy on mobile */
    }

    .squares-container {
        /* Optimization: Use simpler background with fewer gradients for mobile */
        background-image: 
            radial-gradient(1px 1px at 25% 15%, #ffffff 100%, transparent),
            radial-gradient(1px 1px at 50% 40%, #ffffff 100%, transparent),
            radial-gradient(1.5px 1.5px at 15% 65%, #ffffff 100%, transparent),
            radial-gradient(2px 2px at 90% 90%, #ffffff 100%, transparent);
        background-size: 400px 400px;
        /* Optimization: Animate transform instead of background-position */
        animation: mobile-drift 20s linear infinite !important;
        width: 120vw; /* Larger to allow for transform movement without gaps */
        height: 120vh;
        top: -10vh;
        left: -10vw;
    }

    .squares-container::after {
        /* Twinkling is okay if the layer is simple */
        background-image: 
            radial-gradient(1px 1px at 15% 25%, #fff 100%, transparent),
            radial-gradient(1.5px 1.5px at 35% 55%, #fff 100%, transparent);
        background-size: 300px 300px;
        animation: twinkle 5s ease-in-out infinite alternate !important;
    }

    .order-hero-button {
        animation: none !important; /* Remove Zomato pulse on mobile */
    }
}

@media (max-width: 640px) {
    .wrapper { padding-top: 80px; }
    h1 { font-size: 2.2rem; }
    .description { font-size: 1.1rem; }
}

@media (min-width: 1024px) {
    h1 { font-size: 3.5rem; }
    .description { font-size: 1.5rem; }
}

