/* ==========================================
   Gluon Force — Scroll-Driven Single Page
   ========================================== */

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

:root {
  --bg-deep: #070e1a;
  --bg-dark: #0b1a2e;
  --bg-mid: #122240;
  --accent: #4a9ece;
  --accent-light: #6cb4d9;
  --accent-glow: rgba(74, 158, 206, 0.4);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --text-muted: rgba(255, 255, 255, 0.45);
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  --glass-bg-hover: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --radius: 20px;
  --radius-sm: 100px;
  --radius-lg: 28px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* --- Background Orbs --- */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: float-slow 20s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #1e5a8a 0%, transparent 70%);
  bottom: 20%;
  left: -150px;
  animation: float-slow 25s ease-in-out infinite reverse;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: 50%;
  right: -100px;
  opacity: 0.2;
  animation: float-slow 18s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* --- Glass Utilities --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 
    inset 0 1px 1px rgba(255, 255, 255, 0.1), 
    0 8px 32px rgba(0, 0, 0, 0.25);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--glass-bg-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 
    inset 0 1px 2px rgba(255, 255, 255, 0.15), 
    0 16px 40px rgba(74, 158, 206, 0.15);
}

.glass-subtle {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #357ca5 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(74, 158, 206, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  box-shadow: 0 6px 26px rgba(74, 158, 206, 0.5);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--glass-border-hover);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 8px 20px rgba(0,0,0,0.2);
}

.btn-glass .arrow {
  transition: transform 0.3s ease;
}

.btn-glass:hover .arrow {
  transform: translateX(4px);
}

