/* ============================================
   WEBSTEC - Professional Tech Freelancing Website
   Clean, Modern, Corporate Design System
   ============================================ */

/* --- CSS Custom Properties --- */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

:root {
  /* Base Colors - Professional Premium Dark Glassmorphism */
  --bg-primary: #090a15;
  --bg-secondary: rgba(14, 19, 34, 0.45);
  --bg-tertiary: rgba(20, 26, 46, 0.65);
  --bg-card: rgba(14, 19, 34, 0.5);
  --bg-glass: rgba(14, 19, 34, 0.35);
  --bg-glass-card: rgba(14, 19, 34, 0.45);

  /* Professional Accent Colors */
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-sky: #0ea5e9;
  --accent-emerald: #10b981;
  --accent-amber: #d4af37;
  /* Royal gold / champagne */
  --accent-rose: #f43f5e;

  /* Gradients - Cyber Neon Theme (Vivid Green -> Electric Blue -> Cyber Purple) */
  --gradient-primary: linear-gradient(135deg, #00f5a0 0%, #0072ff 50%, #b800ff 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(0, 245, 160, 0.08), rgba(0, 114, 255, 0.05));
  --gradient-card: linear-gradient(145deg, rgba(0, 245, 160, 0.05), rgba(184, 0, 255, 0.02));
  --gradient-hero: radial-gradient(circle at top, #11182c 0%, #070a13 100%);

  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.06);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4);

  /* Spacing */
  --section-padding: clamp(60px, 8vw, 100px) 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s ease;
}

/* --- 240FPS Hardware Acceleration for Fluid Animations --- */
.reveal,
.reveal-zoom,
.reveal-left,
.reveal-right,
.reveal-zoom-center,
.card-reveal-left,
.card-reveal-right {
  will-change: transform, opacity;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.card,
.work-card,
.service-card,
.btn,
.social-pill,
.step-number,
.flame,
.smoke-puff,
.locked-overlay,
.process-step {
  /* will-change removed for 240fps scroll performance */
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
}

.orbit-text-ring,
.orbit-star-ring,
.orbit-text-item,
.orbit-center-core {
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-blue) var(--bg-secondary);
  overflow-x: hidden;
  /* Prevents viewport stretching and horizontal scrolls on all devices */
}

html::-webkit-scrollbar {
  width: 6px;
}

html::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

html::-webkit-scrollbar-thumb {
  background: var(--accent-blue);
  border-radius: 3px;
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #02170d 0%, #03081a 50%, #11021d 100%);
  z-index: -999;
  pointer-events: none;
  /* will-change removed for 240fps scroll performance */
  transform: translateZ(0);
}

body.no-scroll {
  overflow: hidden !important;
  height: 100vh !important;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* Hide particle canvas - not needed for professional look */
#particle-canvas {
  display: none;
}

/* ============================================
   NAVBAR & NAVIGATION
   ============================================ */
@keyframes slideInNavbar {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  padding: 18px 0;
  border-radius: 0;
  border: 2px solid transparent;
  height: 80px; /* Fixed height for top state */
  transition: all 0.3s ease;
  animation: slideInNavbar 3.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity, width, top, padding, height, border-radius;
}

@media (max-width: 992px) {
  .navbar {
    animation: slideInNavbar 3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }
}

.navbar.scrolled {
  background: rgba(14, 19, 34, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar.navbar-hidden {
  top: -120px !important;
}

.navbar .nav-inner {
  height: 100%;
  width: 100%;
  transition: all 0.3s ease;
}

.nav-logo {
  transition: all 0.3s ease;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo img, .footer-logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
  margin-top: -20px;
  margin-bottom: -20px;
  transition: all 0.3s ease;
}

.footer-logo img {
  margin-top: 0;
  margin-bottom: 0;
}

.navbar.scrolled .nav-logo img {
  height: 70px; 
  margin-top: -10px;
  margin-bottom: -10px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.nav-logo .logo-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  font-weight: 900;
  transition: letter-spacing var(--transition-smooth), filter var(--transition-smooth);
}

.nav-logo:hover .logo-text {
  letter-spacing: 3.5px;

}

.nav-logo .logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 19, 34, 0.85), rgba(9, 10, 21, 0.95)) padding-box,
    var(--gradient-primary) border-box;
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 114, 255, 0.25), 0 0 5px rgba(184, 0, 255, 0.15);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.nav-logo:hover .logo-icon {
  transform: translateY(-2px) rotate(8deg);
  box-shadow: 0 8px 25px rgba(0, 245, 160, 0.4), 0 0 15px rgba(184, 0, 255, 0.35);
}

.nav-logo .logo-icon::before {
  content: 'W';
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.nav-logo .logo-icon::after {
  display: block !important;
  content: '';
  position: absolute;
  top: 5%;
  left: 9%;
  width: 82%;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 6px 6px 3px 3px;
  pointer-events: none;
  z-index: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > a:not(.nav-cta) {
  position: relative;
  padding: 8px 18px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  border-radius: 8px;
}

.nav-links > a:not(.nav-cta):hover {
  color: var(--text-primary);
}

.nav-links > a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: var(--transition-smooth);
  transform: translateX(-50%);
}

.nav-links > a:not(.nav-cta):hover::after {
  width: 24px;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.nav-cta {
  padding: 9px 24px !important;
  background: transparent !important;
  color: white !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  border: 1px solid var(--accent-blue);
  cursor: pointer;
  transition: var(--transition-smooth) !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-cta::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50px;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
  opacity: 0;
  z-index: -2;
  transition: opacity var(--transition-smooth);
  animation: pulseGlow 2s infinite ease-in-out;
  pointer-events: none;
}

.nav-cta:hover::after {
  opacity: 1;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
  border-radius: 50px;
}

.nav-cta:hover::before {
  left: 0;
}

.nav-cta:hover {
  transform: translateY(-1px);
  color: white !important;
  border-color: transparent;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 180px 0 80px;
  background: transparent;
}

.hero-architecture {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(9,10,21,0.2) 0%, var(--bg-primary) 100%);
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  width: 100%;
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 60px;
  }
}

/* ============================================
   HERO CODE WINDOW
   ============================================ */
.hero-visual {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 5;
  min-width: 0;
}

