/* ==========================================================================
   TAG TEC Sudan (tagtecsudan.com) — Stylesheet
   Modern Glassmorphism, Dark Cyber-Teal Palette & Smooth Motion
   ========================================================================== */

:root {
  --bg-deep: #060e17;
  --bg-surface: #0b1928;
  --bg-card: rgba(13, 29, 46, 0.68);
  --border-glass: rgba(45, 212, 191, 0.22);
  --cyan-glow: #00f0ff;
  --teal-primary: #2dd4bf;
  --teal-dark: #14b8a6;
  --gold-accent: #f59e0b;
  --text-main: #f1f7fa;
  --text-muted: #94adb8;
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 18% 12%, rgba(0, 240, 255, 0.08), transparent 42%),
              radial-gradient(circle at 82% 65%, rgba(245, 158, 11, 0.05), transparent 45%),
              var(--bg-deep);
}

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

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------------- Sticky Glass Navbar ---------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.35s ease, padding 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(6, 14, 23, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.75rem 0;
  border-bottom-color: rgba(45, 212, 191, 0.16);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.25));
  transition: transform 0.3s var(--transition-smooth);
}

.brand:hover img {
  transform: scale(1.05);
}

.brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: var(--text-main);
}

.brand-text span {
  color: var(--teal-primary);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  display: block;
  margin-top: -4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--cyan-glow);
  transition: width 0.3s var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.14);
  border: 1px solid rgba(45, 212, 191, 0.45);
  color: var(--cyan-glow) !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.btn-nav::after {
  display: none !important;
}

.btn-nav:hover {
  background: var(--teal-primary);
  color: #041217 !important;
  box-shadow: 0 0 22px rgba(45, 212, 191, 0.45);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* ---------------- Hero Section ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 4.5rem;
  overflow: hidden;
}

/* Optional subtle backdrop blend if hero-concept.jpg exists */
.hero-bg-image {
  position: absolute;
  inset: 0;
  background: url('../assets/hero-concept.jpg') center/cover no-repeat;
  opacity: 0.18;
  filter: saturate(1.15) contrast(1.08);
  pointer-events: none;
  z-index: 0;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 14, 23, 0.94) 0%, rgba(6, 14, 23, 0.72) 55%, rgba(6, 14, 23, 0.85) 100%),
              linear-gradient(180deg, rgba(6, 14, 23, 0.5) 0%, transparent 35%, var(--bg-deep) 100%);
  pointer-events: none;
  z-index: 1;
}

#fiberCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.28);
  color: var(--cyan-glow);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
}

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

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.5; }
}

