/* ==========================================================================
   Bitcode Software — Premium light-themed business styling
   ========================================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc; /* slate-50 */
  --bg-tertiary: #f1f5f9;  /* slate-100 */
  
  --text-primary: #0f172a;   /* slate-900 */
  --text-secondary: #475569; /* slate-600 */
  --text-muted: #64748b;     /* slate-500 */
  
  --accent-blue: #2563eb;    /* royal blue */
  --accent-indigo: #4f46e5;  /* electric indigo */
  --accent-cyan: #06b6d4;
  --accent-blue-light: #eff6ff;
  --accent-indigo-light: #e0e7ff;
  
  --gradient-primary: linear-gradient(135deg, var(--accent-blue), var(--accent-indigo));
  --gradient-secondary: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
  
  --border-light: rgba(15, 23, 42, 0.08);
  --border-medium: rgba(15, 23, 42, 0.12);
  --border-focus: #3b82f6;
  
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.04), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-premium: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
  --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-cinematic: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* === GENERAL RESET & STYLES === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-blue) var(--bg-tertiary);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

/* === UTILITIES & CONTAINERS === */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* === PRELOADER === */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s, visibility 0.4s;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--bg-tertiary);
  border-top-color: var(--accent-blue);
  border-right-color: var(--accent-indigo);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* === HEADER NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s, border-bottom 0.3s;
}

.nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.9rem 2rem;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 30px rgba(15, 23, 42, 0.02);
}

.nav-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  color: var(--accent-blue);
  font-weight: 700;
}

.logo-accent {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-smooth);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--accent-blue);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

/* Toggle menu states */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === HERO SECTION === */
.hero {
  min-height: 100vh;
  padding-top: 8rem;
  padding-bottom: 4rem;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-bg-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-blobs .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-blue);
  top: -100px;
  right: -100px;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--accent-indigo);
  bottom: -50px;
  left: -100px;
}

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

.hero-content {
  opacity: 0;
  transform: translateY(30px);
  transition: transform var(--transition-cinematic), opacity 0.8s ease;
}

.hero.in-view .hero-content {
  opacity: 1;
  transform: translateY(0);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  background: var(--accent-blue-light);
  border: 1px solid rgba(37, 99, 235, 0.12);
  color: var(--accent-blue);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Button styles */
.btn-primary {
  padding: 1rem 2.25rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  padding: 1rem 2.25rem;
  border-radius: 50px;
  cursor: pointer;
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-medium);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--accent-blue);
  background: var(--accent-blue-light);
}

.hero-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: scale(0.95);
  transition: transform var(--transition-cinematic) 0.2s, opacity 0.8s ease 0.2s;
}

.hero.in-view .hero-image-wrap {
  opacity: 1;
  transform: scale(1);
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  background: transparent;
  transition: transform 0.5s;
}

.hero-image:hover {
  transform: translateY(-5px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-mouse::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--accent-blue);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 2s infinite;
}

@keyframes scrollDot {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(12px); }
}

.scroll-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* === SECTION COMMON HEADER === */
.section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  transform: translateY(40px);
  opacity: 0;
  transition: transform var(--transition-cinematic), opacity 0.8s;
}

.section-header.in-view {
  transform: translateY(0);
  opacity: 1;
}

.section-label {
  font-size: 0.85rem;
  color: var(--accent-blue);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* === SERVICES SECTION === */
.services-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.service-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  transition: transform 0.4s var(--transition-smooth), border-color 0.4s, box-shadow 0.4s;
  transform: translateY(50px);
  opacity: 0;
  display: flex;
  flex-direction: column;
}

.service-card.in-view {
  transform: translateY(0);
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--shadow-premium);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--accent-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.75rem;
}

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

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.service-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  transition: background 0.3s, color 0.3s;
}

.service-card:hover .service-tags span {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  border-color: rgba(37, 99, 235, 0.08);
}

/* === PORTFOLIO / CASE STUDIES === */
.portfolio-section {
  background: var(--bg-primary);
}

.glow-blob-3 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--accent-indigo);
  filter: blur(150px);
  opacity: 0.06;
  top: 20%;
  left: -200px;
  pointer-events: none;
}

.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

.portfolio-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
}

.portfolio-item:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.portfolio-item:nth-child(even) .portfolio-image-wrap {
  order: 2;
}

.portfolio-item:nth-child(even) .portfolio-info {
  order: 1;
}

.portfolio-image-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-secondary);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 1s var(--transition-cinematic), opacity 0.8s;
  cursor: pointer;
}

