:root {
    --bg: #050505;
    --fg: #ffffff;
    --text-secondary: #a1a1a6;
    --accent: #c5a059; /* Luxury Champagne Gold */
    --accent-glow: rgba(197, 160, 89, 0.2);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --glass-bg: rgba(20, 20, 22, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Visualizer specific variables */
    --primary-purple: #9b51e0;
    --primary-pink: #ff007f;
    --accent-gold: #f2c94c;
    --success: #00ffa3;
    --danger: #ff2e93;
    --warning: #ffcc00;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.5;
    position: relative;
}

/* Premium Aurora Background Blobs */
.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: rgba(197, 160, 89, 0.15); }
.blob-2 { top: 40%; right: -10%; width: 40vw; height: 40vw; background: rgba(0, 113, 227, 0.1); }
.blob-3 { bottom: -10%; left: 20%; width: 60vw; height: 60vw; background: rgba(197, 160, 89, 0.15); }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3vw, 3vw) scale(1.1); }
}

/* Luxury Nav */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(5, 5, 5, 0.75);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

nav .nav-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a {
    color: #f5f5f7;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

nav a:hover {
    opacity: 1;
    color: var(--accent);
}

nav .logo {
    display: flex;
    align-items: center;
}

nav .logo img {
    height: 32px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
}

.hero-title {
    background: linear-gradient(135deg, #ffffff 30%, #c5a059 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(60px, 12vw, 130px);
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: luxuryFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-subtitle {
    font-size: clamp(14px, 2vw, 20px);
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(20px);
    animation: luxuryFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.hero-image {
    width: 90%;
    max-width: 1100px;
    opacity: 0;
    transform: translateY(40px);
    animation: luxuryFadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    position: relative;
}

.hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 -100px 100px -50px var(--bg);
    pointer-events: none;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
}

/* Section Common */
section {
    padding: 120px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.section-title {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 80px;
    text-align: center;
    background: linear-gradient(90deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1200px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    height: 600px;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 40px;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 40px var(--accent-glow);
}

.card-title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    z-index: 10;
    text-align: center;
}

.card-desc {
    font-size: 20px;
    color: var(--text-secondary);
    z-index: 10;
    text-align: center;
    font-weight: 400;
    line-height: 1.6;
}

.card img {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70%;
    object-fit: cover;
    object-position: top;
    -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to top, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 3D Visualizer Section Layout */
.portal-layout {
    display: grid;
    grid-template-columns: 1fr 480px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 24px;
    width: 100%;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(197, 160, 89, 0.2);
}

.visualizer-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.canvas-container {
    width: 100%;
    height: 480px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.storefront-wall {
    position: absolute; inset: 0;
    background-color: #222;
    background-image: 
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('https://www.transparenttextures.com/patterns/dark-brick-wall.png');
    transition: all 0.3s ease;
}

.ambient-dimmer {
    position: absolute; inset: 0;
    background: black;
    opacity: 0.4;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.store-window {
    position: absolute;
    bottom: 0; left: 10%; width: 80%; height: 180px;
    border: 4px solid #111;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.03);
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.store-door {
    position: absolute;
    bottom: 0; left: 45%; width: 80px; height: 176px;
    border: 4px solid #111;
    background: rgba(0, 0, 0, 0.6);
    border-bottom: none;
}

.led-sign-wrapper {
    position: absolute;
    top: 140px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    text-align: center;
    width: 90%;
    pointer-events: none;
}

.rendered-sign {
    display: inline-block;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Glowing text options */
.glowing-text-cyan {
    color: #e0faff;
    text-shadow: 
        0 0 5px #e0faff,
        0 0 10px #00f2ff,
        0 0 20px #00f2ff,
        0 0 40px #00f2ff,
        0 0 80px #00f2ff;
}

.glowing-text-pink {
    color: #ffe0f0;
    text-shadow: 
        0 0 5px #ffe0f0,
        0 0 10px #ff007f,
        0 0 20px #ff007f,
        0 0 40px #ff007f,
        0 0 80px #ff007f;
}

.glowing-text-purple {
    color: #f3e0ff;
    text-shadow: 
        0 0 5px #f3e0ff,
        0 0 10px #9b51e0,
        0 0 20px #9b51e0,
        0 0 40px #9b51e0,
        0 0 80px #9b51e0;
}

.glowing-text-gold {
    color: #fff9e0;
    text-shadow: 
        0 0 5px #fff9e0,
        0 0 10px var(--accent-gold),
        0 0 20px var(--accent-gold),
        0 0 40px var(--accent-gold),
        0 0 80px var(--accent-gold);
}

.glowing-text-white {
    color: #ffffff;
    text-shadow: 
        0 0 5px #ffffff,
        0 0 10px rgba(255,255,255,0.8),
        0 0 20px rgba(255,255,255,0.6),
        0 0 40px rgba(255,255,255,0.4);
}

.halo-aura {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 105%; height: 120%;
    filter: blur(25px);
    opacity: 0.8;
    border-radius: 20px;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: -1;
}

.halo-aura.cyan { background: radial-gradient(circle, rgba(0, 242, 255, 0.4) 0%, transparent 70%); }
.halo-aura.pink { background: radial-gradient(circle, rgba(255, 0, 127, 0.4) 0%, transparent 70%); }
.halo-aura.purple { background: radial-gradient(circle, rgba(155, 81, 224, 0.4) 0%, transparent 70%); }
.halo-aura.gold { background: radial-gradient(circle, rgba(242, 201, 76, 0.4) 0%, transparent 70%); }
.halo-aura.white { background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, transparent 70%); }

.projection-box-body {
    background: #111;
    border: 2px solid var(--glass-border);
    padding: 12px 32px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.backing-concrete { background-color: #333; background-image: url('https://www.transparenttextures.com/patterns/cardboard-flat.png'); }
.backing-brick { background-color: #1a0f0d; background-image: url('https://www.transparenttextures.com/patterns/dark-brick-wall.png'); }
.backing-metal { background-color: #111; background-image: url('https://www.transparenttextures.com/patterns/brushed-alum.png'); }
.backing-acrylic { background-color: #06060c; border: 1px solid var(--glass-border); }

/* Controls styles */
.control-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.control-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}

.control-label span.val {
    color: var(--accent);
    font-family: monospace;
    font-size: 1rem;
}

.config-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: white;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.config-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.15);
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
}

.option-btn.selected {
    background: rgba(197, 160, 89, 0.08);
    border-color: var(--accent);
    color: white;
}

.color-palette {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-dot:hover { transform: scale(1.15); }
.color-dot.selected { border-color: white; transform: scale(1.15); }

.quote-sheet {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px dashed var(--glass-border);
    padding-top: 20px;
    margin-top: 20px;
}

.quote-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.quote-row.total {
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
    border-top: 1px solid var(--glass-border);
    padding-top: 12px;
    margin-top: 6px;
}

.btn-submit {
    background: var(--accent);
    color: black;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
    margin-top: 16px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(197, 160, 89, 0.35);
}

.slider-control {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.slider-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

/* AI Logs console modal */
.ai-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

.modal-card {
    background: #050510;
    border: 1px solid var(--glass-border);
    width: 100%;
    max-width: 600px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    animation: slideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.modal-header {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.82rem;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agent-resp-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    line-height: 1.6;
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 700;
}

.btn-close-modal {
    background: #9b51e0;
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 16px;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-close-modal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(155, 81, 224, 0.3);
}

/* Contact Section & Map styling */
.contact-section {
    background: transparent !important;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin-top: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-block h3 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 8px;
}

.info-block p, .info-block a {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 300;
    color: var(--fg);
    text-decoration: none;
}

.info-block p.address-text, .info-block p.hours-text {
    font-size: clamp(16px, 2vw, 22px);
    color: var(--text-secondary);
}

.contact-link {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.contact-link:hover {
    color: #fff;
    border-bottom: 1px solid #fff;
}

.map-container {
    width: 100%;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    filter: invert(90%) hue-rotate(180deg) brightness(95%) contrast(90%); /* Sleek dark-mode maps */
    transition: all 0.3s ease;
}

.map-container:hover {
    border-color: rgba(197, 160, 89, 0.3);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 30px var(--accent-glow);
}

/* Animations */
@keyframes luxuryFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

footer {
    padding: 80px 10% 40px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    text-align: center;
}

footer .footer-content {
    max-width: 1000px;
    margin: 0 auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 40px;
}

@media (max-width: 1024px) {
    .portal-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .map-container {
        height: 350px;
    }
}

@media (max-width: 734px) {
    .grid { grid-template-columns: 1fr; }
    .card { height: 500px; padding: 40px 20px; }
    .hero-title { font-size: 56px; }
    nav { height: auto; padding: 15px 5%; }
    nav .nav-content { flex-direction: column; gap: 15px; }
    nav .nav-links { gap: 15px; }
}