.code-window {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.15);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.code-window:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.code-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.mac-dot.red { background: #ff5f56; }
.mac-dot.yellow { background: #ffbd2e; }
.mac-dot.green { background: #27c93f; }

.code-body {
  padding: 24px;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e2e8f0;
  text-align: left;
  overflow-x: auto;
}

.code-body .keyword { color: #c678dd; }
.code-body .variable { color: #e06c75; }
.code-body .class { color: #e5c07b; }
.code-body .string { color: #98c379; }
.code-body .property { color: #d19a66; }
.code-body .method { color: #61afef; }
.code-body .comment { color: #5c6370; font-style: italic; }

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 50px;
  font-size: 0.78rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-badge .pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-emerald);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Remove glitch effect */
.hero h1 .glitch-text {
  color: var(--accent-blue);
  -webkit-text-fill-color: var(--accent-blue);
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 50px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: var(--gradient-primary);
  color: white;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  display: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 10px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
}

.hero-stat {
  position: relative;
}

.hero-stat .stat-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero Console (Interactive Terminal) */
.hero-console {
  background: var(--bg-glass-card);
  /* backdrop-filter removed for 240fps - Removed for 165fps */
  /* -webkit-backdrop-filter removed for 240fps - Removed for 165fps */
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  /* Remove floating animation */
  animation: none;
}

@keyframes floatConsole {

  0%,
  100% {
    transform: none;
  }
}

.console-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: rgba(15, 23, 42, 0.04);
  border-bottom: 1px solid var(--border-glass);
}

.console-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.console-dot.red {
  background: #ef4444;
}

.console-dot.yellow {
  background: #eab308;
}

.console-dot.green {
  background: #22c55e;
}

.console-title {
  margin-left: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.console-body {
  padding: 20px;
  height: 360px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
}

.console-body::-webkit-scrollbar {
  width: 4px;
}

.console-body::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.3);
  border-radius: 2px;
}

.console-line {
  margin-bottom: 3px;
  word-break: break-word;
  white-space: pre-wrap;
}

.console-line .prompt {
  color: var(--accent-emerald);
}

.console-line .command {
  color: var(--accent-blue);
}

.console-line .output {
  color: var(--text-secondary);
}

.console-line .highlight {
  color: var(--accent-indigo);
}

.console-line .accent {
  color: var(--accent-sky);
}

.console-input-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 0 20px 16px;
}

.console-input-line .prompt {
  color: var(--accent-emerald);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

#console-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--accent-blue);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  flex: 1;
  caret-color: var(--accent-blue);
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-blue);
  opacity: 0.4;
}

.section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s !important;
}

.reveal-left {
  opacity: 0;
  transform: translateX(-150px);
  transition: opacity 2.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 2.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* will-change removed for 240fps scroll performance */
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s !important;
}

.reveal-right {
  opacity: 0;
  transform: translateX(150px);
  transition: opacity 2.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 2.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* will-change removed for 240fps scroll performance */
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.2s !important;
}

/* ============================================
   FLOATING SOCIAL SIDEBAR ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚  Desktop (right side)
   ============================================ */

@keyframes socialSlideIn {
  0% {
    transform: translateX(120px);
    opacity: 0;
  }

  70% {
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes sidebarLineIn {
  0% {
    transform: scaleY(0);
    opacity: 0;
  }

  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Container ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚  fixed right, vertically centered */
.social-sidebar {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}

/* Decorative line */
.social-sidebar-line {
  width: 2px;
  height: 50px;
  margin: 2px auto;
  background: linear-gradient(to bottom, rgba(0, 245, 160, 0.4), transparent);
  border-radius: 2px;
  pointer-events: none;
  transform-origin: top;
  animation: sidebarLineIn 0.5s ease both;
  animation-delay: 0.9s;
}

/* Each pill */
.social-pill {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
  border-radius: 44px;
  padding: 0 13px;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  background: rgba(9, 10, 21, 0.75);
  /* backdrop-filter removed for 240fps - Removed for 165fps */
  /* -webkit-backdrop-filter removed for 240fps - Removed for 165fps */
  animation: socialSlideIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--delay, 0.3s);
  transition:
    background 2s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 2s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 2s cubic-bezier(0.2, 0.8, 0.2, 1),
    padding 2s cubic-bezier(0.2, 0.8, 0.2, 1),
    gap 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Default theme colors */
.social-pill.instagram {
  border: 1.5px solid rgba(184, 0, 255, 0.4);
  color: #b800ff;
  box-shadow: 0 0 10px rgba(184, 0, 255, 0.15);
}

.social-pill.facebook {
  border: 1.5px solid rgba(0, 114, 255, 0.4);
  color: #0072ff;
  box-shadow: 0 0 10px rgba(0, 114, 255, 0.15);
}

.social-pill.email {
  border: 1.5px solid rgba(234, 67, 53, 0.4);
  color: #ea4335;
  box-shadow: 0 0 10px rgba(234, 67, 53, 0.15);
}

/* Icon */
.social-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Label */
.social-pill-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 2s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hover expand */
.social-pill:hover {
  gap: 10px;
  padding: 0 16px 0 13px;
  color: #fff;
}

.social-pill:hover .social-pill-label {
  max-width: 90px;
  opacity: 1;
}

.social-pill:hover .social-pill-icon {
  transform: rotate(-8deg) scale(1.15);
}

/* Brand hover colors */
.social-pill.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 30%, #d6249f 60%, #285aeb 90%);
  box-shadow: 0 0 22px rgba(214, 36, 159, 0.55);
  border-color: rgba(214, 36, 159, 0.5);
}

.social-pill.facebook:hover {
  background: linear-gradient(135deg, #1877f2, #0050b3);
  box-shadow: 0 0 22px rgba(24, 119, 242, 0.55);
  border-color: rgba(24, 119, 242, 0.5);
}

.social-pill.email:hover {
  background: linear-gradient(135deg, #ea4335, #c5221f);
  box-shadow: 0 0 22px rgba(234, 67, 53, 0.55);
  border-color: rgba(234, 67, 53, 0.5);
}

/* Hide floating sidebar on mobile ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚  icons are in the nav menu instead */
@media (max-width: 768px) {
  .social-sidebar {
    display: none;
  }
}

/* ============================================
   NAV SOCIAL ROW ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚  Mobile nav menu only
   ============================================ */

/* ============================================
   NAV SOCIAL ROW — Floating icons moved to navbar
   ============================================ */

.nav-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-right: 16px;
}

@media (min-width: 769px) {
  .nav-social-row {
    display: none;
  }
}

.nav-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.nav-social-icon svg {
  width: 14px;
  height: 14px;
}

/* Default theme colors */
.nav-social-icon.instagram {
  border: 1.5px solid rgba(184, 0, 255, 0.35);
  color: #b800ff;
}

.nav-social-icon.facebook {
  border: 1.5px solid rgba(0, 114, 255, 0.35);
  color: #0072ff;
}

.nav-social-icon.email {
  border: 1.5px solid rgba(234, 67, 53, 0.35);
  color: #ea4335;
}

/* Hover: brand colors + bounce */
.nav-social-icon:hover {
  transform: translateY(-4px) scale(1.12);
}

.nav-social-icon.instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497, #fd5949 40%, #d6249f 70%, #285aeb);
  color: #fff;
  box-shadow: 0 6px 20px rgba(214, 36, 159, 0.5);
  border-color: transparent;
}

.nav-social-icon.facebook:hover {
  background: #1877f2;
  color: #fff;
  box-shadow: 0 6px 20px rgba(24, 119, 242, 0.5);
  border-color: transparent;
}

.nav-social-icon.email:hover {
  background: #ea4335;
  color: #fff;
  box-shadow: 0 6px 20px rgba(234, 67, 53, 0.5);
  border-color: transparent;
}

@media (max-width: 1024px) {
  .nav-social-row {
    gap: 12px;
    margin-right: 0;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    width: 100%;
  }

  .nav-social-icon {
    width: 42px;
    height: 42px;
  }
  
  .nav-social-icon svg {
    width: 18px;
    height: 18px;
  }
}

/* ============================================
   SERVICES SECTION (3D STACKED SLIDER)
   ============================================ */
#services {
  background: transparent;
  overflow: hidden;
}

.services-slider-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-height: 520px;
}

/* Left side: Text Content */
.slider-left-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 5;
}

.slider-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
}

.slider-indicator .curr-num {
  color: var(--text-primary);
  font-weight: 700;
}

.slider-indicator .total-num {
  color: var(--text-muted);
}

.slider-indicator .indicator-bar {
  width: 80px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  border-radius: 1px;
}

.slider-indicator .indicator-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 8.33%;
  /* 1/12th initial state */
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Title Staggered Letter Animations */
.slider-title-wrapper {
  position: relative;
  min-height: 90px;
  display: flex;
  align-items: center;
}

.slider-title-line {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  display: inline-block;
  width: 100%;
}

.slider-title-line span {
  display: inline-block;
  /* will-change removed for 240fps scroll performance */
}

.slider-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 500px;
  margin: 10px 0;
  transition: opacity 0.4s ease;
}

.slider-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  transition: opacity 0.4s ease;
}

.slider-controls {
  display: flex;
  gap: 15px;
}

.slider-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid var(--border-light);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.2s ease;
}

.slider-nav-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
  z-index: -1;
}

.slider-nav-btn svg {
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1), color 0.4s ease;
  z-index: 2;
}

.slider-nav-btn:hover {
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.3), 0 5px 15px rgba(0, 114, 255, 0.2);
  transform: translateY(-3px);
}

.slider-nav-btn:hover::before {
  transform: scale(1);
}

.slider-nav-btn:hover svg {
  color: #fff;
}

.prev-btn:hover svg {
  transform: translateX(-4px) scale(1.05);
}

.next-btn:hover svg {
  transform: translateX(4px) scale(1.05);
}

.slider-nav-btn:active {
  transform: translateY(-1px) scale(0.95);
}

/* Right side: 3D Stacked Card Deck */
.slider-right-stack {
  position: relative;
  width: 100%;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
  transform-style: preserve-3d;
  z-index: 10;
}

.slider-card {
  position: absolute;
  width: 320px;
  height: 380px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(35, 45, 75, 0.4), rgba(10, 15, 30, 0.8));
  /* Removed backdrop-filter to ensure 240fps. Using a complex gradient to simulate glass depth instead. */
  border: 1px solid var(--border-glass);
  box-shadow: none;
  /* Removed heavy shadow to fix 3D animation lag */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 2.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 2.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 2.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: translate3d(0, 180px, -200px) scale(0.7) rotate(0);
}

.slider-card-banner {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider-card-banner img,
.slider-card-banner svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-card-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
}

.slider-card-badge .service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  margin-bottom: 0;
}

.service-icon.cyan {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.service-icon.purple {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-indigo);
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.service-icon.pink {
  background: rgba(244, 63, 94, 0.08);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.1);
}

.service-icon.emerald {
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.1);
}

.service-icon.orange {
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.1);
}

.service-icon.blue {
  background: rgba(14, 165, 233, 0.08);
  color: var(--accent-sky);
  border: 1px solid rgba(14, 165, 233, 0.1);
}

.service-tag {
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Stack States */
.slider-card.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

.slider-card.prev {
  opacity: 0.4;
  z-index: 2;
  transform: translate3d(30px, -110px, -80px) scale(0.82) rotate(6deg);
  pointer-events: none;
}

.slider-card.next {
  opacity: 0.4;
  z-index: 2;
  transform: translate3d(-30px, 110px, -80px) scale(0.82) rotate(-6deg);
  pointer-events: none;
}

/* Responsive Styles for Slider */
@media (max-width: 991px) {
  .services-slider-container {
    gap: 30px;
  }

  .slider-card {
    width: 290px;
    height: 350px;
  }
}

@media (max-width: 767px) {
  .services-slider-container {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    text-align: center;
  }

  .slider-left-content {
    align-items: center;
  }

  .slider-description {
    max-width: 100%;
  }

  .slider-tags {
    justify-content: center;
  }

  .slider-controls {
    justify-content: center;
  }

  .slider-title-wrapper {
    min-height: 70px;
    justify-content: center;
  }

  .slider-right-stack {
    height: 360px;
    margin-top: 20px;
  }

  .slider-card {
    width: 260px;
    height: 310px;
    transform: translate3d(0, 100px, -150px) scale(0.7) rotate(0);
  }

  .slider-card.prev {
    transform: translate3d(20px, -80px, -60px) scale(0.8) rotate(5deg);
  }

  .slider-card.next {
    transform: translate3d(-20px, 80px, -60px) scale(0.8) rotate(-5deg);
  }
}

@media (max-width: 400px) {
  .slider-right-stack {
    height: 330px;
  }

  .slider-card {
    width: 235px;
    height: 290px;
    transform: translate3d(0, 80px, -120px) scale(0.7) rotate(0);
  }

  .slider-card.prev {
    transform: translate3d(15px, -70px, -50px) scale(0.8) rotate(4deg);
  }

  .slider-card.next {
    transform: translate3d(-15px, 70px, -50px) scale(0.8) rotate(-4deg);
  }
}

/* ============================================
   ABOUT / WHY WEBSTEC SECTION
   ============================================ */
#about {
  position: relative;
  background: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.orbit-container {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-center {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: white;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.25);
  animation: none;
}

@keyframes pulseSlow {

  0%,
  100% {
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.25);
  }
}

/* Static Dashed Rings (Stay still/stable) */
.orbit-ring-static {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border: 1.5px dashed rgba(59, 130, 246, 0.22);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}

.ring-static-1 {
  width: 65%;
  height: 65%;
}

.ring-static-2 {
  width: 85%;
  height: 85%;
}

.ring-static-3 {
  width: 100%;
  height: 100%;
}

/* Animating transparent wrappers that rotate the icons */
.orbit-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  border-radius: 50%;
  animation: rotateOrbit linear infinite;
  pointer-events: none;
  z-index: 2;
}

.ring-anim-1 {
  width: 65%;
  height: 65%;
  animation-duration: 30s;
}

.ring-anim-2 {
  width: 85%;
  height: 85%;
  animation-duration: 45s;
  animation-direction: reverse;
}

.ring-anim-3 {
  width: 100%;
  height: 100%;
  animation-duration: 60s;
}

@keyframes rotateOrbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.orbit-node {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  animation: counterRotate linear infinite;
}

.ring-anim-1 .orbit-node {
  top: -20px;
  left: calc(50% - 20px);
  /* Centered without transform to avoid animation overriding conflicts */
  animation-duration: 30s;
}