.portfolio-image-wrap.in-view {
  transform: scale(1);
  opacity: 1;
}

.portfolio-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--transition-cinematic);
}

.portfolio-image-wrap:hover img {
  transform: scale(1.04);
}

.portfolio-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.06) 100%);
  pointer-events: none;
}

.portfolio-number {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent-blue);
  opacity: 0.08;
  z-index: 1;
  line-height: 1;
}

.portfolio-info {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 1s var(--transition-cinematic) 0.15s, opacity 0.8s 0.15s;
}

.portfolio-info.in-view {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-type {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-indigo);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.portfolio-info h3 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.portfolio-info p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.portfolio-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.portfolio-tech span {
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

/* === PROCESS SECTION === */
.process-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-bottom: 6rem;
}

.process-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 3rem 2rem;
  position: relative;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  transform: translateY(40px);
  opacity: 0;
}

.process-card.in-view {
  transform: translateY(0);
  opacity: 1;
}

.process-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.15);
  box-shadow: var(--shadow-lg);
}

.process-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.process-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

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

/* STATS BANNER */
.stats-banner {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  text-align: center;
  box-shadow: var(--shadow-premium);
  transform: scale(0.95) translateY(20px);
  opacity: 0;
  transition: transform var(--transition-cinematic), opacity 0.8s;
}

.stats-banner.in-view {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-light);
}

.stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* === CONTACT SECTION === */
.contact-section {
  background: var(--bg-primary);
}

.glow-blob-4 {
  position: absolute;
  width: 600px;
  height: 600px;
  background: var(--accent-indigo);
  filter: blur(160px);
  opacity: 0.05;
  bottom: -200px;
  right: -200px;
  pointer-events: none;
}

.contact-container {
  display: grid;
  grid-template-columns: 0.90fr 1.10fr;
  gap: 5rem;
  align-items: center;
}

.contact-info {
  transform: translateX(-40px);
  opacity: 0;
  transition: transform var(--transition-cinematic), opacity 0.8s;
}

.contact-info.in-view {
  transform: translateX(0);
  opacity: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.contact-info > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
  line-height: 1.7;
}

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

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.detail-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--accent-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  border: 1px solid rgba(37, 99, 235, 0.05);
}

.detail-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.detail-text strong {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.detail-text span, .detail-text a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.3s;
}

.detail-text a:hover {
  color: var(--accent-blue);
}

.contact-form-wrap {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  box-shadow: var(--shadow-premium);
  transform: translateX(40px);
  opacity: 0;
  transition: transform var(--transition-cinematic) 0.15s, opacity 0.8s 0.15s;
}

.contact-form-wrap.in-view {
  transform: translateX(0);
  opacity: 1;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.9rem 1.25rem;
  border-radius: 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  border-radius: 12px;
  border: none;
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* === FOOTER === */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 6rem 0 3rem;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  display: inline-block;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-socials {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.footer-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), background-color var(--transition-smooth);
  background: var(--bg-primary);
}

.footer-socials a:hover {
  transform: translateY(-4px);
  border-color: var(--accent-blue);
  background: var(--accent-blue-light);
}

.footer-links-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-links-wrap h4 {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition-smooth), transform var(--transition-smooth);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-blue);
  transform: translateX(4px);
}

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

.footer-newsletter-form input {
  flex-grow: 1;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  border: 1px solid var(--border-medium);
  background: var(--bg-primary);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-smooth);
  min-width: 0;
}

.footer-newsletter-form input:focus {
  border-color: var(--border-focus);
}

.footer-newsletter-form button {
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  background: var(--gradient-primary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  white-space: nowrap;
}

.footer-newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

.footer-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
}

.footer-lang-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.footer-lang-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.footer-lang-link:hover {
  color: var(--accent-blue);
}

.footer-lang-link.active {
  color: var(--accent-blue);
  font-weight: 700;
}

.footer-lang-sep {
  color: var(--border-medium);
  font-size: 0.75rem;
  user-select: none;
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    padding-top: 1.5rem;
  }
}

/* === INTERACTIVE CAREERS BUTTONS & ICON LIFTS === */
.active-filter-btn {
  background: var(--gradient-primary) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.service-card:hover .service-icon {
  transform: scale(1.12) rotate(4deg);
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.2);
}

.service-icon {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s, color 0.3s, box-shadow 0.3s !important;
}


