/* ==========================================================================
   NUMBER 1 LIGHTING - CUSTOM PREMIUM CSS
   ========================================================================== */

/* --- Import Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* --- CSS Root Custom Properties --- */
:root {
  /* Colors */
  --bg-dark: #070708;
  --bg-card: #111113;
  --bg-card-hover: #17171b;
  --color-primary: #ffbe1a;      /* Warm Lighting Amber */
  --color-secondary: #ff8008;    /* Warm Gradient Orange */
  --color-brand-red: #d31d24;    /* Brand Logo Red */
  --color-text-white: #f8fafc;   /* White text */
  --color-text-muted: #94a3b8;   /* Muted text */
  --color-accent-blue: #00f2fe;  /* Cool Light Cyan */
  
  /* Glows & Shadows */
  --glow-gold: 0 0 20px rgba(255, 190, 26, 0.35);
  --glow-gold-strong: 0 0 30px rgba(255, 190, 26, 0.6);
  --glow-red: 0 0 20px rgba(211, 29, 36, 0.3);
  --glow-blue: 0 0 20px rgba(0, 242, 254, 0.3);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Layout */
  --max-width: 1280px;
  --header-height: 80px;
}

/* --- Base Reset & Styling --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--color-text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #15120f 0%, var(--bg-dark) 60%);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea {
  font-family: inherit;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Utility Typography --- */
.gradient-text {
  background: linear-gradient(135deg, var(--color-text-white) 30%, var(--color-primary) 70%, var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-red {
  background: linear-gradient(135deg, var(--color-text-white) 40%, var(--color-brand-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 1rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 190, 26, 0.08);
  border: 1px solid rgba(255, 190, 26, 0.2);
  border-radius: 100px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #000;
  box-shadow: var(--glow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold-strong);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-brand-red {
  background: linear-gradient(135deg, var(--color-brand-red) 0%, #aa1419 100%);
  color: var(--color-text-white);
  box-shadow: var(--glow-red);
}

.btn-brand-red:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(211, 29, 36, 0.5);
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(7, 7, 8, 0.75);
  backdrop-filter: blur(15px);
  height: 70px;
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 48px;
  width: auto;
  transition: var(--transition-smooth);
}

.header.scrolled .logo-img {
  height: 40px;
}

.logo-text {
  font-family: var(--font-headings);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

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

.nav-item a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

.nav-item a:hover {
  color: var(--color-text-white);
}

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

.nav-cta {
  display: block;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--color-text-white);
  margin: 5px 0;
  transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2rem);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-lights {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: 30%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 190, 26, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(50px);
  animation: floatLight 10s ease-in-out infinite alternate;
}

.hero-glow-2 {
  position: absolute;
  bottom: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 29, 36, 0.06) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(50px);
  animation: floatLight 8s ease-in-out infinite alternate-reverse;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  z-index: 1;
  position: relative;
  padding-bottom: 4rem;
}

.hero-content {
  max-width: 680px;
}

.hero-title {
  font-size: 3.8rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

/* Hero Showcase Frame */
.hero-showcase {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.showcase-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
  background: #111;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-frame:hover .showcase-img {
  transform: scale(1.03);
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 8, 0.8) 0%, rgba(0,0,0,0) 50%);
  pointer-events: none;
}

.showcase-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  background: rgba(18, 18, 20, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.badge-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.badge-info p {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-action {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(255, 190, 26, 0.3);
}

/* Animations */
@keyframes floatLight {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-40px) scale(1.1); }
}

/* --- About & Specialties --- */
.section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
}

.specialty-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 3rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.specialty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-brand-red), var(--color-primary));
  opacity: 0;
  transition: var(--transition-fast);
}

.specialty-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--color-primary);
  font-size: 1.8rem;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.specialty-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.specialty-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.specialty-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-premium);
}

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

.specialty-card:hover .specialty-icon-wrapper {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #000;
  box-shadow: var(--glow-gold);
}

/* Specialty Cards specific variations */
.specialty-card:nth-child(4):hover .specialty-icon-wrapper {
  background: linear-gradient(135deg, var(--color-brand-red) 0%, #a51216 100%);
  color: var(--color-text-white);
  box-shadow: var(--glow-red);
}

/* --- Interactive Visualizer Section --- */
.visualizer-section {
  background: #0d0d0f;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
}

.visualizer-container {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.visualizer-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}

.visualizer-content p {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
}

.visualizer-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.visualizer-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.5rem;
  color: var(--color-text-white);
}

