/* ==========================================================================
   mXbyte. Design System — Right-Shifted Phone Mockups with Come-From-Down Animation
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg-primary: #000000;
  --bg-secondary: #000000;
  --bg-tertiary: #000000;
  --bg-glass: rgba(0, 0, 0, 0.85);

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;

  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #6366f1 50%, #8b5cf6 100%);
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --container-max: 1240px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #1a1a2b; border-radius: 4px; }

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

/* ==========================================================================
   PURE FULL-SCREEN STARTING IMAGE HERO SECTION
   ========================================================================== */
.hero-full-screen-image-section {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background-color: #000000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.full-screen-logo-image {
  width: 85vw;
  max-width: 640px;
  max-height: 60vh;
  height: auto;
  object-fit: contain;
  display: block;
  background-color: transparent;
  user-select: none;
  pointer-events: none;
}

/* Floating Glass Capsule Scroll Button */
.scroll-down-btn {
  position: absolute;
  bottom: 3.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  background: rgba(18, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(6, 182, 212, 0.2);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}

.scroll-down-btn:hover {
  transform: translateX(-50%) translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(6, 182, 212, 0.5);
}

.scroll-glow-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

.scroll-arrow-icon {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--accent-cyan);
  animation: bounceDown 2s infinite;
}

/* ==========================================================================
   CLEAN TOP TRANSLUCENT GLASS NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 0;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.navbar.visible {
  opacity: 1;
  pointer-events: auto;
}

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

.brand-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

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

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

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.25s ease;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-accent {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.88rem; border-radius: var(--radius-full); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* Sections */
.section { padding: 7rem 0; position: relative; }
.section-alt { background: #000000; border-top: none; border-bottom: none; }

.section-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; text-align: center; }
.section-subtitle { color: var(--text-muted); font-size: 1.125rem; max-width: 680px; margin: 0 auto 3rem auto; text-align: center; }

/* LEFT-ALIGNED BOLD SECTION HEADERS */
.section-title-left {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  font-family: var(--font-heading);
  line-height: 1.08;
  margin-bottom: 0.85rem;
  text-align: left;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.section-subtitle-left {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 540px;
  margin: 0 0 2.5rem 0;
  text-align: left;
}

/* OUR PLATFORMS SECTION (RIGHT-SHIFTED PHONE MOCKUPS WITH SCROLL SLIDE-UP ANIMATION) */
.services-section-with-bg {
  position: relative;
  background: #000000;
  border-top: none;
  border-bottom: none;
  padding-top: 5rem;
  padding-bottom: 3rem;
  overflow: visible;
}

.platforms-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
  align-items: center;
}

.platforms-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  padding-bottom: 2rem;
}

.platforms-right-col {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  margin-bottom: 0;
}

/* Phone Mockups Come-From-Down Animation */
.platforms-phones-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: 0;
  filter: none;
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transform-origin: center center;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
  will-change: transform, opacity;
}

.platforms-phones-img.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.platforms-phones-img.animate-in:hover {
  transform: translateY(-6px) scale(1.02);
}

.specular-container-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: flex-start;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   VIDEO SHOWCASE SECTION (BELOW PLATFORMS)
   ========================================================================== */
.video-showcase-section {
  padding: 1rem 0 3.5rem 0;
  background-color: #000000;
  position: relative;
}

.video-showcase-wrapper {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #000000;
  border: none;
  box-shadow: none;
  transition: transform 0.4s ease;
}

.video-showcase-wrapper:hover {
  transform: translateY(-4px);
}

.showcase-video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: none;
  outline: none;
}

/* ==========================================================================
   REACT BITS — SPECULAR BUTTON CSS
   ========================================================================== */
.specular-button {
  --sb-radius: 18px;
  --sb-tint: #ffffff;
  --sb-tint-opacity: 0;
  --sb-blur: 0px;
  --sb-text-color: #f5f5f5;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  margin: 0;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  color: var(--sb-text-color);
  background: color-mix(in srgb, var(--sb-tint) calc(var(--sb-tint-opacity) * 100%), transparent);
  border-radius: var(--sb-radius);
  backdrop-filter: blur(var(--sb-blur));
  -webkit-backdrop-filter: blur(var(--sb-blur));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  outline: none;
  transition: transform 0.15s ease;
}

.specular-button:active {
  transform: scale(0.97);
}

.specular-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--sb-text-color) 60%, transparent);
  outline-offset: 3px;
}

.specular-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.specular-button:disabled:active {
  transform: none;
}