.ring-anim-2 .orbit-node {
  bottom: -20px;
  left: calc(50% - 20px);
  /* Centered without transform to avoid animation overriding conflicts */
  animation-duration: 45s;
  animation-direction: reverse;
}

.ring-anim-3 .orbit-node {
  top: -20px;
  left: calc(50% - 20px);
  /* Centered horizontally at the top of the outermost ring */
  animation-duration: 60s;
}

@keyframes counterRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

.about-content .about-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}

.about-content .about-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 36px;
}

/* Feature list */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.feature-item:hover {
  border-color: rgba(59, 130, 246, 0.12);
}

.feature-item .f-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
}

.feature-item h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.feature-item p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ============================================
   PORTFOLIO / WORK SECTION
   ============================================ */
#work {
  background: transparent;
}

.work-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 100px 24px;
  /* 100px row gap for 3D floating overlap, 24px column gap */
  margin-top: 50px;
}

.work-card-3d {
  position: relative;
  width: 100%;
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 14px;
  perspective: 1200px;
  transform-style: preserve-3d;
  margin-top: 40px;
  /* Space for the top floating element */
}

.card-overflow {
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
}

.card-floating-img {
  width: 85%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.work-card-3d:hover .card-overflow {
  transform: translateY(-20px);
}

.work-card-3d:hover .card-floating-img {
  transform: rotateX(12deg) rotateY(-8deg) scale(1.05);
}

.card-glass-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 340px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(30, 40, 60, 0.8), rgba(15, 20, 35, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom-color: rgba(255, 255, 255, 0.02);
  z-index: 1;
  overflow: hidden;
}

.card-content {
  position: relative;
  z-index: 3;
  padding: 24px;
  padding-top: 40px;
}

.card-content .work-category {
  font-size: 0.7rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-content h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.work-card-tech {
  display: flex;
  gap: 6px;
  padding: 0 24px 24px;
}

.work-card-tech span {
  padding: 3px 10px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 6px;
  font-size: 0.68rem;
  color: var(--accent-indigo);
  font-weight: 500;
}

/* ============================================
   PRICING / ESTIMATOR SECTION
   ============================================ */
#pricing {
  position: relative;
  background: transparent;
}

.estimator-wrapper {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-glass-card);
  /* backdrop-filter removed for 240fps - Removed for 165fps */
  /* -webkit-backdrop-filter removed for 240fps - Removed for 165fps */
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.estimator-wrapper::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.estimator-controls {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Currency Switcher in Estimator */
.currency-switch-container {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  width: 100%;
}

.currency-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.currency-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.currency-btn.active {
  color: white;
  background: var(--gradient-primary);
  box-shadow: 0 4px 12px rgba(0, 114, 255, 0.25);
  font-weight: 700;
}

.control-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.control-group label span {
  color: var(--accent-blue);
  font-weight: 700;
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-blue);
  cursor: pointer;
  transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

/* Custom Select */
.custom-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

.custom-select:focus {
  border-color: rgba(0, 245, 160, 0.3);
}

.custom-select option {
  background: #090a15;
  color: #f8fafc;
}

/* Toggle Switches */
.toggle-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
}

.toggle-item span {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-secondary);
  top: 3px;
  left: 3px;
  transition: var(--transition-smooth);
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--accent-blue);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(20px);
  background: white;
}

/* Estimate Display */
.estimate-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px;
  background: rgba(0, 0, 0, 0.25);
  /* backdrop-filter removed for 240fps - Removed for 165fps */
  /* -webkit-backdrop-filter removed for 240fps - Removed for 165fps */
  border: 1px solid var(--border-glass);
  border-radius: 14px;
}

.estimate-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.estimate-price {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 6px;
  transition: var(--transition-smooth);
}

.estimate-timeline {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.estimate-features {
  text-align: left;
  width: 100%;
}

.estimate-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.estimate-features li:last-child {
  border-bottom: none;
}

.estimate-features li .check {
  color: var(--accent-emerald);
  font-size: 0.85rem;
}

.estimate-cta {
  margin-top: 28px;
  width: 100%;
}

.estimate-cta .btn-primary {
  width: 100%;
  justify-content: center;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
#testimonials {
  background: transparent;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.testimonials-track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: calc(33.33% - 16px);
  padding: 32px;
  background: var(--bg-glass-card);
  /* backdrop-filter removed for 240fps - Removed for 165fps */
  /* -webkit-backdrop-filter removed for 240fps - Removed for 165fps */
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.06);
  scroll-snap-align: start;
}

.testimonial-card:hover {
  border-color: rgba(184, 0, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(184, 0, 255, 0.2), 0 4px 12px -2px rgba(0, 0, 0, 0.4);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: var(--accent-amber);
  font-size: 0.85rem;
}

.testimonial-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
}

.testimonial-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
}

.testimonial-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ============================================
   TESTIMONIALS - GOOGLE REVIEW STATION
   ============================================ */
.review-station-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 60px;
  align-items: center;
  margin-top: 48px;
  background: var(--bg-glass-card);
  /* backdrop-filter removed for 240fps - Removed for 165fps */
  /* -webkit-backdrop-filter removed for 240fps - Removed for 165fps */
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 50px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.review-station-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fbbf24, #6366f1, #10b981);
}

/* Left Column: Bulb & Switch */
.review-station-bulb-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.station-bulb-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 140px;
  height: 240px;
}

.station-bulb-wire {
  width: 3px;
  height: 90px;
  background: linear-gradient(to bottom, #1e293b, #475569);
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.4);
}

.station-bulb-socket {
  width: 36px;
  height: 24px;
  background: linear-gradient(90deg, #475569, #64748b, #334155);
  border-radius: 3px;
  position: relative;
  border-bottom: 2px solid #1e293b;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.station-bulb-socket::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 5px;
  width: 26px;
  height: 6px;
  background: #334155;
  border-radius: 0 0 2px 2px;
}

.station-bulb-glass {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(255, 255, 255, 0.12);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, 0.05),
    inset 0 -8px 16px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}

.station-bulb-glass::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 10px;
  background: inherit;
  border: inherit;
  border-bottom: none;
}

.station-bulb-filament {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 36px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  transition: all 0.3s ease;
}

.station-bulb-filament::before,
.station-bulb-filament::after {
  content: '';
  position: absolute;
  bottom: -10px;
  width: 1.5px;
  height: 12px;
  background: rgba(255, 255, 255, 0.15);
}

.station-bulb-filament::before {
  left: 4px;
}

.station-bulb-filament::after {
  right: 4px;
}

/* Lit State - Triggers vintage startup flicker */
.station-bulb-glass.lit {
  animation: retroStartup 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.station-bulb-glass.lit .station-bulb-filament {
  animation: filamentStartup 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.station-bulb-glass.lit .station-bulb-filament::before,
.station-bulb-glass.lit .station-bulb-filament::after {
  animation: filamentLeadsStartup 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes retroStartup {

  /* OFF / Opaque */
  0%,
  3%,
  7%,
  12%,
  18%,
  26%,
  32%,
  42%,
  48%,
  62%,
  66%,
  70% {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 4px 8px rgba(255, 255, 255, 0.05), inset 0 -8px 16px rgba(0, 0, 0, 0.6);
    filter: none;
  }

  /* FLICKERING ON */
  4%,
  6%,
  13%,
  17%,
  27%,
  31%,
  43%,
  47%,
  63%,
  65% {
    background: rgba(251, 191, 36, 0.45);
    border-color: #fbbf24;
    box-shadow:
      0 0 25px 8px rgba(245, 158, 11, 0.4),
      inset 0 4px 8px rgba(255, 255, 255, 0.4);

  }

  /* INTENSE SPARK STARTUP */
  71%,
  73% {
    background: rgba(251, 191, 36, 0.95);
    border-color: #ffffff;
    box-shadow:
      0 0 50px 18px rgba(245, 158, 11, 0.75),
      inset 0 4px 15px rgba(255, 255, 255, 0.9);

  }

  /* STEADY GLOW */
  74%,
  100% {
    background: rgba(251, 191, 36, 0.9);
    border-color: #fbbf24;
    box-shadow:
      0 0 60px 20px rgba(245, 158, 11, 0.7),
      0 0 120px 45px rgba(245, 158, 11, 0.4),
      inset 0 4px 15px rgba(255, 255, 255, 0.8);

  }
}

@keyframes filamentStartup {

  0%,
  3%,
  7%,
  12%,
  18%,
  26%,
  32%,
  42%,
  48%,
  62%,
  66%,
  70% {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: none;
    background: transparent;
  }

  4%,
  6%,
  13%,
  17%,
  27%,
  31%,
  43%,
  47%,
  63%,
  65% {
    border-color: #ffffff;
    box-shadow: 0 0 4px #ffffff;
    background: rgba(255, 255, 255, 0.6);
  }

  71%,
  73% {
    border-color: #ffffff;
    box-shadow: 0 0 8px #ffffff;
    background: #ffffff;
  }

  74%,
  100% {
    border-color: #ffffff;
    box-shadow: 0 0 10px #ffffff;
    background: rgba(255, 255, 255, 0.95);
  }
}

@keyframes filamentLeadsStartup {

  0%,
  3%,
  7%,
  12%,
  18%,
  26%,
  32%,
  42%,
  48%,
  62%,
  66%,
  70% {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: none;
  }

  4%,
  100% {
    background: #ffffff;
    box-shadow: 0 0 5px #ffffff;
  }
}

.station-switch-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.station-switch-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.station-switch-label.active {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.station-retro-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 80px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid #334155;
  border-radius: 8px;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.6), 0 3px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  perspective: 150px;
}

.station-retro-switch input {
  display: none;
}

.station-switch-lever {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 66px;
  background: linear-gradient(to bottom, #94a3b8 0%, #cbd5e1 50%, #475569 100%);
  border-radius: 7px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.8);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-origin: center bottom;
  transform: translateX(-50%) rotateX(-22deg);
}

.station-retro-switch input:checked+.station-switch-lever {
  transform: translateX(-50%) rotateX(22deg);
  background: linear-gradient(to bottom, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  box-shadow: 0 -4px 8px rgba(245, 158, 11, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.switch-hint-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 15px;
  font-style: italic;
  text-align: center;
}

/* Right Column: Google Review Form */
.review-station-form-col {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg);
  background: rgba(14, 19, 34, 0.25);
}

.review-station-form-col.locked {
  pointer-events: none;
}

.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  color: var(--text-secondary);
  text-align: center;
  padding: 20px;
  background: rgba(9, 10, 21, 0.95);
  /* backdrop-filter removed for 240fps - Removed for 165fps */
  /* -webkit-backdrop-filter removed for 240fps - Removed for 165fps */
  /* Shop shutter animation */
  transition: transform 2s cubic-bezier(0.8, 0, 0.2, 1), opacity 2s ease, visibility 2s ease;
  transform: translateY(-100%);
  /* Slides UP and out of view when unlocked */
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.review-station-form-col.locked .locked-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  /* Shutter is closed */
}

.locked-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
  animation: floatLock 2s ease-in-out infinite;
}

@keyframes floatLock {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.review-form-card {
  padding: 30px;
  background: rgba(10, 12, 22, 0.7);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.01);
}

/* Google Review Card Header (matches screenshot) */
.review-form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 15px;
  margin-bottom: 24px;
}

