@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: background-color 0.7s cubic-bezier(0.4, 0, 0.2, 1), color 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, .font-serif {
    font-family: 'Cormorant Garamond', serif;
}

/* Retro-modern dotted grid background */
.retro-grid {
    background-image: radial-gradient(rgba(188, 163, 116, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
}
.dark .retro-grid {
    background-image: radial-gradient(rgba(216, 146, 52, 0.05) 1px, transparent 1px);
}

/* Day/Night Transition styles */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: high-quality;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-image.night {
    opacity: 0;
}

.dark .hero-image.night {
    opacity: 1;
}

.dark .hero-image.day {
    opacity: 0;
}

/* Ambient light glow behind hero text */
.lamp-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(216, 146, 52, 0.25) 0%, rgba(216, 146, 52, 0.05) 50%, rgba(216, 146, 52, 0) 70%);
    top: 40%;
    left: 55%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .lamp-glow {
    opacity: 1;
}

/* Tactile Mechanical Switch (Rocker style) */
.switch-plate {
    background: linear-gradient(135deg, #f8f6f0 0%, #eae7de 100%);
    border: 3px solid #dfdad0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), inset 0 2px 4px rgba(255, 255, 255, 0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.switch-plate:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.12), inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.dark .switch-plate {
    background: linear-gradient(135deg, #20201e 0%, #151514 100%);
    border: 3px solid #333330;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.03);
}

.dark .switch-plate:hover {
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.03);
}

.switch-lever-container {
    perspective: 150px;
}

.switch-lever {
    width: 48px;
    height: 80px;
    background: linear-gradient(to bottom, #eeeeee 0%, #aaaaaa 100%);
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transform-origin: center center;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.15s ease;
    box-shadow: 0 8px 15px rgba(0,0,0,0.3), inset 0 2px 3px rgba(255,255,255,0.6);
    border: 2px solid #999;
}

.dark .switch-lever {
    background: linear-gradient(to bottom, #444442 0%, #222220 100%);
    border: 2px solid #111;
    box-shadow: 0 8px 15px rgba(0,0,0,0.6), inset 0 2px 2px rgba(255,255,255,0.1);
}

.switch-lever::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 8px;
    right: 8px;
    height: 40%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px 5px 0 0;
}

.dark .switch-lever::before {
    background: rgba(255, 255, 255, 0.08);
}

/* Switch active states */
.switch-lever.off {
    transform: rotateX(-30deg) translateY(-8px);
    box-shadow: 0 12px 15px rgba(0, 0, 0, 0.2);
}

.switch-lever.on {
    transform: rotateX(30deg) translateY(8px);
    background: linear-gradient(to bottom, #aaaaaa 0%, #dddddd 100%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.dark .switch-lever.on {
    background: linear-gradient(to bottom, #222220 0%, #555552 100%);
}

/* Neon Indicator Light */
.indicator-light {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #3f3f3f;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.6);
    transition: all 0.4s ease;
}

.indicator-light.active {
    background-color: #f97316;
    box-shadow: 0 0 14px #f97316, 0 0 6px #ea580c, inset 0 1px 2px rgba(255,255,255,0.8);
}

/* Shimmer Button */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.btn-primary:hover::after {
    left: 100%;
}

/* Mobile Menu Active State */
.mobile-menu-active {
    overflow: hidden;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Card hover glow states depending on lamp colors */
.lamp-card {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lamp-glow-bg {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 0;
}

.lamp-card:hover .lamp-glow-bg,
.lamp-card.lit .lamp-glow-bg {
    opacity: 0.85;
}

.glow-orange { background: radial-gradient(circle, rgba(234, 88, 12, 0.45) 0%, rgba(234, 88, 12, 0) 70%); }
.glow-green { background: radial-gradient(circle, rgba(132, 204, 22, 0.45) 0%, rgba(132, 204, 22, 0) 70%); }
.glow-blue { background: radial-gradient(circle, rgba(6, 182, 212, 0.45) 0%, rgba(6, 182, 212, 0) 70%); }
.glow-yellow { background: radial-gradient(circle, rgba(234, 179, 8, 0.45) 0%, rgba(234, 179, 8, 0) 70%); }
.glow-red { background: radial-gradient(circle, rgba(239, 68, 68, 0.45) 0%, rgba(239, 68, 68, 0) 70%); }
.glow-purple { background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(168, 85, 247, 0) 70%); }
.glow-pink { background: radial-gradient(circle, rgba(236, 72, 153, 0.45) 0%, rgba(236, 72, 153, 0) 70%); }
.glow-white { background: radial-gradient(circle, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0) 70%); }

.lamp-img {
    filter: brightness(0.85) contrast(1.05) saturate(0.95);
    transition: filter 0.5s ease, transform 0.5s ease;
    z-index: 10;
}

.lamp-card:hover .lamp-img,
.lamp-card.lit .lamp-img {
    filter: brightness(1.08) contrast(1.08) saturate(1.18);
}

/* Dialog & Filter Pill Active styles */
.filter-pill {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-pill.active {
    background-color: #1a1a18;
    color: #f8f6f0;
    border-color: #1a1a18;
}
.dark .filter-pill.active {
    background-color: #f8f6f0;
    color: #1a1a18;
    border-color: #f8f6f0;
}

/* Modal Overlay and Content styling */
.modal-overlay {
    backdrop-filter: blur(12px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Labor (dimmer slider styling) */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
    background: #e2e8f0;
    height: 6px;
    border-radius: 3px;
}
.dark input[type="range"]::-webkit-slider-runnable-track {
    background: #334155;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -5px;
    background-color: #1a1a18;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    border: 2px solid #bca374;
    transition: transform 0.1s ease;
}
.dark input[type="range"]::-webkit-slider-thumb {
    background-color: #f8f6f0;
    border: 2px solid #d89234;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