.visualizer-btn h4 {
  font-size: 1.1rem;
  font-weight: 600;
}

.visualizer-btn p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.visualizer-btn-icon {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

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

.visualizer-btn.active {
  background: rgba(255, 190, 26, 0.06);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(255, 190, 26, 0.15);
}

.visualizer-btn.active .visualizer-btn-icon {
  color: var(--color-primary);
}

/* Visualizer Screen */
.visualizer-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
}

.visualizer-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.8s ease;
}

.visualizer-light-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
  mix-blend-mode: color-burn;
}

/* Warm Mode */
.visualizer-screen.warm .visualizer-bg-img {
  filter: saturate(1.1) brightness(1.05) sepia(0.1);
}
.visualizer-screen.warm .visualizer-light-layer {
  opacity: 1;
  background: radial-gradient(circle at 50% 30%, rgba(255, 160, 0, 0.35) 0%, rgba(255, 100, 0, 0.05) 60%, rgba(0,0,0,0) 90%);
  mix-blend-mode: screen;
}

/* Cool Mode */
.visualizer-screen.cool .visualizer-bg-img {
  filter: saturate(1.2) brightness(1.1) hue-rotate(15deg);
}
.visualizer-screen.cool .visualizer-light-layer {
  opacity: 1;
  background: radial-gradient(circle at 50% 20%, rgba(0, 242, 254, 0.25) 0%, rgba(0, 100, 255, 0.05) 50%, rgba(0,0,0,0) 80%);
  mix-blend-mode: screen;
}

/* Crystal Glow Mode */
.visualizer-screen.crystal .visualizer-bg-img {
  filter: contrast(1.15) brightness(1.08) saturate(1.05);
}
.visualizer-screen.crystal .visualizer-light-layer {
  opacity: 1;
  background: 
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.45) 0%, rgba(230, 240, 255, 0.15) 30%, rgba(0,0,0,0) 70%),
    radial-gradient(circle at 20% 60%, rgba(255, 220, 100, 0.1) 0%, rgba(0,0,0,0) 40%),
    radial-gradient(circle at 80% 60%, rgba(255, 220, 100, 0.1) 0%, rgba(0,0,0,0) 40%);
  mix-blend-mode: screen;
}

/* Off Mode */
.visualizer-screen.off .visualizer-bg-img {
  filter: brightness(0.2) contrast(1.1) saturate(0.5);
}
.visualizer-screen.off .visualizer-light-layer {
  opacity: 1;
  background: radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.03) 0%, rgba(0,0,0,0.85) 60%);
  mix-blend-mode: multiply;
}

/* Visualizer Room glow indicator dots */
.visualizer-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform: scale(0.5);
}

.visualizer-screen.warm .visualizer-dot,
.visualizer-screen.cool .visualizer-dot,
.visualizer-screen.crystal .visualizer-dot {
  opacity: 0.8;
  transform: scale(1);
  animation: pulseDot 2s infinite alternate;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 5px var(--color-primary); }
  100% { box-shadow: 0 0 18px var(--color-primary); }
}

.visualizer-dot-1 { top: 22%; left: 50%; }
.visualizer-dot-2 { top: 62%; left: 32%; }
.visualizer-dot-3 { top: 62%; left: 68%; }

/* --- Portfolio Gallery Section --- */
.portfolio-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--color-text-muted);
  padding: 0.65rem 1.75rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-text-white);
}

.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #000;
  font-weight: 600;
  box-shadow: var(--glow-gold);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
}

.portfolio-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  cursor: pointer;
  display: none; /* Controlled by JS filters */
}

.portfolio-item.show {
  display: block;
  animation: fadeInGrid 0.5s forwards ease;
}

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

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 8, 0.95) 0%, rgba(7, 7, 8, 0.4) 60%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-info p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
}

.portfolio-item:hover .portfolio-info h3,
.portfolio-item:hover .portfolio-info p {
  transform: translateY(0);
}

.portfolio-tag {
  display: inline-block;
  background: rgba(255, 190, 26, 0.12);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 190, 26, 0.2);
}

/* --- Interactive Smart Lock Showcase --- */
.lock-showcase-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 10% 80%, #170b0c 0%, var(--bg-dark) 50%);
}

