/* ===== ROOT & COLOR SCHEME ===== */
:root {
  --bg-primary: #060b17;
  --bg-surface: #0e1627;
  --accent-primary: #3a80f6;
  --accent-secondary: #00c4ff;
  --accent-glow: #8aefff;
  --text-primary: #e6ecff;
  --text-muted: #9aa4c2;
  --border-color: #1c2942;
  --success-color: #00d977;
}

/* ===== GLOBAL STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(58, 128, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(58, 128, 246, 0.8);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh);
  }
}

/* Replaced shimmer with neon dots blinking animation */
@keyframes neonBlink {
  0%,
  100% {
    opacity: 0;
    box-shadow: 0 0 5px rgba(58, 128, 246, 0);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 10px rgba(58, 128, 246, 0.8), 0 0 20px rgba(0, 196, 255, 0.5);
  }
}
/* ====== NAVBAR STYLING ====== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(14, 22, 39, 0.8); /* deep blue glass effect */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(58, 128, 246, 0.3);
  box-shadow: 0 0 25px rgba(58, 128, 246, 0.15);
  z-index: 1000;
  padding: 1rem 6%;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Navbar on scroll */
.navbar.scrolled {
  background: rgba(10, 16, 31, 0.95);
  box-shadow: 0 4px 25px rgba(0, 196, 255, 0.15);
}

/* Navbar inner container */
.navbar-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
  
}

.logo-img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(58, 128, 246, 0.6);
}

.logo-text {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-glow), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 196, 255, 0.3);
}

/* ===== NAV MENU ===== */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-menu a {
  position: relative;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 196, 255, 0.4);
}

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

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

/* ===== HAMBURGER (MOBILE) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Hamburger active animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ===== MOBILE MENU ===== */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    flex-direction: column;
    background: rgba(10, 16, 31, 0.98);
    width: 100%;
    height: calc(100vh - 80px);
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: left 0.4s ease;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu a {
    font-size: 1.3rem;
  }
}

/* ===== SMALL DEVICES ===== */
@media (max-width: 480px) {
  .logo-text {
    font-size: 1.5rem;
  }

  .logo-img {
    width: 55px;
    height: 55px;
  }
}


/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  left: -300px;
  top: 60px;
  width: 280px;
  height: calc(100vh - 60px);
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  z-index: 999;
  transition: left 0.3s ease;
  overflow-y: auto;
  box-shadow: inset -2px 0 15px rgba(58, 128, 246, 0.1);
}

.sidebar.active {
  left: 0;
}

.sidebar-menu {
  list-style: none;
  padding: 20px 0;
}

.sidebar-menu li {
  border-bottom: 1px solid var(--border-color);
}

.sidebar-menu a {
  display: block;
  padding: 15px 20px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.sidebar-menu a:hover {
  background: rgba(58, 128, 246, 0.1);
  color: var(--accent-secondary);
  padding-left: 30px;
  box-shadow: inset 3px 0 10px var(--accent-primary);
}

/* ===== MAIN CONTENT ===== */
main {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
}

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

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 600px;
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-surface));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  background: radial-gradient(circle at center, #020617 50%, #000814 100%);
}

#network-bg {
  width: 100%;
  height: 100%;
  display: block;
}


