/* ==========================================================================
   TWINTECH - High Performance Digital Solutions & Engineering
   Modern Enterprise Theme (Dark / Light responsive)
   ========================================================================== */

:root {
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Colors: Dark Mode (Default) */
  --bg-primary: #070a12;
  --bg-secondary: #0d1322;
  --bg-card: rgba(18, 26, 44, 0.7);
  --bg-card-hover: rgba(26, 38, 64, 0.85);
  --bg-glass: rgba(11, 17, 30, 0.82);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(56, 189, 248, 0.35);
  --border-card: rgba(255, 255, 255, 0.1);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  --text-highlight: #38bdf8;

  /* Vibrant Accents */
  --accent-cyan: #00f2fe;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  
  --grad-primary: linear-gradient(135deg, #00f2fe 0%, #3b82f6 50%, #8b5cf6 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.15), transparent 70%);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1240px;
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(255, 255, 255, 0.85);

  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(37, 99, 235, 0.4);
  --border-card: rgba(0, 0, 0, 0.08);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-sub: #64748b;
  --text-highlight: #0284c7;

  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.7) 100%);
  --grad-glow: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.12), transparent 70%);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.18);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
  border: none;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--text-highlight);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text-main);
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   Ambient Background Animation Canvas
   ========================================================================== */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.bg-ambient-mesh {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.ambient-1 {
  top: -100px;
  right: -100px;
  background: #3b82f6;
}

.ambient-2 {
  top: 30%;
  left: -150px;
  background: #8b5cf6;
}

.ambient-3 {
  bottom: 10%;
  right: 5%;
  background: #00f2fe;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.55);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-highlight);
  color: var(--text-highlight);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-icon-right svg {
  transition: transform 0.25s ease;
}

.btn:hover .btn-icon-right svg {
  transform: translateX(4px);
}

/* ==========================================================================
   Announcement Bar
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #1e1b4b, #0f172a, #0369a1);
  color: #e0f2fe;
  font-size: 0.85rem;
  padding: 8px 16px;
  text-align: center;
  position: relative;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-badge {
  background: #38bdf8;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.announcement-link {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  color: #ffffff;
}

.announcement-close {
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px;
}

/* ==========================================================================
   Navigation Bar (Sticky & Glass)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 4px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 32px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo img,
.brand-logo svg {
  height: 44px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 24px);
  margin-left: auto;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 36px;
  padding-left: 24px;
  border-left: 1px solid var(--border-color);
  flex-shrink: 0;
}

/* Theme Toggle */
.theme-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-highlight);
  transform: rotate(15deg);
}

.mobile-toggle {
  display: none;
  background: transparent;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 90px 0 100px 0;
  overflow: hidden;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-highlight);
  margin-bottom: 24px;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.8vw, 3.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Visual / Interactive 3D Card */
.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  perspective: 1000px;
}

.hero-main-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(56, 189, 248, 0.1);
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

.hero-main-card:hover {
  transform: translateY(-4px) rotateX(2deg);
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.card-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.card-pipeline-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pipeline-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.stage-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stage-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.icon-blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.icon-purple { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

.stage-info h4 {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.stage-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.stage-status {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.status-active { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.status-success { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.card-metric-bar {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: 10px;
  width: 98.4%;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  padding: 12px 18px;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  animation: float 4s ease-in-out infinite alternate;
}

.floating-badge-1 {
  top: -24px;
  right: -20px;
  animation-delay: 0s;
}

.floating-badge-2 {
  bottom: -24px;
  left: -20px;
  animation-delay: 1.8s;
}

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

.floating-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.15);
  color: #38bdf8;
}

.floating-text span {
  display: block;
}

.floating-title {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.floating-value {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}

/* ==========================================================================
   Partners & Tech Ecosystem Marquee
   ========================================================================== */
.marquee-section {
  padding: 36px 0;
  background: rgba(255, 255, 255, 0.015);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.marquee-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-sub);
  margin-bottom: 24px;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 60px;
  animation: scroll-marquee 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partner-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.65;
  transition: var(--transition);
}

.partner-logo:hover {
  opacity: 1;
  color: var(--text-main);
}

.partner-logo svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
  padding: 110px 0;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

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

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 1.5rem;
  background: rgba(56, 189, 248, 0.1);
  color: var(--text-highlight);
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: transform 0.3s ease;
}

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

.service-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.service-tag {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-highlight);
  cursor: pointer;
  margin-top: auto;
}

.service-link svg {
  transition: transform 0.25s ease;
}

.service-link:hover svg {
  transform: translateX(6px);
}

/* ==========================================================================
   Flagship Products Showcase (TwinHRMS, TwinTrackr, TwinAmplify)
   ========================================================================== */
.products-section {
  padding: 110px 0;
  background: var(--bg-secondary);
  position: relative;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  z-index: 1;
}

.product-tabs-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.tab-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.product-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.product-pane.active {
  display: block;
}

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

.product-showcase-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.product-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.product-heading {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 18px;
}

.product-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.product-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.product-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 500;
}

.product-feature-item svg {
  color: #10b981;
  flex-shrink: 0;
}

/* Product UI Preview Screen */
.product-preview-mockup {
  background: #090e1a;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.mockup-header {
  background: #0d1527;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mockup-body {
  padding: 24px;
}

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

.mockup-stat-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.mockup-stat-tile .tile-title {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.mockup-stat-tile .tile-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.mockup-chart-placeholder {
  height: 140px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.chart-bars-group {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 90px;
  gap: 8px;
}

.bar {
  flex: 1;
  background: rgba(56, 189, 248, 0.3);
  border-radius: 4px 4px 0 0;
  transition: height 0.5s ease;
}

.bar.highlight {
  background: var(--grad-primary);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

/* ==========================================================================
   Tech Stack Explorer
   ========================================================================== */
.techstack-section {
  padding: 110px 0;
  position: relative;
  z-index: 1;
}

.tech-filter-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--text-highlight);
  color: var(--text-highlight);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.tech-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition);
}

.tech-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.tech-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
}

