:root {
  --primary: #2196f3;
  --primary-dark: #0d47a1;
  --secondary: #1976d2;
  --bg: #07111f;
  --surface: #0f1724;
  --surface2: #162235;
  --border: #23344d;
  --text: #eaf4ff;
  --muted: #8aa4c2;
  --accent: #4fc3f7;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 3px;
}

/* ── Landing Page ── */
#landingPage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 70% 30%,
    #0b1f38 0%,
    #06101d 60%,
    #000 100%
  );
}

.landing-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ls1, .ls2, .ls3 {
  position: absolute;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.ls1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #2196f320, transparent 70%);
  top: -200px;
  right: -150px;
  animation-delay: 0s;
}

.ls2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #1976d220, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation-delay: 2s;
}

.ls3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #4fc3f715, transparent 70%);
  top: 50%;
  right: 18%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.landing-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 650px;
  animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-badge {
  display: inline-block;
  background: rgba(33, 150, 243, 0.1);
  border: 1px solid #2196f360;
  color: var(--accent);
  font-size: 12px;
  padding: 5px 18px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.landing-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 18px;
  line-height: 1.15;
}

.landing-title span {
  background: linear-gradient(90deg, #2196f3, #4fc3f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-sub {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.landing-cta {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 17px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 30px #2196f340;
}

.landing-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 50px #2196f360;
}

/* ── Main App ── */
#mainApp {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  animation: fadeUp 0.5s ease both;
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--accent);
  text-align: center;
  padding: 22px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 14px;
  text-shadow: 0 0 20px #4fc3f740;
}

.menu {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 12px 0;
}

.menu-link {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 22px;
  border-radius: 50px;
  transition: all 0.25s;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.menu-link:hover {
  color: var(--accent);
  background: rgba(33, 150, 243, 0.08);
}

.active-menu {
  background: linear-gradient(135deg, #2196f320, #1976d220);
  color: var(--accent) !important;
  border: 1px solid #2196f340;
}

main { flex: 1; }

.section {
  display: none;
  padding: 30px 4%;
}

.section.active {
  display: block;
  animation: fadeUp 0.4s ease both;
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 30px;
  border-radius: 16px;
  margin-bottom: 24px;
  transition: border-color 0.3s;
}

.card:hover {
  border-color: #2196f330;
}

.card h2,
.card h3 {
  color: var(--accent);
  margin-bottom: 14px;
}

.card p {
  color: var(--muted);
  line-height: 1.7;
}

/* ── About ── */
.about-container {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-container img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 25px #2196f330;
}

.about-container p {
  color: var(--text);
  margin: 7px 0;
  font-size: 15px;
}

.about-container strong {
  color: var(--accent);
}

/* ── Activities Layout ── */
.activities-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Sidebar ── */
.sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 16px;
  position: sticky;
  top: 70px;
}

.sidebar-title {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Folder buttons */
.folder {
  background: var(--surface2);
  border-left: 4px solid var(--primary);
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
  transition: background 0.2s, transform 0.15s;
}

.folder:hover {
  background: #1d2d45;
  transform: translateX(4px);
}

/* Activity lists */
.folder-list {
  list-style: none;
  padding: 0 0 0 10px;
  margin: 0 0 4px;
}

.folder-list li {
  margin: 4px 0;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--muted);
  transition: all 0.2s;
}

.folder-list li:hover {
  background: rgba(33, 150, 243, 0.08);
  color: var(--accent);
  transform: translateX(4px);
}

.hidden {
  display: none !important;
}

/* ── Output ── */
#output {
  background: #06101d;
  border: 1px solid #1e3552;
  color: var(--accent);
  padding: 24px;
  border-radius: 12px;
  min-height: 130px;
  font-family: 'Courier New', monospace;
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.7;
  transition: border-color 0.3s;
}

#output:not(:empty) {
  border-color: #2196f330;
}

#dynamicList {
  padding-left: 20px;
  margin-top: 12px;
  color: var(--text);
}

#dynamicList li {
  margin-bottom: 6px;
  font-size: 14px;
}

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  padding: 18px;
  font-size: 13px;
}

/* ── Inline Buttons ── */
.act-btn {
  background: linear-gradient(135deg, #2196f3, #1976d2);
  color: white;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin: 5px 4px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 12px #2196f325;
}

.act-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px #2196f350;
}

.act-btn.secondary {
  background: var(--surface2);
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--muted);
}

.act-input {
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin: 4px 0;
  outline: none;
  transition: border-color 0.2s;
}

.act-input:focus {
  border-color: var(--primary);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .activities-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .landing-title {
    font-size: 36px;
  }

  .about-container {
    flex-direction: column;
    text-align: center;
  }
}