:root {
  --accent: #00ffff;
  --bg-dark: #000010;
  --text: #cfeeff;
  --panel-bg: rgba(0, 20, 40, 0.75);
}

/* Reset + base */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Orbitron', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #2e003e 0%, #1a0023 100%);
  overflow-x: hidden;
  transition: background 0.5s ease-in-out;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 10, 20, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 40px;
  max-width: 1200px;
  margin: auto;
}

.logo { width: 50px; border-radius: 50%; }

h1 {
  color: var(--accent);
  font-size: 1.4rem;
  flex: 1;
  margin-left: 10px;
}

/* Navigation */
nav a {
  color: #bce8ff;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 600;
  position: relative;
  transition: color 0.3s;
}

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

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

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

/* Main layout */
main { position: relative; top: 90px; }

/* --- Section Styling with Side Transitions --- */
section {
  padding: 120px 10% 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.9s ease-out, transform 0.9s cubic-bezier(0.45, 0, 0.55, 1);
  background: linear-gradient(180deg, #2e003e 0%, #1a0023 100%) !important;
  color: #ffffff;
  scroll-margin-top: 100px;
}

/* Alternate direction for variety */
section:nth-of-type(even) {
  transform: translateX(80px);
}

/* When visible */
section.visible {
  opacity: 1;
  transform: translateX(0);
}


/* Text container alignment */
.content {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

/* Headings */
h2 {
  color: var(--accent);
  font-size: 2.2rem;
  margin-bottom: 20px;
  text-align: center;
}

/* Cards */
.cards {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.card {
  background: var(--panel-bg);
  border: 1px solid rgba(0, 255, 255, 0.3);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
  flex: 1 1 250px;
}

/* Accordion */
.accordion { display: grid; gap: 15px; margin-top: 20px; }

.accordion-item {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,255,255,0.1);
}

.accordion-toggle {
  width: 100%;
  background: rgba(0, 15, 30, 0.8);
  color: var(--text);
  text-align: left;
  padding: 15px 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  font-size: 1rem;
  transition: background 0.3s;
}

.accordion-toggle:hover { background: rgba(0,255,255,0.05); }

.chev { transition: transform 0.3s ease; }
.accordion-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  background: rgba(0,20,40,0.7);
  transition: max-height 0.5s ease, padding 0.3s ease;
}

.accordion-panel.open {
  max-height: 4000px;
  padding: 15px 20px;
}

.panel-inner p { margin-bottom: 12px; line-height: 1.6; }

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: rgba(0, 10, 20, 0.8);
  color: #99dfff;
  font-size: 0.9rem;
  padding: 10px;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .content { padding: 0 10px; text-align: center; }
  .cards { flex-direction: column; align-items: center; }
}
/* Prevent body class backgrounds from overriding sections */
body[class^="bg-"] section {
  background: linear-gradient(180deg, #2e003e 0%, #1a0023 100%) !important;
}
section {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}


