@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   NEST Brand Design Tokens — Light Theme
   Primary:  Deep Navy   #0E2841
   Accent:   NEST Teal   #207888
   Base:     Ice White   #F5F5F5
   ============================================================ */
:root {
  --bg-main:        #FFFFFF;
  --bg-white:       #FFFFFF;
  --bg-section-alt: #FFFFFF;
  --bg-glass:       rgba(255, 255, 255, 0.92);

  --primary:        #0E2841;
  --primary-light:  #1A3A5C;
  --primary-rgb:    14, 40, 65;

  --accent:         #207888;
  --accent-bright:  #2A8FA0;
  --accent-pale:    rgba(32, 120, 136, 0.08);
  --accent-rgb:     32, 120, 136;

  --text-main:      #0E2841;
  --text-secondary: #3A5068;
  --text-muted:     #6B8099;

  --border:         rgba(14, 40, 65, 0.10);
  --border-hover:   rgba(32, 120, 136, 0.35);
  --border-light:   rgba(14, 40, 65, 0.05);

  --transition:      all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);

  --shadow:        0 1px 3px rgba(14, 40, 65, 0.06), 0 8px 24px rgba(14, 40, 65, 0.06);
  --shadow-strong: 0 4px 6px rgba(14, 40, 65, 0.06), 0 16px 32px rgba(14, 40, 65, 0.10);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-main);
}

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

/* Subtle dot-grid ambient texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(14, 40, 65, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--primary);
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

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

/* ── Utilities ──────────────────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  background: var(--accent-pale);
  border: 1px solid rgba(32, 120, 136, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.glass-panel {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px);
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(14, 40, 65, 0.20);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 40, 65, 0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  background: var(--accent-pale);
}

/* ── Header / Nav ───────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(245, 245, 245, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(14, 40, 65, 0.06);
}

header .container {
  display: flex;
  align-items: center;
  height: 88px;
  padding-left: 0.5rem;   /* logo casi al borde izquierdo */
  padding-right: 2rem;
  gap: 0;
}

.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 80px;
  width: auto;
  display: block;
}

/* Nav ocupa el espacio restante y centra sus links */
#navbar-links {
  flex: 1;
  display: flex;          /* ← necesario para justify-content */
  align-items: center;
  justify-content: center;
}

#navbar-links ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.4rem;
  margin: 0;
  padding: 0;
}

#header-cta-btn {
  flex-shrink: 0;
  /* no extra margin — el nav flex:1 ya separa */
}

/* nav ul handled by #navbar-links ul above */

nav a {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}

nav a:hover, nav a.active { color: var(--primary); }

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
}

nav a:hover::after, nav a.active::after { width: 100%; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px; height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  width: 100%; height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding-top: 172px;
  padding-bottom: 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-main);
  position: relative;
  overflow: hidden;
}

/* Accent glow — top right */
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(circle, rgba(32, 120, 136, 0.06) 0%, transparent 65%);
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content { z-index: 2; }

.hero-title {
  font-size: 3.4rem;
  margin-bottom: 1.4rem;
  font-weight: 800;
  line-height: 1.1;
}

.hero-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 2.4rem;
  max-width: 580px;
  line-height: 1.7;
}

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

/* Hero right — Tech Pillar Panel */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-tech-panel {
  width: 100%;
  max-width: 420px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}