.header-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.write-icon {
  color: #3b82f6;
}

.header-close {
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.header-close:hover {
  color: var(--text-primary);
}

/* Form inputs styling (mimicking screenshot light background inputs) */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.form-row input[type="text"],
.form-row textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  outline: none;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-row input[type="text"]::placeholder,
.form-row textarea::placeholder {
  color: #64748b;
  font-weight: 400;
}

.form-row input[type="text"]:focus,
.form-row textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3.5px rgba(59, 130, 246, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-row textarea {
  min-height: 100px;
  resize: vertical;
}

/* Rating Stars (interactive click/hover) */
.rating-stars {
  display: flex;
  gap: 6px;
}

.star-btn {
  font-size: 1.75rem;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  line-height: 1;
}

.star-btn.hovered,
.star-btn.active {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.35);
  transform: scale(1.1);
}

/* Avatar Selection */
.avatar-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.avatar-chip {
  cursor: pointer;
  position: relative;
}

.avatar-chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  color: white;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  user-select: none;
}

.avatar-1 {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.avatar-2 {
  background: linear-gradient(135deg, #10b981, #047857);
}

.avatar-3 {
  background: linear-gradient(135deg, #8b5cf6, #5b21b6);
}

.avatar-4 {
  background: linear-gradient(135deg, #ec4899, #be185d);
}

.avatar-chip input:checked+.avatar-circle {
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.review-submit-btn {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  padding: 13px;
  font-size: 0.95rem;
}

/* Success State Styles */
.review-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 10px;
  animation: slideInSuccess 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid #10b981;
  color: #10b981;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.review-success-state h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.review-success-state p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 320px;
}

.review-success-state .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@keyframes slideInSuccess {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustment */
@media (max-width: 992px) {
  .review-station-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 30px 16px;
  }

  .review-form-card {
    padding: 24px 16px;
  }

  .station-bulb-container {
    height: 180px;
  }

  .station-bulb-wire {
    height: 50px;
  }
}

/* ============================================
   PROCESS / HOW WE WORK SECTION
   ============================================ */
#process {
  position: relative;
  background: transparent;
}

.process-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 0 20px;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 100px;
  right: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-indigo), var(--accent-rose), var(--accent-emerald));
  opacity: 0.2;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 200px;
  position: relative;
  z-index: 1;
}

@keyframes float3DOrb {
  0% {
    transform: scale(1);
  }

  50% {
    transform: translateY(-12px) scale(1.05);
  }

  100% {
    transform: scale(1);
  }

  0% {
    transform: scale(1);
  }

  50% {
    transform: translateY(-15px) scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.step-number {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 25px;
  animation: float3DOrb 4s ease-in-out infinite;

  /* Intense inner ambient occlusion and rim lighting */
  box-shadow:
    inset -15px -15px 25px rgba(0, 0, 0, 0.8),
    inset 5px 5px 15px rgba(255, 255, 255, 0.15),
    inset -30px -30px 40px rgba(0, 0, 0, 0.5),
    0 20px 40px rgba(0, 0, 0, 0.5);

  position: relative;
  color: #fff;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  border: none;
}

/* Primary specular light (Sun/Key light reflection) */
.step-number::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
  z-index: 2;
}

/* Secondary bounce light (Reflection from the floor) */
.step-number::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 40%);
  pointer-events: none;
  z-index: 2;
}

/* Hyper-realistic volumetric gradients (Theme-matched Jewel Tones) */
.step-1 .step-number {
  background: radial-gradient(circle at 35% 25%, #6ee7b7 0%, #059669 45%, #064e3b 80%, #022c22 100%);
}

.step-2 .step-number {
  background: radial-gradient(circle at 35% 25%, #93c5fd 0%, #2563eb 45%, #1e3a8a 80%, #172554 100%);
  animation-delay: 1s;
}

.step-3 .step-number {
  background: radial-gradient(circle at 35% 25%, #c4b5fd 0%, #7c3aed 45%, #4c1d95 80%, #2e1065 100%);
  animation-delay: 2s;
}

.step-4 .step-number {
  background: radial-gradient(circle at 35% 25%, #f9a8d4 0%, #db2777 45%, #831843 80%, #500724 100%);
  animation-delay: 3s;
}

.process-step h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.contact-info>p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 36px;
}




.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}



.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
  /* backdrop-filter removed for 240fps - Removed for 165fps */
  /* -webkit-backdrop-filter removed for 240fps - Removed for 165fps */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.contact-channel:hover {
  border-color: rgba(59, 130, 246, 0.12);
  transform: translateX(4px);
}

.contact-channel .ch-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-channel h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.contact-channel p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-glass-card);
  /* backdrop-filter removed for 240fps - Removed for 165fps */
  /* -webkit-backdrop-filter removed for 240fps - Removed for 165fps */
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.05);
}

.form-group select option {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* Fix browser autofill background */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-primary) !important;
  -webkit-box-shadow: 0 0 0 9999px #0f1423 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-submit {
  margin-top: 8px;
}

.form-submit .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  position: relative;
  z-index: 1;
  background: rgba(7, 10, 19, 0.5);
  /* backdrop-filter removed for 240fps - Removed for 165fps */
  /* -webkit-backdrop-filter removed for 240fps - Removed for 165fps */
  border-top: 1px solid var(--border-glass);
  padding: 70px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
  animation: slideInFooterText 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.footer-brand .footer-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 2px;
  margin-bottom: 14px;
}

@keyframes slideInFooterText {
  0% {
    transform: translateX(-100vw);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-col a {
  display: block;
  width: fit-content;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 5px 0;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================
   BACKGROUND BLOBS - Extremely Premium Glassmorphism
   ============================================ */
.bg-blob {
  display: block;
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  /* Added back for soft atmospheric effect */
  z-index: -1;
  pointer-events: none;
  animation: floatBlobs 25s infinite alternate ease-in-out;
}

.blob-1 {
  top: -5%;
  left: -15%;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.12) 0%, rgba(0, 114, 255, 0.03) 45%, transparent 65%);
}

.blob-2 {
  bottom: -20%;
  right: -15%;
  background: radial-gradient(circle, rgba(184, 0, 255, 0.10) 0%, rgba(0, 114, 255, 0.03) 45%, transparent 65%);
}

.blob-3 {
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 114, 255, 0.10) 0%, rgba(0, 245, 160, 0.03) 45%, transparent 65%);
}

@keyframes floatBlobs {
  0% {
    transform: translateY(0px) scale(1) rotate(0deg);
  }

  100% {
    transform: translateY(40px) scale(1.08) rotate(15deg);
  }
}

/* ============================================
   MARQUEE / TECH STACK TICKER
   ============================================ */
/* ============================================
   TECH ORBIT WHEEL
   ============================================ */
.tech-orbit-section {
  padding: 120px 0;
  margin-top: 0;
  position: relative;
  z-index: 2;
  /* raise z-index so it sits cleanly on top of Hero contents if they overlap */
  background: transparent;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.tech-orbit-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
  position: relative;
  width: 100%;
  /* Removed overflow: hidden to allow snakes to slither fully without vertical clipping */
}

/* Floating Python Code Snake Panels */
.tech-orbit-decor {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 340px;
  /* increased from 280px */
  height: 600px;
  /* increased from 500px to prevent the snake tail from getting cut off at the bottom */
  z-index: 2;
  pointer-events: none;
}

.tech-orbit-decor.left {
  left: 2%;
  /* moved closer to edge to maximize empty space utilization */
}

.tech-orbit-decor.right {
  right: 2%;
  /* moved closer to edge to maximize empty space utilization */
}

.snake-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Hide on mobile/tablet to avoid overlap with orbiting nodes */
@media (max-width: 991px) {
  .tech-orbit-decor {
    display: none;
  }
}

/* Background Nebula Glow */
.tech-orbit-wrapper::before {
  content: '';
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 114, 255, 0.08) 0%, rgba(184, 0, 255, 0.04) 40%, transparent 65%);
  /* blur removed for extreme 240fps */
  z-index: 0;
  pointer-events: none;
}

.tech-orbit-container {
  width: 480px;
  height: 480px;
  position: absolute;
  top: 50%;
  left: 50%;
  --scale-factor: 1;
  transform: translate(-50%, -50%) scale(var(--scale-factor));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

.orbit-center-core {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.75) 100%), var(--gradient-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* border removed to fix background bleed artifact on bottom/right */
  z-index: 5;
  position: relative;
  overflow: hidden;
  animation: corePulse 3s ease-in-out infinite;
}

.orbit-center-core::before {
  content: '';
  position: absolute;
  top: 6%;
  left: 12%;
  width: 76%;
  height: 38%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 50% 50% 35% 35% / 80% 80% 25% 25%;
  pointer-events: none;
  z-index: 1;
}

@keyframes corePulse {
  0% {
    box-shadow:
      inset 0 0 0 1.5px rgba(255, 255, 255, 0.25),
      inset 4px 4px 15px rgba(255, 255, 255, 0.4),
      inset -4px -4px 15px rgba(0, 0, 0, 0.6),
      0 10px 25px rgba(0, 114, 255, 0.35),
      0 0 12px rgba(184, 0, 255, 0.2);
    transform: scale(1);
  }

  50% {
    box-shadow:
      inset 0 0 0 1.5px rgba(255, 255, 255, 0.25),
      inset 6px 6px 20px rgba(255, 255, 255, 0.55),
      inset -6px -6px 20px rgba(0, 0, 0, 0.7),
      0 18px 45px rgba(0, 114, 255, 0.55),
      0 0 25px rgba(184, 0, 255, 0.4);
    transform: scale(1.04);
  }

  100% {
    box-shadow:
      inset 0 0 0 1.5px rgba(255, 255, 255, 0.25),
      inset 4px 4px 15px rgba(255, 255, 255, 0.4),
      inset -4px -4px 15px rgba(0, 0, 0, 0.6),
      0 10px 25px rgba(0, 114, 255, 0.35),
      0 0 12px rgba(184, 0, 255, 0.2);
    transform: scale(1);
  }
}