.hero-logo-mark {
  width: 108px;
  margin-bottom: 1.1rem;
  filter: drop-shadow(0 8px 25px rgba(0, 240, 255, 0.25));
  animation: floatSlow 6s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero h1 .gradient-text {
  background: linear-gradient(95deg, #ffffff 10%, #5eead4 55%, #00f0ff 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.1rem;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.92rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2dd4bf 0%, #00d2ff 100%);
  color: #04131a;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.28s var(--transition-smooth), box-shadow 0.28s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 36px rgba(0, 240, 255, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  background: rgba(15, 33, 52, 0.65);
  border: 1px solid rgba(148, 173, 184, 0.3);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.98rem;
  backdrop-filter: blur(8px);
  transition: all 0.28s ease;
}

.btn-secondary:hover {
  border-color: var(--teal-primary);
  background: rgba(45, 212, 191, 0.1);
}

/* ---------------- Floating Telemetry Glass Card ---------------- */
.telemetry-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  animation: floatCard 7s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

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

.glass-panel {
  background: linear-gradient(145deg, rgba(16, 37, 58, 0.78), rgba(8, 20, 33, 0.86));
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #e2f1f5;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.window-dots span:nth-child(1) { background: #f59e0b; }
.window-dots span:nth-child(2) { background: #2dd4bf; }
.window-dots span:nth-child(3) { background: #38bdf8; }

.gauges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.gauge-item {
  background: rgba(6, 15, 26, 0.55);
  border: 1px solid rgba(45, 212, 191, 0.14);
  border-radius: 14px;
  padding: 0.85rem 0.5rem;
  text-align: center;
}

.gauge-ring {
  position: relative;
  width: 62px;
  height: 62px;
  margin: 0 auto 0.45rem;
}

.gauge-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-ring circle {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
}

.gauge-bg {
  stroke: rgba(148, 173, 184, 0.16);
}

.gauge-fill {
  stroke: var(--cyan-glow);
  stroke-dasharray: 164;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 1.4s var(--transition-smooth);
}

.gauge-fill.gold {
  stroke: var(--gold-accent);
  stroke-dashoffset: 68;
}

.gauge-fill.teal {
  stroke: var(--teal-primary);
  stroke-dashoffset: 28;
}

.gauge-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.gauge-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.infra-metrics {
  border-top: 1px solid rgba(148, 173, 184, 0.14);
  padding-top: 1.1rem;
}

.infra-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.65rem;
}

.infra-header span:first-child {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbdce4;
}

.infra-boost {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cyan-glow);
}

.bar-group {
  margin-bottom: 0.6rem;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.bar-track {
  height: 6px;
  background: rgba(148, 173, 184, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.bar-progress {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-primary), var(--cyan-glow));
  animation: shimmerBar 3.2s ease-in-out infinite alternate;
}

@keyframes shimmerBar {
  0% { filter: brightness(0.95); }
  100% { filter: brightness(1.25); }
}

.mini-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.35rem;
  border-radius: 16px;
  background: rgba(11, 27, 43, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.28);
  backdrop-filter: blur(14px);
}

.status-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.status-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(245, 158, 11, 0.14);
  color: var(--gold-accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.status-left h4 {
  font-size: 0.88rem;
  font-weight: 700;
}

.status-left p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.sparkline {
  width: 84px;
  height: 32px;
}

/* ---------------- Section Scaffolding ---------------- */
section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  color: var(--teal-primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.6rem;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ---------------- Solutions Grid ---------------- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.1rem 1.85rem;
  transition: transform 0.35s var(--transition-smooth), border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

.solution-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan-glow), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(45, 212, 191, 0.12);
}

.solution-card:hover::before {
  opacity: 1;
}

.icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.3);
  display: grid;
  place-items: center;
  margin-bottom: 1.35rem;
  color: var(--cyan-glow);
}

.solution-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.solution-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.35rem;
}

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

.feature-list li {
  font-size: 0.86rem;
  color: #cde0e8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-primary);
}

/* ---------------- Impact Counters ---------------- */
.impact-band {
  background: linear-gradient(180deg, rgba(11, 25, 40, 0.45), rgba(13, 33, 52, 0.75), rgba(11, 25, 40, 0.45));
  border-top: 1px solid rgba(45, 212, 191, 0.15);
  border-bottom: 1px solid rgba(45, 212, 191, 0.15);
}

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

.stat-item {
  padding: 1.25rem;
}

.stat-number {
  font-size: clamp(2.2rem, 3.6vw, 3.1rem);
  font-weight: 800;
  color: var(--cyan-glow);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------------- Contact Section ---------------- */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(16px);
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 0.85rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  color: #d6e8ef;
  font-size: 0.95rem;
}

.contact-detail span.badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.25);
  display: grid;
  place-items: center;
  color: var(--cyan-glow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

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

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.input-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbdce4;
}

.input-group input,
.input-group select,
.input-group textarea {
  background: rgba(6, 14, 23, 0.75);
  border: 1px solid rgba(148, 173, 184, 0.25);
  border-radius: 12px;
  padding: 0.82rem 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--cyan-glow);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.12);
}

.form-feedback {
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: rgba(45, 212, 191, 0.15);
  border: 1px solid rgba(45, 212, 191, 0.45);
  color: #67f3e0;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-feedback.visible {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* ---------------- Footer ---------------- */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid rgba(148, 173, 184, 0.12);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------------- Scroll Reveal Motion ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--transition-smooth), transform 0.75s var(--transition-smooth);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* ---------------- Responsive Breakpoints ---------------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-logo-mark {
    margin-left: auto;
    margin-right: auto;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-card {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 14, 23, 0.96);
    backdrop-filter: blur(18px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border-glass);
    display: none;
  }
  .nav-links.open {
    display: flex;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
