/* Mediagato Party: vibrant, fashion-forward placeholder */
:root{
  --bg: #0b0b10;
  --fg: #f4f6fb;
  --muted: #a4a9b6;
  --accent: #8a6bff; /* brighter violet */
  --accent2: #5bc0ff; /* azure */
  --purple: #5a3cff;
  --blue: #142a5f;
  --card: #141420;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
*{ box-sizing: border-box }
html,body{ height:100% }
body{
  margin:0; 
  background: linear-gradient(135deg, 
    #0a0a0f 0%, 
    #1a0f2e 20%, 
    #2d1b4e 40%, 
    #4a2c7a 50%, 
    #5a3cff 50%, 
    #4a2c7a 50%, 
    #2d1b4e 60%, 
    #1a0f2e 80%, 
    #0a0a0f 100%);
  background-size: 600% 600%;
  background-attachment: fixed;
  animation: breathingBackground 180s ease infinite;
  color:var(--fg);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

@keyframes breathingBackground {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.backdrop{
  position: fixed; inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(90, 60, 255, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(74, 44, 122, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(45, 27, 78, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 60% 10%, rgba(90, 60, 255, 0.25) 0%, transparent 50%);
  filter: blur(120px) saturate(180%);
  pointer-events: none; 
  opacity: .9;
  z-index: 0;
}
/* Fixed top navigation */
.topnav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(10px);
}
.brand-link{ text-decoration:none; color: var(--fg); }
.brandblock{ display:flex; flex-direction:column; }
.brandblock h1{ margin:0; font-size: clamp(1.5rem, 4vw, 2.5rem); letter-spacing: .02em; }
.menu{ list-style:none; display:flex; gap:1.5rem; margin:0; padding:0; align-items: center; margin-left: auto }
.menu a{ color: var(--fg); text-decoration:none; opacity:.9; font-weight:600; font-size: 0.9rem }
.menu a:hover{ color: var(--accent2); text-shadow: 0 0 8px rgba(90,60,255,.4) }
.menu a.active{ color: var(--accent2); border-bottom: 2px solid var(--accent2); padding-bottom: 2px }
.tag{ margin:.25rem 0 0; color: var(--muted); font-size: 0.8rem }
#lab-clock{
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.container{
  position: relative; max-width: 900px; margin: 0 auto; padding: 9rem 1.25rem 3rem;
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.08);
  border-top: 2px solid rgba(255,255,255,.12);
  border-radius: 16px; padding: 1.25rem 1.25rem 1.5rem; box-shadow: var(--shadow);
}
.card h2{ margin-top:0 }
.actions{ display:flex; gap:.75rem; margin-top:1rem; flex-wrap: wrap }
.btn{
  display:inline-block; padding:.65rem 1rem; border-radius: 12px;
  color:#0b0b10; background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; font-weight: 700; letter-spacing:.02em; text-decoration:none;
  box-shadow: 0 8px 20px rgba(90,60,255,.3), 0 8px 20px rgba(74,44,122,.2);
}
.btn:hover{ filter:brightness(1.05) }
.btn.outline{
  background: transparent; color: var(--fg);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:none;
}
.site-footer{
  color: var(--muted);
  margin: 2rem auto 1.5rem;
  font-size: .95rem;
  text-align: center;
  max-width: 900px;
}
.site-footer a{ color: var(--fg); opacity:.9 }

.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgba(255, 255, 255, 0.95);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  z-index: 2100;
  border-radius: 4px;
  top: 100%;
}

.dropdown-content a {
  color: #2c3e50;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s ease;
}

.dropdown-content a:hover,
.dropdown-content a.active {
  background-color: rgba(0, 212, 255, 0.1);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Project Pages - Common Elements */
.stack-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.stack-badge {
  background: linear-gradient(135deg, rgba(90, 60, 255, 0.2), rgba(74, 44, 122, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent2);
  backdrop-filter: blur(10px);
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.stack-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(90, 60, 255, 0.25);
  border-color: rgba(90, 60, 255, 0.3);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.feature-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.15);
}

.feature-card h4 {
  margin: 0 0 1rem 0;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-card.alt {
  border-left-color: var(--accent2);
}

.feature-card.alt h4 {
  color: var(--accent2);
}

.project-header {
  text-align: center;
  margin-bottom: 3rem;
}

.project-title {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.project-subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0;
}

.project-description {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.project-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
}

/* Project page specific layouts */
.info-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 3rem 0;
}

.info-card {
  padding: 1.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.info-card h4 {
  margin-top: 0;
  color: var(--accent);
}

.info-card ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.info-card p {
  margin: 0;
  line-height: 1.7;
}

.diagram {
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.92);
  padding: 1.5rem;
  border-radius: 8px;
  white-space: pre-wrap;
}

.code-block {
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
}

.code-block code {
  font-family: "Fira Code", monospace;
  font-size: 0.9rem;
  color: var(--accent2);
}

.table-responsive {
  overflow-x: auto;
  margin: 2rem 0;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
  padding: 0.75rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.table-responsive th {
  color: var(--accent);
  font-weight: 600;
}

/* Enhanced card styling for project pages */
.project-card {
  padding: 3rem 2.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stack-badges {
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    padding: 2rem 1.5rem;
  }

  .project-actions {
    flex-direction: column;
    align-items: center;
  }

  .project-actions .btn {
    width: 100%;
    max-width: 250px;
  }
}

/* Mobile menu toggle */
@media (max-width: 640px){
  .topnav{ flex-direction: column; gap: 0.5rem; padding: 0.75rem 1rem }
  .brandblock h1{ font-size: clamp(1.2rem, 6vw, 2rem) }
  .menu{ gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem }
  .menu a{ font-size: 0.8rem }
}
