/* JS CodeWorks Design System - Awwwards Quality Dark Aesthetics */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #050816;
  --bg-card: rgba(15, 23, 42, 0.65);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  
  --primary: #2563EB;
  --primary-glow: rgba(37, 99, 235, 0.4);
  --secondary: #06B6D4;
  --secondary-glow: rgba(6, 182, 212, 0.4);
  --accent: #7C3AED;
  --accent-glow: rgba(124, 58, 237, 0.4);

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(16px);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

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

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

body {
  background-color: var(--bg-deep);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Custom Particle Glowing Cursor */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  background: var(--secondary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px var(--secondary), 0 0 30px var(--primary);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

#custom-cursor.hovering {
  width: 32px;
  height: 32px;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid var(--secondary);
  box-shadow: 0 0 25px var(--secondary-glow);
}

.cursor-dot {
  position: fixed;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.8;
  transition: opacity 0.5s ease;
}

/* Cinematic Intro Loader */
#loader-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #03050d;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s cubic-bezier(0.77, 0, 0.175, 1), visibility 1.2s;
}

#loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--secondary) 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
  animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.3)); }
  50% { filter: drop-shadow(0 0 35px rgba(37, 99, 235, 0.7)); }
}

.loader-progress-bar {
  width: 280px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.loader-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  box-shadow: 0 0 12px var(--secondary);
  transition: width 0.1s linear;
}

.loader-text {
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Audio Toggle Button */
.audio-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  padding: 10px 16px;
  border-radius: 50px;
  color: var(--text-main);
  font-family: var(--font-code);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.audio-toggle:hover {
  border-color: var(--secondary);
  box-shadow: 0 0 20px var(--secondary-glow);
}

.audio-pulse {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulseGreen 1.5s infinite;
}

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

/* Glassmorphism Layout Components */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: rgba(5, 8, 22, 0.85);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: 14px 5%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand-logo-img {
  max-height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
}

.nav-brand-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.nav-brand-text span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 25px var(--primary-glow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px var(--secondary-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: var(--glass-blur);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--secondary);
}

/* 3D Hero Canvas Container */
#hero-section {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 5% 60px;
  overflow: hidden;
}

#canvas-3d-workspace {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 720px;
  pointer-events: none;
}

.hero-content * {
  pointer-events: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: var(--secondary);
  font-family: var(--font-code);
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Live Code Matrix Box in Hero */
.hero-code-box {
  position: absolute;
  right: 5%;
  bottom: 80px;
  width: 440px;
  z-index: 10;
  background: rgba(5, 8, 22, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: var(--font-code);
  font-size: 0.82rem;
  color: #10B981;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  backdrop-filter: var(--glass-blur);

  /* Ensure long uninterrupted single lines wrap nicely */
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: calc(100vw - 10%);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
}

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

.code-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.code-dot.red { background: #EF4444; }
.code-dot.yellow { background: #F59E0B; }
.code-dot.green { background: #10B981; }

/* Global Section Containers */
/* Multi-Section 3D Canvas Background Containers */
.section-3d-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.section {
  padding: 120px 5%;
  position: relative;
  overflow: hidden;
}

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

.section-tag {
  color: var(--secondary);
  font-family: var(--font-code);
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

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

/* Services Grid & 3D Tilt Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
}

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

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

.service-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--secondary);
  margin-bottom: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 14px;
}

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

.service-caps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-cap-item {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-cap-item::before {
  content: '▸';
  color: var(--secondary);
}

/* Portfolio & Device Frames */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 40px;
}

.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-media-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #000;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-category {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--secondary);
  text-transform: uppercase;
  margin-bottom: 8px;
}

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

.project-tagline {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  padding: 4px 12px;
  border-radius: 50px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-main);
}

/* 3D Tech Stack Sphere Canvas Container */
#tech-sphere-container {
  width: 100%;
  height: 520px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#canvas-tech-sphere {
  width: 100%;
  height: 100%;
}

/* Timeline Process Section */
#canvas-3d-timeline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
  z-index: 5;
}

.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 0%;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  box-shadow: 0 0 15px var(--secondary);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-content {
  width: 85%;
  padding: 24px;
}

.timeline-dot {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--secondary);
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--secondary);
}

