﻿    :root {
      /* Primary Theme Colors */
      --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
      --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
      --violet-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
      --pink-gradient: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
      --blue-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
      --purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
      
      /* Success and Warning Gradients */
      --success-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
      --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
      --dark-gradient: linear-gradient(135deg, #1e293b 0%, #334155 100%);
      
      /* Glass Effects */
      --glass-bg: rgba(255, 255, 255, 0.1);
      --glass-border: rgba(255, 255, 255, 0.2);
      --glass-bg-light: rgba(255, 255, 255, 0.95);
      --glass-bg-dark: rgba(30, 41, 59, 0.95);
      
      /* Shadows */
      --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
      --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.15);
      --shadow-heavy: 0 30px 60px rgba(0, 0, 0, 0.2);
      --shadow-purple: 0 10px 30px rgba(139, 92, 246, 0.3);
      --shadow-pink: 0 10px 30px rgba(236, 72, 153, 0.3);
      --shadow-blue: 0 10px 30px rgba(59, 130, 246, 0.3);
      
      /* Border Radius */
      --border-radius: 20px;
      --border-radius-sm: 15px;
      --border-radius-lg: 25px;
      
      /* Transitions */
      --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      --transition-fast: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

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

    body {
      font-family: 'Inter', sans-serif;
      line-height: 1.6;
      color: #333;
      overflow-x: hidden;
    }

    /* Mobile Navigation Styles - Only for index.html */
    .mobile-navbar {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(139, 92, 246, 0.2);
      z-index: 9999;
      padding: 15px 20px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .mobile-navbar .mobile-nav-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .mobile-navbar .mobile-logo img {
      height: 40px;
    }

    .mobile-navbar .mobile-menu-toggle {
      background: var(--primary-gradient);
      border: none;
      border-radius: 10px;
      width: 45px;
      height: 45px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 20px;
      cursor: pointer;
      transition: var(--transition);
      box-shadow: var(--shadow-light);
    }

    .mobile-navbar .mobile-menu-toggle:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-medium);
    }

    .mobile-navbar .mobile-menu {
      position: fixed;
      top: 75px;
      left: 0;
      right: 0;
      bottom: 0;
      height: 1000%;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(139, 92, 246, 0.2);
      padding: 20px;
      transform: translateY(-100%);
      opacity: 0;
      visibility: hidden;
      transition: var(--transition);
      z-index: 9998;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
      overflow-y: auto;
      max-height: calc(100vh - 75px);
    }

    .mobile-navbar .mobile-menu.active {
      transform: translateY(0);
      opacity: 1;
      visibility: visible;
    }

    .mobile-navbar .mobile-menu ul {
      list-style: none;
      margin: 0;
      padding: 0;
      padding-bottom: 20px;
    }

    .mobile-navbar .mobile-menu ul li {
      margin-bottom: 15px;
    }

    .mobile-navbar .mobile-menu ul li:last-child {
      margin-bottom: 0;
    }

    .mobile-navbar .mobile-menu ul li a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px 20px;
      background: rgba(139, 92, 246, 0.05);
      border-radius: 15px;
      color: #1e293b;
      text-decoration: none;
      font-weight: 500;
      transition: var(--transition);
      border: 1px solid rgba(139, 92, 246, 0.1);
    }

    .mobile-navbar .mobile-menu ul li a:hover,
    .mobile-navbar .mobile-menu ul li a.active {
      background: var(--primary-gradient);
      color: white;
      transform: translateX(5px);
      box-shadow: var(--shadow-purple);
    }

    .mobile-navbar .mobile-menu ul li a i {
      font-size: 14px;
      transition: var(--transition);
    }

    .mobile-navbar .mobile-menu ul li a:hover i {
      transform: rotate(180deg);
    }

    .mobile-navbar .mobile-menu .dropdown-menu {
      display: none;
      margin-top: 10px;
      padding-left: 20px;
    }

    .mobile-navbar .mobile-menu .dropdown-menu.active {
      display: block;
    }

    .mobile-navbar .mobile-menu .dropdown-menu li {
      margin-bottom: 8px;
    }

    .mobile-navbar .mobile-menu .dropdown-menu a {
      padding: 10px 15px;
      background: rgba(139, 92, 246, 0.03);
      border-radius: 10px;
      font-size: 14px;
    }

    .mobile-navbar .mobile-menu .dropdown-menu a:hover {
      background: var(--violet-gradient);
      color: white;
    }

    /* Enhanced Product Line Dropdown - Desktop */
    @media (min-width: 1200px) {
      .navmenu .listing-dropdown ul {
        margin: 0;
        padding: 25px 20px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
        backdrop-filter: blur(20px);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(102, 126, 234, 0.1) inset;
        position: absolute;
        top: 130%;
        left: 50%;
        transform: translateX(-50%);
        width: 950px;
        max-width: 90vw;
        visibility: hidden;
        opacity: 0;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 20px;
        z-index: 999;
        border: 1px solid rgba(102, 126, 234, 0.1);
      }

      @media (min-width: 1400px) {
        .navmenu .listing-dropdown ul {
          width: 1000px;
        }
      }

      @media (max-width: 1300px) {
        .navmenu .listing-dropdown ul {
          width: 850px;
          grid-template-columns: repeat(3, 1fr);
        }
      }

      .navmenu .listing-dropdown ul::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 16px;
        height: 16px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
        border-left: 1px solid rgba(102, 126, 234, 0.1);
        border-top: 1px solid rgba(102, 126, 234, 0.1);
        transform: translateX(-50%) rotate(45deg);
      }

      .navmenu .listing-dropdown ul li {
        flex: none;
        margin: 0;
      }

      .navmenu .listing-dropdown ul li:first-child {
        grid-column: 1 / -1;
        margin-bottom: 10px;
        padding-bottom: 15px;
        border-bottom: 2px solid rgba(102, 126, 234, 0.1);
      }

      .navmenu .listing-dropdown ul li:first-child a {
        background: var(--primary-gradient);
        color: white;
        font-weight: 700;
        font-size: 16px;
        padding: 15px 25px;
        border-radius: 12px;
        justify-content: center;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        transition: all 0.3s ease;
      }

      .navmenu .listing-dropdown ul li:first-child a:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
      }

      .navmenu .listing-dropdown ul li a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 15px 18px;
        font-size: 14px;
        color: #1e293b;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(102, 126, 234, 0.02) 100%);
        border-radius: 12px;
        border: 1px solid rgba(102, 126, 234, 0.1);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        font-weight: 500;
      }

      .navmenu .listing-dropdown ul li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
        transition: left 0.5s ease;
      }

      .navmenu .listing-dropdown ul li a:hover::before {
        left: 100%;
      }

      .navmenu .listing-dropdown ul li a i {
        font-size: 18px;
        color: #667eea;
        transition: all 0.3s ease;
        min-width: 20px;
      }

      .navmenu .listing-dropdown ul li a:hover {
        color: #667eea;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(102, 126, 234, 0.05) 100%);
        border-color: rgba(102, 126, 234, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
      }

      .navmenu .listing-dropdown ul li a:hover i {
        transform: scale(1.2);
        color: #764ba2;
      }

      .navmenu .listing-dropdown:hover>ul {
        opacity: 1;
        top: 100%;
        visibility: visible;
      }

      /* Product category grouping */
      .navmenu .listing-dropdown ul li:nth-child(2),
      .navmenu .listing-dropdown ul li:nth-child(3),
      .navmenu .listing-dropdown ul li:nth-child(4),
      .navmenu .listing-dropdown ul li:nth-child(5) {
        position: relative;
      }

      .navmenu .listing-dropdown ul li:nth-child(2)::after,
      .navmenu .listing-dropdown ul li:nth-child(3)::after,
      .navmenu .listing-dropdown ul li:nth-child(4)::after,
      .navmenu .listing-dropdown ul li:nth-child(5)::after {
        content: 'IoT';
        position: absolute;
        top: -8px;
        right: 8px;
        background: var(--primary-gradient);
        color: white;
        font-size: 9px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 10px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        opacity: 0;
        transition: opacity 0.3s ease;
      }

      .navmenu .listing-dropdown ul li:nth-child(2):hover::after,
      .navmenu .listing-dropdown ul li:nth-child(3):hover::after,
      .navmenu .listing-dropdown ul li:nth-child(4):hover::after,
      .navmenu .listing-dropdown ul li:nth-child(5):hover::after {
        opacity: 1;
      }
    }

    /* Enhanced Product Line Dropdown - Mobile */
    @media (max-width: 1199px) {
      .mobile-navbar .mobile-menu .dropdown-menu#productDropdown {
        display: none;
        margin-top: 10px;
        padding: 15px;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(102, 126, 234, 0.02) 100%);
        border-radius: 15px;
        border: 1px solid rgba(102, 126, 234, 0.1);
      }

      .mobile-navbar .mobile-menu .dropdown-menu#productDropdown.active {
        display: block;
      }

      .mobile-navbar .mobile-menu .dropdown-menu#productDropdown li:first-child {
        margin-bottom: 15px;
      }

      .mobile-navbar .mobile-menu .dropdown-menu#productDropdown li:first-child a {
        background: var(--primary-gradient);
        color: white;
        font-weight: 700;
        padding: 15px 20px;
        border-radius: 12px;
        justify-content: center;
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
      }

      .mobile-navbar .mobile-menu .dropdown-menu#productDropdown a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 15px;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
        font-size: 14px;
        margin-bottom: 8px;
        border: 1px solid rgba(102, 126, 234, 0.1);
        transition: all 0.3s ease;
      }

      .mobile-navbar .mobile-menu .dropdown-menu#productDropdown a i {
        font-size: 16px;
        color: #667eea;
        min-width: 20px;
      }

      .mobile-navbar .mobile-menu .dropdown-menu#productDropdown a:hover {
        background: var(--violet-gradient);
        color: white;
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
      }

      .mobile-navbar .mobile-menu .dropdown-menu#productDropdown a:hover i {
        color: white;
        transform: scale(1.1);
      }
    }

    /* Custom scrollbar for mobile menu */
    .mobile-navbar .mobile-menu::-webkit-scrollbar {
      width: 6px;
    }

    .mobile-navbar .mobile-menu::-webkit-scrollbar-track {
      background: rgba(139, 92, 246, 0.1);
      border-radius: 3px;
    }

    .mobile-navbar .mobile-menu::-webkit-scrollbar-thumb {
      background: rgba(139, 92, 246, 0.3);
      border-radius: 3px;
    }

    .mobile-navbar .mobile-menu::-webkit-scrollbar-thumb:hover {
      background: rgba(139, 92, 246, 0.5);
    }

    /* Hide default navigation on mobile for index.html only */
    @media (max-width: 767px) {
      .header {
        display: none !important;
      }
      
      .mobile-navbar {
        display: block;
      }
      
      .hero {
        padding-top: 120px !important;
        perspective: 800px;
      }

      .hero-title {
        font-size: 2.5rem;
      }

      .hero-subtitle {
        font-size: 1.1rem;
      }

      .hero::after,
      .hero .floating-element {
        filter: blur(40px);
        opacity: 0.6;
      }

      .stat-item {
        padding: 20px 20px;
      }

      .stat-number {
        font-size: 2rem;
      }
    }

    /* Reduce 3D effects on tablets for better performance */
    @media (max-width: 1024px) and (min-width: 768px) {
      .hero {
        perspective: 1000px;
      }

      .hero::after,
      .hero .floating-element {
        filter: blur(50px);
      }
    }

    /* Header Styles */
    .header {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.2);
      transition: var(--transition);
    }

    .header.scrolled {
      background: rgba(255, 255, 255, 0.98);
      box-shadow: var(--shadow-light);
    }

    .logo img {
      height: 50px;
      transition: var(--transition);
    }

    .navmenu ul li a {
      font-weight: 500;
      color: #333;
      transition: var(--transition);
      position: relative;
    }

    .navmenu ul li a::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--primary-gradient);
      transition: var(--transition);
    }

    .navmenu ul li a:hover::after,
    .navmenu ul li a.active::after {
      width: 100%;
    }

    .btn-getstarted {
      background: var(--primary-gradient);
      border: none;
      border-radius: 50px;
      padding: 12px 30px;
      color: white;
      font-weight: 600;
      transition: var(--transition);
      box-shadow: var(--shadow-light);
    }

    .btn-getstarted:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-medium);
      color: white;
    }

    /* Hero Section */
    .hero {
      background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #faf5ff 100%);
      padding: 160px 0 100px;
      position: relative;
      overflow: hidden;
      perspective: 1200px;
    }

    /* 3D Background Effect - Lightweight */
    .hero::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.10) 0%, transparent 50%),
        radial-gradient(circle at 60% 60%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);
      pointer-events: none;
      transform-style: preserve-3d;
    }

    /* 3D Floating Geometric Shapes */
    .hero::after {
      content: '';
      position: absolute;
      top: 10%;
      right: 10%;
      width: 300px;
      height: 300px;
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15));
      border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
      transform: rotateZ(45deg) translateZ(-100px);
      animation: float3d 20s ease-in-out infinite;
      filter: blur(60px);
      pointer-events: none;
      z-index: 0;
    }

    /* Additional 3D Elements */
    .hero .floating-element {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
      z-index: 0;
    }

    .hero .floating-element:nth-child(1) {
      width: 200px;
      height: 200px;
      background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
      top: 20%;
      left: 5%;
      transform: translateZ(-150px) rotateY(15deg);
      animation: float3d 15s ease-in-out infinite;
      filter: blur(50px);
    }

    .hero .floating-element:nth-child(2) {
      width: 150px;
      height: 150px;
      background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(168, 85, 247, 0.2));
      bottom: 15%;
      right: 8%;
      transform: translateZ(-200px) rotateY(-20deg);
      animation: float3d 18s ease-in-out infinite reverse;
      filter: blur(45px);
    }

    .hero .floating-element:nth-child(3) {
      width: 180px;
      height: 180px;
      background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(59, 130, 246, 0.15));
      top: 60%;
      left: 15%;
      transform: translateZ(-120px) rotateX(10deg);
      animation: float3d 22s ease-in-out infinite;
      filter: blur(55px);
    }

    @keyframes float3d {
      0%, 100% { 
        transform: translateZ(-100px) translateY(0) rotateY(0deg);
      }
      25% { 
        transform: translateZ(-80px) translateY(-30px) rotateY(90deg);
      }
      50% { 
        transform: translateZ(-120px) translateY(-20px) rotateY(180deg);
      }
      75% { 
        transform: translateZ(-90px) translateY(-40px) rotateY(270deg);
      }
    }

    .hero-content {
      position: relative;
      z-index: 2;
      transform-style: preserve-3d;
    }

    .hero-badge {
      background: var(--violet-gradient);
      color: white;
      padding: 12px 28px;
      border-radius: 30px;
      font-size: 13px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 1.5px;
      display: inline-block;
      margin-bottom: 30px;
      animation: pulse 2s infinite;
      box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
      backdrop-filter: blur(10px);
      transform: translateZ(20px);
      transition: var(--transition);
    }

    .hero-badge:hover {
      transform: translateZ(30px) scale(1.05);
      box-shadow: 0 12px 35px rgba(139, 92, 246, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }

    @keyframes pulse {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.05); }
    }

    @keyframes float {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-20px); }
    }

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

    /* AI Controller Specific Animations */
    @keyframes neuralPulse {
      0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
      }
      50% { 
        opacity: 0.8;
        transform: scale(1.1);
      }
    }

    @keyframes dataFlow {
      0% {
        stroke-dashoffset: 1000;
      }
      100% {
        stroke-dashoffset: 0;
      }
    }

    @keyframes matrixRain {
      0% {
        transform: translateY(-100vh);
        opacity: 0;
      }
      10% {
        opacity: 1;
      }
      90% {
        opacity: 1;
      }
      100% {
        transform: translateY(100vh);
        opacity: 0;
      }
    }

    @keyframes scanLine {
      0% {
        transform: translateY(-100%);
      }
      100% {
        transform: translateY(100%);
      }
    }

    @keyframes glitch {
      0%, 100% {
        transform: translate(0);
      }
      20% {
        transform: translate(-2px, 2px);
      }
      40% {
        transform: translate(-2px, -2px);
      }
      60% {
        transform: translate(2px, 2px);
      }
      80% {
        transform: translate(2px, -2px);
      }
    }

    /* AI Controller Section Styles */
    .ai-controller-section {
      position: relative;
      overflow: hidden;
    }

    .ai-controller-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: 
        radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
      pointer-events: none;
    }

    .ai-control-panel,
    .computer-vision-display,
    .ai-chat-interface {
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
    }

    .ai-control-panel:hover,
    .computer-vision-display:hover,
    .ai-chat-interface:hover {
      transform: translateY(-5px);
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }

    .ai-control-panel::before,
    .computer-vision-display::before,
    .ai-chat-interface::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }

    .ai-control-panel:hover::before,
    .computer-vision-display:hover::before,
    .ai-chat-interface:hover::before {
      opacity: 1;
    }

    /* Mode Button Animations */
    .mode-btn {
      position: relative;
      overflow: hidden;
    }

    .mode-btn::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;
    }

    .mode-btn:hover::before {
      left: 100%;
    }

    .mode-btn.active {
      animation: neuralPulse 2s infinite;
    }

    /* Vision Canvas Enhancements */
    .vision-canvas-container {
      position: relative;
      overflow: hidden;
    }

    .vision-canvas-container::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, #667eea, transparent);
      animation: scanLine 3s linear infinite;
      pointer-events: none;
    }

    /* Chat Interface Enhancements */
    .chat-messages {
      scrollbar-width: thin;
      scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
    }

    .chat-messages::-webkit-scrollbar {
      width: 6px;
    }

    .chat-messages::-webkit-scrollbar-track {
      background: transparent;
    }

    .chat-messages::-webkit-scrollbar-thumb {
      background: rgba(102, 126, 234, 0.3);
      border-radius: 3px;
    }

    .chat-messages::-webkit-scrollbar-thumb:hover {
      background: rgba(102, 126, 234, 0.5);
    }

    /* Quick Action Button Animations */
    .quick-btn {
      position: relative;
      overflow: hidden;
    }

    .quick-btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width 0.3s ease, height 0.3s ease;
    }

    .quick-btn:hover::before {
      width: 100%;
      height: 100%;
    }

    /* Performance Metrics Animations */
    .metric-card {
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .metric-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }

    .metric-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.6s ease;
    }

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

    .metric-value {
      transition: all 0.3s ease;
    }

    .metric-card:hover .metric-value {
      transform: scale(1.1);
    }

    /* Neural Network Animation */
    .neural-nodes circle {
      animation: neuralPulse 3s infinite;
    }

    .neural-nodes line {
      stroke-dasharray: 10;
      animation: dataFlow 4s linear infinite;
    }

    /* Floating Particles */
    .floating-particles div {
      pointer-events: none;
    }

    /* Responsive Design for AI Controller */
    @media (max-width: 768px) {
      .ai-controller-section {
        padding: 80px 0;
      }
      
      .ai-control-panel,
      .computer-vision-display,
      .ai-chat-interface {
        margin-bottom: 30px;
      }
      
      .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      
      .mode-buttons {
        grid-template-columns: 1fr;
      }
      
      .action-buttons {
        grid-template-columns: 1fr;
      }
    }

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

    /* Section Badge Animation */
    .section-badge {
      animation: fadeInUp 0.8s ease-out;
    }

    /* IoT Dashboard Widget Styles */
    .iot-dashboard-widget {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(139, 92, 246, 0.2);
      border-radius: 20px;
      padding: 25px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
      max-width: 500px;
      margin: 0 auto;
      position: relative;
      overflow: hidden;
    }

    .iot-dashboard-widget::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, #8b5cf6, #a855f7, #ec4899);
      animation: gradientShift 3s ease-in-out infinite;
    }

    @keyframes gradientShift {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    .dashboard-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    }

    .dashboard-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 600;
      color: #1e293b;
      font-size: 1.1rem;
    }

    .dashboard-title i {
      color: #8b5cf6;
      font-size: 1.2rem;
    }

    .connection-status {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.9rem;
      color: #10b981;
    }

    .status-dot {
      width: 8px;
      height: 8px;
      background: #10b981;
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.7; transform: scale(1.2); }
    }

    .dashboard-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
      margin-bottom: 20px;
    }

    .sensor-card {
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
      border: 1px solid rgba(139, 92, 246, 0.1);
      border-radius: 15px;
      padding: 15px;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

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

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

    .sensor-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
      border-color: rgba(139, 92, 246, 0.3);
    }

    .sensor-icon {
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, #8b5cf6, #a855f7);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.2rem;
      flex-shrink: 0;
    }

    .sensor-data {
      flex: 1;
    }

    .sensor-value {
      font-size: 1.3rem;
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 2px;
    }

    .sensor-label {
      font-size: 0.8rem;
      color: #64748b;
      font-weight: 500;
    }

    .sensor-chart {
      width: 60px;
      height: 30px;
      flex-shrink: 0;
    }

    .activity-feed {
      background: rgba(139, 92, 246, 0.03);
      border-radius: 12px;
      padding: 15px;
      margin-bottom: 20px;
    }

    .feed-header {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      color: #1e293b;
      font-size: 0.9rem;
      margin-bottom: 10px;
    }

    .feed-header i {
      color: #8b5cf6;
    }

    .feed-content {
      max-height: 80px;
      overflow-y: auto;
    }

    .activity-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 5px 0;
      font-size: 0.8rem;
      border-bottom: 1px solid rgba(139, 92, 246, 0.05);
    }

    .activity-item:last-child {
      border-bottom: none;
    }

    .activity-time {
      color: #8b5cf6;
      font-weight: 500;
      font-size: 0.7rem;
    }

    .activity-text {
      color: #64748b;
    }

    .system-status {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
      padding-top: 15px;
      border-top: 1px solid rgba(139, 92, 246, 0.1);
    }

    .status-item {
      text-align: center;
    }

    .status-label {
      display: block;
      font-size: 0.7rem;
      color: #64748b;
      margin-bottom: 5px;
    }

    .status-value {
      display: block;
      font-size: 1.1rem;
      font-weight: 700;
      color: #1e293b;
    }

    /* Responsive Design for IoT Widget */
    @media (max-width: 768px) {
      .iot-dashboard-widget {
        padding: 20px;
        margin: 20px 0;
      }
      
      .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }
      
      .system-status {
        grid-template-columns: 1fr;
        gap: 10px;
      }
    }

    /* Card Hover Effects */
    .value-card:hover,
    .feature-card:hover,
    .tech-card:hover,
    .service-card:hover {
      transform: translateY(-10px);
      box-shadow: var(--shadow-medium);
    }

    .value-card:hover .value-icon,
    .feature-card:hover .feature-icon,
    .tech-card:hover .tech-icon,
    .service-card:hover .service-icon {
      transform: scale(1.1) rotate(5deg);
    }

    /* Icon Hover Effects */
    .value-icon,
    .feature-icon,
    .tech-icon,
    .service-icon {
      transition: var(--transition);
    }

    /* Tech Stack Items */
    .tech-item {
      transition: var(--transition);
      cursor: pointer;
    }

    .tech-item:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-medium);
    }

    .tech-item:hover .tech-icon {
      transform: scale(1.1);
    }

    /* Service Cards */
    .service-card {
      transition: var(--transition);
      cursor: pointer;
    }

    .service-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-medium);
    }

    .service-card:hover .service-icon {
      transform: scale(1.1);
    }

    /* Feature Cards */
    .feature-card {
      transition: var(--transition);
      cursor: pointer;
    }

    .feature-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-medium);
    }

    .feature-card:hover .feature-icon {
      transform: scale(1.1);
    }

    /* Value Cards */
    .value-card {
      transition: var(--transition);
      cursor: pointer;
    }

    .value-card:hover {
      transform: translateY(-8px);
      box-shadow: var(--shadow-medium);
    }

    .value-card:hover .value-icon {
      transform: scale(1.1);
    }

    /* Tech Stack Tags */
    .tech-stack span {
      transition: var(--transition);
    }

    .tech-stack span:hover {
      transform: scale(1.05);
    }

    /* Service Features */
    .service-features div {
      transition: var(--transition);
    }

    .service-features div:hover {
      transform: translateX(5px);
    }

    /* Feature List */
    .feature-list div {
      transition: var(--transition);
    }

    .feature-list div:hover {
      transform: translateX(5px);
    }

    /* Value Features */
    .value-features div {
      transition: var(--transition);
    }

    .value-features div:hover {
      transform: translateX(5px);
    }

    .hero-title {
      font-family: 'Space Grotesk', sans-serif;
      font-size: 4.5rem;
      font-weight: 800;
      line-height: 1.15;
      margin-bottom: 1.8rem;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #ec4899 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: slideInUp 1s ease-out;
      transform: translateZ(40px);
      text-shadow: 0 0 40px rgba(102, 126, 234, 0.2);
      letter-spacing: -0.02em;
      position: relative;
    }

    .hero-title::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 0;
      width: 100px;
      height: 4px;
      background: var(--primary-gradient);
      border-radius: 2px;
      opacity: 0.6;
      animation: expandLine 1.5s ease-out 0.5s both;
    }

    @keyframes expandLine {
      from { width: 0; opacity: 0; }
      to { width: 100px; opacity: 0.6; }
    }

    .hero-subtitle {
      font-size: 1.35rem;
      color: #4a5568;
      margin-bottom: 2.5rem;
      line-height: 1.75;
      animation: slideInUp 1s ease-out 0.2s both;
      transform: translateZ(30px);
      font-weight: 400;
      letter-spacing: 0.01em;
    }

    .hero-description {
      font-size: 1.1rem;
      color: #777;
      margin-bottom: 2.5rem;
      line-height: 1.7;
      animation: slideInUp 1s ease-out 0.4s both;
    }

    .hero-buttons {
      animation: slideInUp 1s ease-out 0.6s both;
    }

    .btn-primary-custom {
      background: var(--primary-gradient);
      color: white;
      padding: 16px 42px;
      border-radius: 50px;
      text-decoration: none;
      font-weight: 600;
      font-size: 1.1rem;
      transition: var(--transition);
      display: inline-flex;
      align-items: center;
      gap: 12px;
      box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
      margin-right: 20px;
      margin-bottom: 15px;
      position: relative;
      overflow: hidden;
      transform: translateZ(25px);
      backdrop-filter: blur(10px);
    }

    .btn-primary-custom::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.2);
      transform: translate(-50%, -50%);
      transition: width 0.6s ease, height 0.6s ease;
    }

    .btn-primary-custom:hover::before {
      width: 300px;
      height: 300px;
    }

    .btn-primary-custom:hover {
      transform: translateY(-4px) translateZ(35px);
      box-shadow: 0 12px 35px rgba(102, 126, 234, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
      color: white;
    }

    .btn-secondary-custom {
      background: rgba(255, 255, 255, 0.9);
      color: #667eea;
      padding: 16px 42px;
      border: 2px solid rgba(102, 126, 234, 0.3);
      border-radius: 50px;
      text-decoration: none;
      font-weight: 600;
      font-size: 1.1rem;
      transition: var(--transition);
      display: inline-flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 15px;
      position: relative;
      overflow: hidden;
      transform: translateZ(25px);
      backdrop-filter: blur(10px);
      box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
    }

    .btn-secondary-custom::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
      transition: left 0.5s ease;
    }

    .btn-secondary-custom:hover::before {
      left: 100%;
    }

    .btn-secondary-custom:hover {
      background: linear-gradient(135deg, #667eea, #764ba2);
      color: white;
      border-color: transparent;
      transform: translateY(-4px) translateZ(35px);
      box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
    }

    .hero-image {
      position: relative;
      animation: float3dImage 8s ease-in-out infinite;
      transform-style: preserve-3d;
      transform: translateZ(50px);
    }

    @keyframes float3dImage {
      0%, 100% { 
        transform: translateZ(50px) translateY(0px) rotateY(0deg);
      }
      25% { 
        transform: translateZ(60px) translateY(-15px) rotateY(2deg);
      }
      50% { 
        transform: translateZ(45px) translateY(-25px) rotateY(0deg);
      }
      75% { 
        transform: translateZ(55px) translateY(-15px) rotateY(-2deg);
      }
    }

    .hero-image img {
      width: 100%;
      height: auto;
      border-radius: var(--border-radius-lg);
      box-shadow: 0 30px 60px rgba(102, 126, 234, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
      transition: var(--transition);
      transform: translateZ(20px);
    }

    .hero-image:hover img {
      transform: translateZ(40px) scale(1.02);
      box-shadow: 0 40px 80px rgba(102, 126, 234, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }

    .hero-stats {
      display: flex;
      gap: 40px;
      margin-top: 60px;
      animation: slideInUp 1s ease-out 0.8s both;
      transform: translateZ(20px);
    }

    .stat-item {
      text-align: center;
      padding: 25px 30px;
      background: rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(15px);
      border-radius: 20px;
      border: 1px solid rgba(102, 126, 234, 0.1);
      transition: var(--transition);
      position: relative;
      overflow: hidden;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }

    .stat-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: var(--primary-gradient);
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.5s ease;
    }

    .stat-item:hover::before {
      transform: scaleX(1);
    }

    .stat-item:hover {
      transform: translateY(-8px) translateZ(30px);
      box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
      background: rgba(255, 255, 255, 0.85);
      border-color: rgba(102, 126, 234, 0.2);
    }

    .stat-number {
      font-size: 1.5rem;
      font-weight: 800;
      background: var(--primary-gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      display: block;
      line-height: 1.2;
      transition: var(--transition);
    }

    .stat-item:hover .stat-number {
      transform: scale(1.1);
    }

    .stat-label {
      font-size: 0.95rem;
      color: #4a5568;
      text-transform: uppercase;
      letter-spacing: 1.2px;
      margin-top: 8px;
      font-weight: 600;
      transition: var(--transition);
    }

    .stat-item:hover .stat-label {
      color: #667eea;
    }

    /* Animations */
    @keyframes slideInUp {
      from {
      opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

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

    @keyframes scaleIn {
      from {
        opacity: 0;
        transform: scale(0.9);
      }
      to {
      opacity: 1;
        transform: scale(1);
      }
    }

    /* Service Cards Hover Effects */
    .service-card {
      position: relative;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .service-card:hover {
      transform: translateY(-10px);
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
      border-color: rgba(102, 126, 234, 0.3);
    }

    .service-card:hover .service-icon {
      transform: scale(1.1) rotate(5deg);
    }

    .service-card::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;
    }

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

    .service-icon {
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .service-features {
      text-align: left;
    }

    .service-features div {
      transition: all 0.3s ease;
    }

    .service-card:hover .service-features div {
      transform: translateX(5px);
    }

    /* Product Cards Hover Effects */
    .product-card:hover {
      transform: translateY(-10px);
      box-shadow: var(--shadow-heavy);
    }

    .product-card:hover .product-image {
      transform: scale(1.05);
    }

    .product-card .product-image {
      transition: var(--transition);
    }

    /* Enhanced Button Hover Effects */
    .btn-primary-custom:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow: var(--shadow-medium);
    }

    .btn-secondary-custom:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow: var(--shadow-light);
    }

    /* Card Hover Animations */
    .service-card,
    .product-card {
      position: relative;
      overflow: hidden;
    }

    .service-card::before,
    .product-card::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;
    }

    .service-card:hover::before,
    .product-card:hover::before {
      left: 100%;
    }

    /* Stats Counter Animation */
    .stat-number {
      animation: countUp 2s ease-out;
    }

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

    /* Floating Animation for Hero Elements */
    .floating-element {
      animation: float 6s ease-in-out infinite;
    }

    .floating-element:nth-child(1) {
      animation-delay: 0s;
    }

    .floating-element:nth-child(2) {
      animation-delay: 2s;
    }

    .floating-element:nth-child(3) {
      animation-delay: 4s;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      .hero-title {
        font-size: 2.5rem;
      }
      
      .hero-subtitle {
        font-size: 1.1rem;
      }
      
      .hero-stats {
        flex-direction: column;
        gap: 20px;
      }
      
      .btn-primary-custom,
      .btn-secondary-custom {
        display: block;
        text-align: center;
        margin-right: 0;
      }

      .service-card,
      .product-card {
        margin-bottom: 30px;
      }

      .hero-image {
        margin-top: 40px;
      }
    }

    @media (max-width: 576px) {
      .hero-title {
        font-size: 2rem;
      }
      
      .hero-subtitle {
        font-size: 1rem;
      }
      
      .hero-description {
        font-size: 0.95rem;
      }
    }

    /* Floating Elements */
    .floating-element {
      position: absolute;
      width: 100px;
      height: 100px;
      background: var(--primary-gradient);
      border-radius: 50%;
      opacity: 0.1;
      animation: float 6s ease-in-out infinite;
    }

    .floating-element:nth-child(1) {
      top: 20%;
      left: 10%;
      animation-delay: 0s;
    }

    .floating-element:nth-child(2) {
      top: 60%;
      right: 10%;
      animation-delay: 2s;
    }

    .floating-element:nth-child(3) {
      bottom: 20%;
      left: 20%;
      animation-delay: 4s;
    }

    /* IoT Dashboard Widget Styles */
    .iot-dashboard-widget {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(139, 92, 246, 0.2);
      border-radius: 20px;
      padding: 25px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
      max-width: 500px;
      margin: 0 auto;
      position: relative;
      overflow: hidden;
    }

    .iot-dashboard-widget::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: linear-gradient(90deg, #8b5cf6, #a855f7, #ec4899);
      animation: gradientShift 3s ease-in-out infinite;
    }

    @keyframes gradientShift {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    .dashboard-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 15px;
      border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    }

    .dashboard-title {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 600;
      color: #1e293b;
      font-size: 1.1rem;
    }

    .dashboard-title i {
      color: #8b5cf6;
      font-size: 1.2rem;
    }

    .connection-status {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.9rem;
      color: #10b981;
    }

    .status-dot {
      width: 8px;
      height: 8px;
      background: #10b981;
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.7; transform: scale(1.2); }
    }

    .dashboard-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
      margin-bottom: 20px;
    }

    .sensor-card {
      background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
      border: 1px solid rgba(139, 92, 246, 0.1);
      border-radius: 15px;
      padding: 15px;
      display: flex;
      align-items: center;
      gap: 12px;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

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

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

    .sensor-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 25px rgba(139, 92, 246, 0.15);
      border-color: rgba(139, 92, 246, 0.3);
    }

    .sensor-icon {
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, #8b5cf6, #a855f7);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.2rem;
      flex-shrink: 0;
    }

    .sensor-data {
      flex: 1;
    }

    .sensor-value {
      font-size: 1.3rem;
      font-weight: 700;
      color: #1e293b;
      margin-bottom: 2px;
    }

    .sensor-label {
      font-size: 0.8rem;
      color: #64748b;
      font-weight: 500;
    }

    .sensor-chart {
      width: 60px;
      height: 30px;
      flex-shrink: 0;
    }

    .activity-feed {
      background: rgba(139, 92, 246, 0.03);
      border-radius: 12px;
      padding: 15px;
      margin-bottom: 20px;
    }

    .feed-header {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      color: #1e293b;
      font-size: 0.9rem;
      margin-bottom: 10px;
    }

    .feed-header i {
      color: #8b5cf6;
    }

    .feed-content {
      max-height: 80px;
      overflow-y: auto;
    }

    .activity-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 5px 0;
      font-size: 0.8rem;
      border-bottom: 1px solid rgba(139, 92, 246, 0.05);
    }

    .activity-item:last-child {
      border-bottom: none;
    }

    .activity-time {
      color: #8b5cf6;
      font-weight: 500;
      font-size: 0.7rem;
    }

    .activity-text {
      color: #64748b;
    }

    .system-status {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
      padding-top: 15px;
      border-top: 1px solid rgba(139, 92, 246, 0.1);
    }

    .status-item {
      text-align: center;
    }

    .status-label {
      display: block;
      font-size: 0.7rem;
      color: #64748b;
      margin-bottom: 5px;
    }

    .status-value {
      display: block;
      font-size: 1.1rem;
      font-weight: 700;
      color: #1e293b;
    }

    /* Responsive Design for IoT Widget */
    @media (max-width: 768px) {
      .iot-dashboard-widget {
        padding: 20px;
        margin: 20px 0;
      }
      
      .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }
      
      .system-status {
        grid-template-columns: 1fr;
        gap: 10px;
      }
    }

    /* Interactive IoT Analytics Section Styles */
    @keyframes rotate {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .iot-analytics-section {
      position: relative;
      overflow: hidden;
    }

    .analytics-widget {
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 25px;
      padding: 30px;
      height: 100%;
      transition: all 0.4s ease;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
      position: relative;
      overflow: hidden;
    }

    .analytics-widget::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, #ffd700, #ffed4e, #ff6b6b);
      animation: gradientShift 3s ease-in-out infinite;
    }

    .analytics-widget:hover {
      transform: translateY(-10px);
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    }

    .widget-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 25px;
      padding-bottom: 15px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .widget-header h4 {
      font-size: 1.3rem;
      font-weight: 600;
      color: #1e293b;
      margin: 0;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .widget-header h4 i {
      color: #667eea;
      font-size: 1.4rem;
    }

    .widget-controls {
      display: flex;
      gap: 8px;
    }

    .control-btn {
      width: 35px;
      height: 35px;
      border: none;
      border-radius: 50%;
      background: linear-gradient(135deg, #667eea, #764ba2);
      color: white;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .control-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    }

    /* Network Graph Styles */
    .network-canvas-container {
      position: relative;
      background: rgba(102, 126, 234, 0.05);
      border-radius: 15px;
      padding: 20px;
      margin-bottom: 20px;
    }

    #network-graph {
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.8);
    }

    .graph-stats {
      display: flex;
      justify-content: space-around;
      margin-top: 15px;
    }

    .graph-stats .stat-item {
      text-align: center;
    }

    .graph-stats .stat-number {
      display: block;
      font-size: 1.5rem;
      font-weight: 700;
      color: #667eea;
    }

    .graph-stats .stat-label {
      font-size: 0.8rem;
      color: #64748b;
      font-weight: 500;
    }

    /* Data Stream Styles */
    .stream-controls {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .control-label {
      font-size: 0.9rem;
      color: #64748b;
      font-weight: 500;
    }

    .speed-slider {
      width: 80px;
      height: 4px;
      border-radius: 2px;
      background: rgba(102, 126, 234, 0.2);
      outline: none;
      -webkit-appearance: none;
    }

    .speed-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #667eea;
      cursor: pointer;
    }

    .speed-value {
      font-size: 0.9rem;
      font-weight: 600;
      color: #667eea;
      min-width: 30px;
    }

    .data-stream-container {
      background: rgba(102, 126, 234, 0.05);
      border-radius: 15px;
      padding: 20px;
    }

    .stream-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
    }

    .stream-title {
      font-weight: 600;
      color: #1e293b;
    }

    .stream-status {
      background: #10b981;
      color: white;
      padding: 4px 12px;
      border-radius: 15px;
      font-size: 0.8rem;
      font-weight: 500;
    }

    .data-stream {
      max-height: 150px;
      overflow-y: auto;
      margin-bottom: 15px;
    }

    .stream-entry {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
      border-bottom: 1px solid rgba(102, 126, 234, 0.1);
      font-size: 0.9rem;
    }

    .stream-entry:last-child {
      border-bottom: none;
    }

    .stream-time {
      color: #667eea;
      font-weight: 500;
    }

    .stream-message {
      color: #374151;
    }

    .stream-metrics {
      display: flex;
      justify-content: space-between;
    }

    .metric {
      text-align: center;
    }

    .metric-label {
      display: block;
      font-size: 0.8rem;
      color: #64748b;
      margin-bottom: 5px;
    }

    .metric-value {
      display: block;
      font-size: 1.1rem;
      font-weight: 700;
      color: #1e293b;
    }

    /* Sensor Hub Styles */
    .sensor-status {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.9rem;
      color: #10b981;
    }

    .sensor-grid {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .sensor-item {
      display: flex;
      align-items: center;
      gap: 15px;
      padding: 15px;
      background: rgba(102, 126, 234, 0.05);
      border-radius: 15px;
      transition: all 0.3s ease;
    }

    .sensor-item:hover {
      background: rgba(102, 126, 234, 0.1);
      transform: translateX(5px);
    }

    .sensor-gauge {
      position: relative;
      flex-shrink: 0;
    }

    .sensor-gauge .gauge-value {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      font-size: 0.9rem;
      font-weight: 600;
      color: #1e293b;
    }

    .sensor-info {
      flex: 1;
    }

    .sensor-name {
      display: block;
      font-weight: 600;
      color: #1e293b;
      margin-bottom: 8px;
    }

    .sensor-slider {
      width: 100%;
      height: 4px;
      border-radius: 2px;
      background: rgba(102, 126, 234, 0.2);
      outline: none;
      -webkit-appearance: none;
    }

    .sensor-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      background: #667eea;
      cursor: pointer;
    }

    /* AI Processing Styles */
    .ai-status {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.9rem;
      color: #f59e0b;
    }

    .ai-dot {
      width: 8px;
      height: 8px;
      background: #f59e0b;
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    .ai-chart {
      background: rgba(245, 158, 11, 0.05);
      border-radius: 15px;
      padding: 15px;
      margin-bottom: 20px;
    }

    .ai-stats {
      display: flex;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .ai-stat {
      text-align: center;
    }

    .ai-label {
      display: block;
      font-size: 0.8rem;
      color: #64748b;
      margin-bottom: 5px;
    }

    .ai-value {
      display: block;
      font-size: 1.1rem;
      font-weight: 700;
      color: #1e293b;
    }

    .ai-controls {
      display: flex;
      gap: 10px;
    }

    .ai-btn {
      flex: 1;
      background: linear-gradient(135deg, #f59e0b, #d97706);
      color: white;
      border: none;
      padding: 10px 15px;
      border-radius: 20px;
      font-size: 0.9rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
    }

    .ai-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
    }

    /* Energy Monitor Styles */
    .energy-status {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.9rem;
      color: #10b981;
    }

    .energy-dot {
      width: 8px;
      height: 8px;
      background: #10b981;
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    .energy-chart {
      background: rgba(16, 185, 129, 0.05);
      border-radius: 15px;
      padding: 15px;
      margin-bottom: 20px;
    }

    .energy-metrics {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 20px;
    }

    .energy-metric {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 8px 0;
    }

    .energy-label {
      font-size: 0.9rem;
      color: #64748b;
    }

    .energy-value {
      font-size: 1rem;
      font-weight: 600;
      color: #1e293b;
    }

    .energy-controls {
      display: flex;
      flex-direction: column;
      gap: 15px;
    }

    .control-group {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .control-group label {
      font-size: 0.9rem;
      color: #374151;
      font-weight: 500;
    }

    .power-select {
      padding: 6px 12px;
      border: 1px solid rgba(102, 126, 234, 0.2);
      border-radius: 8px;
      background: white;
      color: #374151;
      font-size: 0.9rem;
      outline: none;
    }

    .power-select:focus {
      border-color: #667eea;
    }

    /* Toggle Switch Styles */
    .toggle-switch {
      position: relative;
      width: 50px;
      height: 24px;
    }

    .toggle-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }

    .toggle-switch label {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #ccc;
      transition: .4s;
      border-radius: 24px;
    }

    .toggle-switch label:before {
      position: absolute;
      content: "";
      height: 18px;
      width: 18px;
      left: 3px;
      bottom: 3px;
      background-color: white;
      transition: .4s;
      border-radius: 50%;
    }

    .toggle-switch input:checked + label {
      background-color: #10b981;
    }

    .toggle-switch input:checked + label:before {
      transform: translateX(26px);
    }

    /* Status Dot Animations */
    .status-dot {
      width: 8px;
      height: 8px;
      background: #10b981;
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    /* IoT Controller Widget Styles */
    .controller-status {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.9rem;
      color: #10b981;
    }

    .controller-dot {
      width: 8px;
      height: 8px;
      background: #10b981;
      border-radius: 50%;
      animation: pulse 2s infinite;
    }

    .controller-panel {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .control-section {
      background: rgba(102, 126, 234, 0.05);
      border-radius: 15px;
      padding: 15px;
    }

    .device-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .device-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px;
      background: rgba(255, 255, 255, 0.8);
      border-radius: 10px;
      transition: all 0.3s ease;
    }

    .device-item:hover {
      background: rgba(255, 255, 255, 0.95);
      transform: translateX(5px);
    }

    .device-info {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .device-name {
      font-weight: 600;
      color: #1e293b;
      font-size: 0.9rem;
    }

    .device-status {
      font-size: 0.8rem;
      font-weight: 500;
    }

    .device-status.online {
      color: #10b981;
    }

    .device-status.offline {
      color: #ef4444;
    }

    .device-controls {
      display: flex;
      gap: 8px;
    }

    .device-btn {
      width: 32px;
      height: 32px;
      border: none;
      border-radius: 8px;
      background: linear-gradient(135deg, #667eea, #764ba2);
      color: white;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .device-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    }

    .automation-rules {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .rule-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 10px;
      background: rgba(255, 255, 255, 0.8);
      border-radius: 10px;
      transition: all 0.3s ease;
    }

    .rule-item:hover {
      background: rgba(255, 255, 255, 0.95);
      transform: translateX(5px);
    }

    .rule-info {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .rule-name {
      font-weight: 600;
      color: #1e293b;
      font-size: 0.9rem;
    }

    .rule-status {
      font-size: 0.8rem;
      font-weight: 500;
    }

    .rule-status.active {
      color: #10b981;
    }

    .rule-status.inactive {
      color: #64748b;
    }

    .rule-controls {
      display: flex;
      gap: 8px;
    }

    .rule-btn {
      width: 32px;
      height: 32px;
      border: none;
      border-radius: 8px;
      background: linear-gradient(135deg, #f59e0b, #d97706);
      color: white;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .rule-btn:hover {
      transform: scale(1.1);
      box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
    }

    .quick-actions {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }

    .action-btn {
      border: none;
      padding: 10px;
      border-radius: 10px;
      color: white;
      font-size: 0.8rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 5px;
    }

    .action-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .action-btn i {
      font-size: 1.2rem;
    }

    /* Enhanced IoT Control Center Styles */
    .iot-control-center {
      position: relative;
      overflow: hidden;
    }

    .control-item {
      position: relative;
      overflow: hidden;
    }

    .control-item::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;
    }

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

    .control-item:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    }

    .status-pulse {
      animation: pulse 2s infinite;
    }

    .refresh-btn {
      transition: all 0.3s ease;
    }

    .refresh-btn:hover {
      transform: rotate(180deg);
      background: rgba(102, 126, 234, 0.2);
    }

    .emergency-btn {
      position: relative;
      overflow: hidden;
    }

    .emergency-btn::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;
    }

    .emergency-btn:hover::before {
      left: 100%;
    }

    .emergency-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
    }

    /* Responsive Design for Analytics */
    @media (max-width: 768px) {
      .analytics-widget {
        padding: 20px;
        margin-bottom: 20px;
      }
      
      .widget-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
      }
      
      .sensor-grid {
        gap: 15px;
      }
      
      .ai-stats {
        flex-direction: column;
        gap: 15px;
      }
      
      .ai-controls {
        flex-direction: column;
      }
      
      .energy-metrics {
        gap: 8px;
      }

      .quick-actions {
        grid-template-columns: 1fr;
      }

      .device-controls,
      .rule-controls {
        flex-direction: column;
        gap: 5px;
      }

      .device-btn,
      .rule-btn {
        width: 28px;
        height: 28px;
      }
    }