/* === RESPONSIVE LAYOUTS === */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .hero-badge {
    justify-content: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .hero-image-wrap {
    max-width: 600px;
    margin: 0 auto;
  }
  
  .portfolio-item, .portfolio-item:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .portfolio-item:nth-child(even) .portfolio-image-wrap,
  .portfolio-item:nth-child(even) .portfolio-info {
    order: unset;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 6rem 0;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--bg-primary);
    border-left: 1px solid var(--border-light);
    flex-direction: column;
    padding: 7rem 2.5rem;
    gap: 2rem;
    transition: right 0.4s var(--transition-cinematic);
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.05);
    z-index: 90;
  }
  
  .nav-links.open {
    right: 0;
  }
  
  .nav-toggle {
    display: flex;
    z-index: 100;
  }
  
  .stat-item:not(:last-child)::after {
    display: none;
  }
  
  .stats-banner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .section-header {
    margin-bottom: 3.5rem;
  }
  
  .stats-banner {
    grid-template-columns: 1fr;
  }
  
  .contact-form-wrap {
    padding: 2.5rem 1.5rem;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-cta a {
    justify-content: center;
  }
}

/* === VIEWPORT PROGRESSIVE SCROLL ANIMATIONS === */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(40px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    .service-card, 
    .portfolio-image-wrap, 
    .portfolio-info, 
    .process-card, 
    .stats-banner,
    .contact-info,
    .contact-form-wrap,
    .demo-card {
      view-timeline: --reveal block;
      animation: fadeInUp auto linear both;
      animation-timeline: --reveal;
      animation-range: entry 10% entry 40%;
    }
  }
}

/* === ACCESSIBILITY REDUCED MOTION OVERRIDE === */
@media (prefers-reduced-motion: reduce) {
  .service-card, 
  .portfolio-image-wrap, 
  .portfolio-info, 
  .process-card, 
  .stats-banner,
  .contact-info,
  .contact-form-wrap,
  .section-header,
  .hero-content,
  .hero-image-wrap,
  .demo-card {
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Bitcode Software — Demos Page Styling
   ========================================================================== */

.demos-section {
  padding: 8rem 0 6rem 0;
  background: var(--bg-secondary);
  min-height: 85vh;
}

.demo-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 2.5rem 0 3.5rem 0;
}

.filter-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

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

.demo-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.demo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(37, 99, 235, 0.15);
}

.demo-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f1f5f9;
}

.demo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.demo-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.demo-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-indigo);
  margin-bottom: 0.5rem;
}

.demo-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.demo-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.demo-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.demo-tech-badge {
  background: var(--accent-indigo-light);
  color: var(--accent-indigo);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.demo-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition-smooth);
  width: 100%;
  border: none;
  cursor: pointer;
}

.demo-card-btn:hover {
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.demo-card-btn:active {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .demos-grid {
    grid-template-columns: 1fr;
  }
}

/* === RESPONSIVE FOOTER OVERRIDES === */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer {
    padding: 4rem 0 2rem;
  }
  .footer-brand {
    max-width: 100%;
    text-align: center;
  }
  .footer-socials {
    justify-content: center;
  }
  .footer-links-wrap {
    text-align: center;
  }
  .footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
  }
}



/* ==========================================================================
   Multilingual (English & Arabic) & Right-to-Left (RTL) Stylesheet
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap");

/* === LANGUAGE SWITCHER UI === */
.lang-switcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(8px);
  white-space: nowrap;
}