/* Stats Counter Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.stat-card {
  padding: 30px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

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

/* Founders & Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.team-card {
  padding: 24px;
  text-align: center;
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--secondary);
  box-shadow: 0 0 20px var(--secondary-glow);
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.team-role {
  color: var(--secondary);
  font-size: 0.88rem;
  font-family: var(--font-code);
  margin-bottom: 14px;
}

.team-bio {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Contact Glass Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-form-card {
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2306B6D4' 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: 44px;
}

.form-select option {
  background-color: #080d1a;
  color: #f8fafc;
  padding: 12px;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 15px var(--secondary-glow);
}

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

/* Footer */
footer {
  background: #02040a;
  border-top: 1px solid var(--glass-border);
  padding: 60px 5% 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Responsive adjustments */
/* ==========================================================================
   MOBILE & RESPONSIVE PERFORMANCE ENGINE & GLASS VISUAL OVERHAUL
   ========================================================================== */

/* Mobile Navigation Drawer & Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.mobile-nav-toggle span {
  width: 20px;
  height: 2px;
  background-color: var(--secondary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 992px) {
  /* Disable Custom Desktop Cursor on Mobile & Touch Devices for Maximum Performance */
  #custom-cursor {
    display: none !important;
  }
  body {
    cursor: auto !important;
  }

  /* Navbar Adjustments */
  .navbar {
    padding: 14px 20px;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    background: rgba(5, 8, 22, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-left: 1px solid rgba(6, 182, 212, 0.25);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 30px;
    gap: 24px;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.7);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-link {
    font-size: 1.25rem;
    font-weight: 600;
  }

  /* Hero Section Mobile Layout */
  #hero-section {
    padding: 120px 20px 60px 20px;
    flex-direction: column;
    text-align: center;
    gap: 40px;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
    align-items: center;
  }

  .hero-headline {
    font-size: 2.3rem;
    line-height: 1.2;
  }

  .hero-subheadline {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-actions {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-actions .btn-primary, .hero-actions .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-code-box {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
  }

  /* Mobile Section Cards & Layouts */
  .section {
    padding: 60px 18px;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 1.75rem;
    letter-spacing: -0.5px;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  /* Hide Desktop Navbar CTA on Mobile and shift into Drawer */
  .navbar .btn-primary {
    display: none;
  }

  .nav-drawer-cta {
    display: flex;
    width: 100%;
    margin-top: 16px;
    justify-content: center;
  }

  /* 2-Column Grid for Statistics Metrics on Mobile */
  .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .stat-card {
    padding: 16px 12px !important;
    border-radius: 12px !important;
    text-align: center;
  }

  .stat-number {
    font-size: 1.8rem !important;
  }

  .stat-label {
    font-size: 0.78rem !important;
  }

  /* Compact Mobile Hero Code Box */
  .hero-code-box {
    max-height: 220px;
    overflow: hidden;
    position: relative;
  }
  .hero-code-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(11, 15, 25, 0.95));
    pointer-events: none;
  }

  /* Mobile Execution Timeline Left Alignment */
  .timeline-container {
    padding-left: 28px;
  }
  .timeline-line, .timeline-line-fill {
    left: 10px !important;
  }
  .timeline-item {
    width: 100% !important;
    left: 0 !important;
    padding-left: 16px !important;
    margin-bottom: 30px !important;
  }
  .timeline-dot {
    left: -23px !important;
  }

  /* Services & Portfolio Grids */
  .services-grid, .portfolio-grid, .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .glass-panel {
    padding: 20px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(6, 182, 212, 0.18);
  }

  /* Floating Mobile Quick Action Bottom Dock */
  .mobile-bottom-dock {
    display: flex;
    position: fixed;
    bottom: 16px;
    left: 5%;
    right: 5%;
    width: 90%;
    z-index: 999;
    background: rgba(5, 8, 22, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 50px;
    padding: 8px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(6, 182, 212, 0.2);
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-dock-btn {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .mobile-dock-wa {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.4);
  }
  .mobile-dock-cta {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: none;
  }
}

  /* 3D Canvas Responsive Container Adjustments */
  .section-3d-bg {
    opacity: 0.75;
  }

  #tech-sphere-container {
    height: 380px;
  }

  #canvas-3d-timeline {
    height: 380px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .timeline-line, .timeline-line-fill { left: 20px; }
  .timeline-item, .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-left: 50px;
    padding-right: 0;
  }
  .timeline-dot { left: 20px; }
  .footer-content { grid-template-columns: 1fr; }
}