.specular-button--sm {
  font-size: 0.85rem;
  padding: 10px 22px;
}

.specular-button--md {
  font-size: 1rem;
  padding: 14px 30px;
}

.specular-button--lg {
  font-size: 1.15rem;
  padding: 18px 40px;
}

/* Canvas extends past the button so the rim glow can bleed outside the edge */
.specular-button__fx {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 1;
}

.specular-button__fx canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.specular-button__label {
  position: relative;
  z-index: 2;
}

/* Estimator Widget */
.estimator-card {
  background: linear-gradient(145deg, rgba(20, 20, 32, 0.85), rgba(12, 12, 20, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.estimator-step { margin-bottom: 2rem; }
.estimator-step-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--gradient-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }

.options-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.option-btn { padding: 1rem 1.25rem; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-muted); cursor: pointer; text-align: left; transition: all 0.2s ease; display: flex; flex-direction: column; gap: 0.35rem; }
.option-btn:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.18); color: #fff; }
.option-btn.selected { background: rgba(99, 102, 241, 0.15); border-color: var(--accent-indigo); color: #fff; box-shadow: 0 0 15px rgba(99, 102, 241, 0.2); }
.option-title { font-weight: 700; font-size: 0.95rem; }
.option-desc { font-size: 0.78rem; color: var(--text-dim); }

.estimator-summary { margin-top: 2.5rem; padding: 1.75rem; border-radius: var(--radius-md); background: rgba(6, 182, 212, 0.05); border: 1px solid rgba(6, 182, 212, 0.2); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.estimate-val { font-size: 2.25rem; font-weight: 800; color: #fff; }

/* Portfolio Grid */
.portfolio-filters { display: flex; justify-content: center; gap: 0.75rem; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn { padding: 0.6rem 1.35rem; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); color: var(--text-muted); cursor: pointer; transition: all 0.2s ease; }
.filter-btn:hover, .filter-btn.active { background: #fff; color: #000; font-weight: 600; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.project-card { border-radius: var(--radius-lg); background: var(--bg-glass); border: 1px solid rgba(255, 255, 255, 0.08); overflow: hidden; cursor: pointer; transition: all 0.3s ease; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(255, 255, 255, 0.2); }
.project-image-box { position: relative; width: 100%; height: 200px; background: #12121c; display: flex; align-items: center; justify-content: center; }

/* ==========================================================================
   SIMPLE BENEFITS SECTION (ICON & NAME ONLY)
   ========================================================================== */
.section-benefits-simple {
  background: #000000;
  position: relative;
  padding: 3rem 0 5rem 0;
}

.benefits-simple-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.benefit-simple-item {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.25s ease;
  user-select: none;
}

.benefit-simple-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.1);
}

.benefit-simple-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.benefit-simple-item:hover .benefit-simple-icon-wrap {
  transform: scale(1.08);
  border-color: var(--accent-cyan);
}

.benefit-simple-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.benefit-simple-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: -0.01em;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.benefit-simple-item:hover .benefit-simple-name {
  color: #ffffff;
}

.tech-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

/* Contact Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-input, .form-select, .form-textarea { width: 100%; padding: 0.9rem 1.1rem; border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; font-family: var(--font-main); outline: none; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(4, 4, 7, 0.85); backdrop-filter: blur(16px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { width: 100%; max-width: 720px; background: #11111a; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-lg); padding: 2.5rem; position: relative; }
.modal-close-btn { position: absolute; top: 1.25rem; right: 1.25rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }

/* Toast */
.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 3000; }
.toast { padding: 1rem 1.5rem; border-radius: var(--radius-md); background: rgba(18, 18, 28, 0.95); border-left: 4px solid var(--accent-emerald); color: #fff; }

/* Footer */
.footer { background: #000000; border-top: none; padding: 4rem 0 2rem 0; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; margin-bottom: 3.5rem; }

@keyframes bounceDown { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(6px); } 60% { transform: translateY(3px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

@media (max-width: 992px) {
  .services-section-with-bg { padding-bottom: 2rem; }
  .platforms-split-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; align-items: center; }
  .platforms-left-col { align-items: center; padding-bottom: 1rem; }
  .platforms-right-col { justify-content: center; }
  .section-title-left, .section-subtitle-left { text-align: center; }
  .platforms-phones-img { transform: none; margin-right: 0; max-width: 440px; margin-bottom: 0; }
  .platforms-phones-img.animate-in { transform: translateY(0); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
