/* ===== GLOBAL RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== BODY ===== */
body{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at center, #050505, #000000 80%);
  color: white;
  overflow-x: hidden;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  line-height: 1.6;

  display: flex;
  flex-direction: column;
  min-height: 100vh;

  padding-top: 80px;
}

/* ===== BACKGROUND ===== */
canvas{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* ===== NAVBAR ===== */
.navbar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 30px;

  background: transparent;
  z-index: 1000;

  transition: background 0.3s ease;
}

.navbar.scrolled{
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
}

.brand{
  font-weight: bold;
  letter-spacing: 1px;
}

/* ===== NAV LINKS ===== */
.nav-links{
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a{
  color: white;
  text-decoration: none;
  transition: 0.3s;

  display: flex;
  align-items: center;
  height: 100%;        /* ⭐ FIX */
  line-height: 1;      /* ⭐ FIX */
}

.nav-links a:hover{
  color: #00ffff;
}

.active {
  border-bottom: 2px solid cyan;
}
/* ===== DROPDOWN ===== */
.dropdown{
  position: relative;
}

.dropbtn{
  background: none;
  border: none;
  color: white;
  font: inherit;

  cursor: pointer;

  padding: 0;
  margin: 0;

  display: flex;
  align-items: center;
  height: 100%;        /* ⭐ FIX */
  line-height: 1;      /* ⭐ FIX */
}

.dropbtn:hover{
  color: #00ffff;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);

  border-radius: 10px;

  width: max-content;
  max-width: 90vw;
  white-space: nowrap;

  overflow: hidden;
  z-index: 2000;
}

.dropdown-content a {
  display: block;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
}

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

.dropdown:last-child .dropdown-content {
  right: 0;
  left: auto;
}

.show {
  display: block;
}

/* ===== CONTENT ===== */
.container{
  text-align: center;
  flex: 1;
}

/* ===== CARD ===== */
.card{
  margin: 40px auto;
  max-width: 700px;
  padding: 30px;

  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

/* ===== TABLE CONTAINER ===== */
.table-container{
  margin: 40px auto;
  max-width: 900px;
  overflow-x: auto;
}

/* ===== TABLE ===== */
.table{
  width: auto;
  max-width: 100%;
  border-collapse: collapse;

  margin: 0 auto;

  background: transparent;
  color: white;

  white-space: nowrap;   /* optional (kept as you wanted) */
}


/* ===== TABLE TEXT ===== */
.table th,
.table td{
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.table td{
  word-break: break-word;
}

/* ===== CAPTION ===== */
.table caption{
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: bold;
  color: #00ffff;
}

/* ===== LINKS ===== */
.table a{
  color: #00ffff;
  text-decoration: none;
}

.table a:hover{
  text-decoration: underline;
}

.table tr:hover{
  background: rgba(255,255,255,0.05);
}

/* ===== BUTTON ===== */
button{
  padding: 12px 20px;
  margin-top: 20px;

  border: none;
  border-radius: 10px;

  background: #111;
  color: white;

  cursor: pointer;
}

button:hover{
  background: #222;
}

/* ===== FOOTER ===== */
.footer{
  margin-top: 60px;
  padding: 30px 20px;

  border-top: 1px solid rgba(0,255,255,0.2);
  box-shadow: 0 -5px 15px rgba(0,255,255,0.1);
}

.footer-content{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  flex-wrap: wrap;
  gap: 20px;

  max-width: 1000px;
  margin: 0 auto;
}

.footer-left h3{
  color: #00ffff;
  margin-bottom: 5px;
}

.footer-links,
.footer-social{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer a{
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover{
  color: #00ffff;
}

.footer-bottom{
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== MOBILE ===== */
@media (max-width:700px){

  .navbar{
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links{
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
  }

  .dropdown-content{
    position: relative;
    width: 100%;
  }

  .table{
    width: 100%;
  }

  .footer-content{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}



/* ========for cards ======*/
.card-list{
  max-width: 900px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card-item{
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 20px;

  background: rgba(255,255,255,0.03);
  border-radius: 10px;
}

.card-left h3{
  margin-bottom: 5px;
}

.card-left p{
  opacity: 0.7;
  font-size: 0.9rem;
}

.card-left{
  text-align: left;
}

.card-right{
  display: flex;
  gap: 15px;
margin-left: auto;
}

.card-right a{
  color: #00ffff;
  text-decoration: none;
}

.card-right a:hover{
  text-decoration: underline;
}

.card-list a, 
.card-list a:visited {
    color: blue;
    text-decoration: none;
}