.nav-links .btn-nav {
  padding: 11px 26px;
  background: linear-gradient(135deg, var(--accent) 0%, #357ca5 100%);
  color: white !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(74, 158, 206, 0.25);
}

.nav-links .btn-nav:hover {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
  box-shadow: 0 6px 16px rgba(74, 158, 206, 0.4);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 1rem;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* --- Premium Typography Layout Gradients --- */
.text-accent {
  background: linear-gradient(135deg, #4a9ece 0%, #87cdff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- Navigation (Centred Capsule Island) --- */
.navbar {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  top: 14px;
}

.nav-container {
  max-width: 820px; /* Concentrates navigation cleanly into center layout capsule */
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: rgba(11, 26, 46, 0.4);    
  backdrop-filter: blur(24px);           
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;                  
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.2), 
    inset 0 1px 1px rgba(255, 255, 255, 0.1); 
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled .nav-container {
  background: rgba(7, 14, 26, 0.7);
  border-color: rgba(74, 158, 206, 0.35); 
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.4), 
    0 0 20px rgba(74, 158, 206, 0.15),
    inset 0 1px 0px rgba(255, 255, 255, 0.15);
  padding: 8px 24px;
}

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

.logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(74, 158, 206, 0.4));
  transition: transform 0.3s ease;
}

.logo:hover .logo-img {
  transform: rotate(4deg) scale(1.05);
}

.logo-text {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links a:not(.btn) {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s ease;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

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

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 158, 206, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  max-width: 720px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

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

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
  background: linear-gradient(to bottom right, #ffffff 40%, #b0d4eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  animation: scrollBounce 2s ease-in-out infinite;
  transition: opacity 0.3s ease;
}

.scroll-hint svg {
  color: var(--accent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ==========================================
   Scroll-Driven Experience Layout (2 Scenes)
   ========================================== */
.scroll-experience {
  position: relative;
  z-index: 1;
  height: 160vh;
}

.scroll-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  will-change: opacity;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.scene.active {
  opacity: 1;
  pointer-events: auto;
}

.scene-center {
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  width: 100%;
}

/* --- Progress Indicator Dots --- */
.scroll-progress {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-progress.visible {
  opacity: 1;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.progress-dot:hover {
  background: rgba(255, 255, 255, 0.3);
}

.progress-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transform: scale(1.3);
}

/* --- Shared Element Components --- */
.scene-tag {
  display: inline-block;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.scene-heading {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}

/* ==========================================
   Scene 0: Our Services Tiles Grid
   ========================================== */
.scene-wide {
  max-width: 1100px;
}

.branch-connector-top {
  display: none;
}

.services-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.service-panel {
  padding: 36px 32px;
  text-align: left;
  border-radius: var(--radius-lg);
}

.service-panel:hover {
  box-shadow: 0 12px 40px rgba(74, 158, 206, 0.1);
}

.service-panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.detail-icon-wrap {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(74, 158, 206, 0.1);
  color: var(--accent);
  flex-shrink: 0;
}

.service-panel-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.service-panel-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.detail-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.feature-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

/* Active Entrance Animations for Scene 0 */
.scene[data-scene="0"].active .panel-left {
  animation: slideFromLeft 0.7s ease-out forwards;
}

.scene[data-scene="0"].active .panel-right {
  animation: slideFromRight 0.7s ease-out forwards;
}

.scene.active .feature-item {
  opacity: 0;
  animation: fadeSlideUp 0.5s ease-out forwards;
}
.scene.active .feature-item:nth-child(1) { animation-delay: 0.2s; }
.scene.active .feature-item:nth-child(2) { animation-delay: 0.3s; }
.scene.active .feature-item:nth-child(3) { animation-delay: 0.4s; }

@keyframes slideFromLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideFromRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ==========================================
   Scene 1: Get in Touch CTA
   ========================================== */
.converge-connector {
  display: none;
}

.cta-content {
  text-align: center;
}

/* Fixed Cutoff: Expanded horizontal alignment padding limits with absolute scaling */
.cta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px; /* High fidelity balance tracking prevents character text choking */
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.cta-heading {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.cta-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* Active Entrance Animations for Scene 1 */
.scene[data-scene="1"].active .cta-heading {
  animation: fadeSlideUp 0.6s ease-out 0.1s both;
}

.scene[data-scene="1"].active .cta-badge {
  animation: fadeSlideUp 0.5s ease-out forwards;
}

.scene[data-scene="1"].active .cta-desc {
  animation: fadeSlideUp 0.6s ease-out 0.2s both;
}

.scene[data-scene="1"].active .cta-content .btn {
  padding: 16px 38px; /* Adds crisp extra tracking breathing layout room */
  animation: fadeSlideUp 0.6s ease-out 0.35s both;
}

/* --- Shared Transition Animation Keyframes --- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================
   Contact Form Section
   ========================================== */
.contact {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.contact-card {
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  border-radius: var(--radius-lg);
}

.contact-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.contact-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Netlify honeypot — hidden from users, visible to bots */
.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.glass-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
  -webkit-appearance: none;
}

.glass-input::placeholder { color: var(--text-muted); }

.glass-input:focus {
  border-color: var(--accent);
  background: rgba(74, 158, 206, 0.05);
  box-shadow: 0 0 0 3px rgba(74, 158, 206, 0.15);
}

textarea.glass-input { resize: vertical; min-height: 100px; }
select.glass-input { cursor: pointer; }
select.glass-input option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 48px 0 28px;
}

.footer-content {
  text-align: center;
}

.footer-content .logo {
  justify-content: center;
  margin-bottom: 12px;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 20px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links-row a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.footer-links-row a:hover {
  color: var(--accent);
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================
   Responsive Breakpoints
   ========================================== */
@media (max-width: 768px) {
  .navbar {
    top: 16px;
    padding: 0 16px;
  }

  .navbar.scrolled {
    top: 10px;
  }

  .nav-container {
    max-width: 100%; /* Scaling resets naturally on tablet/phones screens layout */
    padding: 10px 20px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    background: rgba(11, 26, 46, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 28px 24px;
    gap: 20px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    text-align: center;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a:not(.btn)::after {
    display: none; 
  }

  .nav-links .btn-nav {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }

  .hero {
    padding: 140px 20px 60px;
    min-height: auto;
    min-height: 100svh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .scroll-experience {
    height: 140vh;
  }

  .services-duo {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-panel {
    padding: 28px 24px;
  }

  .scroll-progress {
    right: 16px;
    gap: 10px;
  }

  .progress-dot {
    width: 8px;
    height: 8px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .contact-content {
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 80px 0;
  }

  .scene-heading {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .cta-heading {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .scene[data-scene="0"].active .panel-left,
  .scene[data-scene="0"].active .panel-right {
    animation: fadeSlideUp 0.6s ease-out forwards;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
}
