/* Design System Variables */
:root {
  --canvas: #F8FAFC;
  --surface: #FFFFFF;
  --subtle: #F1F5F9;
  --dark: #0B132B;
  
  --ink: #0F172A;
  --ink-secondary: #475569;
  --ink-light: #F8FAFC;

  --brand-blue: #0072CE;
  --brand-cyan: #00D2FF;
  --border-line: rgba(15, 23, 42, 0.08);

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 18px;

  --ease-out: 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  background-color: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Structural Foundations */
.site-container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-block {
  padding: 4.5rem 0;
}

.bg-subtle { background-color: var(--subtle); }
.bg-dark { background-color: var(--dark); color: #FFF; }
.text-cyan { color: var(--brand-cyan); }

/* Navigation */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-line);
  z-index: 100;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}

.menu-btn {
  background: none;
  border: none;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.menu-btn .bar {
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  transition: transform var(--ease-out);
}

.nav-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  transition: height var(--ease-out);
  border-bottom: 1px solid var(--border-line);
}

.nav-drawer.open {
  height: calc(100vh - 64px);
  padding: 2.5rem 1rem;
}

.nav-list {
  list-style: none;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nav-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Action Controls & Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  font-size: 0.925rem;
  font-weight: 600;
  border-radius: var(--radius-s);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--ease-out), box-shadow var(--ease-out);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--brand-blue);
  color: #FFF;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border-line);
}

.btn-block { width: 100%; }

/* Hero Section */
.hero-section {
  padding-top: 7rem;
  padding-bottom: 3.5rem;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(0, 114, 206, 0.08);
  color: var(--brand-blue);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.pulse-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.hero-heading {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.accent-text { color: var(--brand-blue); }

.hero-description {
  color: var(--ink-secondary);
  font-size: 1rem;
  margin-bottom: 1.75rem;
  max-width: 500px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-visual-block {
  margin-top: 2.5rem;
}

.visual-card {
  background: #0F172A;
  border-radius: var(--radius-l);
  padding: 3.5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-brand-mark {
  max-width: 150px;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.4));
}

.floating-pill {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-s);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.pill-dot.green { background: #10B981; }
.pill-dot.blue { background: var(--brand-cyan); }

.pill-one { top: 12%; right: 6%; }
.pill-two { bottom: 12%; left: 6%; }

/* Typography & Subheaders */
.section-header {
  margin-bottom: 2.5rem;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  display: block;
  margin-bottom: 0.25rem;
}

.title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--ink-secondary);
  font-size: 0.95rem;
  margin-top: 0.35rem;
  max-width: 620px;
}

/* Capabilities Grid */
.capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.capability-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-line);
  transition: transform var(--ease-out);
}

.capability-card:hover { transform: translateY(-3px); }

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.capability-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.capability-card p {
  color: var(--ink-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tags span {
  font-size: 0.75rem;
  background: var(--subtle);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Interactive Tech Ecosystem */
.tech-category-pills {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.tech-pill {
  padding: 0.6rem 1rem;
  border-radius: var(--radius-s);
  background: var(--surface);
  border: 1px solid var(--border-line);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.tech-pill.active {
  background: var(--brand-blue);
  color: #FFF;
  border-color: var(--brand-blue);
}

.tech-display-panel {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-line);
}

.tech-group { display: none; }
.tech-group.show { display: block; }

.tech-group h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.tech-tag-cloud {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag-cloud li {
  background: var(--subtle);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-s);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Security Hardening Timeline */
.security-pipeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.sec-step {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-line);
  position: relative;
}

.step-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand-blue);
  margin-bottom: 0.25rem;
}

.sec-step h4 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.sec-step p { font-size: 0.85rem; color: var(--ink-secondary); }

.security-modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sec-mod {
  background: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-s);
  border: 1px solid var(--border-line);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sec-mod span { color: var(--brand-blue); }

.security-disclaimer-box {
  background: rgba(0, 114, 206, 0.05);
  border-left: 3px solid var(--brand-blue);
  padding: 1rem;
  font-size: 0.825rem;
  color: var(--ink-secondary);
}

/* Portfolio Filters & Grid */
.portfolio-filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border-line);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-s);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--brand-blue);
  color: #FFF;
  border-color: var(--brand-blue);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.product-item {
  background: var(--surface);
  border: 1px solid var(--border-line);
  padding: 1.5rem;
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
}

.product-cat {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
}

.product-item h3 {
  font-size: 1.2rem;
  margin: 0.35rem 0 0.5rem 0;
}

.product-item p {
  color: var(--ink-secondary);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-stack {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.product-stack span {
  font-size: 0.7rem;
  background: var(--subtle);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

.product-cta {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-blue);
}

/* Experience Timeline */
.timeline-vertical {
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--border-line);
  margin-left: 0.5rem;
  padding-left: 1.25rem;
  gap: 2rem;
}

.timeline-entry { position: relative; }

.timeline-dot {
  position: absolute;
  left: calc(-1.25rem - 5px);
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
}

.timeline-sector {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  text-transform: uppercase;
}

.timeline-content h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.timeline-content p { font-size: 0.875rem; color: var(--ink-secondary); }

/* Technical Inquiry & Footer */
.inquiry-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.inquiry-title { font-size: 1.85rem; margin-bottom: 0.5rem; line-height: 1.25; }
.inquiry-sub { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; margin-bottom: 1.75rem; }

.inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-control label { font-size: 0.8rem; font-weight: 600; }

.form-control input,
.form-control textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-s);
  padding: 0.75rem;
  color: #FFF;
  font-size: 0.9rem;
  font-family: inherit;
}

