/* RESET */
.network-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.network-container canvas {
  position: fixed; /* cover viewport even when scrolling */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.network-container .content {
  position: relative;
  z-index: 1; /* make sure your content is above the canvas */
  color: #fff;
  padding: 2rem;
  background: none; /* remove grey background if any */

}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body background */
body {
  font-family: system-ui, sans-serif;
  background: #0b0b0b;
  color: #e5e5e5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Network canvas layer */
#network {
  position: absolute;
  top: 75px;       /* full page top */
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none; /* let mouse go through */
}




/* Everything above network */
.page-content {
  position: relative;
  z-index: 1;          /* content above network */
}

/* Optional: ensure sections are relative */
.profile, .gallery, .rectangles-mobile {
  position: relative;
  z-index: 1;
}



/* LAYOUT */
.container {
  width: min(1200px, 92%);
  margin: auto;
}

/* TOPBAR */
.topbar {
  background: #000;
  border-bottom: 1px solid #1a1a1a;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
}

/* Meta nav styling */
.meta-nav a {
  color: #756d60;
  text-decoration: none;  /* removes underline */
  font-weight: 500;       /* optional: match main nav style */
}

/* Optional: hover effect */
.meta-nav a:hover {
  color: #1c1c1c;             /* keeps hover highlight */
}

.meta-logo {
  height: 35px;            /* match the current font size of the links */
  width: auto;             /* maintain aspect ratio */
  vertical-align: middle;  /* align with text */
  margin-left: 0.3rem;     /* optional: small spacing from the last link */
}


/* Keep existing nav layout */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.2rem; /* same gap as your previous .main-nav */
  align-items: center;
}

/* Nav items */
.nav-item {
  position: relative; /* needed for dropdown positioning */
}

/* Links */
.nav-item a {
      font-size: 1.2rem;      /* increase text size */
  padding: 0.8rem 0;       /* more vertical padding */
  font-weight: 600;    
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
}

.nav-item a:hover,
.nav-item a.active {
  color: #464f42;  /* only text highlight */
}

/* Ensure dropdown menus are hidden by default */
.nav-item.dropdown .dropdown-menu {
  display: none;        /* hidden initially */
  position: absolute;   /* remove from flex flow */
  top: 100%;            /* directly below parent link */
  left: 0;
  background-color: #000;
  min-width: 150px;
  border-radius: 4px;
  z-index: 1000;
  flex-direction: column; /* only if display: flex is set */
}

/* Show dropdown only on hover of the parent nav-item */
.nav-item.dropdown:hover > .dropdown-menu {
  display: block;       /* appear on hover only */
}

/* Dropdown links styling */
.dropdown-menu li a {
  display: block;       /* vertical links */
  padding: 0.5rem 1rem;
  color: #aaa;
  text-decoration: none;
}

a {
  color: #464f42;
  text-decoration: none;
}

/* Hover effect inside dropdown */
.dropdown-menu li a:hover {
  background-color: #222;
  color: #fff;
}

/* Match the original loadout style */
.camo-loadout {
  background: #111;           /* same as .loadout */
  padding: 0.8rem;            /* same padding */
  border-radius: 0;           /* optional: match .loadout if needed */
  margin-bottom: 1.5rem;      /* same spacing below as other loadouts */
}

.camo-loadout h3 {
  font-size: 0.9rem;          /* same as .loadout h3 */
  margin-bottom: 0.3rem;      /* same spacing */
  color: #ccc;
}

.camo-gallery {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;             /* wrap images if container is too narrow */
}

.camo-gallery img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #333;
}