.lang-switcher-btn:hover {
  background: var(--accent-blue);
  color: #ffffff;
  border-color: var(--accent-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.lang-icon {
  font-size: 1rem;
  line-height: 1;
}

.nav .lang-switcher-btn {
  margin-left: 12px;
}

/* === RTL (RIGHT-TO-LEFT) ARABIC OVERRIDES === */
[dir="rtl"] {
  font-family: "Cairo", system-ui, -apple-system, sans-serif !important;
  direction: rtl;
  text-align: right;
}

[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] p, [dir="rtl"] a, [dir="rtl"] span, [dir="rtl"] button, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea {
  font-family: "Cairo", system-ui, -apple-system, sans-serif !important;
}

/* RTL Navigation */
[dir="rtl"] .nav .lang-switcher-btn {
  margin-left: 0;
  margin-right: 12px;
}

[dir="rtl"] .nav-logo {
  margin-right: 0;
  margin-left: auto;
}

[dir="rtl"] .nav-links {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .logo-icon {
  margin-right: 0;
  margin-left: 6px;
}

/* RTL Hero Section */
[dir="rtl"] .hero-container {
  text-align: right;
}

[dir="rtl"] .hero-cta {
  justify-content: flex-start;
}

[dir="rtl"] .hero-badge,
[dir="rtl"] .section-badge {
  direction: rtl;
}

/* RTL Buttons */
[dir="rtl"] .btn-primary,
[dir="rtl"] .btn-outline,
[dir="rtl"] .btn-secondary {
  direction: rtl;
}

/* RTL Services & Cards */
[dir="rtl"] .service-card,
[dir="rtl"] .why-card,
[dir="rtl"] .testimonial-card,
[dir="rtl"] .project-card,
[dir="rtl"] .process-card {
  text-align: right;
}

[dir="rtl"] .service-card .learn-more {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

/* RTL Forms */
[dir="rtl"] .form-group label {
  text-align: right;
}

[dir="rtl"] .form-control,
[dir="rtl"] input[type="text"],
[dir="rtl"] input[type="email"],
[dir="rtl"] input[type="tel"],
[dir="rtl"] select,
[dir="rtl"] textarea {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] select {
  background-position: left 1rem center;
}

/* RTL 4-Step Process */
[dir="rtl"] .process-step-num {
  margin-right: 0;
  margin-left: 1rem;
}

/* RTL Footer */
[dir="rtl"] .footer-col {
  text-align: right;
}

[dir="rtl"] .footer-links {
  padding-right: 0;
}

[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

/* RTL Mobile Navigation Drawer */
@media (max-width: 900px) {
  [dir="rtl"] .nav-links {
    right: auto;
    left: 0;
    text-align: right;
  }
  
  [dir="rtl"] .nav-links li a {
    text-align: right;
  }
}

/* === MODERN ANIMATED FOUNDER SHOWCASE HERO CARD === */
.hero-founder-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  animation: founderFloat 4.5s ease-in-out infinite;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes founderFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(0.4deg);
  }
}

.hero-founder-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.founder-card-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28) 0%, rgba(56, 189, 248, 0.2) 40%, transparent 70%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

.founder-img-container {
  position: relative;
  z-index: 2;
  border-radius: 28px;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 30px rgba(37, 99, 235, 0.2);
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
}

.founder-hero-img {
  width: 100%;
  height: 490px;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-founder-card:hover .founder-hero-img {
  transform: scale(1.04);
}

.founder-overlay-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.founder-name-banner {
  position: absolute;
  bottom: 18px;
  left: 20px;
  right: 20px;
  z-index: 3;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.founder-name-banner h4 {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.founder-name-banner p {
  font-size: 0.82rem;
  color: #93c5fd;
  font-weight: 600;
  margin: 2px 0 0 0;
}

/* Floating Glassmorphic Badges */
.founder-floating-badge {
  position: absolute;
  z-index: 4;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12), 0 0 15px rgba(37, 99, 235, 0.08);
  transition: all 0.3s ease;
}

.founder-floating-badge:hover {
  transform: scale(1.05);
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.2);
}

.badge-top {
  top: 25px;
  left: -28px;
  animation: badgeFloatA 3.8s ease-in-out infinite alternate;
}

.badge-bottom {
  bottom: 35px;
  right: -28px;
  animation: badgeFloatB 4.2s ease-in-out infinite alternate;
}

.badge-status {
  top: -14px;
  right: 18px;
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  gap: 8px;
}

@keyframes badgeFloatA {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

@keyframes badgeFloatB {
  0% { transform: translateY(0px); }
  100% { transform: translateY(8px); }
}

.founder-floating-badge .badge-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.founder-floating-badge .badge-text {
  display: flex;
  flex-direction: column;
}

.founder-floating-badge .badge-text strong {
  font-family: "Outfit", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.founder-floating-badge .badge-text span {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 500;
}

.status-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}

.status-pulse-dot::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid #10b981;
  animation: pulseDot 1.8s ease-out infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* RTL Badges */
[dir="rtl"] .badge-top {
  left: auto;
  right: -28px;
  text-align: right;
}

[dir="rtl"] .badge-bottom {
  right: auto;
  left: -28px;
  text-align: right;
}

[dir="rtl"] .badge-status {
  right: auto;
  left: 18px;
}

[dir="rtl"] .founder-name-banner {
  text-align: right;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .hero-founder-card {
    max-width: 320px;
  }
  .founder-hero-img {
    height: 380px;
  }
  .badge-top {
    left: -10px;
    top: 15px;
    padding: 8px 12px;
  }
  .badge-bottom {
    right: -10px;
    bottom: 20px;
    padding: 8px 12px;
  }
  [dir="rtl"] .badge-top {
    right: -10px;
    left: auto;
  }
  [dir="rtl"] .badge-bottom {
    left: -10px;
    right: auto;
  }
}