.tech-panel-topbar {
  background: var(--primary);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tech-topbar-dots {
  display: flex;
  gap: 5px;
}

.tech-topbar-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.tech-topbar-dots span:nth-child(1) { background: #ef4444; }
.tech-topbar-dots span:nth-child(2) { background: #f59e0b; }
.tech-topbar-dots span:nth-child(3) { background: #22c55e; }

.tech-panel-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(245, 245, 245, 0.7);
  text-transform: uppercase;
  flex: 1;
  text-align: center;
}

.tech-panel-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
}

.tech-service-cell {
  background: var(--bg-white);
  padding: 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: var(--transition);
}

.tech-service-cell:hover {
  background: var(--bg-section-alt);
}

.tech-service-cell i {
  font-size: 1.6rem;
  color: var(--accent);
}

.tech-service-cell.highlight {
  background: var(--accent-pale);
}

.tech-service-cell.highlight i {
  color: var(--primary);
}

.tech-cell-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.tech-cell-status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #16a34a;
  text-transform: uppercase;
}

.tech-panel-footer {
  background: var(--bg-section-alt);
  border-top: 1px solid var(--border);
  padding: 0.7rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tech-footer-metric {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: monospace;
}

.tech-footer-metric strong {
  color: var(--accent);
}

.blinking-cursor {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--accent);
  animation: blink 1.1s step-end infinite;
}

/* ── Sections general ───────────────────────────────────────── */
section {
  padding: 96px 0;
  position: relative;
}

section:nth-child(even),
.about-section,
.dashboard-showcase,
.contact-section {
  background-color: var(--bg-section-alt);
}

section:nth-child(odd),
.hero,
.services-section,
.process-section,
.stats-section {
  background-color: var(--bg-main);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px auto;
}

.section-title {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── Section separators (replace alternating colors) ─────── */
.about-section,
.dashboard-showcase,
.contact-section {
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* ── About (Empresa) ────────────────────────────────────────── */
.about-section { background-color: var(--bg-white); }

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.about-card {
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  background: var(--bg-white);
}

.about-icon {
  width: 46px; height: 46px;
  background: rgba(14, 40, 65, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.3rem;
}

.about-card h3 { font-size: 1.25rem; }

.about-card p { color: var(--text-secondary); font-size: 0.93rem; }

/* ── Services ───────────────────────────────────────────────── */
.services-section { background-color: var(--bg-main); }

.services-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.services-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.service-tab-btn {
  background: var(--bg-white);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.service-tab-btn i {
  font-size: 1.4rem;
  color: var(--text-muted);
}

.service-tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-pale);
}

.service-tab-btn:hover i { color: var(--accent); }

.service-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(14, 40, 65, 0.18);
}

.service-tab-btn.active i { color: rgba(245, 245, 245, 0.85); }

.service-content-wrapper {
  min-height: 380px;
  background: var(--bg-white);
}

.service-panel {
  display: none;
  animation: fadeIn 0.4s ease;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 2.5rem;
}

.service-panel.active { display: grid; }

.service-panel-details h3 {
  font-size: 1.85rem;
  margin-bottom: 0.8rem;
}

.service-panel-details p {
  color: var(--text-secondary);
  margin-bottom: 1.6rem;
  font-size: 0.97rem;
}

.service-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-main);
  font-size: 0.92rem;
}

.service-feature-list li i {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.service-panel-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* ── Carousel ───────────────────────────────────────────────── */
.software-carousel {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 800 / 500;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--border);
  background: var(--bg-white);
}

.carousel-track-wrapper { width: 100%; height: 100%; overflow: hidden; }

.carousel-track {
  display: flex;
  width: 500%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-slide { width: 20%; height: 100%; position: relative; }

.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(14, 40, 65, 0.90);
  color: #fff;
  padding: 0.55rem 1rem;
  font-size: 0.76rem;
  font-weight: 600;
  text-align: center;
  z-index: 12;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(14, 40, 65, 0.72);
  border: none;
  color: white;
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: var(--transition);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.carousel-indicators .indicator {
  width: 7px; height: 7px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-indicators .indicator.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* ── Dashboard Showcase ─────────────────────────────────────── */
.dashboard-showcase { background-color: var(--bg-section-alt); }

.dashboard-panel {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 1px solid var(--border);
  background: var(--bg-white);
}

.db-header {
  background: var(--primary);
  padding: 0.9rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.db-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(245, 245, 245, 0.9);
  letter-spacing: 0.06em;
}

.db-dot {
  width: 7px; height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 1.5s infinite alternate;
}

.db-meta {
  font-family: monospace;
  font-size: 0.75rem;
  color: rgba(245, 245, 245, 0.5);
}

.db-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--border);
  gap: 1px;
}

.db-card {
  background: var(--bg-white);
  padding: 1.4rem;
  text-align: center;
}

.db-card-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.db-card-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.db-card-value.green { color: #15803d; }
.db-card-value.cyan  { color: var(--accent); }

.db-body {
  padding: 1.4rem;
  background: var(--bg-white);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.4rem;
  border-top: 1px solid var(--border);
}

.db-chart-section, .db-console { display: flex; flex-direction: column; gap: 0.4rem; }

.db-chart-label, .db-console-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.03em;
}

.db-chart-canvas-container {
  height: 180px;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-section-alt);
  border-radius: 4px;
  overflow: hidden;
}