/* Replaced striped shimmer background with neon dots background */
.hero-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    /* Top region */
    radial-gradient(6px 6px at 10% 15%, rgba(58, 128, 246, 1) 3px, transparent 3px),
    radial-gradient(6px 6px at 25% 35%, rgba(0, 196, 255, 1) 3px, transparent 3px),
    radial-gradient(6px 6px at 40% 20%, rgba(138, 239, 255, 1) 3px, transparent 3px),
    radial-gradient(7px 7px at 60% 10%, rgba(58, 128, 246, 1) 3px, transparent 3px),
    radial-gradient(6px 6px at 75% 25%, rgba(0, 196, 255, 1) 3px, transparent 3px),
    radial-gradient(7px 7px at 90% 15%, rgba(138, 239, 255, 1) 3px, transparent 3px),

    /* Middle region */
    radial-gradient(7px 7px at 20% 50%, rgba(0, 196, 255, 1) 3px, transparent 3px),
    radial-gradient(6px 6px at 35% 60%, rgba(58, 128, 246, 1) 3px, transparent 3px),
    radial-gradient(6px 6px at 50% 40%, rgba(138, 239, 255, 1) 3px, transparent 3px),
    radial-gradient(7px 7px at 65% 50%, rgba(0, 196, 255, 1) 3px, transparent 3px),
    radial-gradient(6px 6px at 80% 55%, rgba(58, 128, 246, 1) 3px, transparent 3px),

    /* Bottom region */
    radial-gradient(6px 6px at 15% 80%, rgba(0, 196, 255, 1) 3px, transparent 3px),
    radial-gradient(7px 7px at 30% 90%, rgba(58, 128, 246, 1) 3px, transparent 3px),
    radial-gradient(6px 6px at 50% 85%, rgba(138, 239, 255, 1) 3px, transparent 3px),
    radial-gradient(7px 7px at 70% 75%, rgba(0, 196, 255, 1) 3px, transparent 3px),
    radial-gradient(6px 6px at 85% 90%, rgba(58, 128, 246, 1) 3px, transparent 3px);

  background-size: 100% 100%;
  background-position: 0 0;
  background-repeat: repeat;
  opacity: 1;
  filter: 
    drop-shadow(0 0 12px rgba(0, 196, 255, 0.9))
    drop-shadow(0 0 30px rgba(58, 128, 246, 0.9))
    brightness(1.4)
    saturate(1.6);
  animation: neonBlink 2.5s ease-in-out infinite alternate;
  z-index: 1;
}
@keyframes floatDots {
  0% { background-position: 0 0; }
  50% { background-position: 20px 30px; }
  100% { background-position: 0 0; }
}

.hero-bg {
  animation: 
    neonBlink 2.5s ease-in-out infinite alternate,
    floatDots 10s ease-in-out infinite;
}


.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 0.8s ease;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(58, 128, 246, 0.3);
}

.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 12px 35px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: 0 0 20px rgba(58, 128, 246, 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 196, 255, 0.8), 0 5px 20px rgba(58, 128, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-secondary);
  border: 2px solid var(--accent-secondary);
  box-shadow: inset 0 0 10px rgba(0, 196, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(0, 196, 255, 0.1);
  box-shadow: 0 0 25px rgba(0, 196, 255, 0.6), inset 0 0 10px rgba(0, 196, 255, 0.2);
}

/* ===== CARDS ===== */
.card {
  background: radial-gradient(circle at center, #020617 0%, #000814 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
  animation: fadeIn 0.6s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(58, 128, 246, 0.3), 0 0 30px rgba(58, 128, 246, 0.2);
}

.card h3 {
  color: var(--accent-secondary);
  margin-bottom: 12px;
  font-size: 20px;
}

.card p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

/* ===== SECTIONS ===== */
section {
  padding: 60px 0;
  background: radial-gradient(circle at center, #020617 0%, #000814 100%);
}

section h2 {
  font-size: 36px;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

section > .container > p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 16px;
}

.grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-primary);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.3s ease;
  font-family: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(58, 128, 246, 0.5);
}

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

/* ===== FOOTER ===== */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 20px;
  box-shadow: inset 0 10px 30px rgba(58, 128, 246, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  color: var(--accent-secondary);
  margin-bottom: 15px;
  font-size: 16px;
}

.footer-section p,
.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.8;
  transition: all 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-surface);
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 50px rgba(58, 128, 246, 0.5);
  animation: slideInRight 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--accent-secondary);
  transform: rotate(90deg);
}

/* ===== ACCORDION ===== */
.accordion-item {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.accordion-header {
  padding: 20px;
  background: var(--bg-surface);
  cursor: pointer;
  user-select: none;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  margin-bottom: 10px;
}

.accordion-header:hover {
  background: rgba(58, 128, 246, 0.1);
  border-color: var(--accent-primary);
}

.accordion-icon {
  transition: transform 0.3s ease;
  color: var(--accent-secondary);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 20px;
  background: rgba(58, 128, 246, 0.05);
  color: var(--text-muted);
  border-left: 3px solid var(--accent-primary);
}

.accordion-item.active .accordion-content {
  display: block;
  animation: slideInLeft 0.3s ease;
}

/* ===== GALLERY ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: 32px;
  }

  section {
    padding: 40px 0;
  }

  section h2 {
    font-size: 28px;
  }

  .grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .card {
    padding: 15px;
  }

  section h2 {
    font-size: 22px;
  }
}