/* CBNET.CO.RW - Professional ISP Website Styles */
:root {
  --primary: #0a1628;
  --primary-light: #132337;
  --accent: #00a8e8;          /* Matches logo blue */
  --accent-orange: #e85d04;   /* Matches logo orange signal */
  --accent-dark: #0077b6;
  --secondary: #1e3a5f;
  --text: #e8f0f8;
  --text-muted: #a0b4c8;
  --white: #ffffff;
  --card-bg: rgba(19, 35, 55, 0.85);
  --gradient: linear-gradient(135deg, #0a1628 0%, #1a3a5c 50%, #0d2137 100%);
  --gradient-accent: linear-gradient(135deg, #00a8e8 0%, #0077b6 100%);
  --shadow: 0 10px 40px rgba(0, 168, 232, 0.15);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== HEADER & NAV ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 168, 232, 0.1);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

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

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

.logo-text {
  display: none; /* Using official logo image instead */
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: px 0;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--primary);
  box-shadow: 0 4px 20px rgba(0, 168, 232, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 168, 232, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Request a Service button - bordered, no fill */
.btn-request {
  background: transparent !important;
  color: var(--accent) !important;
  border: 2px solid var(--accent) !important;
  box-shadow: none !important;
}

.btn-request:hover {
  background: var(--accent) !important;
  color: var(--primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 168, 232, 0.35) !important;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.875rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--gradient);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

/* Wireless signal animation */
.wireless-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(0, 168, 232, 0.3);
  border-radius: 50%;
  animation: pulse-wave 4s ease-out infinite;
}

.wave:nth-child(1) { width: 150px; height: 150px; animation-delay: 0s; }
.wave:nth-child(2) { width: 300px; height: 300px; animation-delay: 0.8s; }
.wave:nth-child(3) { width: 450px; height: 450px; animation-delay: 1.6s; }
.wave:nth-child(4) { width: 600px; height: 600px; animation-delay: 2.4s; }
.wave:nth-child(5) { width: 750px; height: 750px; animation-delay: 3.2s; }

@keyframes pulse-wave {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.8;
    border-color: rgba(0, 168, 232, 0.6);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
    border-color: rgba(0, 168, 232, 0);
  }
}

/* Network nodes */
.network-nodes {
  position: absolute;
  inset: 0;
}

.node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
  animation: float 6s ease-in-out infinite;
}

.node:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.node:nth-child(2) { top: 30%; left: 80%; animation-delay: 1s; }
.node:nth-child(3) { top: 70%; left: 15%; animation-delay: 2s; }
.node:nth-child(4) { top: 60%; left: 85%; animation-delay: 0.5s; }
.node:nth-child(5) { top: 40%; left: 50%; animation-delay: 1.5s; }
.node:nth-child(6) { top: 80%; left: 40%; animation-delay: 2.5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-20px); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 168, 232, 0.15);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 168, 232, 0.3);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero h1 span {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.stat-item h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* ========== SECTIONS ========== */
.section {
  padding: 90px 0;
}

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

.section-header .subtitle {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

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

/* Vision Mission */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.vm-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 168, 232, 0.12);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.vm-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-accent);
}

.vm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 168, 232, 0.3);
}

.vm-card i {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.vm-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.vm-card p {
  color: var(--text-muted);
}

/* Products / Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 168, 232, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 168, 232, 0.35);
}

.service-img {
  height: 180px;
  background: linear-gradient(135deg, #0d2137, #1a3a5c);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-img i {
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.9;
  z-index: 1;
}

.service-img::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(0, 168, 232, 0.15) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.service-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-body h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex: 1;
}

/* Why Choose Us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 168, 232, 0.1);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 168, 232, 0.3);
  box-shadow: var(--shadow);
}

.why-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: rgba(0, 168, 232, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--accent);
}

.why-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Other Services */
.other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.other-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 168, 232, 0.1);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
}

.other-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(0, 168, 232, 0.2);
}

.other-card i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.other-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 100%);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  border: 1px solid rgba(0, 168, 232, 0.15);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 168, 232, 0.1) 0%, transparent 70%);
}

.newsletter h2 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.newsletter p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 28px;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  border-radius: 50px;
  border: 1px solid rgba(0, 168, 232, 0.3);
  background: rgba(10, 22, 40, 0.6);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.2);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

/* ========== ABOUT PAGE ========== */
.page-hero {
  padding: 160px 0 80px;
  background: var(--gradient);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.value-card {
  background: var(--card-bg);
  border: 1px solid rgba(0, 168, 232, 0.12);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.value-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.value-card i {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 14px;
}

.value-card h4 {
  margin-bottom: 8px;
}

.value-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 168, 232, 0.1);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 4px;
}

.contact-item h4 {
  margin-bottom: 4px;
}

.contact-item p,
.contact-item a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 168, 232, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

.contact-form-box {
  background: var(--card-bg);
  border: 1px solid rgba(0, 168, 232, 0.12);
  border-radius: var(--radius);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid rgba(0, 168, 232, 0.25);
  background: rgba(10, 22, 40, 0.5);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.15);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

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

/* ========== FOOTER ========== */
.footer {
  background: #060e1a;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(0, 168, 232, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand .logo {
  margin-bottom: 18px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-light);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 24px;
    transition: right 0.3s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-toggle {
    display: block;
    z-index: 1001;
  }

  .about-content,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .hero-buttons {
    flex-direction: column;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    width: 100%;
  }
}

/* Utility */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.pt-0 { padding-top: 0; }

/* ========== BACK TO TOP ========== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(0, 168, 232, 0.4);
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}
