:root {
  --bg-primary:  #0a0e1a;
  --bg-secondary: #0f1628;
  --bg-card: rgba(255, 255, 255, 0.04);
  --accent: #18aee1;
  --accent-hover: #1493be;
  --accent-glow: rgba(24, 174, 225, 0.25);
  --text-primary: #e8eaed;
  --text-secondary: #8b949e;
  --border: rgba(255, 255, 255, 0.08);
  --font: 'Inter', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font);
  overflow-x: hidden;
}

p { line-height: 1.75; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
}

/* ---- Navbar ---- */
#mainNav {
  background-color: rgba(10, 14, 26, 0.88) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease, padding 0.3s ease;
  opacity: 1 !important;
}

#mainNav .navbar-brand { color: #fff; }
#mainNav .navbar-brand:hover { color: var(--accent); }

#mainNav .navbar-nav .nav-item .nav-link {
  color: var(--text-secondary) !important;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 0.75em 1em !important;
  transition: color 0.2s;
}
#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
  color: var(--accent) !important;
}

#mainNav .navbar-toggler {
  background-color: var(--accent);
  border: 0;
  color: #fff;
  font-size: 12px;
  padding: 10px 14px;
}

#mainNav.navbar-shrink {
  background-color: rgba(10, 14, 26, 0.97) !important;
  opacity: 1 !important;
}

/* ---- Hero ---- */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-primary);
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Subtle radial vignette so text stays readable */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10,14,26,0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
}

.hero-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-heading {
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.hero-heading .accent { color: var(--accent); }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* ---- Buttons ---- */
.btn {
  font-family: var(--font);
  font-weight: 600;
}

.btn-primary {
  background-color: var(--accent) !important;
  border-color: var(--accent) !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  box-shadow: 0 0 20px var(--accent-glow) !important;
  color: #fff;
}

.btn-xl {
  padding: 14px 38px;
  font-size: 0.95rem;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

/* ---- Section common ---- */
section { padding: 90px 0; }

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.section-subheading {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 3rem;
  font-style: normal;
  letter-spacing: 0.5px;
}

/* ---- Services ---- */
#services { background-color: var(--bg-secondary); }

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem 2rem;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  height: 100%;
  text-align: center;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 32px var(--accent-glow);
  transform: translateY(-5px);
}

.service-icon {
  width: 66px;
  height: 66px;
  background: rgba(24, 174, 225, 0.08);
  border: 1px solid rgba(24, 174, 225, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--accent);
  font-size: 1.5rem;
  transition: background 0.3s, border-color 0.3s;
}

.service-card:hover .service-icon {
  background: rgba(24, 174, 225, 0.15);
  border-color: var(--accent);
}

.service-card h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-cta {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
}

.contact-prompt {
  color: var(--text-secondary) !important;
  font-size: 0.93rem;
  transition: color 0.2s;
  display: inline-block;
}

.contact-prompt:hover { color: var(--accent) !important; }

/* ---- About ---- */
#about { background-color: var(--bg-primary); }

.stats-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin: 0 auto 3rem;
  flex-wrap: wrap;
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

.about-text {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.85;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1.25rem;
}

/* ---- Contact ---- */
#contact {
  background-color: var(--bg-secondary);
  background-image: none !important;
}

#contact .section-heading { color: var(--text-primary); }

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2.5rem 2.5rem;
  display: inline-block;
  width: 100%;
  max-width: 500px;
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:first-child { padding-top: 0; }
.contact-item:last-child  { border-bottom: none; padding-bottom: 0; }

.contact-icon {
  color: var(--accent);
  font-size: 1.2rem;
  width: 26px;
  text-align: center;
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.2rem;
}

.contact-item a,
.contact-item span {
  color: var(--text-primary);
  font-size: 0.97rem;
  text-decoration: none;
}

.contact-item a:hover { color: var(--accent); }

/* ---- Footer ---- */
footer {
  background-color: #060810;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

footer span.copyright {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 2.5;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-items: center;
  line-height: 2.5;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ---- Modals ---- */
.modern-modal {
  background-color: var(--bg-secondary) !important;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  color: var(--text-primary);
}

.modern-modal .modal-header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

.modern-modal .modal-title {
  color: var(--text-primary);
  font-size: 1.4rem;
}

.modern-modal .close {
  color: var(--text-secondary);
  opacity: 1;
  font-size: 1.75rem;
  line-height: 1;
}

.modern-modal .close:hover { color: var(--text-primary); }

.modern-modal .modal-body {
  padding: 2rem;
  color: var(--text-secondary);
  line-height: 1.85;
}

.modern-modal .modal-body p { margin-bottom: 1.25rem; }
.modern-modal .modal-body p:last-child { margin-bottom: 0; }

.modern-modal .modal-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
}

/* ---- Scroll fade-in ---- */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .stats-row { gap: 2rem; }

  footer .col-md-4,
  footer .col-md-8 { text-align: center; }

  .footer-links {
    justify-content: center;
    margin-top: 0.5rem;
  }

  .contact-card { padding: 1.75rem 1.5rem; }
}