.lock-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 5rem;
  align-items: center;
}

.lock-demo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Smart Lock Device Graphic */
.lock-device-frame {
  width: 320px;
  background: linear-gradient(185deg, #1b1b20 0%, #0d0d0f 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 40px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-premium), 0 0 50px rgba(0,0,0,0.8);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.lock-device-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.lock-status-indicator {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid var(--color-brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-red);
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(211, 29, 36, 0.15);
  transition: var(--transition-smooth);
}

.lock-device-frame.unlocked .lock-status-indicator {
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.3);
  transform: rotateY(180deg);
}

.lock-status-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
}

.lock-device-frame.unlocked .lock-status-label {
  color: #10b981;
}

/* Lock keypad grid */
.lock-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
}

.keypad-btn {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-white);
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.keypad-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.keypad-btn:active {
  background: rgba(255, 190, 26, 0.2);
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: scale(0.95);
}

.keypad-btn.action-btn {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* Display feed screen on device */
.lock-device-screen {
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  width: 100%;
  padding: 0.75rem;
  text-align: center;
  font-family: monospace;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-device-frame.unlocked .lock-device-screen {
  color: #10b981;
}

.lock-device-card-reader {
  width: 80%;
  height: 44px;
  border-radius: 8px;
  background: rgba(255,255,255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
  gap: 0.5rem;
}

.lock-device-card-reader:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--color-text-white);
}

/* Keypad input hint */
.lock-hint-box {
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(211, 29, 36, 0.08);
  border: 1px solid rgba(211, 29, 36, 0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.lock-hint-box code {
  color: var(--color-brand-red);
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- Contact & Quote Section --- */
.contact-section {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 5rem;
}

.contact-info-column {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.contact-item-text p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Glassmorphic contact form */
.contact-form-wrapper {
  background: rgba(18, 18, 20, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 3.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow-premium);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  position: relative;
  width: 100%;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--color-text-white);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 10px rgba(255, 190, 26, 0.1);
}

.form-label {
  position: absolute;
  left: 1.25rem;
  top: 1rem;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: var(--transition-fast);
  font-size: 0.95rem;
}

/* Float label logic when active */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -0.6rem;
  left: 0.75rem;
  font-size: 0.75rem;
  padding: 0 0.5rem;
  background: #0f0f11;
  color: var(--color-primary);
  border-radius: 4px;
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* --- Footer --- */
.footer {
  background: #050506;
  border-top: 1px solid var(--glass-border);
  padding: 5rem 0 2rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-logo-desc {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo-desc p {
  line-height: 1.6;
}

.footer-column-title {
  font-family: var(--font-headings);
  color: var(--color-text-white);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(3px);
}

.footer-social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.social-icon:hover {
  background: var(--color-primary);
  color: #000;
  border-color: var(--color-primary);
  box-shadow: var(--glow-gold);
  transform: translateY(-3px);
}

.footer-newsletter p {
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  color: var(--color-text-white);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.newsletter-btn {
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Lightbox Gallery Modal --- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 6, 0.92);
  backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--color-text-white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 2001;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.lightbox-content-wrapper {
  max-width: 90%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255, 0.1);
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-modal.active .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  text-align: center;
}

.lightbox-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.lightbox-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}


/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile-first design)
   ========================================================================== */

@media (max-width: 1024px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
    padding-bottom: 2rem;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .showcase-frame {
    aspect-ratio: 16/10;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .visualizer-container {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .lock-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .lock-demo-container {
    order: 2;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .specialties-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  :root {
    --header-height: 70px;
  }
  
  .section {
    padding: 5rem 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .hero-title {
    font-size: 2.6rem;
  }
  
  /* Navigation mobile menu drawer */
  .mobile-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(7, 7, 8, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    z-index: 999;
  }
  
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .nav-cta {
    display: none; /* Hide in navbar, show in drawer if needed or keep it simple */
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  .contact-form-wrapper {
    padding: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  
  .hero-btns .btn {
    width: 100%;
  }
  
  .visualizer-controls {
    grid-template-columns: 1fr;
  }
  
  .portfolio-filters {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.8rem;
    flex-grow: 1;
    text-align: center;
  }
  
  .lock-device-frame {
    width: 100%;
    max-width: 300px;
    padding: 2.5rem 1.5rem;
  }
}
