/* =========================================
   NEXUS DROPDOWN – FINAL
========================================= */

/* Parent skal holde hover */
.dropdown {
  position: relative;
}

/* Skjul dropdown som default */
.dropdown-menu {
  position: absolute;
  top: 100%;               /* INGEN GAP */
  left: 0;

  min-width: 260px;
  margin-top: 0;           /* vigtigt */

  background: rgba(15, 15, 35, 0.96);
  backdrop-filter: blur(16px);

  display: block;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);

  transition: 
    opacity 0.2s ease,
    transform 0.2s ease;

  z-index: 9999;
}

/* Hold dropdown åben når man er OVER den */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Dropdown links */
.dropdown-menu a {
  display: block;
  padding: 10px 14px;

  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #a1a1aa;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  padding: 10px 14px;
}

.nav-links a {
  border-bottom: none;
}

/* ================================
   PROJEKTER – GRID
================================ */

.projects {
  padding: 120px 2rem 80px;
}

.projects-container {
  max-width: 1400px;
  margin: 0 auto;
}

.projects-title {
  text-align: center;
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 4rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-cyan);
  text-shadow: 0 0 20px rgba(0,255,255,0.4);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* ================================
   PROJECT CARDS – INDEX MATCH
================================ */

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  text-decoration: none;
  color: var(--text-secondary);

  display: flex;
  flex-direction: column;

  clip-path: polygon(
    20px 0%,
    100% 0%,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0% 100%,
    0% 20px
  );

  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

/* Gradient overlay (samme som feature-card) */
.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--primary-cyan),
    var(--primary-pink)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

/* Hover */
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 255, 255, 0.2);
}

.project-card:hover::before {
  opacity: 0.08;
}

.project-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-content {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.project-content h3 {
  color: var(--primary-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.project-content p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* 8 kolonner */
.projects-grid--8 {
  grid-template-columns: repeat(6, 1fr);
}

/* Mindre cards – uden beskrivelse */
.project-card--small .project-image {
  height: 160px;   /* ↓ lavere højde */
}

.project-card--small .project-content {
  padding: 0.8rem 0.6rem;
}

.project-card--small h3 {
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
}

/* responsiv */
@media (max-width: 1400px) {
  .projects-grid--8 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .projects-grid--8 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .projects-grid--8 { grid-template-columns: 1fr; }
}

.system-status.online {
    background: none;
    -webkit-text-fill-color: #22c55e;
    color: #22c55e;
    text-shadow:
        0 0 15px rgba(34,197,94,0.6),
        0 0 30px rgba(34,197,94,0.4);
}

/* FÆLLES STAT-VÆRDI */
.stat-number,
.stat-text,
.system-status {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;

    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-footer {
  margin-top: 6rem;
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.footer-text {
  opacity: 0.8;
  line-height: 1.6;
}

.footer-text.small {
  font-size: 0.75rem;
  opacity: 0.6;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  text-decoration: none;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
}



.network-list {
  margin-top: 2rem;
  border-top: 1px solid rgba(0,255,255,0.15);

  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 3rem;
}

.network-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;

  padding: 0.8rem 0;
  text-decoration: none;
  color: inherit;

  border-bottom: 1px solid rgba(0,255,255,0.08);
  transition: background 0.25s ease;
}

.network-row:hover {
  background: rgba(0,255,255,0.04);
}


.node-name {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.node-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.node-meta {
  text-align: right;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: #00ffff;
  opacity: 0.65;
}

/* NETVÆRK – actions */
.network-actions {
  margin: 2rem 0 1.5rem;
  display: flex;
  align-items: center;
}

/* Tæller i præcis center af siden */
.network-count {
  margin-left: auto;

  font-size: 0.85rem;
  letter-spacing: 0.12em;
  opacity: 0.7;
  white-space: nowrap;
}

.random-button {
  position: absolute;
}