@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Outfit:wght@300;400;600;800&family=Share+Tech+Mono&display=swap');

:root {
  --bg-color: #120626; /* Deep synthwave purple */
  --text-main: #f0f0f0;
  --text-muted: #a0a0aa;
  
  --accent-cyan: #7fffd4;
  --accent-green: #a2ff7f;
  --accent-yellow: #fbc848;
  --accent-pink: #df7cba;
  
  --glass-bg: rgba(25, 10, 45, 0.4);
  --glass-border: rgba(127, 255, 212, 0.15);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* 3D WebGL Background Canvas */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* Dynamic Background Orbs (Morphing Fluid Blobs) */
.bg-orb {
  position: absolute;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(45deg, var(--accent-pink), rgba(127, 255, 212, 0.2));
  top: -150px;
  left: -150px;
  animation: morph 18s infinite alternate, float-1 25s infinite ease-in-out;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, var(--accent-cyan), rgba(223, 124, 186, 0.2));
  bottom: 10%;
  right: -100px;
  animation: morph 22s infinite alternate, float-2 30s infinite ease-in-out;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(90deg, var(--accent-green), rgba(127, 255, 212, 0.2));
  top: 30%;
  left: 20%;
  animation: morph 15s infinite alternate, float-3 28s infinite ease-in-out;
}

@keyframes morph {
  0% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
  33% {
    border-radius: 70% 30% 52% 48% / 60% 40% 60% 40%;
  }
  66% {
    border-radius: 50% 50% 30% 70% / 30% 60% 40% 70%;
  }
  100% {
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
  }
}

@keyframes float-1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(60px, 80px) rotate(180deg); }
  100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes float-2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-80px, -60px) rotate(-180deg); }
  100% { transform: translate(0, 0) rotate(-360deg); }
}

@keyframes float-3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(100px, -40px) scale(1.2); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  position: relative;
  z-index: 10;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-img {
  height: 55px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(251, 200, 72, 0.3);
}
.logo-text-group {
  display: flex;
  flex-direction: column;
}
.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-green), #e8f85f, var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.logo-subtitle {
  font-family: 'Share Tech Mono', monospace;
  color: var(--accent-yellow);
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  margin-top: 4px;
}
.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  margin-left: 2rem;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: var(--accent-cyan);
}

/* Hero Section */
.hero {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}
.hero h1 {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: 1.5rem;
  color: #d0d0dd;
  max-width: 800px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5), 0 0 20px rgba(18,6,38,0.6);
}
.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(45deg, var(--accent-pink), var(--accent-cyan));
  border-radius: 5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(223, 124, 186, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(223, 124, 186, 0.5);
}

/* Services Grid */
.services-section {
  padding: 5rem 5%;
  position: relative;
  z-index: 10;
}
.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 4rem;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: transform 0.4s, background 0.4s;
}
.glass-card:hover {
  transform: translateY(-10px);
  background: rgba(35, 35, 45, 0.6);
  border-color: rgba(255, 255, 255, 0.15);
}
.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: linear-gradient(to bottom right, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.glass-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.glass-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Footer */
footer {
  padding: 3rem 5%;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  margin-top: 5rem;
  color: var(--text-muted);
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}/* US Flag Styling */
.us-flag {
  height: 16px;
  width: auto;
  border-radius: 2px;
  opacity: 0.9;
  vertical-align: middle;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  display: inline-block;
}

/* ----------------------------------------------------
   How It Works (Pipeline) Section Styles
   ---------------------------------------------------- */
.how-it-works-section {
  padding: 6rem 5%;
  position: relative;
  z-index: 10;
}
.pipeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}
.pipeline-line {
  position: absolute;
  left: 35px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-pink), var(--accent-green));
  border-radius: 2px;
  opacity: 0.3;
}
.pipeline-step {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  position: relative;
}
.step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(25, 10, 45, 0.85);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 15px rgba(127, 255, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  z-index: 2;
  flex-shrink: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.pipeline-step:hover .step-number {
  transform: scale(1.15) rotate(10deg);
  border-color: var(--accent-pink);
  box-shadow: 0 0 25px rgba(223, 124, 186, 0.7);
  color: var(--accent-pink);
}
.step-content {
  flex-grow: 1;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.pipeline-step:hover .step-content {
  transform: translateY(-5px);
}

/* ----------------------------------------------------
   Contact / Proposal Form Section Styles
   ---------------------------------------------------- */
.contact-section {
  padding: 6rem 5%;
  position: relative;
  z-index: 10;
}
.contact-container {
  max-width: 800px;
  margin: 0 auto;
}
.form-title {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.form-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}
.proposal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-main);
}
.form-group input,
.form-group textarea {
  background: rgba(18, 6, 38, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(127, 255, 212, 0.25);
  background: rgba(25, 10, 45, 0.8);
}
.slider-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}
#budget-value {
  color: var(--accent-cyan);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
}
.budget-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
  margin: 1rem 0 0.5rem 0;
}
.budget-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-cyan), var(--accent-pink));
  cursor: pointer;
  box-shadow: 0 0 15px rgba(127, 255, 212, 0.6);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.budget-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.form-submit-btn {
  width: 100%;
  text-align: center;
  margin-top: 1rem;
  border-radius: 12px;
  border: 1px solid var(--accent-cyan);
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 1.2rem 2rem;
}