.orbit-center-core .core-logo {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: white;
  letter-spacing: 2px;
  text-shadow:
    0 1px 0 #cccccc,
    0 2px 0 #b5b5b5,
    0 3px 0 #999999,
    0 4px 8px rgba(0, 0, 0, 0.75);
  z-index: 2;
  margin-top: 0;
}

.orbit-center-core .core-sub {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.72rem;
  color: #00f5a0;
  letter-spacing: 3px;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(0, 245, 160, 0.7);
  z-index: 2;
  margin-top: 2px;
}

/* Orbit paths styled as high-tech dashed rings */
.orbit-text-ring {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  /* Force perfect centering */
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-text-ring.ring-1 {
  width: 440px;
  height: 440px;
  animation: rotateClockwise 45s linear infinite;
}

.orbit-text-ring.ring-2 {
  width: 280px;
  height: 280px;
  animation: rotateCounterClockwise 35s linear infinite;
}

/* Decorative Orbiting Stars (Neon Nodes) */
.orbit-star-ring {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  /* Force perfect centering */
  border: 1px dashed rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-star-ring.star-ring-1 {
  width: 360px;
  height: 360px;
  animation: rotateClockwise 20s linear infinite;
}

.orbit-star-ring.star-ring-1::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f5a0;
  box-shadow: 0 0 12px #00f5a0, 0 0 4px #00f5a0;
}

.orbit-star-ring.star-ring-2 {
  width: 200px;
  height: 200px;
  animation: rotateCounterClockwise 15s linear infinite;
}

.orbit-star-ring.star-ring-2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b800ff;
  box-shadow: 0 0 12px #b800ff, 0 0 4px #b800ff;
}

.orbit-text-item {
  position: absolute;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--text-primary);
  background: rgba(9, 10, 21, 0.9);
  /* backdrop-filter removed for 240fps - Removed for 165fps */
  /* -webkit-backdrop-filter removed for 240fps - Removed for 165fps */
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  z-index: 3;
}

.orbit-text-item .m-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

/* Ensure orbit text remains legible and rings are properly scaled in responsive views */
@media (max-width: 768px) {
  .tech-orbit-container { width: 620px; height: 620px; }
  .orbit-text-ring.ring-1 { width: 580px; height: 580px; }
  .orbit-text-ring.ring-2 { width: 380px; height: 380px; }
  .orbit-star-ring.star-ring-1 { width: 480px; height: 480px; }
  .orbit-star-ring.star-ring-2 { width: 280px; height: 280px; }
  .ring-1 .orbit-text-item { --radius: 290px; }
  .ring-2 .orbit-text-item { --radius: 190px; }
  
  .orbit-text-item {
    font-size: 1.25rem;
    padding: 10px 22px;
    border-radius: 36px;
    gap: 15px;
  }
  .orbit-text-item .m-dot { width: 12px; height: 12px; }
}
@media (max-width: 480px) {
  .tech-orbit-container { width: 620px; height: 620px; }
  .orbit-text-ring.ring-1 { width: 580px; height: 580px; }
  .orbit-text-ring.ring-2 { width: 380px; height: 380px; }
  .orbit-star-ring.star-ring-1 { width: 480px; height: 480px; }
  .orbit-star-ring.star-ring-2 { width: 280px; height: 280px; }
  .ring-1 .orbit-text-item { --radius: 290px; }
  .ring-2 .orbit-text-item { --radius: 190px; }

  .orbit-text-item {
    font-size: 1.2rem;
    padding: 9px 20px;
    border-radius: 34px;
    gap: 14px;
  }
  .orbit-text-item .m-dot { width: 12px; height: 12px; }
}
@media (max-width: 360px) {
  .tech-orbit-container { width: 620px; height: 620px; }
  .orbit-text-ring.ring-1 { width: 580px; height: 580px; }
  .orbit-text-ring.ring-2 { width: 380px; height: 380px; }
  .orbit-star-ring.star-ring-1 { width: 480px; height: 480px; }
  .orbit-star-ring.star-ring-2 { width: 280px; height: 280px; }
  .ring-1 .orbit-text-item { --radius: 290px; }
  .ring-2 .orbit-text-item { --radius: 190px; }

  .orbit-text-item {
    font-size: 1.35rem;
    padding: 11px 22px;
    border-radius: 36px;
    gap: 15px;
  }
  .orbit-text-item .m-dot { width: 13px; height: 13px; }
}

/* Green Group (nth-child 3n+1) */
.orbit-text-item:nth-child(3n+1) {
  border: 1px solid rgba(0, 245, 160, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 245, 160, 0.08);
}

.orbit-text-item:nth-child(3n+1) .m-dot {
  background: #00f5a0;
  box-shadow: 0 0 8px #00f5a0, 0 0 3px #00f5a0;
}

.orbit-text-item:nth-child(3n+1):hover {
  border-color: #00f5a0 !important;
  box-shadow: 0 0 20px rgba(0, 245, 160, 0.45), 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  background: rgba(0, 245, 160, 0.08);
}

/* Blue Group (nth-child 3n+2) */
.orbit-text-item:nth-child(3n+2) {
  border: 1px solid rgba(0, 114, 255, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 114, 255, 0.08);
}

.orbit-text-item:nth-child(3n+2) .m-dot {
  background: #0072ff;
  box-shadow: 0 0 8px #0072ff, 0 0 3px #0072ff;
}

.orbit-text-item:nth-child(3n+2):hover {
  border-color: #0072ff !important;
  box-shadow: 0 0 20px rgba(0, 114, 255, 0.45), 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  background: rgba(0, 114, 255, 0.08);
}

