      * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-blue: #4785ff;
            --secondary-purple: #8b5cf6;
            --accent-cyan: #06b6d4;
            --dark-bg: #0a0a0f;
            --glass-bg: rgba(255, 255, 255, 0.08);
            --glass-border: rgba(255, 255, 255, 0.15);
            --text-primary: #ffffff;
            --text-secondary: rgba(255, 255, 255, 0.7);
            --text-muted: rgba(255, 255, 255, 0.5);
            --gradient-primary: linear-gradient(135deg, #4785ff 0%, #8b5cf6 50%, #06b6d4 100%);
            --gradient-card: linear-gradient(135deg, rgba(71, 133, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
            --shadow-glow: 0 25px 50px -12px rgba(71, 133, 255, 0.25);
        }

        body {
            font-family: 'Inter', sans-serif;
            background: var(--dark-bg);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
            background-image: 
                radial-gradient(circle at 20% 20%, rgba(71, 133, 255, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
        }

        /* Animated background particles */
        .bg-particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
        }

        .particle {
            position: absolute;
            width: 2px;
            height: 2px;
            background: rgba(71, 133, 255, 0.6);
            border-radius: 50%;
            animation: float 6s ease-in-out infinite;
        }

        @keyframes float {
            0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
            50% { transform: translateY(-100px) rotate(180deg); opacity: 1; }
        }

        /* Header */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(10, 10, 15, 0.8);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--glass-border);
        }

        .nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 2rem;
            max-width: 1400px;
            margin: 0 auto;
        }

        .logo {
            font-size: 1.8rem;
            font-weight: 700;
            color: #e2e8f0;
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .logo-icon {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-link {
            color: var(--text-secondary);
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            padding: 0.5rem 0;
        }

        .nav-link:hover {
            color: var(--text-primary);
        }

        .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-primary);
            transition: width 0.3s ease;
        }

        .nav-link:hover::after {
            width: 100%;
        }

        /* Main container */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 8rem 2rem 4rem;
            position: relative;
            z-index: 10;
        }

        /* Time display */
        .time-display {
            position: fixed;
            top: 100px;
            right: 2rem;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            padding: 1rem 1.5rem;
            font-family: 'Space Grotesk', monospace;
            font-weight: 600;
            font-size: 1.1rem;
            z-index: 100;
            box-shadow: var(--shadow-glow);
        }

        /* Main grid layout */
        .main-grid {
            display: grid;
            grid-template-columns: 0.8fr 1fr 0.8fr;
            gap: 2rem;
            margin-bottom: 3rem;
        }

        /* Glass card base */
        .glass-card {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 2rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .glass-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: var(--gradient-primary);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .glass-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-glow);
            border-color: rgba(71, 133, 255, 0.3);
        }

        .glass-card:hover::before {
            opacity: 1;
        }

        .panel-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 2rem;
            background: var(--gradient-primary);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Left panel - Controls */
        .room-controls {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin-bottom: 2rem;
        }

        .room-card {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 1.5rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .room-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            transition: left 0.5s ease;
        }

        .room-card:hover::before {
            left: 100%;
        }

        .room-card:hover {
            transform: translateY(-8px) scale(1.02);
            border-color: var(--primary-blue);
            box-shadow: 0 20px 40px rgba(71, 133, 255, 0.3);
        }

        .room-card.active {
            background: var(--gradient-card);
            border-color: var(--primary-blue);
            box-shadow: 0 20px 40px rgba(71, 133, 255, 0.4);
        }

        .room-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            filter: drop-shadow(0 4px 8px rgba(71, 133, 255, 0.3));
        }

        .room-name {
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 0.5rem;
        }

        .room-status {
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        /* Temperature control */
        .climate-control {
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 20px;
            padding: 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .temperature-display {
            font-size: 3.5rem;
            font-weight: 700;
            font-family: 'Space Grotesk', sans-serif;
            background: var(--gradient-primary);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin: 1.5rem 0;
            text-shadow: 0 0 30px rgba(71, 133, 255, 0.5);
        }

        .temp-slider {
            width: 100%;
            height: 8px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            outline: none;
            -webkit-appearance: none;
            margin: 1.5rem 0;
            position: relative;
        }

        .temp-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 24px;
            height: 24px;
            background: var(--gradient-primary);
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 0 20px rgba(71, 133, 255, 0.5);
        }

        /* Center panel - House visualization */
        .house-layout {
            background: rgba(255, 255, 255, 0.02);
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 24px;
            padding: 2rem;
            position: relative;
            height: 500px;
            overflow: hidden;
        }

        .room-visual {
            position: absolute;
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            background: rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(10px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            cursor: pointer;
        }

        .room-visual:hover {
            transform: scale(1.05);
            border-color: var(--primary-blue);
        }

        .room-visual.lit {
            background: var(--gradient-card);
            border-color: var(--primary-blue);
            box-shadow: 0 0 40px rgba(71, 133, 255, 0.4);
            animation: glow 2s ease-in-out infinite alternate;
        }

        @keyframes glow {
            from { box-shadow: 0 0 40px rgba(71, 133, 255, 0.4); }
            to { box-shadow: 0 0 60px rgba(71, 133, 255, 0.6); }
        }

        .living-visual { top: 60px; left: 40px; width: 200px; height: 120px; }
        .kitchen-visual { top: 60px; right: 40px; width: 160px; height: 120px; }
        .bedroom-visual { bottom: 60px; left: 40px; width: 180px; height: 100px; }
        .bathroom-visual { bottom: 60px; right: 40px; width: 140px; height: 100px; }

        /* Right panel - Systems */
        .security-section, .access-section, .voice-section {
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            transition: all 0.3s ease;
        }

        .security-section:hover, .access-section:hover, .voice-section:hover {
            border-color: rgba(71, 133, 255, 0.3);
            transform: translateY(-2px);
        }

        .section-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--text-primary);
        }

        .control-button {
            background: var(--gradient-primary);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 12px;
            cursor: pointer;
            font-size: 0.9rem;
            font-weight: 500;
            margin: 8px 8px 8px 0;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .control-button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s ease;
        }

        .control-button:hover::before {
            left: 100%;
        }

        .control-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(71, 133, 255, 0.4);
        }

        .control-button.active {
            background: linear-gradient(135deg, #10b981, #34d399);
        }

        .control-button.danger {
            background: linear-gradient(135deg, #ef4444, #f87171);
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-left: 12px;
        }

        .status-on {
            background: rgba(16, 185, 129, 0.2);
            color: #34d399;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .status-off {
            background: rgba(239, 68, 68, 0.2);
            color: #f87171;
            border: 1px solid rgba(239, 68, 68, 0.3);
        }

        /* Voice section special styling */
        .voice-section {
            background: rgba(71, 133, 255, 0.1);
            border-color: rgba(71, 133, 255, 0.3);
        }

        .voice-feedback {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 1.5rem;
            margin: 1rem 0;
            text-align: center;
        }

        .voice-animation {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 4px;
            margin-bottom: 1rem;
        }

        .voice-wave {
            width: 4px;
            height: 20px;
            background: var(--gradient-primary);
            border-radius: 2px;
            animation: voiceWave 1.5s infinite;
        }

        .voice-wave:nth-child(2) { animation-delay: 0.2s; }
        .voice-wave:nth-child(3) { animation-delay: 0.4s; }

        @keyframes voiceWave {
            0%, 100% { height: 20px; opacity: 0.5; }
            50% { height: 40px; opacity: 1; }
        }

        /* Status panel */
        .status-panel {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 3rem;
        }

        .status-card {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            padding: 2rem;
            border-radius: 20px;
            text-align: center;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .status-card:hover {
            transform: translateY(-8px);
            box-shadow: var(--shadow-glow);
            border-color: rgba(71, 133, 255, 0.3);
        }

        .status-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            filter: drop-shadow(0 4px 12px rgba(71, 133, 255, 0.3));
        }

        .status-value {
            font-size: 2rem;
            font-weight: 700;
            font-family: 'Space Grotesk', sans-serif;
            background: var(--gradient-primary);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 0.5rem;
        }

        .status-label {
            color: var(--text-muted);
            font-size: 0.9rem;
        }

        /* Activity log */
        .activity-log {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 2rem;
            margin-top: 2rem;
        }

        .log-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.3rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            background: var(--gradient-primary);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .log-container {
            max-height: 250px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: var(--primary-blue) transparent;
        }

        .log-container::-webkit-scrollbar {
            width: 6px;
        }

        .log-container::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 3px;
        }

        .log-container::-webkit-scrollbar-thumb {
            background: var(--primary-blue);
            border-radius: 3px;
        }

        .log-entry {
            padding: 1rem 1.5rem;
            margin: 8px 0;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            border-left: 4px solid var(--primary-blue);
            font-size: 0.9rem;
            animation: slideIn 0.4s ease;
            transition: all 0.3s ease;
        }

        .log-entry:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateX(4px);
        }

        @keyframes slideIn {
            from { opacity: 0; transform: translateX(-30px); }
            to { opacity: 1; transform: translateX(0); }
        }

        /* Floating notification bell */
        .notification-bell {
            position: fixed;
            top: 50%;
            right: 30px;
            transform: translateY(-50%);
            background: var(--gradient-primary);
            color: white;
            border: none;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            font-size: 1.4rem;
            cursor: pointer;
            box-shadow: var(--shadow-glow);
            z-index: 1001;
            transition: all 0.3s ease;
        }

        .notification-bell:hover {
            transform: translateY(-50%) scale(1.1);
            box-shadow: 0 25px 60px rgba(71, 133, 255, 0.4);
        }

        .notification-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #ef4444;
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            font-size: 0.7rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: bold;
            animation: bounce 2s infinite;
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-4px); }
            60% { transform: translateY(-2px); }
        }

        /* Notifications panel */
        .notifications-panel {
            position: fixed;
            top: 50%;
            right: 30px;
            transform: translateY(-50%) translateX(400px);
            width: 380px;
            max-height: 500px;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            box-shadow: var(--shadow-glow);
            z-index: 1000;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .notifications-panel.show {
            transform: translateY(-50%) translateX(0);
        }

        .notifications-header {
            padding: 1.5rem 2rem;
            border-bottom: 1px solid var(--glass-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .notification {
            padding: 1.2rem 1.5rem;
            margin-bottom: 12px;
            border-radius: 12px;
            border-left: 4px solid;
            background: rgba(255, 255, 255, 0.04);
            animation: slideInRight 0.4s ease;
            transition: all 0.3s ease;
        }

        .notification:hover {
            background: rgba(255, 255, 255, 0.08);
            transform: translateX(-4px);
        }

        .notification.security { border-left-color: #ef4444; }
        .notification.access { border-left-color: #10b981; }
        .notification.system { border-left-color: #3b82f6; }
        .notification.warning { border-left-color: #f59e0b; }

        @keyframes slideInRight {
            from { opacity: 0; transform: translateX(50px); }
            to { opacity: 1; transform: translateX(0); }
        }

        /* Google Home device */
        .google-home-device {
            position: fixed;
            bottom: 40px;
            right: 5px;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            padding: 1.5rem;
            min-width: 280px;
            z-index: 999;
            box-shadow: var(--shadow-glow);
            transition: all 0.3s ease;
        }

        .google-home-device:hover {
            transform: translateY(-5px);
            box-shadow: 0 30px 60px rgba(71, 133, 255, 0.3);
        }

        .gh-device-body {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .gh-status-lights {
            display: flex;
            gap: 6px;
        }

        .gh-light {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .gh-light.active {
            background: var(--primary-blue);
            box-shadow: 0 0 15px rgba(71, 133, 255, 0.6);
        }

        .gh-light.listening {
            background: #10b981;
            animation: ghPulse 1s infinite;
        }

        .gh-light.speaking {
            background: #ef4444;
            animation: ghPulse 0.8s infinite;
        }

        @keyframes ghPulse {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.3); }
        }

        .gh-name {
            font-weight: 600;
            color: var(--text-primary);
            font-size: 1rem;
        }

        .gh-status {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 4px;
        }

        /* Temp code display */
        .temp-code-display {
            margin-top: 1rem;
            text-align: center;
            background: rgba(16, 185, 129, 0.1);
            padding: 1.5rem;
            border-radius: 12px;
            border: 2px dashed rgba(16, 185, 129, 0.3);
        }

        .temp-code {
            font-size: 2rem;
            font-weight: bold;
            color: #10b981;
            font-family: 'Space Grotesk', monospace;
            text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
        }

        /* Suggestion buttons */
        .suggested-commands {
            margin-top: 1rem;
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .suggestion-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 0.8rem;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .suggestion-btn:hover {
            background: rgba(71, 133, 255, 0.2);
            border-color: var(--primary-blue);
            color: var(--text-primary);
            transform: translateY(-2px);
        }

        /* Responsive design */
        @media (max-width: 1200px) {
            .main-grid {
                grid-template-columns: 1fr 1fr;
            }
            .right-panel {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 8rem 1rem 2rem;
            }
            
            .main-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .room-controls {
                grid-template-columns: 1fr;
            }
            
            .status-panel {
                grid-template-columns: 1fr 1fr;
                gap: 1rem;
            }

            .nav {
                padding: 1rem;
            }

            .nav-links {
                display: none;
            }

            .time-display {
                position: relative;
                top: 0;
                right: 0;
                margin-bottom: 2rem;
            }

            .google-home-device {
                position: relative;
                bottom: 0;
                left: 0;
                margin-top: 2rem;
            }

            .notification-bell {
                right: 20px;
                top: 120px;
                transform: none;
            }

            .notifications-panel {
                right: 20px;
                top: 170px;
                transform: translateX(400px);
                width: 320px;
            }

            .notifications-panel.show {
                transform: translateX(0);
            }
        }

        /* Special mobile optimizations */
        @media (max-width: 480px) {
            .status-panel {
                grid-template-columns: 1fr;
            }
            
            .house-layout {
                height: 300px;
            }
            
            .living-visual, .kitchen-visual, .bedroom-visual, .bathroom-visual {
                position: relative;
                width: 100%;
                height: 60px;
                margin: 10px 0;
                flex-direction: row;
                justify-content: flex-start;
                padding-left: 1rem;
            }
        }
