@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --gold: #D4AF37;
    --gold-light: #F9E29D;
    --gold-dark: #A67C00;
    --gold-grad: linear-gradient(135deg, #D4AF37 0%, #F9E29D 50%, #A67C00 100%);
    --bg-dark: #0A0A0A;
    --card-bg: rgba(20, 20, 20, 0.7);
    --glass-border: rgba(255, 215, 0, 0.15);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --accent: #D4AF37;
    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.05);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--gold);
    text-transform: uppercase;
}

.logo span {
    font-weight: 300;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1px;
    transition: 0.3s;
    opacity: 0.7;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: var(--gold);
}

.btn-designer-port {
    border: 1px solid var(--gold);
    padding: 10px 25px;
    border-radius: 50px;
    color: var(--gold) !important;
    background: rgba(212, 175, 55, 0.05);
}

.btn-designer-port:hover {
    background: var(--gold);
    color: #000 !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8%;
    background: linear-gradient(to right, #000 30%, transparent 100%),
        url('https://images.unsplash.com/photo-1539109136881-3be0610cac48?q=80&w=2000&auto=format&fit=crop') no-repeat center center;
    background-size: cover;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 400;
}

.hero-content h1 span {
    display: block;
    color: var(--gold);
    font-style: italic;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 550px;
}

/* Floor Plan */
.floor-plan-section {
    padding: 120px 8%;
    background: #000;
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
}

.section-title h2 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: #555;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.map-container {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 60px;
    padding: 80px;
}

.floor-plan {
    display: flex;
    justify-content: space-around;
    gap: 40px;
}

.map-zone {
    flex: 1;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    border-radius: 30px;
    padding: 50px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: 0.5s;
}

.zone-label {
    position: absolute;
    top: -12px;
    background: #000;
    padding: 0 20px;
    font-size: 0.7rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.booth-spot {
    width: 140px;
    height: 140px;
    background: #000;
    border: 1px solid #222;
    border-radius: 100%;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.4s;
    position: relative;
}

.booth-spot:hover {
    border-color: var(--gold);
    transform: scale(1.05);
}

.spot-pulse {
    width: 14px;
    height: 14px;
    background: #333;
    border-radius: 50%;
    margin-bottom: 10px;
    transition: 0.3s;
}

.is-live .spot-pulse {
    background: #ff3b3b;
    box-shadow: 0 0 15px #ff3b3b;
    animation: pulse 1.5s infinite;
}

.is-live {
    border-color: #ff3b3b;
}

.spot-name {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 500;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 50px;
    font-size: 0.8rem;
    color: #888;
}

/* Expo Grid */
.live-section {
    padding: 100px 8%;
}

.expo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-top: 60px;
}

.booth-card {
    background: #111;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.booth-media {
    height: 500px;
    overflow: hidden;
    position: relative;
}

.booth-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 1.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.booth-card:hover .booth-media img {
    transform: scale(1.1);
}

.live-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: #ff3b3b;
    color: #fff;
    padding: 8px 18px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 10;
}

.booth-info {
    padding: 35px 0;
}

.booth-info h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Modals */
.live-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    width: 100%;
    height: 100vh;
    max-width: 500px;
    background: #000;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stream-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 10%, transparent 40%, transparent 70%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 20;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.action-bar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.btn-primary {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 20px 40px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-5px);
}

.product-overlay {
    position: absolute;
    top: 100px;
    right: 20px;
    width: 220px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid var(--gold);
    padding: 20px;
    border-radius: 10px;
    z-index: 100;
}

.product-overlay img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    margin-bottom: 15px;
}

.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: #000;
    padding: 20px 40px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
    z-index: 3000;
}

.toast.show {
    bottom: 50px;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
}

/* --- Advanced Mobile Experience (PWA Style) --- */

/* Mobile Bottom Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 215, 0, 0.1);
    padding: 15px 10%;
    justify-content: space-between;
    align-items: center;
    z-index: 1500;
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #888;
    text-decoration: none;
    font-size: 0.7rem;
    transition: 0.3s;
}

.mobile-nav-item.active {
    color: var(--gold);
}

.mobile-nav-item i {
    font-size: 1.2rem;
}

/* Mobile-First Grid */
@media (max-width: 768px) {
    .mobile-nav {
        display: flex;
    }

    .navbar {
        padding: 15px 5%;
    }

    .hero {
        padding: 0 5%;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .expo-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 5% 100px;
    }

    .booth-media {
        height: 400px;
    }

    /* Vertical Live View (TikTok Style) */
    .modal-content {
        max-width: 100% !important;
        height: 100vh !important;
        border: none !important;
    }

    .stream-overlay {
        padding: 20px;
        padding-top: calc(20px + env(safe-area-inset-top));
        padding-bottom: calc(100px + env(safe-area-inset-bottom));
    }

    .stream-header h3 {
        font-size: 1.2rem;
    }

    .action-bar {
        position: absolute;
        bottom: 120px;
        right: 20px;
        left: 20px;
    }

    .product-mini {
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .product-overlay {
        width: 160px;
        top: 80px;
        right: 15px;
        padding: 10px;
    }

    .product-overlay img {
        height: 100px;
    }
}

/* Touch Optimizations */
button,
.booth-card,
.booth-spot {
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Safe Areas for iPhone X+ */
body {
    padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .expo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .floor-plan {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        font-weight: 700;
    }

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

/* --- Traffic Pulse Engine Styles --- */
.traffic-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    margin-top: 20px;
}

.pulse-container {
    position: relative;
    width: 100%;
    height: 150px;
    background: linear-gradient(0deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

#trafficPulseCanvas {
    width: 100%;
    height: 100%;
}

.pulse-overlay-data {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 40px;
}

.data-point {
    display: flex;
    flex-direction: column;
}

.data-point small {
    color: #555;
    text-transform: uppercase;
    font-size: 0.6rem;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.data-point span {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.4rem;
    color: var(--gold);
    font-weight: 700;
}