:root {
  --primary: #00b4ff;
  --bg-dark: #0b1018;
  --bg-light: #f6f9fc;
  --text-light: #e8ecf3;
  --text-dark: #212529;
  --muted-light: #9aa2b2;
  --muted-dark: #6c757d;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}

/* Navbar */
.navbar {
  height: 72px;
  background: rgba(12,17,25,0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: background 0.4s;
  position: relative;
  z-index: 10;
}

.navbar-light-mode {
  background: rgba(255,255,255,0.95);
  color: var(--text-dark);
}

.navbar-brand {
  color: var(--primary) !important;
  font-family: "Orbitron", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: 1.5rem;
  font-style: normal;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  color: var(--text-light) !important;
  font-weight: 600;
  margin-left: 1.2rem;
  transition: color 0.3s;
}

.navbar-light-mode .navbar-nav .nav-link {
  color: var(--text-dark) !important;
}

.navbar-nav .nav-link:hover {
  color: var(--primary) !important;
}

.dropdown-menu .dropdown-item:active {
  background-color: var(--primary);
}

#themeToggle {
  font-size: 1.3rem;
  cursor: pointer;
  margin-left: 1.5rem;
}

/* Hero */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  background: linear-gradient(180deg, #0b1018 0%, #111822 100%);
  position: relative;
  overflow: hidden;
  transition: background 0.4s, color 0.4s;
}

.hero.light-mode {
  background: linear-gradient(180deg, #f6f9fc 0%, #e9eef4 100%);
  color: var(--text-dark);
}

.hero h1 {
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero span#typed {
  color: var(--primary);
  border-right: 3px solid var(--primary);
}

.hero p {
  color: var(--muted-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

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

.scroll-down {
  position: absolute;
  bottom: 25px;
  color: var(--primary);
  font-size: 2rem;
  animation: bounce 2s infinite;
  cursor: pointer;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

#networkCanvas {
  position: absolute;
  top:0; left:0;
  width: 100%;
  height: 100%;
  z-index:1;
}

/* Services */
section { 
  padding: 5rem 0; 
  transition: background 0.4s, color 0.4s;
}

section { 
  padding:5rem 0; 
  transition: background 0.4s, color 0.4s; 
}
  
 .section-title { 
  color: var(--primary); 
  margin-bottom:2rem; 
  font-weight:700; 
}
  
.service-image { 
  width:100%;
  height:250px;
  background:#222;
  border-radius:1rem;
  display:flex;
  align-items:center;
  justify-content:center;
  color: #555;
  font-weight:700;
  font-size:1.2rem;
  margin-bottom:2rem;
}

/* CTA */
.cta { 
  background: var(--primary); 
  color:#fff; 
  padding:3rem 2rem; 
  text-align:center; 
  border-radius:1rem; 
}

.cta h3 { 
  font-weight:700; 
  margin-bottom:1rem; 
}

.cta p { 
  margin-bottom:2rem; 
}

.cta .btn-primary { 
  background-color:#fff; 
  color: var(--primary); 
  border:none; 
  font-weight:600; 
}

.cta .btn-primary:hover { 
  background-color:#e6e6e6; 
}

/*.services {
  height: 100vh;
   display: flex;
  justify-content: center;
  align-items: center;   
  transition: background 0.4s, color 0.4s;
}*/

.service-card {
  border: none;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.reveal {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 8px 25px rgba(0,180,255,0.15);
}

.service-card h5 { 
  color: var(--primary); 
  margin-bottom: 0.5rem; 
  font-weight: 600; 
}

.service-card p { 
  color: var(--muted-light);
}

/* Contact */
#contact {
  min-height: calc(100vh - 60px); /* 100% viewport height minus footer height */
  overflow-y: auto;
  background: rgba(255,255,255,0.02); 
  transition: background 0.4s, color 0.4s;
}

/*
form {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0,180,255,0.1);
  transition: background 0.4s, color 0.4s;
}

.form-floating label { 
  color: var(--muted-light); 
}
*/

.form-control {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(0,180,255,0.15);
}

.btn-primary { 
  background-color: var(--primary); 
  border: none; 
  font-weight: 600; 
}

.btn-primary:hover { 
  background-color: #0098da;
}

.btn-outline-learn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--primary);
  border-radius: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: .3px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-outline-learn:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,120,215,0.25);
}

/* Light mode */
body.light-mode { 
  background: var(--bg-light); 
  color: var(--text-dark); 
}

body.light-mode .hero { 
  background: linear-gradient(180deg, #f6f9fc 0%, #e9eef4 100%); 
  color: var(--text-dark); 
}

body.light-mode .navbar { 
  background: rgba(255,255,255,0.95); 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}

body.light-mode .service-card { 
  background: #fff; 
  color: var(--text-dark); 
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
}

body.light-mode .service-card p { 
  color: var(--muted-dark); 
}

body.light-mode form { 
  background: #fff; 
  box-shadow: 0 0 15px rgba(0,0,0,0.05); 
}

body.light-mode .form-control { 
  background: #fff; 
  border: 1px solid rgba(0,0,0,0.1); 
  color: var(--text-dark); 
}

/* Lead Section */
.lead-section {
  padding: 0rem 0 4rem;
  display: flex;
  align-items: center;
}

.lead-text h2 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

.lead-text p {
  color: var(--muted-light);
  line-height: 1.7;
}

.lead-image {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.lead-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  animation: drift 20s linear infinite;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 100px 100px; }
}

.lead-image span {
  position: relative;
  z-index: 1;
  color: #777;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: 600;
}

.service-block {
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.3s ease;
}

.service-block:hover {
  background: linear-gradient(145deg, rgba(0,180,255,0.15), rgba(255,255,255,0.05));
  transform: translateY(-5px);
}

.service-block i { 
  font-size: 2rem; 
  color: var(--primary);
  margin-bottom: 1rem;
  display:block;
}

.service-block h5 { 
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-block p { 
  font-size: 0.9rem;
  color: #cfd8e3;
}