/* === GLOBAL STYLES === */
:root {
  --bg-dark: #05051a;
  --bg-navy: #0a0a2e;
  --bg-deep: #0d0d3a;
  --purple: #6c3fe5;
  --purple-light: #8b5cf6;
  --teal: #00e5c8;
  --teal-dark: #00b3a0;
  --white: #ffffff;
  --gray: #9ca3af;
  --text: #e2e8f0;
  --card-bg: #0f0f3d;
  --border: rgba(108,63,229,0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: rgba(5,5,26,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: rgba(5,5,26,0.98);
  box-shadow: 0 2px 20px rgba(108,63,229,0.2);
}

.nav-brand {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-icon { color: var(--purple); font-size: 1.5rem; }

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--purple);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* DROPDOWN */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 130%;
  left: 0;
  background: rgba(10,10,46,0.97);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 160px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 100;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.9rem;
  color: var(--gray);
}
.dropdown-menu a:hover { color: var(--teal); background: rgba(0,229,200,0.05); }
.dropdown-menu a::after { display: none; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 25px; height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
}
.btn-primary:hover { background: var(--purple-light); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(108,63,229,0.4); }

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

.btn-teal {
  background: var(--teal);
  color: #000;
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); }

.btn-dark-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.85rem;
}
.btn-dark-outline:hover { border-color: var(--teal); color: var(--teal); }

.btn-sm { padding: 7px 16px; font-size: 0.8rem; }

/* FOOTER */
.footer {
  background: #030315;
  border-top: 1px solid var(--border);
  padding: 50px 40px 20px;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 30px;
}
.footer-brand {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-brand p { font-size: 0.9rem; color: var(--gray); }
.footer-links, .footer-social { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4, .footer-social h4 { color: var(--purple-light); font-size: 1rem; margin-bottom: 4px; }
.footer-links a { color: var(--gray); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal); }
.social-icons { display: flex; gap: 16px; }
.social-icons a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  text-decoration: none;
  transition: all 0.2s;
}
.social-icons a:hover { border-color: var(--teal); color: var(--teal); background: rgba(0,229,200,0.1); }
.footer-bottom { text-align: center; color: var(--gray); font-size: 0.85rem; padding-top: 20px; border-top: 1px solid var(--border); max-width: 1100px; margin: 0 auto; }

/* SCROLL TOP */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  background: var(--purple);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 500;
}
.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--purple-light); transform: translateY(-3px); }

/* SECTION TITLE */
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  margin-bottom: 20px;
  color: var(--white);
  letter-spacing: 3px;
}

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

.teal-line {
  display: inline-block;
  width: 40px; height: 2px;
  background: var(--teal);
  vertical-align: middle;
  margin-left: 12px;
}

.teal-title {
  color: var(--teal);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .nav-links {
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: rgba(5,5,26,0.98);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s;
    border-bottom: 1px solid var(--border);
    pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 12px 20px; font-size: 1.1rem; }
  .hamburger { display: flex; }
  .dropdown-menu { position: static; opacity: 1; pointer-events: all; transform: none; border: none; background: rgba(255,255,255,0.05); }
  .footer-content { grid-template-columns: 1fr; gap: 24px; }
}