/* Purple Group (nth-child 3n) */
.orbit-text-item:nth-child(3n) {
  border: 1px solid rgba(184, 0, 255, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 10px rgba(184, 0, 255, 0.08);
}

.orbit-text-item:nth-child(3n) .m-dot {
  background: #b800ff;
  box-shadow: 0 0 8px #b800ff, 0 0 3px #b800ff;
}

.orbit-text-item:nth-child(3n):hover {
  border-color: #b800ff !important;
  box-shadow: 0 0 20px rgba(184, 0, 255, 0.45), 0 4px 12px rgba(0, 0, 0, 0.5) !important;
  background: rgba(184, 0, 255, 0.08);
}

.orbit-text-item:hover .m-dot {
  transform: scale(1.5);
}

/* Outer Ring positioning */
.ring-1 .orbit-text-item {
  --radius: 220px;
  --angle-step: 60deg;
  animation: counterRotateClockwise 45s linear infinite;
}

/* Inner Ring positioning */
.ring-2 .orbit-text-item {
  --radius: 140px;
  --angle-step: 60deg;
  animation: counterRotateCounterClockwise 35s linear infinite;
}

@keyframes rotateClockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes rotateCounterClockwise {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}

/* Outer ring items translate + counter-rotate */
.ring-1 .orbit-text-item:nth-child(1) {
  --i: 1;
}

.ring-1 .orbit-text-item:nth-child(2) {
  --i: 2;
}

.ring-1 .orbit-text-item:nth-child(3) {
  --i: 3;
}

.ring-1 .orbit-text-item:nth-child(4) {
  --i: 4;
}

.ring-1 .orbit-text-item:nth-child(5) {
  --i: 5;
}

.ring-1 .orbit-text-item:nth-child(6) {
  --i: 6;
}

@keyframes counterRotateClockwise {
  from {
    transform: rotate(calc(var(--i) * var(--angle-step))) translate(var(--radius)) rotate(calc(var(--i) * -1 * var(--angle-step))) rotate(0deg);
  }

  to {
    transform: rotate(calc(var(--i) * var(--angle-step))) translate(var(--radius)) rotate(calc(var(--i) * -1 * var(--angle-step))) rotate(-360deg);
  }
}

/* Inner ring items translate + counter-rotate */
.ring-2 .orbit-text-item:nth-child(1) {
  --i: 1;
}

.ring-2 .orbit-text-item:nth-child(2) {
  --i: 2;
}

.ring-2 .orbit-text-item:nth-child(3) {
  --i: 3;
}

.ring-2 .orbit-text-item:nth-child(4) {
  --i: 4;
}

.ring-2 .orbit-text-item:nth-child(5) {
  --i: 5;
}

.ring-2 .orbit-text-item:nth-child(6) {
  --i: 6;
}

@keyframes counterRotateCounterClockwise {
  from {
    transform: rotate(calc(var(--i) * var(--angle-step))) translate(var(--radius)) rotate(calc(var(--i) * -1 * var(--angle-step))) rotate(0deg);
  }

  to {
    transform: rotate(calc(var(--i) * var(--angle-step))) translate(var(--radius)) rotate(calc(var(--i) * -1 * var(--angle-step))) rotate(360deg);
  }
}

/* Mobile responsiveness for tech orbit via premium scale transformations */
@media (max-width: 768px) {
  .tech-orbit-wrapper {
    min-height: 280px;
  }

  .tech-orbit-container {
    --scale-factor: 0.55;
    transform: translate(-50%, -50%) scale(var(--scale-factor));
    transform-origin: center center;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    display: block;
    padding: 220px 0 60px;
  }

  .hero-badge {
    margin-top: 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 36px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-console {
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .orbit-container {
    max-width: 320px;
    margin: 0 auto;
  }

  .tech-orbit-container {
    --scale-factor: 0.75;
    transform: translate(-50%, -50%) scale(var(--scale-factor));
    transform-origin: center center;
  }

  .work-showcase {
    grid-template-columns: 1fr;
  }

  .estimator-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    min-width: calc(50% - 12px);
  }

  .process-timeline {
    flex-wrap: wrap;
    gap: 80px;
    justify-content: center;
  }

  .process-timeline::before {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 1024px) {
  .navbar {
    background: rgba(9, 10, 21, 0.85) !important;
    border-bottom: 1px solid var(--border-glass) !important;
    padding: 14px 0 !important;
  }
  .container {
    padding: 0 20px;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(9, 10, 21, 0.96) 0%, rgba(14, 19, 34, 0.98) 100%);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
    flex-direction: column;
    padding: 100px 24px 32px;
    gap: 8px;
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1), right 2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 2s;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    visibility: hidden;
    will-change: transform, right;
  }
  .nav-links.open {
    right: 0;
    visibility: visible;
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1), right 2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
  }
  .nav-links > a:not(.nav-cta) {
    font-size: 0.95rem;
    padding: 12px 16px;
    width: 100%;
    text-align: center;
  }
  .nav-links > a:not(.nav-cta)::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .nav-links .nav-cta {
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {

  html,
  body {
    overflow-x: hidden;
  }

  body {
    background-attachment: scroll;
    background: #090a15;
  }





  .hero .bg-blob {
    width: 350px;
    height: 350px;
    /* blur removed for extreme 240fps */
  }

  .hero .blob-1 {
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(0, 245, 160, 0.22) 0%, rgba(0, 114, 255, 0.05) 45%, transparent 65%);
  }

  .hero .blob-2 {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(184, 0, 255, 0.18) 0%, rgba(0, 114, 255, 0.04) 45%, transparent 65%);
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .work-showcase {
    gap: 80px 32px;
    /* 80px row gap for mobile spacing */
  }

  .work-card-3d {
    height: 380px;
    margin-top: 50px;
  }

  .card-overflow {
    height: 180px;
    top: -50px;
  }

  .card-floating-img {
    max-height: 160px;
  }

  .card-glass-panel {
    height: 260px;
  }

  .card-content {
    padding-top: 30px;
  }

  .service-card::after,
  .work-card::after {
    display: none !important;
  }

  .service-card,
  .work-card {
    position: relative;
    border: none !important;
    background: linear-gradient(135deg, rgba(14, 19, 34, 0.65), rgba(14, 19, 34, 0.65)) padding-box,
      linear-gradient(135deg, rgba(0, 245, 160, 0.05), rgba(184, 0, 255, 0.03)) border-box !important;
    box-shadow: none !important;
    /* Removed heavy shadow for 240fps scroll */
  }

  .service-card::after,
  .work-card::after {
    display: block !important;
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1.5px;
    /* Thin solid border line */
    background: conic-gradient(from var(--angle), #00f5a0, #0072ff, #b800ff, #00f5a0) border-box !important;
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorderAngle 6s linear infinite !important;
    pointer-events: none;
    z-index: 2;
  }

  @keyframes rotateBorderHW {
    0% {
      transform: rotate(0deg);
    }

    100% {
      transform: rotate(360deg);
    }
  }

  .orbit-container {
    width: 85%;
    max-width: 300px;
    margin: 0 auto;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 44px;
  }

  .estimator-wrapper {
    padding: 28px;
  }

  .testimonial-card {
    min-width: 100%;
  }

  .process-step {
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .tech-orbit-section {
    margin-top: 0;
    padding: 90px 0;
  }


}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .console-body {
    height: 300px;
    font-size: 0.72rem;
    padding: 15px 12px;
  }

  .console-line {
    word-break: break-word;
    white-space: pre-wrap;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .estimator-wrapper {
    padding: 20px 16px;
  }

  .estimate-display {
    padding: 24px 16px;
  }

  .estimate-price {
    font-size: 2.2rem;
  }

  .tech-orbit-section {
    margin-top: 0;
    padding: 70px 0;
  }

  .tech-orbit-wrapper {
    min-height: 310px;
  }

  .tech-orbit-container {
    --scale-factor: 0.58;
    transform: translate(-50%, -50%) scale(var(--scale-factor));
    transform-origin: center center;
  }
}

/* ============================================
   INTERACTIVE LAMP & WELCOME BACK SECTION
   ============================================ */
#interactive-lamp {
  background: transparent;
  position: relative;
  z-index: 1;
}

.lamp-interactive-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  position: relative;
}

.lamp-visual-col {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

.lamp-fixture-container {
  position: relative;
  height: 340px;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Lamp shade exactly matching user's screenshot layout with 3D design and theme colors */
.lamp-shade {
  width: 140px;
  height: 100px;
  border-radius: 45px 45px 15px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  border: 1.5px solid transparent;
  background-clip: padding-box, padding-box, border-box;
  background-origin: padding-box, padding-box, border-box;
  background-image:
    linear-gradient(135deg, rgba(0, 245, 160, 0.15) 0%, rgba(0, 114, 255, 0.15) 50%, rgba(184, 0, 255, 0.15) 100%),
    linear-gradient(to bottom, rgba(20, 26, 46, 0.95), rgba(9, 10, 21, 0.98)),
    linear-gradient(135deg, #00f5a0, #0072ff, #b800ff);
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.08),
    inset -3px -3px 8px rgba(0, 0, 0, 0.8),
    0 10px 24px rgba(0, 114, 255, 0.15);
  transition: background 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.4s ease;
}

/* Curved glass shine reflection overlay inside shade */
.lamp-shade::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 9%;
  width: 82%;
  height: 35%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
  border-radius: 35px 35px 8px 8px / 80% 80% 20% 20%;
  pointer-events: none;
  z-index: 2;
}

/* Web Category Icon inside shade */
.lamp-category-icon {
  color: var(--text-muted);
  opacity: 0.6;
  transition: color 0.4s ease, opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
  user-select: none;
  z-index: 3;
}

/* Lamp Pole/Stand with 3D cylindrical lighting */
.lamp-pole {
  width: 10px;
  height: 160px;
  background: linear-gradient(to right, #4b5563 0%, #cbd5e1 25%, #f8fafc 50%, #cbd5e1 75%, #374151 100%);
  position: relative;
  z-index: 8;
  box-shadow:
    inset -1px 0 2px rgba(0, 0, 0, 0.2),
    inset 1px 0 2px rgba(255, 255, 255, 0.1),
    0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Lamp Base with 3D block lighting */
.lamp-base {
  width: 86px;
  height: 16px;
  background: linear-gradient(to right, #374151 0%, #94a3b8 20%, #f8fafc 50%, #94a3b8 80%, #1f2937 100%);
  border-radius: 8px 8px 0 0;
  position: relative;
  z-index: 9;
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.4),
    inset 0 -2px 3px rgba(0, 0, 0, 0.45),
    0 4px 12px rgba(0, 0, 0, 0.45);
}

/* Pull String Hanging from the Shade */
.lamp-string-wrapper {
  position: absolute;
  top: 98px;
  left: 62px;
  z-index: 15;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  transition: transform 0.15s ease-out;
}

.lamp-string {
  width: 2px;
  height: 90px;
  background: #475569;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.lamp-bead {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #00f5a0 0%, #0072ff 65%, #003b80 100%);
  border: 1.5px solid rgba(0, 255, 160, 0.35);
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.5),
    inset -2px -2px 4px rgba(0, 0, 0, 0.7),
    0 3px 8px rgba(0, 0, 0, 0.55),
    0 0 10px rgba(0, 114, 255, 0.2);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.lamp-string-wrapper:hover .lamp-bead {
  transform: scale(1.15);
  background: radial-gradient(circle at 35% 35%, #00f5a0 0%, #b800ff 70%, #5c0080 100%);
  border-color: rgba(184, 0, 255, 0.5);
  box-shadow:
    inset 2px 2px 4px rgba(255, 255, 255, 0.5),
    inset -2px -2px 4px rgba(0, 0, 0, 0.7),
    0 3px 12px rgba(184, 0, 255, 0.5);
}

/* Pull chain state when pulled down */
.lamp-string-wrapper.pull-active {
  transform: translateY(16px);
}

/* Light cone emitted from the bottom of the shade */
.light-cone {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0 solid transparent;
  border-right: 0 solid transparent;
  border-bottom: 0 solid transparent;
  opacity: 0;
  transition: opacity 0.4s ease, border 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 4;
}

/* ACTIVE LAMP ON STATE STYLES */
#interactive-lamp.lamp-on .lamp-shade {
  background-clip: padding-box, padding-box, border-box;
  background-origin: padding-box, padding-box, border-box;
  background-image:
    linear-gradient(135deg, rgba(0, 245, 160, 0.95) 0%, rgba(0, 114, 255, 0.95) 50%, rgba(184, 0, 255, 0.95) 100%),
    linear-gradient(to bottom, rgba(20, 26, 46, 0.1), rgba(9, 10, 21, 0.1)),
    linear-gradient(135deg, #00f5a0, #0072ff, #b800ff);
  box-shadow:
    inset 2px 2px 5px rgba(255, 255, 255, 0.8),
    inset -2px -2px 5px rgba(0, 0, 0, 0.25),
    0 0 50px rgba(0, 114, 255, 0.55),
    0 0 20px rgba(184, 0, 255, 0.45);
}

#interactive-lamp.lamp-on .lamp-category-icon {
  color: #ffffff;
  opacity: 1;
  transform: scale(1.08);

}

#interactive-lamp.lamp-on .light-cone {
  opacity: 1;
  border-left: 150px solid transparent;
  border-right: 150px solid transparent;
  border-bottom: 250px solid rgba(255, 214, 102, 0.15);
  /* filter removed for 240fps */
}

/* ---- PANEL REVEAL ---- */
.fireplace-message-panel {
  opacity: 0;
  transform: scale(0.3);
  transform-origin: center center;
  transition: opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

#interactive-fireplace.fire-on .fireplace-message-panel {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

/* Welcome dashboard message panel revealed when lamp is on */
.welcome-message-panel {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center center;
  pointer-events: none;
}

#interactive-lamp.lamp-on .welcome-message-panel {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

/* ---- LAMP-ON ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ HEARTH FIRE EFFECTS (queries section) ---- */
#interactive-lamp.lamp-on .fireplace-glow {
  opacity: 1;
}

#interactive-lamp.lamp-on .fire-flames {
  opacity: 1;
  transform: scaleY(1);
  animation: fireWobble 1.5s ease-in-out infinite alternate;
}

#interactive-lamp.lamp-on .log-center {
  background: linear-gradient(to right, #311104, #d97706, #f59e0b, #311104);
}

#interactive-lamp.lamp-on .brick-wall-surround {
  background-color: #8a3225;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.6),
    inset 0 0 80px rgba(255, 100, 30, 0.18),
    inset 2px 2px 0 rgba(255, 255, 255, 0.04),
    inset -2px -2px 0 rgba(0, 0, 0, 0.25);
}

#interactive-lamp.lamp-on .chimney-stack {
  background-color: #8a3225;
  box-shadow:
    4px 0 10px rgba(0, 0, 0, 0.4),
    -4px 0 10px rgba(0, 0, 0, 0.4),
    0 -4px 12px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(255, 100, 30, 0.1);
}