.form-control input:focus,
.form-control textarea:focus {
  outline: none;
  border-color: var(--brand-cyan);
}

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border-line);
  padding: 2.5rem 0;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

/* Tablet & Desktop Progressive Enhancement */
@media (min-width: 768px) {
  .menu-btn { display: none; }

  .nav-drawer {
    position: static;
    height: auto;
    width: auto;
    background: transparent;
    border-bottom: none;
    flex-direction: row;
    padding: 0;
  }

  .nav-list {
    flex-direction: row;
    gap: 1.5rem;
  }

  .nav-link { font-size: 0.9rem; }

  .hero-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 2.5rem;
  }

  .hero-heading { font-size: 3rem; }
  .hero-cta-group { flex-direction: row; }
  .hero-visual-block { margin-top: 0; }

  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .security-modules-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  .security-pipeline {
    flex-direction: row;
  }

  .sec-step { flex: 1; }

  .form-fields { flex-direction: row; }
  .form-fields .form-control { flex: 1; }

  .footer-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

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


/* ==========================================================================
   Interactive Motion & Cinematic Animation Engine
   ========================================================================== */

/* 1. Scroll-Triggered Reveal States */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 2. Hero Brand Mark Circuit Aura & Levitation */
.hero-brand-mark {
  max-width: 170px;
  height: auto;
  filter: drop-shadow(0 0 25px rgba(0, 210, 255, 0.45));
  animation: levitate 4.5s ease-in-out infinite, circuitPulse 3s alternate infinite ease-in-out;
  will-change: transform, filter;
}

@keyframes levitate {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.02); }
}

@keyframes circuitPulse {
  0% { filter: drop-shadow(0 0 15px rgba(0, 114, 206, 0.4)); }
  100% { filter: drop-shadow(0 0 35px rgba(0, 210, 255, 0.85)); }
}

/* 3. Floating Interactive Badges */
.floating-pill {
  animation: subtleFloat 3.8s ease-in-out infinite alternate;
}
.pill-two {
  animation-delay: 1.8s;
}

@keyframes subtleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* 4. Service & Product Cards Micro-Interactions */
.capability-card, .product-item, .sec-step {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.capability-card::before, .product-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-cyan), transparent);
  transition: left 0.6s ease;
}

.capability-card:hover::before, .product-item:hover::before {
  left: 100%;
}

.capability-card:hover, .product-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 14px 30px rgba(0, 114, 206, 0.09);
  border-color: rgba(0, 210, 255, 0.5);
}

/* 5. Direct WhatsApp Button & Glow Effects */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  transition: all 0.25s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.55);
}

.direct-contact-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.contact-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.contact-pill-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--brand-cyan);
  transform: translateY(-2px);
}

.contact-pill-btn.wa-glow {
  border-color: rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.12);
  color: #A7F3D0;
}

/* Accessibility: Safe fallback for reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .hero-brand-mark,
  .floating-pill {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* =========================================================
   PROJECT TYPE DROPDOWN FIX (!important overrides)
   ========================================================= */
.form-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: end; /* Ensures both name and dropdown sit at the exact same baseline */
}

@media (min-width: 768px) {
  .form-fields {
    grid-template-columns: 1fr 1fr;
  }
}

.form-control {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.form-control label {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #E2E8F0;
}

/* Force dark styling on both text input and select box */
.form-control input,
.form-control select {
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  line-height: 52px !important;
  background-color: #0F172A !important; /* Deep dark blue background */
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  padding: 0 1rem !important;
  color: #F8FAFC !important;
  font-size: 0.95rem !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  outline: none !important;
}

.form-control select:focus,
.form-control input:focus {
  border-color: #00D2FF !important;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.3) !important;
}

/* Wrapper for custom dropdown arrow */
.select-wrapper {
  position: relative;
  width: 100%;
}

.select-wrapper::after {
  content: "▼";
  font-size: 0.75rem;
  color: #00D2FF;
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

/* Dropdown menu options popup styling */
.select-wrapper select option {
  background-color: #0B132B !important;
  color: #FFFFFF !important;
  padding: 12px !important;
}

/* =========================================================
   ANIMATED LOGO / MOTION POSTER SECTION
   ========================================================= */
.motion-showcase-section {
  background: radial-gradient(circle at 50% 20%, rgba(0, 114, 206, 0.12) 0%, #060B18 70%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.motion-video-wrapper {
  max-width: 820px;
  margin: 2.5rem auto 0 auto;
  position: relative;
  border-radius: 18px;
  padding: 4px; /* Border outline gap */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 210, 255, 0.25);
  background: linear-gradient(135deg, #00D2FF 0%, rgba(0, 114, 206, 0.3) 50%, #00D2FF 100%);
}

.motion-glow-border {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #00D2FF, #0072CE, #00D2FF);
  border-radius: 20px;
  z-index: 0;
  filter: blur(14px);
  opacity: 0.5;
  animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
  0% { opacity: 0.3; filter: blur(10px); }
  100% { opacity: 0.7; filter: blur(18px); }
}

.motion-video-player {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background-color: #0B132B;
}

.motion-badge-overlay {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(11, 19, 43, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: #FFFFFF;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.motion-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #00D2FF;
  box-shadow: 0 0 8px #00D2FF;
  display: inline-block;
  animation: blinkDot 1.6s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}