/* RESET & BASIC */
body {
  margin: 0;
  background-color: #1a0b0b;
  color: white;
  font-family: 'Exo', sans-serif;
  overflow-x: hidden;
}

#navbar {
    position: sticky;
    top: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #940810;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#navbar a { text-decoration: none; margin: 0 5px; }

#navbar button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-family: 'Orbitron', sans-serif;
    padding: 10px 20px;
    cursor: pointer;
    transition: 0.3s;
    letter-spacing: 1px;
}

#navbar button:hover, #navbar button.active {
    background: #c79406;
    color: white;
    border-radius: 4px;
}

/* Mobile Hamburger */
#hamburger-menu {
    display: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 12px;
}

#mobile-navbar {
    display: none;
    background: #7b0323;
    text-align: center;
}
#mobile-navbar button {
    width: 100%;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 18px;
}


/* TEAM SECTION CONTAINER */
.team-section {
  padding: 80px 5%;
  background-color: #1a0b0b;
  text-align: center;
  position: relative;
  min-height: 80vh;
}

.team-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 50px;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.team-title span {
  color: #940810; 
}

/* GRIGLIA */
.roster-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* CARD STILE HUD */
.crew-card {
  position: relative;
  width: 280px;
  background: linear-gradient(145deg, #220202, #0d0505);
  border-left: 2px solid #940810;
  padding: 20px;
  transition: all 0.4s ease;
  overflow: hidden;
  clip-path: polygon(10% 0, 100% 0, 100% 90%, 90% 100%, 0 100%, 0 10%);
  cursor: pointer;
}

.crew-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 25px rgba(148, 8, 16, 0.4);
  border-left: 2px solid #c79406; 
}

/* IMMAGINE AVATAR (Card) */
.crew-img-box {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid #333;
  overflow: hidden;
  position: relative;
  transition: 0.4s;
}

.crew-card:hover .crew-img-box {
  border-color: #c79406; 
  box-shadow: 0 0 15px rgba(199, 148, 6, 0.5);
}

.crew-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TESTI CARD */
.crew-role {
  font-family: 'Orbitron', sans-serif;
  color: #c79406;
  font-size: 0.8rem;
  letter-spacing: 1px;
  margin-bottom: 5px;
  display: block;
}

.crew-name {
  font-family: 'Exo', sans-serif;
  color: white;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 15px 0;
}

/* View Dossier Button */
.view-dossier-btn {
  margin-top: 15px;
  font-size: 0.8rem;
  color: #555;
  font-family: 'Orbitron';
  transition: 0.3s;
}

.crew-card:hover .view-dossier-btn {
  color: #c79406;
  text-shadow: 0 0 5px rgba(199, 148, 6, 0.5);
}

/* SKILL BARS */
.skill-container {
  text-align: left;
  margin-top: 15px;
  opacity: 0.6;
  transition: 0.4s;
}

.crew-card:hover .skill-container { opacity: 1; }

