/* Reset & Base */
body {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace;
  overflow: hidden;
  background-color: black;
}

.custom-cursor {
  cursor: url('./assets/cursor/pointer.png'), auto !important;
}

/* --- TERMINAL --- */
#terminal {
  position: absolute; /* Changed to absolute for JS centering */
  width: 90%;
  max-width: 600px;
  height: auto;
  max-height: 80vh;
  background-color: #1e1e1e;
  color: #ffffff;
  border-radius: 10px;
  z-index: 1000;
  border: 2px solid #4d4d4d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

#terminal-header {
  background-color: #2d2d2d;
  border-radius: 8px 8px 0 0;
  padding: 10px;
  display: flex;
  justify-content: flex-start;
}

#terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  cursor: pointer;
}

#close-button { background-color: #FF5F57; }
#minimize-button { background-color: #FFBD2E; }
#maximize-button { background-color: #28CA42; }

#terminal-content {
  padding: 20px;
  overflow-y: auto;
  user-select: none;
}

#terminal-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* --- BACKGROUND VIDEO --- */
#video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
}

#video-background::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(to bottom, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 2px);
  z-index: 1;
  pointer-events: none;
}

#myVideo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- BLURRED BOX (MAIN CARD) --- */
#blurred-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  background-color: rgba(0, 0, 0, 0.4); /* Slightly darkened for contrast */
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  display: none;
  padding: 30px 20px;
  text-align: center;
  box-sizing: border-box;
}

#profile-picture {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 2px solid rgba(255,255,255,0.2);
}

.user-description {
  margin: 15px 0 25px 0;
}

.user-description p {
  margin: 0;
  padding: 8px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: inline-block;
}

/* --- LINKS --- */
.links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.links a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.links a i {
  font-size: 28px;
}

.links a:hover {
  color: #ff00ff;
  transform: translateY(-3px);
}

/* --- MOBILE ADAPTABILITY --- */
@media screen and (max-width: 480px) {
  #terminal {
    width: 95%;
  }
  
  #blurred-box {
    padding: 20px 15px;
  }
  
  #profile-picture {
    width: 85px;
    height: 85px;
  }
  
  .links a i {
    font-size: 32px; /* Bigger touch targets on mobile */
  }
}