.db-console-box {
  background: var(--bg-section-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  height: 180px;
  padding: 0.75rem;
  font-family: monospace;
  font-size: 0.72rem;
  color: var(--text-main);
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.db-console-log {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: slideLog 0.2s ease-out;
}

.db-console-log.yellow { color: #92400e; }
.db-console-log.cyan   { color: var(--accent); }

/* ── Process Timeline ───────────────────────────────────────── */
.process-section { background-color: var(--bg-main); }

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  transform: translateX(-50%);
  z-index: 1;
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  padding-right: 50%;
  position: relative;
  margin-bottom: 3.5rem;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: 50%;
}

.timeline-dot {
  position: absolute;
  left: 50%; top: 30px;
  width: 16px; height: 16px;
  background: var(--bg-white);
  border: 2.5px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(32, 120, 136, 0.08);
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(32, 120, 136, 0.12);
  transform: translate(-50%, -50%) scale(1.15);
}

.timeline-panel {
  width: 90%;
  max-width: 400px;
  padding: 1.8rem;
  margin: 0 auto;
  background: var(--bg-white);
}

.timeline-item:nth-child(odd)  .timeline-panel { margin-right: 28px; }
.timeline-item:nth-child(even) .timeline-panel { margin-left: 28px; }

.timeline-step {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.timeline-panel h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.timeline-panel p  { color: var(--text-secondary); font-size: 0.92rem; }

/* ── Stats ──────────────────────────────────────────────────── */
.stats-section {
  background-color: var(--primary);
  color: #fff;
  padding: 72px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.4rem;
  line-height: 1;
  background: linear-gradient(135deg, #fff 0%, rgba(32, 120, 136, 0.8) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p.label {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: rgba(245, 245, 245, 0.92);
}

.stat-item p.desc {
  font-size: 0.88rem;
  color: rgba(245, 245, 245, 0.55);
  max-width: 250px;
  margin: 0 auto;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-section { background-color: var(--bg-section-alt); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info h3 { font-size: 1.7rem; margin-bottom: 0.4rem; }
.contact-info p   { color: var(--text-secondary); line-height: 1.7; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.contact-detail-icon {
  width: 42px; height: 42px;
  background: rgba(14, 40, 65, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-detail-text p { margin: 0; }

.contact-detail-text p.label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.contact-detail-text p.value {
  font-weight: 600;
  color: var(--primary);
}

.contact-form {
  padding: 2.8rem;
  background: var(--bg-white);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-control {
  background: var(--bg-section-alt);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.92rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(32, 120, 136, 0.08);
}

textarea.form-control { resize: vertical; min-height: 120px; }

/* ── Modal ──────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 40, 65, 0.40);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-card {
  max-width: 460px;
  width: 100%;
  padding: 2.8rem 2rem;
  text-align: center;
  background: var(--bg-white);
  animation: slideUp 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-icon {
  width: 68px; height: 68px;
  background: rgba(21, 128, 61, 0.07);
  border: 2px solid #15803d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #15803d;
  font-size: 2rem;
  margin: 0 auto 1.4rem;
}

.modal-card h3 { font-size: 1.7rem; margin-bottom: 0.9rem; }
.modal-card p  { color: var(--text-secondary); margin-bottom: 1.8rem; font-size: 0.93rem; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--primary);
  border-top: 1px solid rgba(32, 120, 136, 0.2);
  padding: 56px 0 28px;
  color: rgba(245, 245, 245, 0.85);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 36px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-brand .logo-img {
  filter: brightness(0) invert(1);
  height: 56px;
}

.footer-brand p {
  color: rgba(245, 245, 245, 0.5);
  font-size: 0.88rem;
  max-width: 300px;
  line-height: 1.65;
}

.footer-links-title {
  font-weight: 700;
  font-size: 0.78rem;
  color: rgba(245, 245, 245, 0.6);
  margin-bottom: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }

.footer-links a {
  color: rgba(245, 245, 245, 0.6);
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: rgba(32, 120, 136, 0.9);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.82rem; color: rgba(245, 245, 245, 0.35); }

.footer-socials { display: flex; gap: 0.75rem; }

.footer-social-icon {
  width: 34px; height: 34px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(245, 245, 245, 0.5);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social-icon:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Animations ─────────────────────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideLog {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  from { box-shadow: 0 0 4px #22c55e; }
  to   { box-shadow: 0 0 10px #22c55e; }
}

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

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid          { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .hero-description   { margin-left: auto; margin-right: auto; }
  .hero-actions       { justify-content: center; }
  .about-grid         { grid-template-columns: 1fr; }
  .services-tabs      { grid-template-columns: repeat(3, 1fr); }
  .service-panel      { grid-template-columns: 1fr; gap: 2rem; }
  .db-body            { grid-template-columns: 1fr; }
  .contact-grid       { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual        { justify-content: center; }
  .hero-tech-panel    { max-width: 400px; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .hero-title    { font-size: 2.4rem; }
  .section-title { font-size: 1.9rem; }

  .hamburger { display: flex; }

  nav {
    position: fixed;
    top: 88px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 2rem;
    display: none;
    z-index: 999;
  }

  nav.active { display: block; animation: fadeIn 0.3s ease; }

  nav ul { flex-direction: column; align-items: center; gap: 1.5rem; }

  .timeline-line { left: 18px; }

  .timeline-item {
    justify-content: flex-start;
    padding-left: 44px;
    padding-right: 0;
  }

  .timeline-item:nth-child(even) { padding-left: 44px; }
  .timeline-dot { left: 18px; }
  .timeline-panel { width: 100%; margin: 0 !important; }

  .stats-grid   { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-group-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 1.8rem 1.4rem; }
  .footer-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid div:not(.footer-brand) { display: none; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .tech-panel-services { grid-template-columns: 1fr; }
  .services-mega-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   NAV DROPDOWN
═══════════════════════════════════════════════════════════ */
.has-dropdown { position: relative; }

.has-dropdown > a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.has-dropdown > a .chevron {
  font-size: 0.6rem;
  transition: transform 0.25s ease;
  opacity: 0.6;
}

.has-dropdown:hover > a .chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-strong);
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

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

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-dropdown a i {
  width: 18px;
  text-align: center;
  color: var(--accent);
  font-size: 0.95rem;
}

.nav-dropdown a:hover {
  background: rgba(14, 40, 65, 0.04);
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   SERVICES MEGA CARDS (index.html)
═══════════════════════════════════════════════════════════ */
.services-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-mega-card {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 2.8rem 2.4rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-white);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Decorative large number */
.service-mega-card::after {
  content: attr(data-num);
  position: absolute;
  top: 1.5rem; right: 1.8rem;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(14, 40, 65, 0.04);
  line-height: 1;
  font-family: 'Montserrat', sans-serif;
  transition: var(--transition);
  pointer-events: none;
}

/* Accent underline */
.service-mega-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.service-mega-card:hover {
  border-color: rgba(14, 40, 65, 0.15);
  box-shadow: var(--shadow-strong);
  transform: translateY(-7px);
}

.service-mega-card:hover::before { transform: scaleX(1); }

.service-mega-card:hover::after {
  color: rgba(14, 40, 65, 0.07);
}

.smc-icon {
  width: 72px; height: 72px;
  background: rgba(14, 40, 65, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
}

.service-mega-card:hover .smc-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.smc-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.smc-desc {
  font-size: 0.91rem;
  color: var(--text-secondary);
  line-height: 1.68;
  flex: 1;
}

.smc-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.smc-tags li {
  padding: 0.2rem 0.7rem;
  background: rgba(14, 40, 65, 0.04);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.smc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.2rem;
  transition: var(--transition);
}

.service-mega-card:hover .smc-cta {
  gap: 0.7rem;
  color: var(--primary);
}

/* ═══════════════════════════════════════════════════════════
   SERVICE DETAIL PAGES  (software.html / hardware.html / ict.html)
═══════════════════════════════════════════════════════════ */

/* Dark hero */
.service-page-hero {
  background: var(--primary);
  min-height: 480px;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
}

.service-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(245,245,245,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.service-page-hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom right, transparent 49%, var(--bg-white) 50%);
  pointer-events: none;
}

.sph-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(245,245,245,0.55);
  text-decoration: none;
  margin-bottom: 1.8rem;
  transition: var(--transition);
  letter-spacing: 0.03em;
}

.back-link:hover { color: rgba(245,245,245,0.9); gap: 0.7rem; }

.service-page-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.9rem;
  background: rgba(32,120,136,0.25);
  border: 1px solid rgba(32,120,136,0.4);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(245,245,245,0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.sph-title {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.sph-title span { color: var(--accent); }

.sph-desc {
  font-size: 1.05rem;
  color: rgba(245,245,245,0.65);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2rem;
}

.btn-white {
  background: #fff;
  color: var(--primary);
  border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-white:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.sph-visual {
  width: 160px; height: 160px;
  background: rgba(32,120,136,0.12);
  border: 1px solid rgba(32,120,136,0.25);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--accent);
  flex-shrink: 0;
}

/* Capabilities grid */
.capabilities-section { padding: 96px 0; }

.capabilities-section .section-header { margin-bottom: 48px; }

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.capability-card {
  padding: 2rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-white);
  transition: var(--transition);
}

.capability-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}

.cap-icon {
  width: 44px; height: 44px;
  background: rgba(14,40,65,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.capability-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.capability-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Service CTA section */
.service-cta-section {
  background: var(--bg-main);
  border-top: 1px solid var(--border-light);
  padding: 80px 0;
  text-align: center;
}

.service-cta-section h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.service-cta-section p {
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Responsive for service pages */
@media (max-width: 1024px) {
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .sph-grid { grid-template-columns: 1fr; }
  .sph-visual { display: none; }
  .services-mega-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sph-title { font-size: 2.2rem; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .services-mega-grid { grid-template-columns: 1fr; }
  #header-cta-btn { margin-left: auto; }
}