#interactive-lamp.lamp-on .smoke-puff {
  background: rgba(160, 160, 175, 0.55);
  animation: smokeRise 3s ease-out infinite;
}

#interactive-lamp.lamp-on .puff-1 {
  animation-delay: 0s;
}

#interactive-lamp.lamp-on .puff-2 {
  animation-delay: 1s;
  animation-duration: 3.5s;
}

#interactive-lamp.lamp-on .puff-3 {
  animation-delay: 2s;
  animation-duration: 2.8s;
}

/* Hide hint once fire is lit */
#interactive-lamp.lamp-on .lamp-hint-bubble {
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
}

.welcome-card {
  background: var(--bg-glass-card);
  /* backdrop-filter removed for 240fps - Removed for 165fps */
  /* -webkit-backdrop-filter removed for 240fps - Removed for 165fps */
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 38px;
  box-shadow:
    0 15px 40px -15px rgba(0, 114, 255, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.welcome-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.status-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  position: relative;
}

.status-indicator.online {
  background: #00f5a0;
  box-shadow: 0 0 10px #00f5a0, 0 0 3px #00f5a0;
}

.welcome-card-header h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.welcome-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.welcome-text {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.welcome-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.w-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.w-stat .number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.w-stat .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.welcome-cta {
  width: 100%;
  justify-content: center;
  padding: 15px;
  box-shadow: 0 4px 15px rgba(0, 114, 255, 0.2);
}

/* Responsiveness for lamp section */
@media (max-width: 768px) {
  .lamp-interactive-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  .lamp-fixture-container {
    height: 320px;
  }

  .welcome-message-panel {
    max-width: 100%;
    width: 100%;
  }
}

/* Queries form specific styles inside lamp dashboard card */
.lamp-queries-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lamp-queries-form .form-group {
  margin-bottom: 0;
}

.lamp-queries-form textarea {
  min-height: 90px;
  resize: vertical;
}

/* ============================================
   INTERACTIVE FIREPLACE (HEARTH) SECTION
   ============================================ */
#interactive-fireplace {
  background: transparent;
  position: relative;
  z-index: 1;
}

.fireplace-interactive-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  position: relative;
}

.fireplace-visual-col {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

/* Main container for the whole fireplace unit */
.fireplace-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- CHIMNEY STACK (brick, above the hearth wall) ---- */
.chimney-stack {
  position: relative;
  width: 130px;
  height: 140px;
  z-index: 6;
  margin-bottom: -4px;
  /* Seamlessly connect with brick wall below */

  /* Same brick pattern as the wall surround */
  background-color: #7c2d2d;
  background-image:
    /* Mortar horizontal lines */
    repeating-linear-gradient(180deg,
      transparent 0px,
      transparent 17px,
      rgba(30, 12, 8, 0.75) 17px,
      rgba(30, 12, 8, 0.75) 20px),
    /* Odd row brick joints */
    repeating-linear-gradient(90deg,
      transparent 0px,
      transparent 44px,
      rgba(30, 12, 8, 0.7) 44px,
      rgba(30, 12, 8, 0.7) 47px),
    /* Even row offset joints */
    repeating-linear-gradient(90deg,
      transparent 0px,
      transparent 21px,
      rgba(30, 12, 8, 0.55) 21px,
      rgba(30, 12, 8, 0.55) 24px,
      transparent 24px,
      transparent 67px,
      rgba(30, 12, 8, 0.55) 67px,
      rgba(30, 12, 8, 0.55) 70px),
    /* Color variation */
    repeating-linear-gradient(180deg,
      rgba(120, 30, 20, 0.25) 0px,
      rgba(140, 50, 30, 0.15) 9px,
      rgba(100, 20, 15, 0.3) 10px,
      rgba(120, 40, 25, 0.2) 17px);
  background-size: 100% 20px, 47px 100%, 70px 40px, 100% 20px;
  background-position: 0 0, 0 0, 0 20px, 0 0;

  box-shadow:
    4px 0 10px rgba(0, 0, 0, 0.4),
    -4px 0 10px rgba(0, 0, 0, 0.4),
    0 -4px 12px rgba(0, 0, 0, 0.35);
}

/* Left & right side shadow to give chimney 3D depth */
.chimney-stack::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.35), transparent);
  z-index: 2;
  pointer-events: none;
}

.chimney-stack::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 10px;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.35), transparent);
  z-index: 2;
  pointer-events: none;
}

/* ---- CHIMNEY CAP (flat stone slab on top) ---- */
.chimney-cap {
  position: absolute;
  top: -14px;
  left: -12px;
  right: -12px;
  height: 16px;
  background: linear-gradient(to bottom, #4a5568 0%, #2d3748 55%, #1a202c 100%);
  border-radius: 3px 3px 0 0;
  box-shadow:
    0 -3px 8px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.08),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  z-index: 3;
}

/* Cap top edge highlight */
.chimney-cap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px 3px 0 0;
}

/* ---- SMOKE PUFFS ---- */
.smoke-puff {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(180, 180, 195, 0.0);
  top: -20px;
  opacity: 0;
  pointer-events: none;
  /* filter removed for 240fps */
}

.smoke-puff.puff-1 {
  left: 35%;
}

.smoke-puff.puff-2 {
  left: 50%;
  width: 28px;
  height: 28px;
}

.smoke-puff.puff-3 {
  left: 60%;
  width: 18px;
  height: 18px;
}

/* Smoke rises when fire is on */
#interactive-fireplace.fire-on .smoke-puff {
  background: rgba(160, 160, 175, 0.55);
  animation: smokeRise 3s ease-out infinite;
}

#interactive-fireplace.fire-on .puff-1 {
  animation-delay: 0s;
}

#interactive-fireplace.fire-on .puff-2 {
  animation-delay: 1s;
  animation-duration: 3.5s;
}

#interactive-fireplace.fire-on .puff-3 {
  animation-delay: 2s;
  animation-duration: 2.8s;
}

@keyframes smokeRise {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.6);
  }

  20% {
    opacity: 0.7;
  }

  60% {
    opacity: 0.35;
    transform: translateY(-55px) scale(1.8) translateX(8px);
  }

  100% {
    opacity: 0;
    transform: translateY(-100px) scale(2.6) translateX(-5px);
  }
}

/* Warm chimney when fire is on */
#interactive-fireplace.fire-on .chimney-stack {
  background-color: #8a3225;
  box-shadow:
    4px 0 10px rgba(0, 0, 0, 0.4),
    -4px 0 10px rgba(0, 0, 0, 0.4),
    0 -4px 12px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(255, 100, 30, 0.1);
}


/* The entire brick wall panel */
.brick-wall-surround {
  position: relative;
  width: 340px;
  height: 290px;
  border-radius: 4px;
  overflow: hidden;

  /* Multi-layered brick pattern using CSS gradients */
  background-color: #7c2d2d;
  background-image:
    /* Mortar horizontal lines */
    repeating-linear-gradient(180deg,
      transparent 0px,
      transparent 17px,
      rgba(30, 12, 8, 0.75) 17px,
      rgba(30, 12, 8, 0.75) 20px),
    /* Odd row bricks vertical joints */
    repeating-linear-gradient(90deg,
      transparent 0px,
      transparent 44px,
      rgba(30, 12, 8, 0.7) 44px,
      rgba(30, 12, 8, 0.7) 47px),
    /* Even row bricks offset vertical joints */
    repeating-linear-gradient(90deg,
      transparent 0px,
      transparent 21px,
      rgba(30, 12, 8, 0.55) 21px,
      rgba(30, 12, 8, 0.55) 24px,
      transparent 24px,
      transparent 67px,
      rgba(30, 12, 8, 0.55) 67px,
      rgba(30, 12, 8, 0.55) 70px),
    /* Brick color variation - subtle */
    repeating-linear-gradient(180deg,
      rgba(120, 30, 20, 0.25) 0px,
      rgba(140, 50, 30, 0.15) 9px,
      rgba(100, 20, 15, 0.3) 10px,
      rgba(120, 40, 25, 0.2) 17px);
  background-size: 100% 20px, 47px 100%, 70px 40px, 100% 20px;
  background-position: 0 0, 0 0, 0 20px, 0 0;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.6),
    inset 0 0 60px rgba(0, 0, 0, 0.35),
    inset 2px 2px 0 rgba(255, 255, 255, 0.04),
    inset -2px -2px 0 rgba(0, 0, 0, 0.25);
}

/* Subtle warm tone overlay on brick wall when fire is on */
#interactive-fireplace.fire-on .brick-wall-surround {
  background-color: #8a3225;
  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.6),
    inset 0 0 80px rgba(255, 100, 30, 0.18),
    inset 2px 2px 0 rgba(255, 255, 255, 0.04),
    inset -2px -2px 0 rgba(0, 0, 0, 0.25);
}

/* ---- ARCH OPENING ---- */
/* The circular arch opening in the brick wall */
/* The arch opening wrapper: positions the arch centered above the hearth ledge */
.arch-opening {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 240px;
  /* Taller to include rectangular lower portion */
  z-index: 2;
  /* No overflow:hidden here - clip-path on children handles shape */
}

/* The arch frame (the ring of arch bricks around the opening) */
.arch-opening::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Arch shape: rounded top, flat bottom sides, flat base */
  border-radius: 50% 50% 0 0 / 44% 44% 0 0;
  border: 12px solid #5c1d0c;
  border-bottom: none;
  box-shadow:
    0 0 0 4px #3a1009,
    0 0 0 8px rgba(120, 50, 20, 0.6),
    0 0 0 10px #3a1009;
  background: transparent;
  z-index: 3;
  pointer-events: none;
}

/* Outer decorative accent ring */
.arch-opening::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50% 50% 0 0 / 46% 46% 0 0;
  border: 4px solid rgba(160, 60, 20, 0.45);
  border-bottom: none;
  background: transparent;
  z-index: 4;
  pointer-events: none;
}

/* ---- FIRE CHAMBER (Inner dark soot interior) ---- */
.fire-chamber {
  position: absolute;
  inset: 0;
  /* Same arch shape as the container */
  border-radius: 50% 50% 0 0 / 44% 44% 0 0;
  background: radial-gradient(ellipse at 50% 85%, #1e0e06 0%, #0a0505 55%, #030202 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  z-index: 1;
}

/* Ambient Orange Hearth Glow */
.fireplace-glow {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 90%, rgba(255, 100, 20, 0.55) 0%, rgba(240, 80, 10, 0.2) 40%, transparent 75%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  z-index: 5;
}

#interactive-fireplace.fire-on .fireplace-glow {
  opacity: 1;
}

