/* Shared Styles for Nook Automation website */

body {
    background-color: #f8fafc;
    color: #1e293b;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Ambient Lighting Effect Base */
.ambient-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    transition: background 1s ease-in-out;
    background: rgba(40,19,100,0);
}

/* Voice Interface Styles */
#globalVoiceControl {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.transcript-bubble {
    background: rgba(40, 19, 100, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
    max-width: 280px;
    text-align: right;
    word-wrap: break-word;
    transition: opacity 0.3s, transform 0.3s;
}

.voice-orb {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F05323, #d13d11);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(240, 83, 35, 0.4);
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}
.voice-orb:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(240, 83, 35, 0.6);
}

.voice-orb::after {
    content: '';
    position: absolute;
    top: -5px; right: -5px; bottom: -5px; left: -5px;
    border-radius: 50%;
    border: 2px solid rgba(240, 83, 35, 0.5);
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    opacity: 0;
    pointer-events: none;
}

.voice-orb.listening::after {
    opacity: 1;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.5); opacity: 0; }
}

.waveform {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
    opacity: 0;
}

.waveform.active {
    opacity: 1;
}

.bar {
    width: 3px;
    background-color: white;
    border-radius: 2px;
    height: 4px; 
}

/* Fullscreen Cinematic Visualizer */
#cinematic-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #000;
}

.cinematic-bg {
    position: absolute;
    inset: -5%;
    background-image: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    transition: transform 0.1s;
}

.cinematic-curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 55vw;
    background: linear-gradient(to right, #cbd5e1 0%, #f1f5f9 10%, #94a3b8 20%, #e2e8f0 35%, #64748b 50%, #cbd5e1 70%, #94a3b8 85%, #f1f5f9 100%);
    background-size: 25% 100%;
    z-index: 10;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5), 0 0 30px rgba(0,0,0,0.8);
}

.curtain-l {
    left: -5vw;
    transform-origin: left center;
    transform: scaleX(0.08); 
}

.curtain-r {
    right: -5vw;
    transform-origin: right center;
    transform: scaleX(0.08);
    background: linear-gradient(to left, #cbd5e1 0%, #f1f5f9 10%, #94a3b8 20%, #e2e8f0 35%, #64748b 50%, #cbd5e1 70%, #94a3b8 85%, #f1f5f9 100%);
    background-size: 25% 100%;
}

.scene-text-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    pointer-events: none;
}

/* Navigation */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #F05323;
    transition: width 0.3s;
}
.nav-link:hover::after {
    width: 100%;
}

.section-padding {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.content-z {
    position: relative;
    z-index: 10;
}

.service-card {
    transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(40,19,100,0.15);
}
.service-card:hover .icon-bg {
    background-color: #F05323;
    color: white;
}

/* Mobile Navigation Dropdown */
#mobileMenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#mobileMenu.open {
    max-height: 400px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