/* Success Messaging with gooey melting blobs */
.form-success-message {
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.success-icon {
  font-size: 5rem;
  color: var(--accent-green);
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 15px rgba(162, 255, 127, 0.5));
}
.form-success-message h3 {
  font-size: 2.2rem;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.form-success-message p {
  color: var(--text-muted);
  max-width: 550px;
  font-size: 1.15rem;
  line-height: 1.6;
}
.success-goo-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  filter: url(#gooey-fluid);
  opacity: 0.25;
  pointer-events: none;
}
.success-blob {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
}
.success-blob.blob-1 {
  background: var(--accent-cyan);
  top: 10%;
  left: 25%;
  animation: morph 8s infinite alternate ease-in-out;
}
.success-blob.blob-2 {
  background: var(--accent-pink);
  bottom: 10%;
  right: 25%;
  animation: morph 10s infinite alternate-reverse ease-in-out;
}

/* ----------------------------------------------------
   Floating Mobile Navigation Bar (iOS design)
   ---------------------------------------------------- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 380px;
  height: 68px;
  background: rgba(25, 10, 45, 0.75);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(127, 255, 212, 0.2);
  border-radius: 34px;
  z-index: 1000;
  display: none;
  justify-content: space-around;
  align-items: center;
  padding: 0 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  gap: 4px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  width: 70px;
  height: 100%;
}
.mobile-nav-item i {
  font-size: 1.45rem;
}
.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(127, 255, 212, 0.3);
}

/* ----------------------------------------------------
   Gooey Mouse Interaction Blob System
   ---------------------------------------------------- */
.gooey-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  filter: url(#gooey-fluid);
  overflow: hidden;
  opacity: 0.55;
}
.gooey-blob {
  position: absolute;
  border-radius: 50%;
  opacity: 1.0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  will-change: transform, left, top;
}
.gooey-blob.primary {
  background: var(--accent-pink);
  width: 220px;
  height: 220px;
  transition: width 0.4s ease, height 0.4s ease;
}
.gooey-blob.secondary {
  background: var(--accent-cyan);
  width: 180px;
  height: 180px;
  transition: width 0.4s ease, height 0.4s ease;
}
.gooey-blob.driplet {
  width: 45px;
  height: 45px;
  background: var(--accent-pink);
  transition: transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Unicorn logo inside the sphere - sits outside gooey filter for crisp rendering */
.unicorn-overlay {
  position: fixed;
  width: 120px;
  height: 120px;
  pointer-events: none;
  z-index: 1;
  will-change: transform, left, top;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(223,124,186,0.35));
  opacity: 0.9;
}

/* Buttery hover curves for existing glass cards */
.glass-card {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
  transform: translateY(-8px) scale(1.02);
  background: rgba(35, 12, 60, 0.55);
  border-color: rgba(127, 255, 212, 0.35);
  box-shadow: 0 15px 35px rgba(127, 255, 212, 0.08);
}

/* Premium smooth transitions for buttons */
.btn-primary {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 15px 30px rgba(223, 124, 186, 0.6);
  border-color: #fff;
}

/* Clamp typography for responsive design */
.hero h1 {
  font-size: clamp(2.2rem, 9vw, 5rem);
  line-height: 1.15;
}
.hero p {
  font-size: clamp(1rem, 4vw, 1.45rem);
  max-width: 780px;
}
.section-title {
  font-size: clamp(2rem, 7vw, 3.2rem);
}

/* ----------------------------------------------------
   Mobile Responsiveness Overrides
   ---------------------------------------------------- */
@media (max-width: 768px) {
  nav {
    padding: 1.2rem 4%;
  }
  .logo-container {
    gap: 8px;
  }
  .logo-img {
    height: 38px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(251, 200, 72, 0.25);
  }
  .logo-text {
    font-size: 1.35rem;
    letter-spacing: 1px;
  }
  .logo-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.8px;
    margin-top: 2px;
  }
  .us-flag {
    height: 11px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    min-height: 70vh;
    padding: 0 16px;
  }
  .hero p {
    margin-bottom: 2rem;
  }
  .services-section {
    padding: 4rem 16px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .glass-card {
    padding: 1.8rem;
  }
  .how-it-works-section {
    padding: 4rem 16px;
  }
  .pipeline-container {
    gap: 2.2rem;
  }
  .pipeline-line {
    left: 20px;
  }
  .pipeline-step {
    gap: 1.2rem;
  }
  .step-number {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
    border-width: 1.5px;
  }
  .contact-section {
    padding: 4rem 16px;
  }
  .contact-container {
    padding: 1.8rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  footer {
    padding: 2.5rem 16px 7.5rem 16px; /* extra bottom padding for mobile bottom nav bar */
    margin-top: 3rem;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 80px; /* offset for bottom sticky nav */
  }
}

@media (max-width: 380px) {
  .logo-text {
    font-size: 1.2rem;
  }
  .logo-subtitle {
    display: none; /* hide subtitle on extremely narrow screens like iPhone SE to avoid overlap */
  }
  .mobile-bottom-nav {
    width: calc(100% - 24px);
    bottom: 12px;
    height: 62px;
  }
  .mobile-nav-item i {
    font-size: 1.25rem;
  }
  .mobile-nav-item {
    font-size: 0.65rem;
  }
}

.private-console-link:hover {
  opacity: 0.85 !important;
  color: var(--accent-cyan) !important;
  text-shadow: 0 0 10px rgba(127, 255, 212, 0.4);
}

/* Spinner style and rotation animation */
.spinner {
  display: inline-block;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


