:root {
  --bg-dark: #000000;
  --bg-panel: rgba(93,22,198,0.2);
  --text-light: #ffffff;
  --accent: #5d16c6;
  --glow-rgba: 93,22,198;
}

/* Reset / basics */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; background: var(--bg-dark); color: var(--text-light); line-height: 1.45; }
.wrap { width: 92%; max-width: 1100px; margin: 0 auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0,0,0,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(8px);
}
.site-header .wrap { display: flex; align-items: center; gap: 1rem; padding: 0.9rem 0; }
.logo { font-weight: 700; font-size: 1.6rem; letter-spacing: 1px; margin-left: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.site-logo { height: 36px; }

/* Hamburger menu */
.menu-btn {
  width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: rgba(93,22,198,0.2); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn:focus { outline: 2px solid rgba(93,22,198,0.3); }

/* Dropdown nav */
.dropdown {
  display: flex; flex-direction: column; gap: 0.15rem; padding: 0.6rem;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.dropdown.open { max-height: 500px; opacity: 1; }
.dropdown .nav-link {
  padding: 0.6rem 0.9rem; border-radius: 8px;
  color: var(--text-light); font-weight: 600; text-decoration: none;
  background: rgba(93,22,198,0.2);
}
.dropdown .nav-link:hover { background: rgba(93,22,198,0.4); }

/* Panels / cards */
.panel { margin: 1.25rem 0; padding: 1.2rem; border-radius: 14px; border: 1px solid rgba(255,255,255,0.05); background: var(--bg-panel); backdrop-filter: blur(6px); }
.about h2 { margin-top: 0; margin-bottom: 0.6rem; font-size: 1.55rem; color: var(--accent); }

.cards, .projects-cards { padding: 1rem 0; display: flex; flex-direction: column; gap: 1.6rem; }
.card { padding: 1.8rem; border-radius: 14px; background: rgba(93,22,198,0.25); min-height: 140px;
  display: flex; flex-direction: column; justify-content: center; color: var(--text-light);
  border: 1px solid rgba(255,255,255,0.05); transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease; opacity: 0.9; text-decoration: none;
}
.card h3 { margin: 0 0 0.45rem 0; font-size: 1.2rem; }
.card p, .card .teaser { margin: 0; color: rgba(255,255,255,0.85); }

.card:hover, .interactive:hover {
  transform: scale(1.025);
  opacity: 1;
  box-shadow: 0 10px 30px rgba(var(--glow-rgba),0.2);
  text-decoration: none;
}

/* Footer */
.site-footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 1.2rem 0; margin-top: 2rem; background: rgba(0,0,0,0.85); }
.footer-inner { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.6rem; }
.socials { display: flex; gap: 0.6rem; margin-bottom: 0.6rem; }
.social-link {
  width: 44px; height: 44px; border-radius: 8px;
  display: inline-grid; place-items: center;
  background: var(--accent); color: var(--text-light); font-size: 1.05rem;
  text-decoration: none; box-shadow: 0 3px 10px rgba(0,0,0,0.35);
}

/* Shake animation */
@keyframes clickShake {
  0% { transform: translateX(0) }
  15% { transform: translateX(-6px) }
  30% { transform: translateX(6px) }
  45% { transform: translateX(-4px) }
  60% { transform: translateX(4px) }
  75% { transform: translateX(-2px) }
  100% { transform: translateX(0) }
}
.shake { animation: clickShake 360ms linear; }

/* Buttons */
button {
  background: rgba(93,22,198,0.2); border: 1px solid rgba(93,22,198,0.5);
  color: var(--text-light); padding: 0.7rem 1.5rem; border-radius: 8px;
  cursor: pointer; font-size: 1rem; backdrop-filter: blur(8px); transition: all 0.2s ease;
}
button:hover { background: rgba(93,22,198,0.6); transform: scale(1.025); box-shadow: 0 0 12px rgba(93,22,198,0.6); }
button:active { transform: scale(0.98); }

/* Responsive tweaks */
@media (min-width: 800px) {
  .site-header .wrap { padding: 1rem 0; }
  .logo { font-size: 2rem; }
  .card-grid { gap: 1.2rem; }
}
/* Hide project detail sections by default */
.card-panel {
  display: none;
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-radius: 14px;
  background: rgba(93,22,198,0.3); /* matches your purple theme */
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.03);
}
.card-panel.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