.skill-label {
  font-family: 'Exo', sans-serif;
  font-size: 0.75rem;
  color: #aaa;
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.progress-bar-bg {
  width: 100%;
  height: 4px;
  background: #333;
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #940810;
  width: 0%;
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.crew-card:hover .progress-bar-fill { background: #c79406; }

/* STATUS BADGE */
.status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.6rem;
  font-family: 'Orbitron';
  background: rgba(0, 255, 0, 0.1);
  color: #0f0;
  padding: 2px 6px;
  border: 1px solid #0f0;
  border-radius: 4px;
}

/* =========================================
   NEW: OPERATIONAL STANDARDS SECTION
   ========================================= */
.standards-section {
    padding: 60px 10%;
    background-color: #110808;
    text-align: center;
    border-top: 2px solid #333;
}

.standards-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}
.standards-title span { color: #c79406; }

.standards-sub {
    color: #888;
    margin-bottom: 40px;
    font-size: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.standards-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.std-card {
    background: #1a1a1a;
    padding: 25px;
    width: 250px;
    border-radius: 10px;
    border: 1px solid #333;
    transition: 0.3s;
}

.std-card:hover {
    border-color: #c79406;
    transform: translateY(-5px);
}

.std-card i { font-size: 2.5rem; color: #940810; margin-bottom: 15px; }
.std-card h3 { font-family: 'Orbitron'; margin: 0; color: white; font-size: 1.2rem; }
.std-card span { display: block; color: #c79406; font-size: 0.7rem; font-weight: bold; margin-bottom: 10px; letter-spacing: 1px; }
.std-card p { font-size: 0.85rem; color: #aaa; line-height: 1.4; margin: 0; }

/* =========================================
   PROFESSIONAL FOOTER
   ========================================= */

#main-footer {
    background-color: #940810;
    color: white;
    padding-top: 60px;
    border-top: 5px solid #7b0323;
    font-family: 'Exo', sans-serif;
    margin-top: 0; 
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px 40px 20px;
    gap: 40px;
}

.footer-col { flex: 1; min-width: 200px; text-align: left; }

.footer-col h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: white;
}

.footer-col h4 {
    font-family: 'Orbitron', sans-serif;
    color: #f7c450; /* Gold Header */
    font-size: 1.1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 0.95rem;
    font-family: 'Exo', sans-serif;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: #f7c450;
    padding-left: 5px;
}

.footer-slogan {
    font-style: italic;
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.9rem;
}

.footer-socials { display: flex; gap: 15px; }
.footer-socials a { color: white; font-size: 1.5rem; transition: 0.3s; }
.footer-socials a:hover { color: #f7c450; transform: translateY(-3px); }

/* Contact Specifics */
.contact-col p {
    margin-bottom: 15px;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Exo', sans-serif;
}
.contact-col i { color: #f7c450; }

.footer-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 20px;
    border: 1px solid white;
    color: white;
    text-decoration: none;
    font-family: 'Orbitron';
    font-size: 0.8rem;
    transition: 0.3s;
}
.footer-btn:hover {
    background: #f7c450;
    border-color: #f7c450;
    color: #940810;
}

/* Footer Bottom Bar */
.footer-bottom {
    background-color: #7b0323;
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.footer-bottom p { margin: 0; color: #ccc; }
.legal-links a { color: #ccc; text-decoration: none; transition: 0.3s; }
.legal-links a:hover { color: white; }
.separator { margin: 0 10px; color: #999; }

/* =========================================
   MODAL / POP-UP STYLES
   ========================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active { display: flex; opacity: 1; }

.bio-card {
  background: linear-gradient(135deg, #1a0b0b 0%, #2d0f0f 100%);
  width: 90%;
  max-width: 800px;
  border: 2px solid #c79406;
  box-shadow: 0 0 40px rgba(199, 148, 6, 0.2);
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .bio-card { transform: scale(1); }

/* Left Column */
.bio-left {
  width: 35%;
  background-color: #0f0404;
  padding: 30px;
  text-align: center;
  border-right: 1px solid #940810;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bio-avatar-large {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #c79406;
  object-fit: cover;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(199, 148, 6, 0.3);
}

/* Right Column */
.bio-right {
  width: 65%;
  padding: 40px;
  color: #ddd;
  text-align: left;
  overflow-y: auto;
  max-height: 80vh;
}

.bio-name { font-family: 'Orbitron', sans-serif; color: white; font-size: 2rem; margin: 0; }
.bio-role-tag {
  background: #940810;
  color: white;
  padding: 5px 10px;
  font-family: 'Exo', sans-serif;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 20px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bio-text { font-family: 'Exo', sans-serif; line-height: 1.6; font-size: 1rem; margin-bottom: 20px; }

.bio-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
  border-top: 1px solid #333;
  padding-top: 20px;
}

.bio-stat-item h4 { color: #c79406; margin: 0 0 5px 0; font-family: 'Orbitron'; font-size: 0.9rem; }
.bio-stat-item p { margin: 0; font-size: 0.9rem; }

/* Close Button */
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 2rem;
  color: #555;
  cursor: pointer;
  transition: 0.3s;
  font-family: 'Orbitron';
  z-index: 10;
}

.close-modal:hover { color: #c79406; }


/* =========================================
   COMPETENCE DOSSIER (Replaces Skill Bars)
   ========================================= */
.competence-container {
  text-align: left;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.7;
  transition: all 0.4s ease;
}

/* Card hover illuminates the text container */
.crew-card:hover .competence-container { 
  opacity: 1; 
  border-top: 1px solid rgba(199, 148, 6, 0.3); /* Subtle gold line on hover */
}

.competence-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.75rem; /* Keeps it tight and technical */
  font-family: 'Exo', sans-serif;
}

.competence-label {
  color: #940810; /* IMF Brand Red */
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 40%;
  transition: color 0.3s ease;
}

/* Labels turn gold on hover to match the border and avatar */
.crew-card:hover .competence-label {
  color: #c79406; 
}

.competence-value {
  color: #e0e0e0;
  font-weight: 400;
  text-align: right;
  width: 60%;
  line-height: 1.2;
}

.crew-card:hover .competence-value {
  color: #ffffff; /* Brightens data on hover */
}

/* Mobile Responsive */
@media (max-width: 768px) {
  /* Navbar & Hamburger Menu */
    #navbar { justify-content: flex-end; padding: 15px 20px; min-height: 60px; }
    #navbar a { display: none; } /* Strictly hide desktop buttons */
    #hamburger-menu { display: block; position: relative; right: 0; top: 0; }
    
    #mobile-navbar { display: none; background: #7b0323; }
    #mobile-navbar a { text-decoration: none; display: block; }
    #mobile-navbar button {
        width: 100%;
        padding: 15px;
        background: transparent;
        color: white;
        border: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        font-size: 16px;
        font-family: 'Orbitron', sans-serif;
        text-align: center;
    }

  .bio-card { flex-direction: column; }
  .bio-left, .bio-right { width: 100%; border-right: none; }
  .bio-left { padding: 20px; border-bottom: 1px solid #940810; }
  .bio-right { padding: 20px; }
  .roster-grid { flex-direction: column; align-items: center; }
  
  .footer-container { flex-direction: column; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; }


}