/* ---- HEARTH LEDGE (raised brick platform at bottom) ---- */
.hearth-ledge {
  position: absolute;
  bottom: 0;
  left: -10px;
  right: -10px;
  height: 44px;
  z-index: 4;

  /* Brick ledge look */
  background-color: #882e1f;
  background-image:
    repeating-linear-gradient(180deg,
      transparent 0px,
      transparent 13px,
      rgba(30, 10, 5, 0.7) 13px,
      rgba(30, 10, 5, 0.7) 15px),
    repeating-linear-gradient(90deg,
      transparent 0px,
      transparent 48px,
      rgba(30, 10, 5, 0.6) 48px,
      rgba(30, 10, 5, 0.6) 50px);
  background-size: 100% 15px, 50px 100%;

  border-radius: 3px 3px 0 0;
  box-shadow:
    0 -4px 8px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.06),
    inset 0 -2px 4px rgba(0, 0, 0, 0.4);
}

/* Ledge top edge highlight */
.hearth-ledge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to bottom, rgba(255, 200, 130, 0.15), transparent);
  border-radius: 3px 3px 0 0;
}

/* ---- FIRE FLAMES ---- */
.fire-flames {
  position: absolute;
  bottom: 20px;
  width: 70px;
  height: 95px;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 8;
  pointer-events: none;

}

#interactive-fireplace.fire-on .fire-flames {
  opacity: 1;
  transform: scaleY(1);
}

.flame {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;

}

.flame.red {
  width: 70px;
  height: 95px;
  background: radial-gradient(ellipse at bottom, #ff0000 0%, #ff5e00 60%, transparent 100%);
  /* blur removed for extreme 240fps */
  opacity: 0.9;
  animation: flicker1 0.2s ease-in-out infinite alternate;
}

.flame.orange {
  width: 50px;
  height: 75px;
  background: radial-gradient(ellipse at bottom, #ff5e00 0%, #ffbb00 60%, transparent 100%);
  /* blur removed for extreme 240fps */
  opacity: 1;
  z-index: 2;
  animation: flicker2 0.15s ease-in-out infinite alternate;
}

.flame.yellow {
  width: 24px;
  height: 48px;
  background: linear-gradient(to top, #facc15, #ffffff);
  /* blur removed for extreme 240fps */
  z-index: 3;
}

/* ---- WOODEN LOGS ---- */
.fire-logs {
  width: 100px;
  height: 42px;
  position: relative;
  z-index: 10;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 4px;
}

.log {
  height: 13px;
  background: linear-gradient(to right, #45220c 0%, #78350f 30%, #b45309 50%, #78350f 80%, #311104 100%);
  border-radius: 6px;
  position: absolute;
  box-shadow:
    inset 1px 1px 2px rgba(255, 255, 255, 0.1),
    inset -2px -2px 3px rgba(0, 0, 0, 0.65),
    0 3px 6px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, background 0.4s ease;
}

.log-left {
  width: 74px;
  transform: rotate(-18deg) translate(-8px, -2px);
}

.log-right {
  width: 74px;
  transform: rotate(18deg) translate(8px, -2px);
}

.log-center {
  width: 80px;
  transform: translate(0, -6px);
  background: linear-gradient(to right, #311104, #5f2203, #78350f, #311104);
  z-index: 2;
}

#interactive-fireplace.fire-on .log-center {
  background: linear-gradient(to right, #311104, #d97706, #f59e0b, #311104);
}

.fire-logs:hover .log-center {
  transform: translate(0, -8px) scaleY(1.05);
}

/* ---- FLOATING HINT BUBBLE ---- */
.fireplace-hint-bubble {
  position: absolute;
  bottom: 70px;
  left: -55px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  padding: 7px 15px;
  border-radius: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  color: #f97316;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.2);
  animation: fireplaceHintFloat 2s ease-in-out infinite;
  white-space: nowrap;
  pointer-events: none;
  z-index: 12;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fireplace-hint-bubble .hint-arrow {
  font-size: 1.05rem;
  display: inline-block;
}

#interactive-fireplace.fire-on .fireplace-hint-bubble {
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
}

/* ---- PANEL REVEAL ---- */
.fireplace-message-panel {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: center center;
  pointer-events: none;
}

#interactive-fireplace.fire-on .fireplace-message-panel {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

/* ---- KEYFRAMES ---- */
@keyframes fireWobble {

  0%,
  100% {
    transform: scaleX(1) scaleY(1) rotate(-1deg);
  }

  50% {
    transform: scaleX(0.9) scaleY(1.1) rotate(1deg);
  }
}

@keyframes fireplaceHintFloat {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-6px);
  }
}

/* Responsiveness for fireplace */
@media (max-width: 768px) {
  .fireplace-interactive-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
  }

  .fireplace-message-panel {
    max-width: 100%;
    width: 100%;
  }

  .brick-wall-surround {
    width: 280px;
    height: 240px;
  }

  .arch-opening {
    width: 170px;
    height: 170px;
    bottom: 36px;
  }

  .chimney-stack {
    width: 100px;
    height: 110px;
  }
}



/* Hint bubble ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã…Â¡Ãƒâ€šÃ‚Â¬ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â points exactly at the logs (clickable fire trigger) */
.lamp-hint-bubble {
  position: absolute;
  /* Logs sit ~50px from bottom of the fireplace-container (inside hearth ledge + arch bottom) */
  bottom: 48px;
  /* To the left of the brick wall, arrow ÃƒÆ’Ã†â€™Ãƒâ€šÃ‚Â¢ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬Ãƒâ€šÃ‚Â ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚Â¢ points right toward logs */
  left: -115px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(249, 115, 22, 0.15);
  border: 1.5px solid rgba(249, 115, 22, 0.5);
  padding: 11px 20px;
  border-radius: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fb923c;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  box-shadow:
    0 0 20px rgba(249, 115, 22, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.25);
  animation: fireplaceHintFloat 2s ease-in-out infinite;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Pulsing glow ring around the bubble */
.lamp-hint-bubble::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1.5px solid rgba(249, 115, 22, 0.25);
  animation: hintRingPulse 2s ease-in-out infinite;
  pointer-events: none;
}

/* Big bouncing arrow */
.lamp-hint-bubble .hint-arrow {
  font-size: 1.5rem;
  display: inline-block;
  animation: arrowBounce 0.75s ease-in-out infinite alternate;
  line-height: 1;
}

@keyframes arrowBounce {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(6px);
  }
}

@keyframes hintRingPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.04);
  }
}

/* Hide the hint completely once the lamp is turned ON */
#interactive-lamp.lamp-on .lamp-hint-bubble {
  opacity: 0;
  transform: translateX(10px);
}

@keyframes hintFloat {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-6px);
  }
}

@media (max-width: 768px) {
  .lamp-hint-bubble {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 120px !important;
    animation: fireplaceHintFloatMobile 2s ease-in-out infinite !important;
  }

  .lamp-hint-bubble .hint-arrow {
    transform: rotate(90deg) !important;
    animation: arrowBounceMobile 0.75s ease-in-out infinite alternate !important;
  }

  #interactive-lamp.lamp-on .lamp-hint-bubble {
    transform: translate(-50%, 15px) !important;
    opacity: 0 !important;
  }
}

@keyframes fireplaceHintFloatMobile {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -6px);
  }
}

@keyframes arrowBounceMobile {
  from {
    transform: rotate(90deg) translateY(0);
  }

  to {
    transform: rotate(90deg) translateY(4px);
  }
}

@media (max-width: 360px) {
  .tech-orbit-wrapper {
    min-height: 260px;
  }

  .tech-orbit-container {
    --scale-factor: 0.5;
    transform: translate(-50%, -50%) scale(var(--scale-factor));
    transform-origin: center center;
  }
}



.reveal-zoom-center {
  opacity: 0;
  transform: translate(-50%, -50%) scale(calc(var(--scale-factor, 1) * 0.3));
  transition: opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* will-change removed for 240fps scroll performance */
}

.reveal-zoom-center.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(var(--scale-factor, 1));
  transition-delay: 0.1s !important;
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 2s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* will-change removed for 240fps scroll performance */
}

.reveal-zoom.visible {
  opacity: 1;
  transform: scale(1);
}

@keyframes slideInLeftAnim {
  0% {
    opacity: 0;
    transform: translateX(-150px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRightAnim {
  0% {
    opacity: 0;
    transform: translateX(150px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.card-reveal-left {
  opacity: 0;
  transform: translateX(-150px);
  /* will-change removed for 240fps scroll performance */
}

.card-reveal-left.visible {
  animation: slideInLeftAnim 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.card-reveal-right {
  opacity: 0;
  transform: translateX(150px);
  /* will-change removed for 240fps scroll performance */
}

.card-reveal-right.visible {
  animation: slideInRightAnim 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Logo Hover Zoom Effect */
.nav-logo img, .footer-logo img {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-logo:hover img, .footer-logo:hover img {
  transform: scale(1.1);
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
body, a, button, input, textarea, select, [onclick] {
  cursor: none !important;
}

.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gradient-primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.custom-cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(0, 245, 160, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  will-change: transform;
  transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

.custom-cursor-dot.hover {
  width: 0px;
  height: 0px;
  opacity: 0;
}

.custom-cursor-outline.hover {
  width: 60px;
  height: 60px;
  background: rgba(0, 245, 160, 0.15);
  border-color: rgba(0, 245, 160, 0.8);
}

/* Hide custom cursor on mobile */
@media (max-width: 992px) {
  .custom-cursor-dot, .custom-cursor-outline {
    display: none !important;
  }
  body, a, button, input, textarea, select, [onclick] {
    cursor: auto !important;
  }
}
/* Touch Device Hover Fixes */
@media (hover: none) {
  .nav-cta:hover::after { opacity: 0; }
  .nav-cta:hover::before { left: -100%; }
  .nav-cta:hover { transform: none; border-color: var(--accent-blue); }
  .btn-primary:hover, .btn-outline:hover { transform: none; }
  .social-pill:hover { padding: 0 13px; gap: 0; }
  .social-pill:hover .social-pill-label { max-width: 0; opacity: 0; }
  .social-pill:hover .social-pill-icon { transform: none; }
  .nav-social-icon:hover { transform: none; }
}
