/* ==========================================================================
   NEXURA TECHNOLABS - PERFECT MASTER CSS (2026 EDITION)
   Clean Responsive Layout, Spacing, Floating Header & Mobile Navigation Fixes
   ========================================================================== */

/* 1. Reset & Global Variables */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy-950: #030712;
  --navy-900: #0b132b;
  --navy-800: #141e36;
  --blue-600: #0066ff;
  --blue-500: #0072ff;
  --blue-400: #00a3ff;
  --sky-300: #00d2ff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--navy-950);
  color: #f8fafc;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background-color: var(--navy-950);
  color: #f8fafc;
}

.font-outfit { font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--navy-950);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 5px;
  border: 2px solid var(--navy-950);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue-500);
}

/* Container Bounds */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

/* 2. Header & Sticky Navbar */
header#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 1.5rem;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 163, 255, 0.15);
  transition: all 0.3s ease;
}

header#navbar.scrolled {
  background: rgba(3, 7, 18, 0.95);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom-color: rgba(0, 163, 255, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.brand-logo img {
  height: 38px !important;
  width: auto !important;
  display: block;
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  line-height: 1;
}

.brand-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--blue-400);
  text-transform: uppercase;
  margin-top: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(11, 19, 43, 0.9);
  backdrop-filter: blur(12px);
  padding: 0.4rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(0, 163, 255, 0.25);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none !important;
  }
}

.nav-link {
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-300);
  border-radius: 9999px;
  transition: all 0.2s ease;
  position: relative;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2.5px;
  background: linear-gradient(90deg, var(--blue-500), var(--sky-300));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--blue-400);
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 102, 255, 0.35);
  transition: all 0.3s ease;
}

.header-cta-btn:hover {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
  box-shadow: 0 6px 20px rgba(0, 163, 255, 0.5);
  transform: translateY(-2px);
}

.mobile-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: var(--navy-900);
  border: 1px solid rgba(0, 163, 255, 0.2);
  color: var(--slate-200);
}

@media (min-width: 1024px) {
  .mobile-toggle-btn {
    display: none !important;
  }
}

/* Mobile Drawer Fix: HIDDEN by default */
#mobile-drawer {
  display: none !important; /* Hides by default */
  position: fixed;
  left: 0;
  right: 0;
  top: 68px;
  background: rgba(3, 7, 18, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 163, 255, 0.2);
  padding: 1.5rem 2rem;
  z-index: 49;
  box-shadow: 0 20px 40px rgba(0,0,0,0.9);
}

#mobile-drawer.open {
  display: block !important; /* ONLY show when JS adds .open class */
}

@media (min-width: 1024px) {
  #mobile-drawer {
    display: none !important;
  }
}

/* 3. Hero Section Spacing & Layout */
section#home {
  position: relative;
  min-height: 100vh;
  padding-top: 8rem;
  padding-bottom: 6rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--navy-950);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: rgba(11, 19, 43, 0.9);
  border: 1px solid rgba(0, 163, 255, 0.3);
  color: var(--blue-400);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h1.hero-headline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.text-gradient-blue {
  background: linear-gradient(135deg, var(--blue-400) 0%, var(--sky-300) 50%, var(--blue-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--slate-300);
  line-height: 1.7;
  max-width: 42rem;
  margin-bottom: 2rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500), var(--sky-300));
  color: #ffffff;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 15px 40px rgba(0, 163, 255, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  background: rgba(11, 19, 43, 0.9);
  border: 1px solid rgba(0, 163, 255, 0.3);
  color: var(--slate-200);
  font-weight: 700;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(20, 30, 54, 1);
  border-color: var(--blue-400);
  color: #ffffff;
}

/* 4. Marquee Strip */
.marquee-section {
  padding: 1.5rem 0;
  background: var(--navy-900);
  border-top: 1px solid rgba(0, 163, 255, 0.2);
  border-bottom: 1px solid rgba(0, 163, 255, 0.2);
  overflow: hidden;
}

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

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
  gap: 3rem;
  align-items: center;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  color: var(--slate-300);
}

/* 5. Section General Layouts & Titles */
section {
  padding: 6rem 1.5rem;
}

@media (min-width: 768px) {
  section {
    padding: 7rem 2rem;
  }
}

.section-header {
  margin-bottom: 3.5rem;
  max-width: 48rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 1.15;
  margin-top: 0.75rem;
}

.section-desc {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-top: 1rem;
}

/* About Section */
section#about {
  background: var(--slate-50);
  color: var(--slate-900);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.badge-light {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* 6. Services Grid */
section#services {
  background: var(--navy-950);
  color: #ffffff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.75rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 2rem;
  border-radius: 1.25rem;
  background: rgba(11, 19, 43, 0.85);
  border: 1px solid rgba(0, 163, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: rgba(0, 163, 255, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(0, 114, 255, 0.3);
}

/* 7. Solutions Grid */
section#solutions {
  background: var(--slate-100);
  color: var(--slate-900);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.solution-card {
  padding: 2.25rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.solution-card:hover {
  box-shadow: 0 20px 40px -10px rgba(0, 102, 255, 0.15);
  border-color: rgba(0, 102, 255, 0.4);
}

/* 8. Tech Grid */
section#technologies {
  background: var(--navy-950);
  color: #ffffff;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(6, 1fr); }
}

.tech-card {
  padding: 1.5rem 1rem;
  border-radius: 1rem;
  background: rgba(11, 19, 43, 0.85);
  border: 1px solid rgba(0, 163, 255, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-card:hover {
  border-color: var(--blue-400);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 163, 255, 0.2);
}

/* 9. Why Choose Us Section */
section#why-us {
  background: var(--slate-50);
  color: var(--slate-900);
}

.why-item {
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  cursor: pointer;
  transition: all 0.3s ease;
}

.why-item.active {
  border-color: var(--blue-600) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 114, 255, 0.15) !important;
}

/* 10. Process Section */
section#process {
  background: var(--navy-950);
  color: #ffffff;
}

.process-step {
  padding: 1.5rem 1.25rem;
  border-radius: 1rem;
  background: rgba(11, 19, 43, 0.9);
  border: 1px solid rgba(0, 163, 255, 0.2);
  transition: all 0.3s ease;
}

.process-step:hover {
  border-color: var(--blue-400);
}

/* 11. Portfolio Section */
section#portfolio {
  background: var(--slate-100);
  color: var(--slate-900);
}

.portfolio-card {
  padding: 2rem;
  border-radius: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.portfolio-card:hover {
  box-shadow: 0 20px 40px -10px rgba(0, 102, 255, 0.2);
  border-color: rgba(0, 102, 255, 0.4);
}

/* 12. Form Controls & Contact Section */
section#contact {
  background: var(--slate-50);
  color: var(--slate-900);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-300);
  background: #ffffff;
  color: var(--slate-900);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.budget-chip {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  color: var(--slate-700);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  transition: all 0.2s ease;
}

.budget-chip.active {
  border-color: var(--blue-600) !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15) !important;
}

/* 13. Footer */
footer {
  background: var(--navy-950);
  color: var(--slate-300);
  border-top: 1px solid rgba(0, 163, 255, 0.2);
  padding: 5rem 1.5rem 2.5rem;
}

footer img {
  height: 36px !important;
  width: auto !important;
}

/* Scroll Reveal Utility */
.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-element.in-view {
  opacity: 1;
  transform: translateY(0);
}