/* PROFILE */
.profile {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.profile-info h1 {
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.level {
  background: #222;
  padding: 0.2rem 0.6rem;
  font-size: 0.9rem;
}

.stats {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #bbb;
}

.description {
  background: #121212;
  padding: 1rem;
  border-left: 3px solid #2f2f2f;
  margin-bottom: 1.5rem;
}

.loadouts {
  display: grid;
  gap: 0.8rem;
}

.loadout {
  background: #111;
  padding: 0.8rem;
}

.loadout h4 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: #1dff65;
}

.loadout h3 {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: #ccc;
}

.socials {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #999;
}

.social-cards {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  background: #111;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.card i {
  font-size: 1.1rem;
}

.card:hover {
  transform: translateY(-2px);
}

/* Platform accents */
.card.instagram { border-left: 3px solid #ff1db4; }
.card.tiktok { border-left: 3px solid #3defff; }
.card.discord { border-left: 3px solid #5865F2; }
.card.twitch { border-left: 3px solid #6b1ebe; }
.card.youtube { border-left: 3px solid #ff1d1d; }
.card.aszv { border-left: 3px solid #464f42; }


.notes{
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #464f42;
}

.home-socials {
  display: flex;
  justify-content: center;
  align-items: center;
}


.profile-image img {
  width: 100%;
  height: auto;
  display: block;
}

.libelle-image img {
  width: 10%;
  height: auto;
  float: right;
  margin-top: 10px;     /* move down */
  margin-right: 10%;    /* space from text */
}

/* GALLERY */
.gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 3rem 0;
}

.row {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
}

.row.left {
  justify-content: flex-start;
}

.row.right {
  justify-content: flex-end;
}

.row img {
  display: block;
  width: auto;      /* keep original proportions */
  height: auto;
  flex: 0 0 auto;   /* prevent flexbox from stretching */
  max-width: 20%;   /* scale down to 20% of container width */
}

/* MOBILE VIEW */
@media (max-width: 768px) {
  .row {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #network {
  position: absolute;
  top: 150px;       /* full page top */
  left: 0;
  width: 100%;
  height: 200%;
  z-index: 0;
  pointer-events: none; /* let mouse go through */
}



  .row.left,
  .row.right {
    justify-content: center;
  }

  .row img {
    max-width: 80%;   /* scale nicely on mobile */
    margin-bottom: 1rem;
  }
}


.gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  margin-left: -30%;
  width: 200%;  /* full page width */
}

.row {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  justify-content: flex-start; /* adjust for left/right rows */
  align-items: flex-start;     /* top alignment */
}

.row.right {
  justify-content: flex-end;
  position: relative;
  left: -20%; /* move left by 150px */
}



.row img {
  height: 200px;   /* desired uniform height */
  width: auto;     /* proportional width */
  display: block;
  flex-shrink: 0;  /* prevent flexbox from shrinking images */
}


/* FOOTER */
.footer {
  text-align: center;
  padding: 1rem 0;   /* smaller vertical padding */
  margin-top: 50px;
  background: #000;
}

.footer a {
  color: #aaa;
  text-decoration: none;
}

/* BANNER CONTAINER */
.background-banners {
  position: relative;
  background: none
}

/* Hide mobile rectangle images by default */
.rectangles-mobile {
  display: none;
}

/* MOBILE VIEW */
@media (max-width: 768px) {
  /* hide the main gallery */
  .gallery {
    display: none;
  }

  /* show rectangle images full width */
  .rectangles-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 1rem; /* optional padding */
  }

  .rectangles-mobile img {
    width: 100%;    /* scale to full width of container */
    height: auto;   /* maintain aspect ratio */
    max-width: 500px; /* optional: prevent images from getting too huge on large phones */
    display: block;
  }
}


@media (max-width: 768px) {
.banner {
    display: none;
}

.banner.left {
  display: none;
}

.banner.right {
  display: none;
}

}


/* SIDE BANNERS */
.banner {
  position: absolute;
  top: 0;          /* START EXACTLY AT CONTENT TOP */
  bottom: 0;       /* EXTEND FULL CONTENT HEIGHT */
  width: 120px;    /* BANNER WIDTH */
  background: #1c1c1c;
  z-index: 0;
}

.banner.left {
  left: 0;
}

.banner.right {
  right: 0;
}

/* CONTENT ABOVE BANNERS */
.content {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .banner {
    display: none;
  }
}

.profile-image {
  display: flex;
  flex-direction: column;
}

.profile-map {
  margin-top: -105px; /* EXACT SPACING */
  width: 100%;
  height: 100px;
  aspect-ratio: 4 / 3; /* Keeps map proportional */
  overflow: hidden;
  background: #1c1c1c;
}

.profile-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}



/* MOBILE */
@media (max-width: 768px) {
  .profile {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.background-banners {
  position: relative;
  min-height: calc(100vh - 64px);
}

@media (max-width: 768px) {
  .banner {
    display: none;
  }
}


.floating-gallery {
  position: relative;
  height: 400px;       /* container height */
  margin: 3rem 0;
  background: #111;    /* optional dark background */
  border-radius: 6px;
  overflow: hidden;
}

.floating-gallery img {
  position: absolute;
  width: 450px;        /* uniform width */
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
  pointer-events: none; 
}

/* Random-ish positions and rotations */
.floating-gallery img:nth-child(1) { top: 5%; left: 10%; transform: rotate(-8deg);}
.floating-gallery img:nth-child(2) { top: 15%; left: 50%; transform: rotate(5deg);}
.floating-gallery img:nth-child(3) { top: 40%; left: 25%; transform: rotate(-12deg);}
.floating-gallery img:nth-child(4) { top: 60%; left: 70%; transform: rotate(10deg);}
.floating-gallery img:nth-child(5) { top: 30%; left: 80%; transform: rotate(-5deg);}
.floating-gallery img:nth-child(6) { top: 50%; left: 5%; transform: rotate(7deg);}




#social-wall {
  margin-top: 2rem;
}

#feed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feed-item {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 0.5rem;
  overflow: hidden;
}

.feed-item img,
.feed-item video {
  width: 100%;
  border-radius: 6px;
}


.team-tree ul {
  padding-top: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  list-style-type: none;
}

.team-tree li {
  text-align: center;
  position: relative;
  padding: 20px 10px 0 10px;
}

/* vertical line */
.team-tree li::before, .team-tree li::after {
  content: '';
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 2px solid #555;
  width: 50%;
  height: 20px;
}

.team-tree li::after {
  right: auto;
  left: 50%;
  border-left: 2px solid #555;
}

/* hide lines for first element */
.team-tree li:only-child::before,
.team-tree li:only-child::after {
  display: none;
}

/* line connecting downward */
.team-tree li > ul::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 2px solid #555;
  height: 20px;
}

.rank {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 6px;
  background: #111;
  color: #fff;
  border-left: 3px solid;
}

/* Rank colors */
.rank.leader { border-color: #ffcc00; }
.rank.assistant { border-color: #ff7a18; }
.rank.main { border-color: #3defff; }
.rank.youth { border-color: #6cff8d; }

.container.content {
  position: relative; /* anchor for absolute positioning */
}

.side-libelle {
  float: right;
  width: 90px;           /* small */
  height: auto;
  margin-top: 0px;     /* higher */
  margin-top: 30px;    /* lower */
  margin-right: -150px;/* further outside */
  opacity: 0.85;
  pointer-events: none;
}

/* Clear float after profile */
.profile-info::after {
  content: "";
  display: block;
  clear: both;
}

/* Responsive fallback */
@media (max-width: 750px) {
  .side-libelle {
display: none;
  }
}