@charset "UTF-8";

/* ==========================================================================
   Global Variables
   ========================================================================== */
:root {
  --bg-primary:     #050508;
  --bg-secondary:   #0a0a12;
  --bg-card:        rgba(255, 255, 255, 0.03);
  --accent-blue:    #3b82f6;
  --accent-cyan:    #06b6d4;
  --accent-violet:  #7c3aed;
  --accent-glow:    rgba(59, 130, 246, 0.18);
  --text-primary:   #f8fafc;
  --text-muted:     #94a3b8;
  --border:         rgba(255, 255, 255, 0.07);
  --glass:          rgba(255, 255, 255, 0.04);
  --gradient-hero:  linear-gradient(135deg, #050508 0%, #0d0d1a 50%, #050508 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-violet) 100%);
  --nav-height:     60px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 3.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

.mono-text {
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 3rem 0;
  position: relative;
}

/* ==========================================================================
   Components
   ========================================================================== */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.btn-glass {
  background: var(--glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--accent-blue);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(6, 182, 212, 0.1);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

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

.logo-dot {
  width: 12px;
  height: 12px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
}

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

/* Mega Menu */
.has-dropdown {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  width: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.has-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.mega-menu a:hover {
  background: var(--bg-card);
}

.mega-menu i {
  color: var(--accent-cyan);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg-secondary);
  padding: 3rem 0 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

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

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col a:hover {
  color: var(--accent-blue);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
  box-shadow: 0px 6px 15px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   Technologies We Serve
   ========================================================================== */
.tech-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.1rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.tech-pill:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

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

/* ==========================================================================
   Happy Clients
   ========================================================================== */
.client-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.client-logo-pill:hover {
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(6, 182, 212, 0.25);
}

@keyframes clientsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%), rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 4rem 2rem;
  margin: 4rem auto;
  width: 90%;
  max-width: 1200px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.cta-section h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Hero Split Revamp
   ========================================================================== */
.hero-split {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-height);
  display: flex;
  align-items: center;
  overflow: hidden;
}

#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 650px;
  text-align: left;
}

.hero-visual {
  flex: 1;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-visual spline-viewer {
  width: 100%;
  height: 100%;
  min-height: 500px;
}

.hero-title {
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-pill {
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s ease, border-color 0.3s ease;
}

.stat-pill:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

.glow-badge {
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
  animation: pulse-glow 2s infinite alternate;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.1); }
  100% { box-shadow: 0 0 25px rgba(6, 182, 212, 0.5); }
}

/* ==========================================================================
   Hero Form
   ========================================================================== */
.hero-form-card {
  width: 100%;
  max-width: 450px;
  background: rgba(10, 10, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.form-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

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

.quick-quote-form .form-group {
  margin-bottom: 1.25rem;
}

.quick-quote-form input,
.quick-quote-form select {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.quick-quote-form input::placeholder {
  color: var(--text-muted);
}

.quick-quote-form input:focus,
.quick-quote-form select:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.quick-quote-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2394a3b8%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem top 50%;
  background-size: 0.65rem auto;
}

.quick-quote-form select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  /* Navigation */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  body.nav-active .nav-links {
    display: flex;
  }
  
  body.nav-active .nav-actions {
    display: flex;
    margin-top: 1rem;
    flex-direction: column;
    width: 100%;
  }

  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  /* Mega Menu on Mobile */
  .has-dropdown:hover .mega-menu {
    opacity: 0;
    visibility: hidden;
    transform: none;
  }
  
  .has-dropdown.active .mega-menu {
    opacity: 1;
    visibility: visible;
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: none;
    background: transparent;
    border: none;
    padding: 1rem 0 0 1rem;
    grid-template-columns: 1fr;
    display: grid;
    gap: 1rem;
  }

  /* Layout Adjustments */
  .footer-grid, 
  .company-stats,
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: 1.5fr 2.5fr 1fr 1.5fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 2rem;
  }

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

  .hero-subtitle {
    max-width: 100%;
  }

  .hero-actions, .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
    height: auto;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  .footer-grid,
  .company-stats,
  [style*="grid-template-columns: repeat(3, 1fr)"],
  [style*="grid-template-columns: repeat(4, 1fr)"],
  [style*="grid-template-columns: 1.5fr 2.5fr 1fr 1.5fr"] {
    grid-template-columns: 1fr !important;
  }

  .hero-actions {
    flex-direction: column;
  }
  
  .stat-box h3 {
    font-size: 2.2rem;
  }
}