.tech-item:hover .tech-icon-wrap {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.tech-item-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.tech-item-cat {
  font-size: 0.75rem;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ==========================================================================
   Industries We Serve
   ========================================================================== */
.industries-section {
  padding: 110px 0;
  background: var(--bg-secondary);
  position: relative;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  z-index: 1;
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.industry-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition);
}

.industry-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.industry-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.industry-content h4 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.industry-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Why Choose Twintech (Value Proposition & Process)
   ========================================================================== */
.why-section {
  padding: 110px 0;
  position: relative;
  z-index: 1;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.why-feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 36px;
}

.why-feature-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.why-feature-box:hover {
  border-color: var(--border-glow);
  transform: translateX(6px);
}

.why-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-feature-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.why-feature-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Process Timeline */
.process-stepper {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
}

.process-stepper::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 24px;
  width: 2px;
  background: linear-gradient(180deg, #38bdf8, #8b5cf6, transparent);
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0f172a;
  border: 2px solid #38bdf8;
  color: #38bdf8;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.step-body {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  flex: 1;
}

.step-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Testimonials & Client Proof
   ========================================================================== */
.testimonials-section {
  padding: 110px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-sm);
}

.stars-row {
  display: flex;
  gap: 4px;
  color: #f59e0b;
  margin-bottom: 18px;
}

.testimonial-text {
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 24px;
  font-style: italic;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Interactive Cost Estimator & Consultation Form
   ========================================================================== */
.contact-section {
  padding: 110px 0;
  position: relative;
  z-index: 1;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 56px;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
}

.contact-channel-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  margin-bottom: 18px;
  transition: var(--transition);
}

.contact-channel-card:hover {
  border-color: var(--border-glow);
}

.channel-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-details h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.channel-details p, .channel-details a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.channel-details a:hover {
  color: var(--text-highlight);
}

.form-wrapper {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xl);
  padding: 42px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--text-highlight);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

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

/* Service Checkboxes */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
  transition: var(--transition);
}

.custom-checkbox input {
  display: none;
}

.custom-checkbox.selected {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--text-highlight);
  color: var(--text-main);
  font-weight: 600;
}

.check-box-indicator {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-checkbox.selected .check-box-indicator {
  background: #38bdf8;
  border-color: #38bdf8;
  color: #070a12;
}

/* Interactive Budget Estimator Slider */
.budget-slider-wrap {
  margin-top: 10px;
}

.slider-val-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: 700;
}

.slider-val-badge {
  color: var(--text-highlight);
  font-size: 1.15rem;
}

.custom-range-slider {
  width: 100%;
  height: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.custom-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
  cursor: pointer;
}

/* Form status feedback */
.form-feedback {
  display: none;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 110px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--border-glow);
}

.faq-question {
  width: 100%;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: transparent;
  color: var(--text-main);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.faq-toggle-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  color: var(--text-highlight);
  flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 26px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 26px 22px 26px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #04060c;
  color: #94a3b8;
  padding: 80px 0 36px 0;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin: 18px 0 24px 0;
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 320px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-icon-btn:hover {
  background: var(--grad-primary);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-3px);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 22px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--text-highlight);
  transform: translateX(4px);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.newsletter-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.88rem;
  flex: 1;
}

.newsletter-input:focus {
  border-color: #38bdf8;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-badge-pill {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   Service Details Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-box {
  background: #0f172a;
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  padding: 40px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.6);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
    z-index: 99;
    margin: 0;
  }
  
  .nav-menu.open {
    transform: translateY(0);
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-actions {
    margin-left: auto;
    padding-left: 0;
    border-left: none;
  }
  
  .nav-actions .btn {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-subtitle {
    margin: 0 auto 36px auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .hero-stats-row {
    justify-content: center;
  }
  
  .product-showcase-card {
    grid-template-columns: 1fr;
  }
  
  .why-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .product-feature-list {
    grid-template-columns: 1fr;
  }
}
